/* automatically generated by rust-bindgen 0.66.1 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { storage: Storage, } impl __BindgenBitfieldUnit { #[inline] pub const fn new(storage: Storage) -> Self { Self { storage } } } impl __BindgenBitfieldUnit where Storage: AsRef<[u8]> + AsMut<[u8]>, { #[inline] pub fn get_bit(&self, index: usize) -> bool { debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] pub fn set_bit(&mut self, index: usize, val: bool) { debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; } else { *byte &= !mask; } } #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } val } #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } } pub const _INTTYPES_H: u32 = 1; pub const _FEATURES_H: u32 = 1; pub const _DEFAULT_SOURCE: u32 = 1; pub const __GLIBC_USE_ISOC2X: u32 = 0; pub const __USE_ISOC11: u32 = 1; pub const __USE_ISOC99: u32 = 1; pub const __USE_ISOC95: u32 = 1; pub const __USE_POSIX_IMPLICITLY: u32 = 1; pub const _POSIX_SOURCE: u32 = 1; pub const _POSIX_C_SOURCE: u32 = 200809; pub const __USE_POSIX: u32 = 1; pub const __USE_POSIX2: u32 = 1; pub const __USE_POSIX199309: u32 = 1; pub const __USE_POSIX199506: u32 = 1; pub const __USE_XOPEN2K: u32 = 1; pub const __USE_XOPEN2K8: u32 = 1; pub const _ATFILE_SOURCE: u32 = 1; pub const __WORDSIZE: u32 = 64; pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; pub const __SYSCALL_WORDSIZE: u32 = 64; pub const __TIMESIZE: u32 = 64; pub const __USE_MISC: u32 = 1; pub const __USE_ATFILE: u32 = 1; pub const __USE_FORTIFY_LEVEL: u32 = 0; pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; pub const _STDC_PREDEF_H: u32 = 1; pub const __STDC_IEC_559__: u32 = 1; pub const __STDC_IEC_60559_BFP__: u32 = 201404; pub const __STDC_IEC_559_COMPLEX__: u32 = 1; pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; pub const __GLIBC_MINOR__: u32 = 37; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; pub const __HAVE_GENERIC_SELECTION: u32 = 1; pub const _STDINT_H: u32 = 1; pub const __GLIBC_USE_LIB_EXT2: u32 = 0; pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; pub const _BITS_TYPES_H: u32 = 1; pub const _BITS_TYPESIZES_H: u32 = 1; pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; pub const __INO_T_MATCHES_INO64_T: u32 = 1; pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; pub const __STATFS_MATCHES_STATFS64: u32 = 1; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; pub const __FD_SETSIZE: u32 = 1024; pub const _BITS_TIME64_H: u32 = 1; pub const _BITS_WCHAR_H: u32 = 1; pub const _BITS_STDINT_INTN_H: u32 = 1; pub const _BITS_STDINT_UINTN_H: u32 = 1; pub const INT8_MIN: i32 = -128; pub const INT16_MIN: i32 = -32768; pub const INT32_MIN: i32 = -2147483648; pub const INT8_MAX: u32 = 127; pub const INT16_MAX: u32 = 32767; pub const INT32_MAX: u32 = 2147483647; pub const UINT8_MAX: u32 = 255; pub const UINT16_MAX: u32 = 65535; pub const UINT32_MAX: u32 = 4294967295; pub const INT_LEAST8_MIN: i32 = -128; pub const INT_LEAST16_MIN: i32 = -32768; pub const INT_LEAST32_MIN: i32 = -2147483648; pub const INT_LEAST8_MAX: u32 = 127; pub const INT_LEAST16_MAX: u32 = 32767; pub const INT_LEAST32_MAX: u32 = 2147483647; pub const UINT_LEAST8_MAX: u32 = 255; pub const UINT_LEAST16_MAX: u32 = 65535; pub const UINT_LEAST32_MAX: u32 = 4294967295; pub const INT_FAST8_MIN: i32 = -128; pub const INT_FAST16_MIN: i64 = -9223372036854775808; pub const INT_FAST32_MIN: i64 = -9223372036854775808; pub const INT_FAST8_MAX: u32 = 127; pub const INT_FAST16_MAX: u64 = 9223372036854775807; pub const INT_FAST32_MAX: u64 = 9223372036854775807; pub const UINT_FAST8_MAX: u32 = 255; pub const UINT_FAST16_MAX: i32 = -1; pub const UINT_FAST32_MAX: i32 = -1; pub const INTPTR_MIN: i64 = -9223372036854775808; pub const INTPTR_MAX: u64 = 9223372036854775807; pub const UINTPTR_MAX: i32 = -1; pub const PTRDIFF_MIN: i64 = -9223372036854775808; pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; pub const SIZE_MAX: i32 = -1; pub const WINT_MIN: u32 = 0; pub const WINT_MAX: u32 = 4294967295; pub const ____gwchar_t_defined: u32 = 1; pub const __PRI64_PREFIX: &[u8; 2] = b"l\0"; pub const __PRIPTR_PREFIX: &[u8; 2] = b"l\0"; pub const PRId8: &[u8; 2] = b"d\0"; pub const PRId16: &[u8; 2] = b"d\0"; pub const PRId32: &[u8; 2] = b"d\0"; pub const PRId64: &[u8; 3] = b"ld\0"; pub const PRIdLEAST8: &[u8; 2] = b"d\0"; pub const PRIdLEAST16: &[u8; 2] = b"d\0"; pub const PRIdLEAST32: &[u8; 2] = b"d\0"; pub const PRIdLEAST64: &[u8; 3] = b"ld\0"; pub const PRIdFAST8: &[u8; 2] = b"d\0"; pub const PRIdFAST16: &[u8; 3] = b"ld\0"; pub const PRIdFAST32: &[u8; 3] = b"ld\0"; pub const PRIdFAST64: &[u8; 3] = b"ld\0"; pub const PRIi8: &[u8; 2] = b"i\0"; pub const PRIi16: &[u8; 2] = b"i\0"; pub const PRIi32: &[u8; 2] = b"i\0"; pub const PRIi64: &[u8; 3] = b"li\0"; pub const PRIiLEAST8: &[u8; 2] = b"i\0"; pub const PRIiLEAST16: &[u8; 2] = b"i\0"; pub const PRIiLEAST32: &[u8; 2] = b"i\0"; pub const PRIiLEAST64: &[u8; 3] = b"li\0"; pub const PRIiFAST8: &[u8; 2] = b"i\0"; pub const PRIiFAST16: &[u8; 3] = b"li\0"; pub const PRIiFAST32: &[u8; 3] = b"li\0"; pub const PRIiFAST64: &[u8; 3] = b"li\0"; pub const PRIo8: &[u8; 2] = b"o\0"; pub const PRIo16: &[u8; 2] = b"o\0"; pub const PRIo32: &[u8; 2] = b"o\0"; pub const PRIo64: &[u8; 3] = b"lo\0"; pub const PRIoLEAST8: &[u8; 2] = b"o\0"; pub const PRIoLEAST16: &[u8; 2] = b"o\0"; pub const PRIoLEAST32: &[u8; 2] = b"o\0"; pub const PRIoLEAST64: &[u8; 3] = b"lo\0"; pub const PRIoFAST8: &[u8; 2] = b"o\0"; pub const PRIoFAST16: &[u8; 3] = b"lo\0"; pub const PRIoFAST32: &[u8; 3] = b"lo\0"; pub const PRIoFAST64: &[u8; 3] = b"lo\0"; pub const PRIu8: &[u8; 2] = b"u\0"; pub const PRIu16: &[u8; 2] = b"u\0"; pub const PRIu32: &[u8; 2] = b"u\0"; pub const PRIu64: &[u8; 3] = b"lu\0"; pub const PRIuLEAST8: &[u8; 2] = b"u\0"; pub const PRIuLEAST16: &[u8; 2] = b"u\0"; pub const PRIuLEAST32: &[u8; 2] = b"u\0"; pub const PRIuLEAST64: &[u8; 3] = b"lu\0"; pub const PRIuFAST8: &[u8; 2] = b"u\0"; pub const PRIuFAST16: &[u8; 3] = b"lu\0"; pub const PRIuFAST32: &[u8; 3] = b"lu\0"; pub const PRIuFAST64: &[u8; 3] = b"lu\0"; pub const PRIx8: &[u8; 2] = b"x\0"; pub const PRIx16: &[u8; 2] = b"x\0"; pub const PRIx32: &[u8; 2] = b"x\0"; pub const PRIx64: &[u8; 3] = b"lx\0"; pub const PRIxLEAST8: &[u8; 2] = b"x\0"; pub const PRIxLEAST16: &[u8; 2] = b"x\0"; pub const PRIxLEAST32: &[u8; 2] = b"x\0"; pub const PRIxLEAST64: &[u8; 3] = b"lx\0"; pub const PRIxFAST8: &[u8; 2] = b"x\0"; pub const PRIxFAST16: &[u8; 3] = b"lx\0"; pub const PRIxFAST32: &[u8; 3] = b"lx\0"; pub const PRIxFAST64: &[u8; 3] = b"lx\0"; pub const PRIX8: &[u8; 2] = b"X\0"; pub const PRIX16: &[u8; 2] = b"X\0"; pub const PRIX32: &[u8; 2] = b"X\0"; pub const PRIX64: &[u8; 3] = b"lX\0"; pub const PRIXLEAST8: &[u8; 2] = b"X\0"; pub const PRIXLEAST16: &[u8; 2] = b"X\0"; pub const PRIXLEAST32: &[u8; 2] = b"X\0"; pub const PRIXLEAST64: &[u8; 3] = b"lX\0"; pub const PRIXFAST8: &[u8; 2] = b"X\0"; pub const PRIXFAST16: &[u8; 3] = b"lX\0"; pub const PRIXFAST32: &[u8; 3] = b"lX\0"; pub const PRIXFAST64: &[u8; 3] = b"lX\0"; pub const PRIdMAX: &[u8; 3] = b"ld\0"; pub const PRIiMAX: &[u8; 3] = b"li\0"; pub const PRIoMAX: &[u8; 3] = b"lo\0"; pub const PRIuMAX: &[u8; 3] = b"lu\0"; pub const PRIxMAX: &[u8; 3] = b"lx\0"; pub const PRIXMAX: &[u8; 3] = b"lX\0"; pub const PRIdPTR: &[u8; 3] = b"ld\0"; pub const PRIiPTR: &[u8; 3] = b"li\0"; pub const PRIoPTR: &[u8; 3] = b"lo\0"; pub const PRIuPTR: &[u8; 3] = b"lu\0"; pub const PRIxPTR: &[u8; 3] = b"lx\0"; pub const PRIXPTR: &[u8; 3] = b"lX\0"; pub const SCNd8: &[u8; 4] = b"hhd\0"; pub const SCNd16: &[u8; 3] = b"hd\0"; pub const SCNd32: &[u8; 2] = b"d\0"; pub const SCNd64: &[u8; 3] = b"ld\0"; pub const SCNdLEAST8: &[u8; 4] = b"hhd\0"; pub const SCNdLEAST16: &[u8; 3] = b"hd\0"; pub const SCNdLEAST32: &[u8; 2] = b"d\0"; pub const SCNdLEAST64: &[u8; 3] = b"ld\0"; pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; pub const SCNdFAST16: &[u8; 3] = b"ld\0"; pub const SCNdFAST32: &[u8; 3] = b"ld\0"; pub const SCNdFAST64: &[u8; 3] = b"ld\0"; pub const SCNi8: &[u8; 4] = b"hhi\0"; pub const SCNi16: &[u8; 3] = b"hi\0"; pub const SCNi32: &[u8; 2] = b"i\0"; pub const SCNi64: &[u8; 3] = b"li\0"; pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; pub const SCNiLEAST32: &[u8; 2] = b"i\0"; pub const SCNiLEAST64: &[u8; 3] = b"li\0"; pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; pub const SCNiFAST16: &[u8; 3] = b"li\0"; pub const SCNiFAST32: &[u8; 3] = b"li\0"; pub const SCNiFAST64: &[u8; 3] = b"li\0"; pub const SCNu8: &[u8; 4] = b"hhu\0"; pub const SCNu16: &[u8; 3] = b"hu\0"; pub const SCNu32: &[u8; 2] = b"u\0"; pub const SCNu64: &[u8; 3] = b"lu\0"; pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; pub const SCNuLEAST32: &[u8; 2] = b"u\0"; pub const SCNuLEAST64: &[u8; 3] = b"lu\0"; pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; pub const SCNuFAST16: &[u8; 3] = b"lu\0"; pub const SCNuFAST32: &[u8; 3] = b"lu\0"; pub const SCNuFAST64: &[u8; 3] = b"lu\0"; pub const SCNo8: &[u8; 4] = b"hho\0"; pub const SCNo16: &[u8; 3] = b"ho\0"; pub const SCNo32: &[u8; 2] = b"o\0"; pub const SCNo64: &[u8; 3] = b"lo\0"; pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; pub const SCNoLEAST32: &[u8; 2] = b"o\0"; pub const SCNoLEAST64: &[u8; 3] = b"lo\0"; pub const SCNoFAST8: &[u8; 4] = b"hho\0"; pub const SCNoFAST16: &[u8; 3] = b"lo\0"; pub const SCNoFAST32: &[u8; 3] = b"lo\0"; pub const SCNoFAST64: &[u8; 3] = b"lo\0"; pub const SCNx8: &[u8; 4] = b"hhx\0"; pub const SCNx16: &[u8; 3] = b"hx\0"; pub const SCNx32: &[u8; 2] = b"x\0"; pub const SCNx64: &[u8; 3] = b"lx\0"; pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; pub const SCNxLEAST32: &[u8; 2] = b"x\0"; pub const SCNxLEAST64: &[u8; 3] = b"lx\0"; pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; pub const SCNxFAST16: &[u8; 3] = b"lx\0"; pub const SCNxFAST32: &[u8; 3] = b"lx\0"; pub const SCNxFAST64: &[u8; 3] = b"lx\0"; pub const SCNdMAX: &[u8; 3] = b"ld\0"; pub const SCNiMAX: &[u8; 3] = b"li\0"; pub const SCNoMAX: &[u8; 3] = b"lo\0"; pub const SCNuMAX: &[u8; 3] = b"lu\0"; pub const SCNxMAX: &[u8; 3] = b"lx\0"; pub const SCNdPTR: &[u8; 3] = b"ld\0"; pub const SCNiPTR: &[u8; 3] = b"li\0"; pub const SCNoPTR: &[u8; 3] = b"lo\0"; pub const SCNuPTR: &[u8; 3] = b"lu\0"; pub const SCNxPTR: &[u8; 3] = b"lx\0"; pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; pub const _STRING_H: u32 = 1; pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; pub const _STRINGS_H: u32 = 1; pub const G_ANALYZER_ANALYZING: u32 = 0; pub const FALSE: u32 = 0; pub const G_HAVE_GNUC_VISIBILITY: u32 = 1; pub const _LIBC_LIMITS_H_: u32 = 1; pub const MB_LEN_MAX: u32 = 16; pub const _BITS_POSIX1_LIM_H: u32 = 1; pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; pub const _POSIX_AIO_MAX: u32 = 1; pub const _POSIX_ARG_MAX: u32 = 4096; pub const _POSIX_CHILD_MAX: u32 = 25; pub const _POSIX_DELAYTIMER_MAX: u32 = 32; pub const _POSIX_HOST_NAME_MAX: u32 = 255; pub const _POSIX_LINK_MAX: u32 = 8; pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; pub const _POSIX_MAX_CANON: u32 = 255; pub const _POSIX_MAX_INPUT: u32 = 255; pub const _POSIX_MQ_OPEN_MAX: u32 = 8; pub const _POSIX_MQ_PRIO_MAX: u32 = 32; pub const _POSIX_NAME_MAX: u32 = 14; pub const _POSIX_NGROUPS_MAX: u32 = 8; pub const _POSIX_OPEN_MAX: u32 = 20; pub const _POSIX_PATH_MAX: u32 = 256; pub const _POSIX_PIPE_BUF: u32 = 512; pub const _POSIX_RE_DUP_MAX: u32 = 255; pub const _POSIX_RTSIG_MAX: u32 = 8; pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; pub const _POSIX_SIGQUEUE_MAX: u32 = 32; pub const _POSIX_SSIZE_MAX: u32 = 32767; pub const _POSIX_STREAM_MAX: u32 = 8; pub const _POSIX_SYMLINK_MAX: u32 = 255; pub const _POSIX_SYMLOOP_MAX: u32 = 8; pub const _POSIX_TIMER_MAX: u32 = 32; pub const _POSIX_TTY_NAME_MAX: u32 = 9; pub const _POSIX_TZNAME_MAX: u32 = 6; pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; pub const LINK_MAX: u32 = 127; pub const MAX_CANON: u32 = 255; pub const MAX_INPUT: u32 = 255; pub const NAME_MAX: u32 = 255; pub const PATH_MAX: u32 = 4096; pub const PIPE_BUF: u32 = 4096; pub const XATTR_NAME_MAX: u32 = 255; pub const XATTR_SIZE_MAX: u32 = 65536; pub const XATTR_LIST_MAX: u32 = 65536; pub const RTSIG_MAX: u32 = 32; pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; pub const PTHREAD_KEYS_MAX: u32 = 1024; pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; pub const AIO_PRIO_DELTA_MAX: u32 = 20; pub const PTHREAD_STACK_MIN: u32 = 16384; pub const DELAYTIMER_MAX: u32 = 2147483647; pub const TTY_NAME_MAX: u32 = 32; pub const LOGIN_NAME_MAX: u32 = 256; pub const HOST_NAME_MAX: u32 = 64; pub const MQ_PRIO_MAX: u32 = 32768; pub const SEM_VALUE_MAX: u32 = 2147483647; pub const _BITS_POSIX2_LIM_H: u32 = 1; pub const _POSIX2_BC_BASE_MAX: u32 = 99; pub const _POSIX2_BC_DIM_MAX: u32 = 2048; pub const _POSIX2_BC_SCALE_MAX: u32 = 99; pub const _POSIX2_BC_STRING_MAX: u32 = 1000; pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; pub const _POSIX2_LINE_MAX: u32 = 2048; pub const _POSIX2_RE_DUP_MAX: u32 = 255; pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; pub const BC_BASE_MAX: u32 = 99; pub const BC_DIM_MAX: u32 = 2048; pub const BC_SCALE_MAX: u32 = 99; pub const BC_STRING_MAX: u32 = 1000; pub const COLL_WEIGHTS_MAX: u32 = 255; pub const EXPR_NEST_MAX: u32 = 32; pub const LINE_MAX: u32 = 2048; pub const CHARCLASS_NAME_MAX: u32 = 2048; pub const RE_DUP_MAX: u32 = 32767; pub const G_GINT16_MODIFIER: &[u8; 2] = b"h\0"; pub const G_GINT16_FORMAT: &[u8; 3] = b"hi\0"; pub const G_GUINT16_FORMAT: &[u8; 3] = b"hu\0"; pub const G_GINT32_MODIFIER: &[u8; 1] = b"\0"; pub const G_GINT32_FORMAT: &[u8; 2] = b"i\0"; pub const G_GUINT32_FORMAT: &[u8; 2] = b"u\0"; pub const G_HAVE_GINT64: u32 = 1; pub const G_GINT64_MODIFIER: &[u8; 2] = b"l\0"; pub const G_GINT64_FORMAT: &[u8; 3] = b"li\0"; pub const G_GUINT64_FORMAT: &[u8; 3] = b"lu\0"; pub const GLIB_SIZEOF_VOID_P: u32 = 8; pub const GLIB_SIZEOF_LONG: u32 = 8; pub const GLIB_SIZEOF_SIZE_T: u32 = 8; pub const GLIB_SIZEOF_SSIZE_T: u32 = 8; pub const G_GSIZE_MODIFIER: &[u8; 2] = b"l\0"; pub const G_GSSIZE_MODIFIER: &[u8; 2] = b"l\0"; pub const G_GSIZE_FORMAT: &[u8; 3] = b"lu\0"; pub const G_GSSIZE_FORMAT: &[u8; 3] = b"li\0"; pub const G_GOFFSET_MODIFIER: &[u8; 2] = b"l\0"; pub const G_GOFFSET_FORMAT: &[u8; 3] = b"li\0"; pub const G_POLLFD_FORMAT: &[u8; 3] = b"%d\0"; pub const G_GINTPTR_MODIFIER: &[u8; 2] = b"l\0"; pub const G_GINTPTR_FORMAT: &[u8; 3] = b"li\0"; pub const G_GUINTPTR_FORMAT: &[u8; 3] = b"lu\0"; pub const GLIB_MAJOR_VERSION: u32 = 2; pub const GLIB_MINOR_VERSION: u32 = 76; pub const GLIB_MICRO_VERSION: u32 = 4; pub const G_VA_COPY_AS_ARRAY: u32 = 1; pub const G_HAVE_ISO_VARARGS: u32 = 1; pub const G_HAVE_GROWING_STACK: u32 = 0; pub const G_HAVE_GNUC_VARARGS: u32 = 1; pub const G_MODULE_SUFFIX: &[u8; 3] = b"so\0"; pub const G_PID_FORMAT: &[u8; 2] = b"i\0"; pub const GLIB_SYSDEF_AF_UNIX: u32 = 1; pub const GLIB_SYSDEF_AF_INET: u32 = 2; pub const GLIB_SYSDEF_AF_INET6: u32 = 10; pub const GLIB_SYSDEF_MSG_OOB: u32 = 1; pub const GLIB_SYSDEF_MSG_PEEK: u32 = 2; pub const GLIB_SYSDEF_MSG_DONTROUTE: u32 = 4; pub const G_DIR_SEPARATOR: u8 = 47u8; pub const G_DIR_SEPARATOR_S: &[u8; 2] = b"/\0"; pub const G_SEARCHPATH_SEPARATOR: u8 = 58u8; pub const G_SEARCHPATH_SEPARATOR_S: &[u8; 2] = b":\0"; pub const _TIME_H: u32 = 1; pub const _BITS_TIME_H: u32 = 1; pub const CLOCK_REALTIME: u32 = 0; pub const CLOCK_MONOTONIC: u32 = 1; pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; pub const CLOCK_MONOTONIC_RAW: u32 = 4; pub const CLOCK_REALTIME_COARSE: u32 = 5; pub const CLOCK_MONOTONIC_COARSE: u32 = 6; pub const CLOCK_BOOTTIME: u32 = 7; pub const CLOCK_REALTIME_ALARM: u32 = 8; pub const CLOCK_BOOTTIME_ALARM: u32 = 9; pub const CLOCK_TAI: u32 = 11; pub const TIMER_ABSTIME: u32 = 1; pub const __clock_t_defined: u32 = 1; pub const __time_t_defined: u32 = 1; pub const __struct_tm_defined: u32 = 1; pub const _STRUCT_TIMESPEC: u32 = 1; pub const _BITS_ENDIAN_H: u32 = 1; pub const __LITTLE_ENDIAN: u32 = 1234; pub const __BIG_ENDIAN: u32 = 4321; pub const __PDP_ENDIAN: u32 = 3412; pub const _BITS_ENDIANNESS_H: u32 = 1; pub const __BYTE_ORDER: u32 = 1234; pub const __FLOAT_WORD_ORDER: u32 = 1234; pub const __clockid_t_defined: u32 = 1; pub const __timer_t_defined: u32 = 1; pub const __itimerspec_defined: u32 = 1; pub const TIME_UTC: u32 = 1; pub const G_E: f64 = 2.718281828459045; pub const G_LN2: f64 = 0.6931471805599453; pub const G_LN10: f64 = 2.302585092994046; pub const G_PI: f64 = 3.141592653589793; pub const G_PI_2: f64 = 1.5707963267948966; pub const G_PI_4: f64 = 0.7853981633974483; pub const G_SQRT2: f64 = 1.4142135623730951; pub const G_LITTLE_ENDIAN: u32 = 1234; pub const G_BIG_ENDIAN: u32 = 4321; pub const G_PDP_ENDIAN: u32 = 3412; pub const G_IEEE754_FLOAT_BIAS: u32 = 127; pub const G_IEEE754_DOUBLE_BIAS: u32 = 1023; pub const G_LOG_2_BASE_10: f64 = 0.3010299956639812; pub const __GNUC_VA_LIST: u32 = 1; pub const _STDLIB_H: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; pub const WEXITED: u32 = 4; pub const WCONTINUED: u32 = 8; pub const WNOWAIT: u32 = 16777216; pub const __WNOTHREAD: u32 = 536870912; pub const __WALL: u32 = 1073741824; pub const __WCLONE: u32 = 2147483648; pub const __W_CONTINUED: u32 = 65535; pub const __WCOREFLAG: u32 = 128; pub const __HAVE_FLOAT128: u32 = 0; pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; pub const __HAVE_FLOAT64X: u32 = 1; pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; pub const __HAVE_FLOAT16: u32 = 0; pub const __HAVE_FLOAT32: u32 = 1; pub const __HAVE_FLOAT64: u32 = 1; pub const __HAVE_FLOAT32X: u32 = 1; pub const __HAVE_FLOAT128X: u32 = 0; pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; pub const __ldiv_t_defined: u32 = 1; pub const __lldiv_t_defined: u32 = 1; pub const RAND_MAX: u32 = 2147483647; pub const EXIT_FAILURE: u32 = 1; pub const EXIT_SUCCESS: u32 = 0; pub const _SYS_TYPES_H: u32 = 1; pub const __BIT_TYPES_DEFINED__: u32 = 1; pub const _ENDIAN_H: u32 = 1; pub const LITTLE_ENDIAN: u32 = 1234; pub const BIG_ENDIAN: u32 = 4321; pub const PDP_ENDIAN: u32 = 3412; pub const BYTE_ORDER: u32 = 1234; pub const _BITS_BYTESWAP_H: u32 = 1; pub const _BITS_UINTN_IDENTITY_H: u32 = 1; pub const _SYS_SELECT_H: u32 = 1; pub const __sigset_t_defined: u32 = 1; pub const __timeval_defined: u32 = 1; pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56; pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32; pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; pub const _ALLOCA_H: u32 = 1; pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; pub const SIGFPE: u32 = 8; pub const SIGSEGV: u32 = 11; pub const SIGTERM: u32 = 15; pub const SIGHUP: u32 = 1; pub const SIGQUIT: u32 = 3; pub const SIGTRAP: u32 = 5; pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; pub const SIGSYS: u32 = 31; pub const SIGURG: u32 = 23; pub const SIGSTOP: u32 = 19; pub const SIGTSTP: u32 = 20; pub const SIGCONT: u32 = 18; pub const SIGCHLD: u32 = 17; pub const SIGTTIN: u32 = 21; pub const SIGTTOU: u32 = 22; pub const SIGPOLL: u32 = 29; pub const SIGXFSZ: u32 = 25; pub const SIGXCPU: u32 = 24; pub const SIGVTALRM: u32 = 26; pub const SIGPROF: u32 = 27; pub const SIGUSR1: u32 = 10; pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; pub const __SIGRTMIN: u32 = 32; pub const __SIGRTMAX: u32 = 64; pub const _NSIG: u32 = 65; pub const __sig_atomic_t_defined: u32 = 1; pub const __siginfo_t_defined: u32 = 1; pub const __SI_MAX_SIZE: u32 = 128; pub const _BITS_SIGINFO_ARCH_H: u32 = 1; pub const __SI_ERRNO_THEN_CODE: u32 = 1; pub const __SI_HAVE_SIGSYS: u32 = 1; pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; pub const __sigevent_t_defined: u32 = 1; pub const __SIGEV_MAX_SIZE: u32 = 64; pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; pub const NSIG: u32 = 65; pub const _BITS_SIGACTION_H: u32 = 1; pub const SA_NOCLDSTOP: u32 = 1; pub const SA_NOCLDWAIT: u32 = 2; pub const SA_SIGINFO: u32 = 4; pub const SA_ONSTACK: u32 = 134217728; pub const SA_RESTART: u32 = 268435456; pub const SA_NODEFER: u32 = 1073741824; pub const SA_RESETHAND: u32 = 2147483648; pub const SA_INTERRUPT: u32 = 536870912; pub const SA_NOMASK: u32 = 1073741824; pub const SA_ONESHOT: u32 = 2147483648; pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; pub const _BITS_SIGCONTEXT_H: u32 = 1; pub const FP_XSTATE_MAGIC1: u32 = 1179670611; pub const FP_XSTATE_MAGIC2: u32 = 1179670597; pub const __stack_t_defined: u32 = 1; pub const _SYS_UCONTEXT_H: u32 = 1; pub const __NGREG: u32 = 23; pub const NGREG: u32 = 23; pub const _BITS_SIGSTACK_H: u32 = 1; pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; pub const _BITS_SS_FLAGS_H: u32 = 1; pub const __sigstack_defined: u32 = 1; pub const _BITS_SIGTHREAD_H: u32 = 1; pub const G_DATALIST_FLAGS_MASK: u32 = 3; pub const G_DATE_BAD_JULIAN: u32 = 0; pub const G_DATE_BAD_DAY: u32 = 0; pub const G_DATE_BAD_YEAR: u32 = 0; pub const _DIRENT_H: u32 = 1; pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; pub const MAXNAMLEN: u32 = 255; pub const G_MEM_ALIGN: u32 = 8; pub const G_HOOK_FLAG_USER_SHIFT: u32 = 4; pub const G_PRIORITY_HIGH: i32 = -100; pub const G_PRIORITY_DEFAULT: u32 = 0; pub const G_PRIORITY_HIGH_IDLE: u32 = 100; pub const G_PRIORITY_DEFAULT_IDLE: u32 = 200; pub const G_PRIORITY_LOW: u32 = 300; pub const G_SOURCE_REMOVE: u32 = 0; pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: u32 = 18; pub const G_STR_DELIMITERS: &[u8; 8] = b"_-|> <.\0"; pub const G_ASCII_DTOSTR_BUF_SIZE: u32 = 39; pub const G_KEY_FILE_DESKTOP_GROUP: &[u8; 14] = b"Desktop Entry\0"; pub const G_KEY_FILE_DESKTOP_KEY_TYPE: &[u8; 5] = b"Type\0"; pub const G_KEY_FILE_DESKTOP_KEY_VERSION: &[u8; 8] = b"Version\0"; pub const G_KEY_FILE_DESKTOP_KEY_NAME: &[u8; 5] = b"Name\0"; pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &[u8; 12] = b"GenericName\0"; pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &[u8; 10] = b"NoDisplay\0"; pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: &[u8; 8] = b"Comment\0"; pub const G_KEY_FILE_DESKTOP_KEY_ICON: &[u8; 5] = b"Icon\0"; pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: &[u8; 7] = b"Hidden\0"; pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &[u8; 11] = b"OnlyShowIn\0"; pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &[u8; 10] = b"NotShowIn\0"; pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: &[u8; 8] = b"TryExec\0"; pub const G_KEY_FILE_DESKTOP_KEY_EXEC: &[u8; 5] = b"Exec\0"; pub const G_KEY_FILE_DESKTOP_KEY_PATH: &[u8; 5] = b"Path\0"; pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: &[u8; 9] = b"Terminal\0"; pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: &[u8; 9] = b"MimeType\0"; pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: &[u8; 11] = b"Categories\0"; pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &[u8; 14] = b"StartupNotify\0"; pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &[u8; 15] = b"StartupWMClass\0"; pub const G_KEY_FILE_DESKTOP_KEY_URL: &[u8; 4] = b"URL\0"; pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &[u8; 16] = b"DBusActivatable\0"; pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: &[u8; 8] = b"Actions\0"; pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: &[u8; 12] = b"Application\0"; pub const G_KEY_FILE_DESKTOP_TYPE_LINK: &[u8; 5] = b"Link\0"; pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: &[u8; 10] = b"Directory\0"; pub const G_LOG_LEVEL_USER_SHIFT: u32 = 8; pub const G_OPTION_REMAINING: &[u8; 1] = b"\0"; pub const G_CSET_A_2_Z: &[u8; 27] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0"; pub const G_CSET_a_2_z: &[u8; 27] = b"abcdefghijklmnopqrstuvwxyz\0"; pub const G_CSET_DIGITS: &[u8; 11] = b"0123456789\0"; pub const G_CSET_LATINC : & [u8 ; 31] = b"\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD8\xD9\xDA\xDB\xDC\xDD\xDE\0" ; pub const G_CSET_LATINS : & [u8 ; 33] = b"\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\0" ; pub const _ERRNO_H: u32 = 1; pub const _BITS_ERRNO_H: u32 = 1; pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; pub const ESRCH: u32 = 3; pub const EINTR: u32 = 4; pub const EIO: u32 = 5; pub const ENXIO: u32 = 6; pub const E2BIG: u32 = 7; pub const ENOEXEC: u32 = 8; pub const EBADF: u32 = 9; pub const ECHILD: u32 = 10; pub const EAGAIN: u32 = 11; pub const ENOMEM: u32 = 12; pub const EACCES: u32 = 13; pub const EFAULT: u32 = 14; pub const ENOTBLK: u32 = 15; pub const EBUSY: u32 = 16; pub const EEXIST: u32 = 17; pub const EXDEV: u32 = 18; pub const ENODEV: u32 = 19; pub const ENOTDIR: u32 = 20; pub const EISDIR: u32 = 21; pub const EINVAL: u32 = 22; pub const ENFILE: u32 = 23; pub const EMFILE: u32 = 24; pub const ENOTTY: u32 = 25; pub const ETXTBSY: u32 = 26; pub const EFBIG: u32 = 27; pub const ENOSPC: u32 = 28; pub const ESPIPE: u32 = 29; pub const EROFS: u32 = 30; pub const EMLINK: u32 = 31; pub const EPIPE: u32 = 32; pub const EDOM: u32 = 33; pub const ERANGE: u32 = 34; pub const EDEADLK: u32 = 35; pub const ENAMETOOLONG: u32 = 36; pub const ENOLCK: u32 = 37; pub const ENOSYS: u32 = 38; pub const ENOTEMPTY: u32 = 39; pub const ELOOP: u32 = 40; pub const EWOULDBLOCK: u32 = 11; pub const ENOMSG: u32 = 42; pub const EIDRM: u32 = 43; pub const ECHRNG: u32 = 44; pub const EL2NSYNC: u32 = 45; pub const EL3HLT: u32 = 46; pub const EL3RST: u32 = 47; pub const ELNRNG: u32 = 48; pub const EUNATCH: u32 = 49; pub const ENOCSI: u32 = 50; pub const EL2HLT: u32 = 51; pub const EBADE: u32 = 52; pub const EBADR: u32 = 53; pub const EXFULL: u32 = 54; pub const ENOANO: u32 = 55; pub const EBADRQC: u32 = 56; pub const EBADSLT: u32 = 57; pub const EDEADLOCK: u32 = 35; pub const EBFONT: u32 = 59; pub const ENOSTR: u32 = 60; pub const ENODATA: u32 = 61; pub const ETIME: u32 = 62; pub const ENOSR: u32 = 63; pub const ENONET: u32 = 64; pub const ENOPKG: u32 = 65; pub const EREMOTE: u32 = 66; pub const ENOLINK: u32 = 67; pub const EADV: u32 = 68; pub const ESRMNT: u32 = 69; pub const ECOMM: u32 = 70; pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; pub const EREMCHG: u32 = 78; pub const ELIBACC: u32 = 79; pub const ELIBBAD: u32 = 80; pub const ELIBSCN: u32 = 81; pub const ELIBMAX: u32 = 82; pub const ELIBEXEC: u32 = 83; pub const EILSEQ: u32 = 84; pub const ERESTART: u32 = 85; pub const ESTRPIPE: u32 = 86; pub const EUSERS: u32 = 87; pub const ENOTSOCK: u32 = 88; pub const EDESTADDRREQ: u32 = 89; pub const EMSGSIZE: u32 = 90; pub const EPROTOTYPE: u32 = 91; pub const ENOPROTOOPT: u32 = 92; pub const EPROTONOSUPPORT: u32 = 93; pub const ESOCKTNOSUPPORT: u32 = 94; pub const EOPNOTSUPP: u32 = 95; pub const EPFNOSUPPORT: u32 = 96; pub const EAFNOSUPPORT: u32 = 97; pub const EADDRINUSE: u32 = 98; pub const EADDRNOTAVAIL: u32 = 99; pub const ENETDOWN: u32 = 100; pub const ENETUNREACH: u32 = 101; pub const ENETRESET: u32 = 102; pub const ECONNABORTED: u32 = 103; pub const ECONNRESET: u32 = 104; pub const ENOBUFS: u32 = 105; pub const EISCONN: u32 = 106; pub const ENOTCONN: u32 = 107; pub const ESHUTDOWN: u32 = 108; pub const ETOOMANYREFS: u32 = 109; pub const ETIMEDOUT: u32 = 110; pub const ECONNREFUSED: u32 = 111; pub const EHOSTDOWN: u32 = 112; pub const EHOSTUNREACH: u32 = 113; pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; pub const EREMOTEIO: u32 = 121; pub const EDQUOT: u32 = 122; pub const ENOMEDIUM: u32 = 123; pub const EMEDIUMTYPE: u32 = 124; pub const ECANCELED: u32 = 125; pub const ENOKEY: u32 = 126; pub const EKEYEXPIRED: u32 = 127; pub const EKEYREVOKED: u32 = 128; pub const EKEYREJECTED: u32 = 129; pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; pub const ENOTSUP: u32 = 95; pub const G_TEST_OPTION_ISOLATE_DIRS: &[u8; 13] = b"isolate_dirs\0"; pub const G_USEC_PER_SEC: u32 = 1000000; pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &[u8; 8] = b":/?#[]@\0"; pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &[u8; 12] = b"!$&'()*+,;=\0"; pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT: &[u8; 14] = b"!$&'()*+,;=:@\0"; pub const G_URI_RESERVED_CHARS_ALLOWED_IN_PATH: &[u8; 15] = b"!$&'()*+,;=:@/\0"; pub const G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO: &[u8; 13] = b"!$&'()*+,;=:\0"; pub const G_ALLOC_ONLY: u32 = 1; pub const G_ALLOC_AND_FREE: u32 = 2; pub const G_ALLOCATOR_LIST: u32 = 1; pub const G_ALLOCATOR_SLIST: u32 = 2; pub const G_ALLOCATOR_NODE: u32 = 3; pub const _PTHREAD_H: u32 = 1; pub const _SCHED_H: u32 = 1; pub const _BITS_SCHED_H: u32 = 1; pub const SCHED_OTHER: u32 = 0; pub const SCHED_FIFO: u32 = 1; pub const SCHED_RR: u32 = 2; pub const _BITS_TYPES_STRUCT_SCHED_PARAM: u32 = 1; pub const _BITS_CPU_SET_H: u32 = 1; pub const __CPU_SETSIZE: u32 = 1024; pub const _BITS_SETJMP_H: u32 = 1; pub const __jmp_buf_tag_defined: u32 = 1; pub const PTHREAD_ONCE_INIT: u32 = 0; pub const PTHREAD_BARRIER_SERIAL_THREAD: i32 = -1; pub const WIRESHARK_VERSION_MAJOR: u32 = 4; pub const WIRESHARK_VERSION_MINOR: u32 = 0; pub const WIRESHARK_VERSION_MICRO: u32 = 7; pub const _STDIO_H: u32 = 1; pub const _____fpos_t_defined: u32 = 1; pub const ____mbstate_t_defined: u32 = 1; pub const _____fpos64_t_defined: u32 = 1; pub const ____FILE_defined: u32 = 1; pub const __FILE_defined: u32 = 1; pub const __struct_FILE_defined: u32 = 1; pub const _IO_EOF_SEEN: u32 = 16; pub const _IO_ERR_SEEN: u32 = 32; pub const _IO_USER_LOCK: u32 = 32768; pub const _IOFBF: u32 = 0; pub const _IOLBF: u32 = 1; pub const _IONBF: u32 = 2; pub const BUFSIZ: u32 = 8192; pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; pub const FILENAME_MAX: u32 = 4096; pub const L_ctermid: u32 = 9; pub const FOPEN_MAX: u32 = 16; pub const LOG_DOMAIN_MAIN: &[u8; 5] = b"Main\0"; pub const LOG_DOMAIN_CAPTURE: &[u8; 8] = b"Capture\0"; pub const LOG_DOMAIN_CAPCHILD: &[u8; 9] = b"Capchild\0"; pub const LOG_DOMAIN_WIRETAP: &[u8; 8] = b"Wiretap\0"; pub const LOG_DOMAIN_EPAN: &[u8; 5] = b"Epan\0"; pub const LOG_DOMAIN_DFILTER: &[u8; 8] = b"DFilter\0"; pub const LOG_DOMAIN_WSUTIL: &[u8; 7] = b"WSUtil\0"; pub const LOG_DOMAIN_QTUI: &[u8; 4] = b"GUI\0"; pub const LOG_DOMAIN_UAT: &[u8; 4] = b"UAT\0"; pub const LOG_DOMAIN_EXTCAP: &[u8; 7] = b"Extcap\0"; pub const _LOG_DOMAIN: &[u8; 1] = b"\0"; pub const _LOG_DEBUG_ENABLED: u32 = 1; pub const LOG_ARGS_NOEXIT: i32 = -1; pub const _ASSERT_ENABLED: u32 = 1; pub const WMEM_TREE_STRING_NOCASE: u32 = 1; pub const IPv6_ADDR_SIZE: u32 = 16; pub const IPv6_HDR_SIZE: u32 = 40; pub const IPv6_FRAGMENT_HDR_SIZE: u32 = 8; pub const IP6F_OFF_MASK: u32 = 65528; pub const IP6F_RESERVED_MASK: u32 = 6; pub const IP6F_MORE_FRAG: u32 = 1; pub const OPT_EOFOPT: u32 = 0; pub const OPT_COMMENT: u32 = 1; pub const OPT_CUSTOM_STR_COPY: u32 = 2988; pub const OPT_CUSTOM_BIN_COPY: u32 = 2989; pub const OPT_CUSTOM_STR_NO_COPY: u32 = 19372; pub const OPT_CUSTOM_BIN_NO_COPY: u32 = 19373; pub const OPT_SHB_HARDWARE: u32 = 2; pub const OPT_SHB_OS: u32 = 3; pub const OPT_SHB_USERAPPL: u32 = 4; pub const OPT_IDB_NAME: u32 = 2; pub const OPT_IDB_DESCRIPTION: u32 = 3; pub const OPT_IDB_IP4ADDR: u32 = 4; pub const OPT_IDB_IP6ADDR: u32 = 5; pub const OPT_IDB_MACADDR: u32 = 6; pub const OPT_IDB_EUIADDR: u32 = 7; pub const OPT_IDB_SPEED: u32 = 8; pub const OPT_IDB_TSRESOL: u32 = 9; pub const OPT_IDB_TZONE: u32 = 10; pub const OPT_IDB_FILTER: u32 = 11; pub const OPT_IDB_OS: u32 = 12; pub const OPT_IDB_FCSLEN: u32 = 13; pub const OPT_IDB_TSOFFSET: u32 = 14; pub const OPT_IDB_HARDWARE: u32 = 15; pub const OPT_PKT_FLAGS: u32 = 2; pub const OPT_PKT_HASH: u32 = 3; pub const OPT_PKT_DROPCOUNT: u32 = 4; pub const OPT_PKT_PACKETID: u32 = 5; pub const OPT_PKT_QUEUE: u32 = 6; pub const OPT_PKT_VERDICT: u32 = 7; pub const OPT_NS_DNSNAME: u32 = 2; pub const OPT_NS_DNSIP4ADDR: u32 = 3; pub const OPT_NS_DNSIP6ADDR: u32 = 4; pub const OPT_ISB_STARTTIME: u32 = 2; pub const OPT_ISB_ENDTIME: u32 = 3; pub const OPT_ISB_IFRECV: u32 = 4; pub const OPT_ISB_IFDROP: u32 = 5; pub const OPT_ISB_FILTERACCEPT: u32 = 6; pub const OPT_ISB_OSDROP: u32 = 7; pub const OPT_ISB_USRDELIV: u32 = 8; pub const PEN_NFLX: u32 = 10949; pub const PEN_VCTR: u32 = 46254; pub const NFLX_OPT_TYPE_VERSION: u32 = 1; pub const NFLX_OPT_TYPE_TCPINFO: u32 = 2; pub const NFLX_OPT_TYPE_DUMPINFO: u32 = 4; pub const NFLX_OPT_TYPE_DUMPTIME: u32 = 5; pub const NFLX_OPT_TYPE_STACKNAME: u32 = 6; pub const NFLX_TLB_FLAG_RXBUF: u32 = 1; pub const NFLX_TLB_FLAG_TXBUF: u32 = 2; pub const NFLX_TLB_FLAG_HDR: u32 = 4; pub const NFLX_TLB_FLAG_VERBOSE: u32 = 8; pub const NFLX_TLB_FLAG_STACKINFO: u32 = 16; pub const NFLX_TLB_TF_REQ_SCALE: u32 = 32; pub const NFLX_TLB_TF_RCVD_SCALE: u32 = 64; pub const NFLX_TLB_TCPS_ESTABLISHED: u32 = 4; pub const GUID_LEN: u32 = 16; pub const WS_INET_ADDRSTRLEN: u32 = 16; pub const WS_INET6_ADDRSTRLEN: u32 = 46; pub const WTAP_ENCAP_PER_PACKET: i32 = -1; pub const WTAP_ENCAP_UNKNOWN: u32 = 0; pub const WTAP_ENCAP_ETHERNET: u32 = 1; pub const WTAP_ENCAP_TOKEN_RING: u32 = 2; pub const WTAP_ENCAP_SLIP: u32 = 3; pub const WTAP_ENCAP_PPP: u32 = 4; pub const WTAP_ENCAP_FDDI: u32 = 5; pub const WTAP_ENCAP_FDDI_BITSWAPPED: u32 = 6; pub const WTAP_ENCAP_RAW_IP: u32 = 7; pub const WTAP_ENCAP_ARCNET: u32 = 8; pub const WTAP_ENCAP_ARCNET_LINUX: u32 = 9; pub const WTAP_ENCAP_ATM_RFC1483: u32 = 10; pub const WTAP_ENCAP_LINUX_ATM_CLIP: u32 = 11; pub const WTAP_ENCAP_LAPB: u32 = 12; pub const WTAP_ENCAP_ATM_PDUS: u32 = 13; pub const WTAP_ENCAP_ATM_PDUS_UNTRUNCATED: u32 = 14; pub const WTAP_ENCAP_NULL: u32 = 15; pub const WTAP_ENCAP_ASCEND: u32 = 16; pub const WTAP_ENCAP_ISDN: u32 = 17; pub const WTAP_ENCAP_IP_OVER_FC: u32 = 18; pub const WTAP_ENCAP_PPP_WITH_PHDR: u32 = 19; pub const WTAP_ENCAP_IEEE_802_11: u32 = 20; pub const WTAP_ENCAP_IEEE_802_11_PRISM: u32 = 21; pub const WTAP_ENCAP_IEEE_802_11_WITH_RADIO: u32 = 22; pub const WTAP_ENCAP_IEEE_802_11_RADIOTAP: u32 = 23; pub const WTAP_ENCAP_IEEE_802_11_AVS: u32 = 24; pub const WTAP_ENCAP_SLL: u32 = 25; pub const WTAP_ENCAP_FRELAY: u32 = 26; pub const WTAP_ENCAP_FRELAY_WITH_PHDR: u32 = 27; pub const WTAP_ENCAP_CHDLC: u32 = 28; pub const WTAP_ENCAP_CISCO_IOS: u32 = 29; pub const WTAP_ENCAP_LOCALTALK: u32 = 30; pub const WTAP_ENCAP_OLD_PFLOG: u32 = 31; pub const WTAP_ENCAP_HHDLC: u32 = 32; pub const WTAP_ENCAP_DOCSIS: u32 = 33; pub const WTAP_ENCAP_COSINE: u32 = 34; pub const WTAP_ENCAP_WFLEET_HDLC: u32 = 35; pub const WTAP_ENCAP_SDLC: u32 = 36; pub const WTAP_ENCAP_TZSP: u32 = 37; pub const WTAP_ENCAP_ENC: u32 = 38; pub const WTAP_ENCAP_PFLOG: u32 = 39; pub const WTAP_ENCAP_CHDLC_WITH_PHDR: u32 = 40; pub const WTAP_ENCAP_BLUETOOTH_H4: u32 = 41; pub const WTAP_ENCAP_MTP2: u32 = 42; pub const WTAP_ENCAP_MTP3: u32 = 43; pub const WTAP_ENCAP_IRDA: u32 = 44; pub const WTAP_ENCAP_USER0: u32 = 45; pub const WTAP_ENCAP_USER1: u32 = 46; pub const WTAP_ENCAP_USER2: u32 = 47; pub const WTAP_ENCAP_USER3: u32 = 48; pub const WTAP_ENCAP_USER4: u32 = 49; pub const WTAP_ENCAP_USER5: u32 = 50; pub const WTAP_ENCAP_USER6: u32 = 51; pub const WTAP_ENCAP_USER7: u32 = 52; pub const WTAP_ENCAP_USER8: u32 = 53; pub const WTAP_ENCAP_USER9: u32 = 54; pub const WTAP_ENCAP_USER10: u32 = 55; pub const WTAP_ENCAP_USER11: u32 = 56; pub const WTAP_ENCAP_USER12: u32 = 57; pub const WTAP_ENCAP_USER13: u32 = 58; pub const WTAP_ENCAP_USER14: u32 = 59; pub const WTAP_ENCAP_USER15: u32 = 60; pub const WTAP_ENCAP_SYMANTEC: u32 = 61; pub const WTAP_ENCAP_APPLE_IP_OVER_IEEE1394: u32 = 62; pub const WTAP_ENCAP_BACNET_MS_TP: u32 = 63; pub const WTAP_ENCAP_NETTL_RAW_ICMP: u32 = 64; pub const WTAP_ENCAP_NETTL_RAW_ICMPV6: u32 = 65; pub const WTAP_ENCAP_GPRS_LLC: u32 = 66; pub const WTAP_ENCAP_JUNIPER_ATM1: u32 = 67; pub const WTAP_ENCAP_JUNIPER_ATM2: u32 = 68; pub const WTAP_ENCAP_REDBACK: u32 = 69; pub const WTAP_ENCAP_NETTL_RAW_IP: u32 = 70; pub const WTAP_ENCAP_NETTL_ETHERNET: u32 = 71; pub const WTAP_ENCAP_NETTL_TOKEN_RING: u32 = 72; pub const WTAP_ENCAP_NETTL_FDDI: u32 = 73; pub const WTAP_ENCAP_NETTL_UNKNOWN: u32 = 74; pub const WTAP_ENCAP_MTP2_WITH_PHDR: u32 = 75; pub const WTAP_ENCAP_JUNIPER_PPPOE: u32 = 76; pub const WTAP_ENCAP_GCOM_TIE1: u32 = 77; pub const WTAP_ENCAP_GCOM_SERIAL: u32 = 78; pub const WTAP_ENCAP_NETTL_X25: u32 = 79; pub const WTAP_ENCAP_K12: u32 = 80; pub const WTAP_ENCAP_JUNIPER_MLPPP: u32 = 81; pub const WTAP_ENCAP_JUNIPER_MLFR: u32 = 82; pub const WTAP_ENCAP_JUNIPER_ETHER: u32 = 83; pub const WTAP_ENCAP_JUNIPER_PPP: u32 = 84; pub const WTAP_ENCAP_JUNIPER_FRELAY: u32 = 85; pub const WTAP_ENCAP_JUNIPER_CHDLC: u32 = 86; pub const WTAP_ENCAP_JUNIPER_GGSN: u32 = 87; pub const WTAP_ENCAP_LINUX_LAPD: u32 = 88; pub const WTAP_ENCAP_CATAPULT_DCT2000: u32 = 89; pub const WTAP_ENCAP_BER: u32 = 90; pub const WTAP_ENCAP_JUNIPER_VP: u32 = 91; pub const WTAP_ENCAP_USB_FREEBSD: u32 = 92; pub const WTAP_ENCAP_IEEE802_16_MAC_CPS: u32 = 93; pub const WTAP_ENCAP_NETTL_RAW_TELNET: u32 = 94; pub const WTAP_ENCAP_USB_LINUX: u32 = 95; pub const WTAP_ENCAP_MPEG: u32 = 96; pub const WTAP_ENCAP_PPI: u32 = 97; pub const WTAP_ENCAP_ERF: u32 = 98; pub const WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR: u32 = 99; pub const WTAP_ENCAP_SITA: u32 = 100; pub const WTAP_ENCAP_SCCP: u32 = 101; pub const WTAP_ENCAP_BLUETOOTH_HCI: u32 = 102; pub const WTAP_ENCAP_IPMB_KONTRON: u32 = 103; pub const WTAP_ENCAP_IEEE802_15_4: u32 = 104; pub const WTAP_ENCAP_X2E_XORAYA: u32 = 105; pub const WTAP_ENCAP_FLEXRAY: u32 = 106; pub const WTAP_ENCAP_LIN: u32 = 107; pub const WTAP_ENCAP_MOST: u32 = 108; pub const WTAP_ENCAP_CAN20B: u32 = 109; pub const WTAP_ENCAP_LAYER1_EVENT: u32 = 110; pub const WTAP_ENCAP_X2E_SERIAL: u32 = 111; pub const WTAP_ENCAP_I2C_LINUX: u32 = 112; pub const WTAP_ENCAP_IEEE802_15_4_NONASK_PHY: u32 = 113; pub const WTAP_ENCAP_TNEF: u32 = 114; pub const WTAP_ENCAP_USB_LINUX_MMAPPED: u32 = 115; pub const WTAP_ENCAP_GSM_UM: u32 = 116; pub const WTAP_ENCAP_DPNSS: u32 = 117; pub const WTAP_ENCAP_PACKETLOGGER: u32 = 118; pub const WTAP_ENCAP_NSTRACE_1_0: u32 = 119; pub const WTAP_ENCAP_NSTRACE_2_0: u32 = 120; pub const WTAP_ENCAP_FIBRE_CHANNEL_FC2: u32 = 121; pub const WTAP_ENCAP_FIBRE_CHANNEL_FC2_WITH_FRAME_DELIMS: u32 = 122; pub const WTAP_ENCAP_JPEG_JFIF: u32 = 123; pub const WTAP_ENCAP_IPNET: u32 = 124; pub const WTAP_ENCAP_SOCKETCAN: u32 = 125; pub const WTAP_ENCAP_IEEE_802_11_NETMON: u32 = 126; pub const WTAP_ENCAP_IEEE802_15_4_NOFCS: u32 = 127; pub const WTAP_ENCAP_RAW_IPFIX: u32 = 128; pub const WTAP_ENCAP_RAW_IP4: u32 = 129; pub const WTAP_ENCAP_RAW_IP6: u32 = 130; pub const WTAP_ENCAP_LAPD: u32 = 131; pub const WTAP_ENCAP_DVBCI: u32 = 132; pub const WTAP_ENCAP_MUX27010: u32 = 133; pub const WTAP_ENCAP_MIME: u32 = 134; pub const WTAP_ENCAP_NETANALYZER: u32 = 135; pub const WTAP_ENCAP_NETANALYZER_TRANSPARENT: u32 = 136; pub const WTAP_ENCAP_IP_OVER_IB_SNOOP: u32 = 137; pub const WTAP_ENCAP_MPEG_2_TS: u32 = 138; pub const WTAP_ENCAP_PPP_ETHER: u32 = 139; pub const WTAP_ENCAP_NFC_LLCP: u32 = 140; pub const WTAP_ENCAP_NFLOG: u32 = 141; pub const WTAP_ENCAP_V5_EF: u32 = 142; pub const WTAP_ENCAP_BACNET_MS_TP_WITH_PHDR: u32 = 143; pub const WTAP_ENCAP_IXVERIWAVE: u32 = 144; pub const WTAP_ENCAP_SDH: u32 = 145; pub const WTAP_ENCAP_DBUS: u32 = 146; pub const WTAP_ENCAP_AX25_KISS: u32 = 147; pub const WTAP_ENCAP_AX25: u32 = 148; pub const WTAP_ENCAP_SCTP: u32 = 149; pub const WTAP_ENCAP_INFINIBAND: u32 = 150; pub const WTAP_ENCAP_JUNIPER_SVCS: u32 = 151; pub const WTAP_ENCAP_USBPCAP: u32 = 152; pub const WTAP_ENCAP_RTAC_SERIAL: u32 = 153; pub const WTAP_ENCAP_BLUETOOTH_LE_LL: u32 = 154; pub const WTAP_ENCAP_WIRESHARK_UPPER_PDU: u32 = 155; pub const WTAP_ENCAP_STANAG_4607: u32 = 156; pub const WTAP_ENCAP_STANAG_5066_D_PDU: u32 = 157; pub const WTAP_ENCAP_NETLINK: u32 = 158; pub const WTAP_ENCAP_BLUETOOTH_LINUX_MONITOR: u32 = 159; pub const WTAP_ENCAP_BLUETOOTH_BREDR_BB: u32 = 160; pub const WTAP_ENCAP_BLUETOOTH_LE_LL_WITH_PHDR: u32 = 161; pub const WTAP_ENCAP_NSTRACE_3_0: u32 = 162; pub const WTAP_ENCAP_LOGCAT: u32 = 163; pub const WTAP_ENCAP_LOGCAT_BRIEF: u32 = 164; pub const WTAP_ENCAP_LOGCAT_PROCESS: u32 = 165; pub const WTAP_ENCAP_LOGCAT_TAG: u32 = 166; pub const WTAP_ENCAP_LOGCAT_THREAD: u32 = 167; pub const WTAP_ENCAP_LOGCAT_TIME: u32 = 168; pub const WTAP_ENCAP_LOGCAT_THREADTIME: u32 = 169; pub const WTAP_ENCAP_LOGCAT_LONG: u32 = 170; pub const WTAP_ENCAP_PKTAP: u32 = 171; pub const WTAP_ENCAP_EPON: u32 = 172; pub const WTAP_ENCAP_IPMI_TRACE: u32 = 173; pub const WTAP_ENCAP_LOOP: u32 = 174; pub const WTAP_ENCAP_JSON: u32 = 175; pub const WTAP_ENCAP_NSTRACE_3_5: u32 = 176; pub const WTAP_ENCAP_ISO14443: u32 = 177; pub const WTAP_ENCAP_GFP_T: u32 = 178; pub const WTAP_ENCAP_GFP_F: u32 = 179; pub const WTAP_ENCAP_IP_OVER_IB_PCAP: u32 = 180; pub const WTAP_ENCAP_JUNIPER_VN: u32 = 181; pub const WTAP_ENCAP_USB_DARWIN: u32 = 182; pub const WTAP_ENCAP_LORATAP: u32 = 183; pub const WTAP_ENCAP_3MB_ETHERNET: u32 = 184; pub const WTAP_ENCAP_VSOCK: u32 = 185; pub const WTAP_ENCAP_NORDIC_BLE: u32 = 186; pub const WTAP_ENCAP_NETMON_NET_NETEVENT: u32 = 187; pub const WTAP_ENCAP_NETMON_HEADER: u32 = 188; pub const WTAP_ENCAP_NETMON_NET_FILTER: u32 = 189; pub const WTAP_ENCAP_NETMON_NETWORK_INFO_EX: u32 = 190; pub const WTAP_ENCAP_MA_WFP_CAPTURE_V4: u32 = 191; pub const WTAP_ENCAP_MA_WFP_CAPTURE_V6: u32 = 192; pub const WTAP_ENCAP_MA_WFP_CAPTURE_2V4: u32 = 193; pub const WTAP_ENCAP_MA_WFP_CAPTURE_2V6: u32 = 194; pub const WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V4: u32 = 195; pub const WTAP_ENCAP_MA_WFP_CAPTURE_AUTH_V6: u32 = 196; pub const WTAP_ENCAP_JUNIPER_ST: u32 = 197; pub const WTAP_ENCAP_ETHERNET_MPACKET: u32 = 198; pub const WTAP_ENCAP_DOCSIS31_XRA31: u32 = 199; pub const WTAP_ENCAP_DPAUXMON: u32 = 200; pub const WTAP_ENCAP_RUBY_MARSHAL: u32 = 201; pub const WTAP_ENCAP_RFC7468: u32 = 202; pub const WTAP_ENCAP_SYSTEMD_JOURNAL: u32 = 203; pub const WTAP_ENCAP_EBHSCR: u32 = 204; pub const WTAP_ENCAP_VPP: u32 = 205; pub const WTAP_ENCAP_IEEE802_15_4_TAP: u32 = 206; pub const WTAP_ENCAP_LOG_3GPP: u32 = 207; pub const WTAP_ENCAP_USB_2_0: u32 = 208; pub const WTAP_ENCAP_MP4: u32 = 209; pub const WTAP_ENCAP_SLL2: u32 = 210; pub const WTAP_ENCAP_ZWAVE_SERIAL: u32 = 211; pub const WTAP_ENCAP_ETW: u32 = 212; pub const WTAP_ENCAP_ERI_ENB_LOG: u32 = 213; pub const WTAP_ENCAP_ZBNCP: u32 = 214; pub const WTAP_ENCAP_USB_2_0_LOW_SPEED: u32 = 215; pub const WTAP_ENCAP_USB_2_0_FULL_SPEED: u32 = 216; pub const WTAP_ENCAP_USB_2_0_HIGH_SPEED: u32 = 217; pub const WTAP_FILE_TYPE_SUBTYPE_UNKNOWN: i32 = -1; pub const WTAP_TSPREC_UNKNOWN: i32 = -2; pub const WTAP_TSPREC_PER_PACKET: i32 = -1; pub const WTAP_TSPREC_SEC: u32 = 0; pub const WTAP_TSPREC_DSEC: u32 = 1; pub const WTAP_TSPREC_CSEC: u32 = 2; pub const WTAP_TSPREC_MSEC: u32 = 3; pub const WTAP_TSPREC_USEC: u32 = 6; pub const WTAP_TSPREC_NSEC: u32 = 9; pub const WTAP_MAX_PACKET_SIZE_STANDARD: u32 = 262144; pub const WTAP_MAX_PACKET_SIZE_USBPCAP: u32 = 134217728; pub const WTAP_MAX_PACKET_SIZE_EBHSCR: u32 = 8388608; pub const WTAP_MAX_PACKET_SIZE_DBUS: u32 = 134217728; pub const FROM_DCE: u32 = 128; pub const ATM_RAW_CELL: u32 = 1; pub const ATM_NO_HEC: u32 = 2; pub const ATM_AAL2_NOPHDR: u32 = 4; pub const ATM_REASSEMBLY_ERROR: u32 = 8; pub const AAL_UNKNOWN: u32 = 0; pub const AAL_1: u32 = 1; pub const AAL_2: u32 = 2; pub const AAL_3_4: u32 = 3; pub const AAL_5: u32 = 4; pub const AAL_USER: u32 = 5; pub const AAL_SIGNALLING: u32 = 6; pub const AAL_OAMCELL: u32 = 7; pub const TRAF_UNKNOWN: u32 = 0; pub const TRAF_LLCMX: u32 = 1; pub const TRAF_VCMX: u32 = 2; pub const TRAF_LANE: u32 = 3; pub const TRAF_ILMI: u32 = 4; pub const TRAF_FR: u32 = 5; pub const TRAF_SPANS: u32 = 6; pub const TRAF_IPSILON: u32 = 7; pub const TRAF_UMTS_FP: u32 = 8; pub const TRAF_GPRS_NS: u32 = 9; pub const TRAF_SSCOP: u32 = 10; pub const TRAF_ST_UNKNOWN: u32 = 0; pub const TRAF_ST_VCMX_802_3_FCS: u32 = 1; pub const TRAF_ST_VCMX_802_4_FCS: u32 = 2; pub const TRAF_ST_VCMX_802_5_FCS: u32 = 3; pub const TRAF_ST_VCMX_FDDI_FCS: u32 = 4; pub const TRAF_ST_VCMX_802_6_FCS: u32 = 5; pub const TRAF_ST_VCMX_802_3: u32 = 7; pub const TRAF_ST_VCMX_802_4: u32 = 8; pub const TRAF_ST_VCMX_802_5: u32 = 9; pub const TRAF_ST_VCMX_FDDI: u32 = 10; pub const TRAF_ST_VCMX_802_6: u32 = 11; pub const TRAF_ST_VCMX_FRAGMENTS: u32 = 12; pub const TRAF_ST_VCMX_BPDU: u32 = 13; pub const TRAF_ST_LANE_LE_CTRL: u32 = 1; pub const TRAF_ST_LANE_802_3: u32 = 2; pub const TRAF_ST_LANE_802_5: u32 = 3; pub const TRAF_ST_LANE_802_3_MC: u32 = 4; pub const TRAF_ST_LANE_802_5_MC: u32 = 5; pub const TRAF_ST_IPSILON_FT0: u32 = 1; pub const TRAF_ST_IPSILON_FT1: u32 = 2; pub const TRAF_ST_IPSILON_FT2: u32 = 3; pub const ASCEND_MAX_STR_LEN: u32 = 64; pub const ASCEND_PFX_WDS_X: u32 = 1; pub const ASCEND_PFX_WDS_R: u32 = 2; pub const ASCEND_PFX_WDD: u32 = 3; pub const ASCEND_PFX_ISDN_X: u32 = 4; pub const ASCEND_PFX_ISDN_R: u32 = 5; pub const ASCEND_PFX_ETHER: u32 = 6; pub const PHDR_802_11_PHY_UNKNOWN: u32 = 0; pub const PHDR_802_11_PHY_11_FHSS: u32 = 1; pub const PHDR_802_11_PHY_11_IR: u32 = 2; pub const PHDR_802_11_PHY_11_DSSS: u32 = 3; pub const PHDR_802_11_PHY_11B: u32 = 4; pub const PHDR_802_11_PHY_11A: u32 = 5; pub const PHDR_802_11_PHY_11G: u32 = 6; pub const PHDR_802_11_PHY_11N: u32 = 7; pub const PHDR_802_11_PHY_11AC: u32 = 8; pub const PHDR_802_11_PHY_11AD: u32 = 9; pub const PHDR_802_11_PHY_11AH: u32 = 10; pub const PHDR_802_11_PHY_11AX: u32 = 11; pub const PHDR_802_11_PHY_11BE: u32 = 12; pub const PHDR_802_11A_CHANNEL_TYPE_NORMAL: u32 = 0; pub const PHDR_802_11A_CHANNEL_TYPE_HALF_CLOCKED: u32 = 1; pub const PHDR_802_11A_CHANNEL_TYPE_QUARTER_CLOCKED: u32 = 2; pub const PHDR_802_11A_TURBO_TYPE_NORMAL: u32 = 0; pub const PHDR_802_11A_TURBO_TYPE_TURBO: u32 = 1; pub const PHDR_802_11A_TURBO_TYPE_DYNAMIC_TURBO: u32 = 2; pub const PHDR_802_11A_TURBO_TYPE_STATIC_TURBO: u32 = 3; pub const PHDR_802_11G_MODE_NORMAL: u32 = 0; pub const PHDR_802_11G_MODE_SUPER_G: u32 = 1; pub const PHDR_802_11_BANDWIDTH_20_MHZ: u32 = 0; pub const PHDR_802_11_BANDWIDTH_40_MHZ: u32 = 1; pub const PHDR_802_11_BANDWIDTH_20_20L: u32 = 2; pub const PHDR_802_11_BANDWIDTH_20_20U: u32 = 3; pub const PHDR_802_11_BANDWIDTH_80_MHZ: u32 = 4; pub const PHDR_802_11_BANDWIDTH_40_40L: u32 = 5; pub const PHDR_802_11_BANDWIDTH_40_40U: u32 = 6; pub const PHDR_802_11_BANDWIDTH_20LL: u32 = 7; pub const PHDR_802_11_BANDWIDTH_20LU: u32 = 8; pub const PHDR_802_11_BANDWIDTH_20UL: u32 = 9; pub const PHDR_802_11_BANDWIDTH_20UU: u32 = 10; pub const PHDR_802_11_BANDWIDTH_160_MHZ: u32 = 11; pub const PHDR_802_11_BANDWIDTH_80_80L: u32 = 12; pub const PHDR_802_11_BANDWIDTH_80_80U: u32 = 13; pub const PHDR_802_11_BANDWIDTH_40LL: u32 = 14; pub const PHDR_802_11_BANDWIDTH_40LU: u32 = 15; pub const PHDR_802_11_BANDWIDTH_40UL: u32 = 16; pub const PHDR_802_11_BANDWIDTH_40UU: u32 = 17; pub const PHDR_802_11_BANDWIDTH_20LLL: u32 = 18; pub const PHDR_802_11_BANDWIDTH_20LLU: u32 = 19; pub const PHDR_802_11_BANDWIDTH_20LUL: u32 = 20; pub const PHDR_802_11_BANDWIDTH_20LUU: u32 = 21; pub const PHDR_802_11_BANDWIDTH_20ULL: u32 = 22; pub const PHDR_802_11_BANDWIDTH_20ULU: u32 = 23; pub const PHDR_802_11_BANDWIDTH_20UUL: u32 = 24; pub const PHDR_802_11_BANDWIDTH_20UUU: u32 = 25; pub const PHDR_802_11AD_MIN_FREQUENCY: u32 = 57000; pub const PHDR_802_11AD_MAX_FREQUENCY: u32 = 71000; pub const PHDR_802_11_LAST_PART_OF_A_MPDU: u32 = 1; pub const PHDR_802_11_A_MPDU_DELIM_CRC_ERROR: u32 = 2; pub const PHDR_802_11_SOUNDING_PSDU: u32 = 0; pub const PHDR_802_11_DATA_NOT_CAPTURED: u32 = 1; pub const PHDR_802_11_0_LENGTH_PSDU_S1G_NDP: u32 = 2; pub const PHDR_802_11_0_LENGTH_PSDU_VENDOR_SPECIFIC: u32 = 255; pub const COSINE_MAX_IF_NAME_LEN: u32 = 128; pub const COSINE_ENCAP_TEST: u32 = 1; pub const COSINE_ENCAP_PPoATM: u32 = 2; pub const COSINE_ENCAP_PPoFR: u32 = 3; pub const COSINE_ENCAP_ATM: u32 = 4; pub const COSINE_ENCAP_FR: u32 = 5; pub const COSINE_ENCAP_HDLC: u32 = 6; pub const COSINE_ENCAP_PPP: u32 = 7; pub const COSINE_ENCAP_ETH: u32 = 8; pub const COSINE_ENCAP_UNKNOWN: u32 = 99; pub const COSINE_DIR_TX: u32 = 1; pub const COSINE_DIR_RX: u32 = 2; pub const IRDA_INCOMING: u32 = 0; pub const IRDA_OUTGOING: u32 = 4; pub const IRDA_LOG_MESSAGE: u32 = 256; pub const IRDA_MISSED_MSG: u32 = 257; pub const IRDA_CLASS_FRAME: u32 = 0; pub const IRDA_CLASS_LOG: u32 = 256; pub const IRDA_CLASS_MASK: u32 = 65280; pub const MTP2_ANNEX_A_NOT_USED: u32 = 0; pub const MTP2_ANNEX_A_USED: u32 = 1; pub const MTP2_ANNEX_A_USED_UNKNOWN: u32 = 2; pub const K12_PORT_DS0S: u32 = 65544; pub const K12_PORT_DS1: u32 = 1048584; pub const K12_PORT_ATMPVC: u32 = 16908288; pub const MAX_ERF_EHDR: u32 = 16; pub const SITA_FRAME_DIR_TXED: u32 = 0; pub const SITA_FRAME_DIR_RXED: u32 = 1; pub const SITA_FRAME_DIR: u32 = 1; pub const SITA_ERROR_NO_BUFFER: u32 = 128; pub const SITA_SIG_DSR: u32 = 1; pub const SITA_SIG_DTR: u32 = 2; pub const SITA_SIG_CTS: u32 = 4; pub const SITA_SIG_RTS: u32 = 8; pub const SITA_SIG_DCD: u32 = 16; pub const SITA_SIG_UNDEF1: u32 = 32; pub const SITA_SIG_UNDEF2: u32 = 64; pub const SITA_SIG_UNDEF3: u32 = 128; pub const SITA_ERROR_TX_UNDERRUN: u32 = 1; pub const SITA_ERROR_TX_CTS_LOST: u32 = 2; pub const SITA_ERROR_TX_UART_ERROR: u32 = 4; pub const SITA_ERROR_TX_RETX_LIMIT: u32 = 8; pub const SITA_ERROR_TX_UNDEF1: u32 = 16; pub const SITA_ERROR_TX_UNDEF2: u32 = 32; pub const SITA_ERROR_TX_UNDEF3: u32 = 64; pub const SITA_ERROR_TX_UNDEF4: u32 = 128; pub const SITA_ERROR_RX_FRAMING: u32 = 1; pub const SITA_ERROR_RX_PARITY: u32 = 2; pub const SITA_ERROR_RX_COLLISION: u32 = 4; pub const SITA_ERROR_RX_FRAME_LONG: u32 = 8; pub const SITA_ERROR_RX_FRAME_SHORT: u32 = 16; pub const SITA_ERROR_RX_UNDEF1: u32 = 32; pub const SITA_ERROR_RX_UNDEF2: u32 = 64; pub const SITA_ERROR_RX_UNDEF3: u32 = 128; pub const SITA_ERROR_RX_NONOCTET_ALIGNED: u32 = 1; pub const SITA_ERROR_RX_ABORT: u32 = 2; pub const SITA_ERROR_RX_CD_LOST: u32 = 4; pub const SITA_ERROR_RX_DPLL: u32 = 8; pub const SITA_ERROR_RX_OVERRUN: u32 = 16; pub const SITA_ERROR_RX_FRAME_LEN_VIOL: u32 = 32; pub const SITA_ERROR_RX_CRC: u32 = 64; pub const SITA_ERROR_RX_BREAK: u32 = 128; pub const SITA_PROTO_UNUSED: u32 = 0; pub const SITA_PROTO_BOP_LAPB: u32 = 1; pub const SITA_PROTO_ETHERNET: u32 = 2; pub const SITA_PROTO_ASYNC_INTIO: u32 = 3; pub const SITA_PROTO_ASYNC_BLKIO: u32 = 4; pub const SITA_PROTO_ALC: u32 = 5; pub const SITA_PROTO_UTS: u32 = 6; pub const SITA_PROTO_PPP_HDLC: u32 = 7; pub const SITA_PROTO_SDLC: u32 = 8; pub const SITA_PROTO_TOKENRING: u32 = 9; pub const SITA_PROTO_I2C: u32 = 16; pub const SITA_PROTO_DPM_LINK: u32 = 17; pub const SITA_PROTO_BOP_FRL: u32 = 18; pub const BTHCI_CHANNEL_COMMAND: u32 = 1; pub const BTHCI_CHANNEL_ACL: u32 = 2; pub const BTHCI_CHANNEL_SCO: u32 = 3; pub const BTHCI_CHANNEL_EVENT: u32 = 4; pub const BTHCI_CHANNEL_ISO: u32 = 5; pub const GSM_UM_CHANNEL_UNKNOWN: u32 = 0; pub const GSM_UM_CHANNEL_BCCH: u32 = 1; pub const GSM_UM_CHANNEL_SDCCH: u32 = 2; pub const GSM_UM_CHANNEL_SACCH: u32 = 3; pub const GSM_UM_CHANNEL_FACCH: u32 = 4; pub const GSM_UM_CHANNEL_CCCH: u32 = 5; pub const GSM_UM_CHANNEL_RACH: u32 = 6; pub const GSM_UM_CHANNEL_AGCH: u32 = 7; pub const GSM_UM_CHANNEL_PCH: u32 = 8; pub const LLCP_PHDR_FLAG_SENT: u32 = 0; pub const REC_TYPE_PACKET: u32 = 0; pub const REC_TYPE_FT_SPECIFIC_EVENT: u32 = 1; pub const REC_TYPE_FT_SPECIFIC_REPORT: u32 = 2; pub const REC_TYPE_SYSCALL: u32 = 3; pub const REC_TYPE_SYSTEMD_JOURNAL_EXPORT: u32 = 4; pub const REC_TYPE_CUSTOM_BLOCK: u32 = 5; pub const PACK_FLAGS_DIRECTION_MASK: u32 = 3; pub const PACK_FLAGS_DIRECTION_SHIFT: u32 = 0; pub const PACK_FLAGS_DIRECTION_UNKNOWN: u32 = 0; pub const PACK_FLAGS_DIRECTION_INBOUND: u32 = 1; pub const PACK_FLAGS_DIRECTION_OUTBOUND: u32 = 2; pub const PACK_FLAGS_RECEPTION_TYPE_MASK: u32 = 28; pub const PACK_FLAGS_RECEPTION_TYPE_SHIFT: u32 = 2; pub const PACK_FLAGS_RECEPTION_TYPE_UNSPECIFIED: u32 = 0; pub const PACK_FLAGS_RECEPTION_TYPE_UNICAST: u32 = 1; pub const PACK_FLAGS_RECEPTION_TYPE_MULTICAST: u32 = 2; pub const PACK_FLAGS_RECEPTION_TYPE_BROADCAST: u32 = 3; pub const PACK_FLAGS_RECEPTION_TYPE_PROMISCUOUS: u32 = 4; pub const PACK_FLAGS_FCS_LENGTH_MASK: u32 = 480; pub const PACK_FLAGS_FCS_LENGTH_SHIFT: u32 = 5; pub const PACK_FLAGS_RESERVED_MASK: u32 = 65024; pub const PACK_FLAGS_CRC_ERROR: u32 = 16777216; pub const PACK_FLAGS_PACKET_TOO_LONG: u32 = 33554432; pub const PACK_FLAGS_PACKET_TOO_SHORT: u32 = 67108864; pub const PACK_FLAGS_WRONG_INTER_FRAME_GAP: u32 = 134217728; pub const PACK_FLAGS_UNALIGNED_FRAME: u32 = 268435456; pub const PACK_FLAGS_START_FRAME_DELIMITER_ERROR: u32 = 536870912; pub const PACK_FLAGS_PREAMBLE_ERROR: u32 = 1073741824; pub const PACK_FLAGS_SYMBOL_ERROR: u32 = 2147483648; pub const BBLOG_TYPE_EVENT_BLOCK: u32 = 1; pub const BBLOG_TYPE_SKIPPED_BLOCK: u32 = 2; pub const WTAP_HAS_TS: u32 = 1; pub const WTAP_HAS_CAP_LEN: u32 = 2; pub const WTAP_HAS_INTERFACE_ID: u32 = 4; pub const WTAP_HAS_SECTION_NUMBER: u32 = 8; pub const MAXNAMELEN: u32 = 64; pub const WTAP_COMMENT_PER_SECTION: u32 = 1; pub const WTAP_COMMENT_PER_INTERFACE: u32 = 2; pub const WTAP_COMMENT_PER_PACKET: u32 = 4; pub const WTAP_TYPE_AUTO: u32 = 0; pub const WTAP_ERR_NOT_REGULAR_FILE: i32 = -1; pub const WTAP_ERR_RANDOM_OPEN_PIPE: i32 = -2; pub const WTAP_ERR_FILE_UNKNOWN_FORMAT: i32 = -3; pub const WTAP_ERR_UNSUPPORTED: i32 = -4; pub const WTAP_ERR_CANT_WRITE_TO_PIPE: i32 = -5; pub const WTAP_ERR_CANT_OPEN: i32 = -6; pub const WTAP_ERR_UNWRITABLE_FILE_TYPE: i32 = -7; pub const WTAP_ERR_UNWRITABLE_ENCAP: i32 = -8; pub const WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED: i32 = -9; pub const WTAP_ERR_CANT_WRITE: i32 = -10; pub const WTAP_ERR_CANT_CLOSE: i32 = -11; pub const WTAP_ERR_SHORT_READ: i32 = -12; pub const WTAP_ERR_BAD_FILE: i32 = -13; pub const WTAP_ERR_SHORT_WRITE: i32 = -14; pub const WTAP_ERR_UNC_OVERFLOW: i32 = -15; pub const WTAP_ERR_RANDOM_OPEN_STDIN: i32 = -16; pub const WTAP_ERR_COMPRESSION_NOT_SUPPORTED: i32 = -17; pub const WTAP_ERR_CANT_SEEK: i32 = -18; pub const WTAP_ERR_CANT_SEEK_COMPRESSED: i32 = -19; pub const WTAP_ERR_DECOMPRESS: i32 = -20; pub const WTAP_ERR_INTERNAL: i32 = -21; pub const WTAP_ERR_PACKET_TOO_LARGE: i32 = -22; pub const WTAP_ERR_CHECK_WSLUA: i32 = -23; pub const WTAP_ERR_UNWRITABLE_REC_TYPE: i32 = -24; pub const WTAP_ERR_UNWRITABLE_REC_DATA: i32 = -25; pub const WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED: i32 = -26; pub const P2P_DIR_UNKNOWN: i32 = -1; pub const P2P_DIR_SENT: u32 = 0; pub const P2P_DIR_RECV: u32 = 1; pub const LINK_DIR_UNKNOWN: i32 = -1; pub const P2P_DIR_UL: u32 = 0; pub const P2P_DIR_DL: u32 = 1; pub const PINFO_HAS_TS: u32 = 1; pub const DESEGMENT_ONE_MORE_SEGMENT: u32 = 268435455; pub const DESEGMENT_UNTIL_FIN: u32 = 268435454; pub const WS_REGEX_CASELESS: u32 = 1; pub const WS_REGEX_NEVER_UTF: u32 = 2; pub const FT_ETHER_LEN: u32 = 6; pub const FT_GUID_LEN: u32 = 16; pub const FT_IPv4_LEN: u32 = 4; pub const FT_IPv6_LEN: u32 = 16; pub const FT_IPXNET_LEN: u32 = 4; pub const FT_EUI64_LEN: u32 = 8; pub const FT_AX25_ADDR_LEN: u32 = 7; pub const FT_VINES_ADDR_LEN: u32 = 6; pub const FT_FCWWN_LEN: u32 = 8; pub const FT_VARINT_MAX_LEN: u32 = 10; pub const FT_TRUE: u32 = 1; pub const FT_FALSE: u32 = 0; pub const ITEM_LABEL_LENGTH: u32 = 240; pub const ITEM_LABEL_UNKNOWN_STR: &[u8; 8] = b"Unknown\0"; pub const ENC_BIG_ENDIAN: u32 = 0; pub const ENC_LITTLE_ENDIAN: u32 = 2147483648; pub const ENC_HOST_ENDIAN: u32 = 2147483648; pub const ENC_ANTI_HOST_ENDIAN: u32 = 0; pub const ENC_NA: u32 = 0; pub const ENC_CHARENCODING_MASK: u32 = 65534; pub const ENC_ASCII: u32 = 0; pub const ENC_ISO_646_IRV: u32 = 0; pub const ENC_UTF_8: u32 = 2; pub const ENC_UTF_16: u32 = 4; pub const ENC_UCS_2: u32 = 6; pub const ENC_UCS_4: u32 = 8; pub const ENC_ISO_8859_1: u32 = 10; pub const ENC_ISO_8859_2: u32 = 12; pub const ENC_ISO_8859_3: u32 = 14; pub const ENC_ISO_8859_4: u32 = 16; pub const ENC_ISO_8859_5: u32 = 18; pub const ENC_ISO_8859_6: u32 = 20; pub const ENC_ISO_8859_7: u32 = 22; pub const ENC_ISO_8859_8: u32 = 24; pub const ENC_ISO_8859_9: u32 = 26; pub const ENC_ISO_8859_10: u32 = 28; pub const ENC_ISO_8859_11: u32 = 30; pub const ENC_ISO_8859_13: u32 = 34; pub const ENC_ISO_8859_14: u32 = 36; pub const ENC_ISO_8859_15: u32 = 38; pub const ENC_ISO_8859_16: u32 = 40; pub const ENC_WINDOWS_1250: u32 = 42; pub const ENC_3GPP_TS_23_038_7BITS_PACKED: u32 = 44; pub const ENC_3GPP_TS_23_038_7BITS: u32 = 44; pub const ENC_EBCDIC: u32 = 46; pub const ENC_MAC_ROMAN: u32 = 48; pub const ENC_CP437: u32 = 50; pub const ENC_ASCII_7BITS: u32 = 52; pub const ENC_T61: u32 = 54; pub const ENC_EBCDIC_CP037: u32 = 56; pub const ENC_WINDOWS_1252: u32 = 58; pub const ENC_WINDOWS_1251: u32 = 60; pub const ENC_CP855: u32 = 62; pub const ENC_CP866: u32 = 64; pub const ENC_ISO_646_BASIC: u32 = 66; pub const ENC_BCD_DIGITS_0_9: u32 = 68; pub const ENC_KEYPAD_ABC_TBCD: u32 = 70; pub const ENC_KEYPAD_BC_TBCD: u32 = 72; pub const ENC_3GPP_TS_23_038_7BITS_UNPACKED: u32 = 76; pub const ENC_ETSI_TS_102_221_ANNEX_A: u32 = 78; pub const ENC_GB18030: u32 = 80; pub const ENC_EUC_KR: u32 = 82; pub const ENC_APN_STR: u32 = 84; pub const ENC_ZIGBEE: u32 = 1073741824; pub const ENC_STR_NUM: u32 = 16777216; pub const ENC_STR_HEX: u32 = 33554432; pub const ENC_STRING: u32 = 50331648; pub const ENC_STR_MASK: u32 = 65534; pub const ENC_NUM_PREF: u32 = 2097152; pub const ENC_SEP_NONE: u32 = 65536; pub const ENC_SEP_COLON: u32 = 131072; pub const ENC_SEP_DASH: u32 = 262144; pub const ENC_SEP_DOT: u32 = 524288; pub const ENC_SEP_SPACE: u32 = 1048576; pub const ENC_SEP_MASK: u32 = 2031616; pub const ENC_BCD_ODD_NUM_DIG: u32 = 65536; pub const ENC_BCD_SKIP_FIRST: u32 = 131072; pub const ENC_TIME_SECS_NSECS: u32 = 0; pub const ENC_TIME_TIMESPEC: u32 = 0; pub const ENC_TIME_NTP: u32 = 2; pub const ENC_TIME_TOD: u32 = 4; pub const ENC_TIME_RTPS: u32 = 8; pub const ENC_TIME_NTP_BASE_ZERO: u32 = 8; pub const ENC_TIME_SECS_USECS: u32 = 16; pub const ENC_TIME_TIMEVAL: u32 = 16; pub const ENC_TIME_SECS: u32 = 18; pub const ENC_TIME_MSECS: u32 = 20; pub const ENC_TIME_SECS_NTP: u32 = 24; pub const ENC_TIME_RFC_3971: u32 = 32; pub const ENC_TIME_MSEC_NTP: u32 = 34; pub const ENC_TIME_MIP6: u32 = 36; pub const ENC_TIME_CLASSIC_MAC_OS_SECS: u32 = 38; pub const ENC_TIME_NSECS: u32 = 40; pub const ENC_TIME_USECS: u32 = 48; pub const ENC_ISO_8601_DATE: u32 = 65536; pub const ENC_ISO_8601_TIME: u32 = 131072; pub const ENC_ISO_8601_DATE_TIME: u32 = 196608; pub const ENC_RFC_822: u32 = 262144; pub const ENC_RFC_1123: u32 = 524288; pub const ENC_ISO_8601_DATE_TIME_BASIC: u32 = 1048576; pub const ENC_STR_TIME_MASK: u32 = 2031616; pub const ENC_VARINT_PROTOBUF: u32 = 2; pub const ENC_VARINT_QUIC: u32 = 4; pub const ENC_VARINT_ZIGZAG: u32 = 8; pub const ENC_VARINT_MASK: u32 = 14; pub const FIELD_DISPLAY_E_MASK: u32 = 255; pub const BASE_RANGE_STRING: u32 = 256; pub const BASE_EXT_STRING: u32 = 512; pub const BASE_VAL64_STRING: u32 = 1024; pub const BASE_ALLOW_ZERO: u32 = 2048; pub const BASE_UNIT_STRING: u32 = 4096; pub const BASE_NO_DISPLAY_VALUE: u32 = 8192; pub const BASE_PROTOCOL_INFO: u32 = 16384; pub const BASE_SPECIAL_VALS: u32 = 32768; pub const BASE_SHOW_ASCII_PRINTABLE: u32 = 65536; pub const BASE_SHOW_UTF_8_PRINTABLE: u32 = 131072; pub const FI_HIDDEN: u32 = 1; pub const FI_GENERATED: u32 = 2; pub const FI_URL: u32 = 4; pub const FI_LITTLE_ENDIAN: u32 = 8; pub const FI_BIG_ENDIAN: u32 = 16; pub const FI_VARINT: u32 = 16384; pub const PI_SEVERITY_MASK: u32 = 15728640; pub const PI_COMMENT: u32 = 1048576; pub const PI_CHAT: u32 = 2097152; pub const PI_NOTE: u32 = 4194304; pub const PI_WARN: u32 = 6291456; pub const PI_ERROR: u32 = 8388608; pub const PI_GROUP_MASK: u32 = 4278190080; pub const PI_CHECKSUM: u32 = 16777216; pub const PI_SEQUENCE: u32 = 33554432; pub const PI_RESPONSE_CODE: u32 = 50331648; pub const PI_REQUEST_CODE: u32 = 67108864; pub const PI_UNDECODED: u32 = 83886080; pub const PI_REASSEMBLE: u32 = 100663296; pub const PI_MALFORMED: u32 = 117440512; pub const PI_DEBUG: u32 = 134217728; pub const PI_PROTOCOL: u32 = 150994944; pub const PI_SECURITY: u32 = 167772160; pub const PI_COMMENTS_GROUP: u32 = 184549376; pub const PI_DECRYPTION: u32 = 201326592; pub const PI_ASSUMPTION: u32 = 218103808; pub const PI_DEPRECATED: u32 = 234881024; pub const BMT_NO_FLAGS: u32 = 0; pub const BMT_NO_APPEND: u32 = 1; pub const BMT_NO_INT: u32 = 2; pub const BMT_NO_FALSE: u32 = 4; pub const BMT_NO_TFS: u32 = 8; pub const PROTO_CHECKSUM_NO_FLAGS: u32 = 0; pub const PROTO_CHECKSUM_VERIFY: u32 = 1; pub const PROTO_CHECKSUM_GENERATED: u32 = 2; pub const PROTO_CHECKSUM_IN_CKSUM: u32 = 4; pub const PROTO_CHECKSUM_ZERO: u32 = 8; pub const PROTO_CHECKSUM_NOT_PRESENT: u32 = 16; pub const MAX_SCTP_PORT: u32 = 65535; pub const MAX_TCP_PORT: u32 = 65535; pub const MAX_UDP_PORT: u32 = 65535; pub const MAX_DCCP_PORT: u32 = 65535; pub const DEF_WIDTH: u32 = 750; pub const DEF_HEIGHT: u32 = 550; pub const MAX_VAL_LEN: u32 = 1024; pub const TAP_UPDATE_DEFAULT_INTERVAL: u32 = 3000; pub const ST_DEF_BURSTRES: u32 = 5; pub const ST_DEF_BURSTLEN: u32 = 100; pub const ST_MAX_BURSTRES: u32 = 600000; pub const ST_MAX_BURSTBUCKETS: u32 = 100; pub const DEF_GUI_DECIMAL_PLACES1: u32 = 2; pub const DEF_GUI_DECIMAL_PLACES2: u32 = 4; pub const DEF_GUI_DECIMAL_PLACES3: u32 = 6; pub const FO_STYLE_LAST_OPENED: u32 = 0; pub const FO_STYLE_SPECIFIED: u32 = 1; pub const TB_STYLE_ICONS: u32 = 0; pub const TB_STYLE_TEXT: u32 = 1; pub const TB_STYLE_BOTH: u32 = 2; pub const COLOR_STYLE_DEFAULT: u32 = 0; pub const COLOR_STYLE_FLAT: u32 = 1; pub const COLOR_STYLE_GRADIENT: u32 = 2; pub const COLOR_STYLE_ALPHA: f64 = 0.25; pub const COL_MAX_LEN: u32 = 2048; pub const COL_MAX_INFO_LEN: u32 = 4096; pub const COL_CUSTOM_PRIME_REGEX: &[u8; 40] = b" *([^ \\|]+) *(?:(?:\\|\\|)|(?:or)| *$){1}\0"; pub const MAX_DECODE_AS_PROMPT_LEN: u32 = 200; pub const DECODE_AS_ENTRY: &[u8; 16] = b"decode_as_entry\0"; pub const DECODE_AS_NONE: &[u8; 7] = b"(none)\0"; pub const DECODE_AS_ENTRIES_FILE_NAME: &[u8; 18] = b"decode_as_entries\0"; pub type __u_char = ::std::os::raw::c_uchar; pub type __u_short = ::std::os::raw::c_ushort; pub type __u_int = ::std::os::raw::c_uint; pub type __u_long = ::std::os::raw::c_ulong; pub type __int8_t = ::std::os::raw::c_schar; pub type __uint8_t = ::std::os::raw::c_uchar; pub type __int16_t = ::std::os::raw::c_short; pub type __uint16_t = ::std::os::raw::c_ushort; pub type __int32_t = ::std::os::raw::c_int; pub type __uint32_t = ::std::os::raw::c_uint; pub type __int64_t = ::std::os::raw::c_long; pub type __uint64_t = ::std::os::raw::c_ulong; pub type __int_least8_t = __int8_t; pub type __uint_least8_t = __uint8_t; pub type __int_least16_t = __int16_t; pub type __uint_least16_t = __uint16_t; pub type __int_least32_t = __int32_t; pub type __uint_least32_t = __uint32_t; pub type __int_least64_t = __int64_t; pub type __uint_least64_t = __uint64_t; pub type __quad_t = ::std::os::raw::c_long; pub type __u_quad_t = ::std::os::raw::c_ulong; pub type __intmax_t = ::std::os::raw::c_long; pub type __uintmax_t = ::std::os::raw::c_ulong; pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; pub type __ino64_t = ::std::os::raw::c_ulong; pub type __mode_t = ::std::os::raw::c_uint; pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __fsid_t { pub __val: [::std::os::raw::c_int; 2usize], } #[test] fn bindgen_test_layout___fsid_t() { const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__fsid_t>(), 8usize, concat!("Size of: ", stringify!(__fsid_t)) ); assert_eq!( ::std::mem::align_of::<__fsid_t>(), 4usize, concat!("Alignment of ", stringify!(__fsid_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__fsid_t), "::", stringify!(__val) ) ); } pub type __clock_t = ::std::os::raw::c_long; pub type __rlim_t = ::std::os::raw::c_ulong; pub type __rlim64_t = ::std::os::raw::c_ulong; pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; pub type __useconds_t = ::std::os::raw::c_uint; pub type __suseconds_t = ::std::os::raw::c_long; pub type __suseconds64_t = ::std::os::raw::c_long; pub type __daddr_t = ::std::os::raw::c_int; pub type __key_t = ::std::os::raw::c_int; pub type __clockid_t = ::std::os::raw::c_int; pub type __timer_t = *mut ::std::os::raw::c_void; pub type __blksize_t = ::std::os::raw::c_long; pub type __blkcnt_t = ::std::os::raw::c_long; pub type __blkcnt64_t = ::std::os::raw::c_long; pub type __fsblkcnt_t = ::std::os::raw::c_ulong; pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; pub type __fsfilcnt_t = ::std::os::raw::c_ulong; pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; pub type __fsword_t = ::std::os::raw::c_long; pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; pub type __syscall_ulong_t = ::std::os::raw::c_ulong; pub type __loff_t = __off64_t; pub type __caddr_t = *mut ::std::os::raw::c_char; pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; pub type int_least8_t = __int_least8_t; pub type int_least16_t = __int_least16_t; pub type int_least32_t = __int_least32_t; pub type int_least64_t = __int_least64_t; pub type uint_least8_t = __uint_least8_t; pub type uint_least16_t = __uint_least16_t; pub type uint_least32_t = __uint_least32_t; pub type uint_least64_t = __uint_least64_t; pub type int_fast8_t = ::std::os::raw::c_schar; pub type int_fast16_t = ::std::os::raw::c_long; pub type int_fast32_t = ::std::os::raw::c_long; pub type int_fast64_t = ::std::os::raw::c_long; pub type uint_fast8_t = ::std::os::raw::c_uchar; pub type uint_fast16_t = ::std::os::raw::c_ulong; pub type uint_fast32_t = ::std::os::raw::c_ulong; pub type uint_fast64_t = ::std::os::raw::c_ulong; pub type intmax_t = __intmax_t; pub type uintmax_t = __uintmax_t; pub type __gwchar_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct imaxdiv_t { pub quot: ::std::os::raw::c_long, pub rem: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_imaxdiv_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(imaxdiv_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(imaxdiv_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(imaxdiv_t), "::", stringify!(quot) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(imaxdiv_t), "::", stringify!(rem) ) ); } extern "C" { pub fn imaxabs(__n: intmax_t) -> intmax_t; } extern "C" { pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t; } extern "C" { pub fn strtoimax( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> intmax_t; } extern "C" { pub fn strtoumax( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> uintmax_t; } extern "C" { pub fn wcstoimax( __nptr: *const __gwchar_t, __endptr: *mut *mut __gwchar_t, __base: ::std::os::raw::c_int, ) -> intmax_t; } extern "C" { pub fn wcstoumax( __nptr: *const __gwchar_t, __endptr: *mut *mut __gwchar_t, __base: ::std::os::raw::c_int, ) -> uintmax_t; } extern "C" { pub fn memcpy( __dest: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn memmove( __dest: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn memccpy( __dest: *mut ::std::os::raw::c_void, __src: *const ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn memset( __s: *mut ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn memcmp( __s1: *const ::std::os::raw::c_void, __s2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { pub fn __memcmpeq( __s1: *const ::std::os::raw::c_void, __s2: *const ::std::os::raw::c_void, __n: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn memchr( __s: *const ::std::os::raw::c_void, __c: ::std::os::raw::c_int, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn strcpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strncpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strcat( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strncat( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strcmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strncmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strcoll( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strxfrm( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_struct { pub __locales: [*mut __locale_data; 13usize], pub __ctype_b: *const ::std::os::raw::c_ushort, pub __ctype_tolower: *const ::std::os::raw::c_int, pub __ctype_toupper: *const ::std::os::raw::c_int, pub __names: [*const ::std::os::raw::c_char; 13usize], } #[test] fn bindgen_test_layout___locale_struct() { const UNINIT: ::std::mem::MaybeUninit<__locale_struct> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__locale_struct>(), 232usize, concat!("Size of: ", stringify!(__locale_struct)) ); assert_eq!( ::std::mem::align_of::<__locale_struct>(), 8usize, concat!("Alignment of ", stringify!(__locale_struct)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__locales) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__locale_struct), "::", stringify!(__locales) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__ctype_b) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(__locale_struct), "::", stringify!(__ctype_b) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__ctype_tolower) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(__locale_struct), "::", stringify!(__ctype_tolower) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__ctype_toupper) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(__locale_struct), "::", stringify!(__ctype_toupper) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__names) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(__locale_struct), "::", stringify!(__names) ) ); } pub type __locale_t = *mut __locale_struct; pub type locale_t = __locale_t; extern "C" { pub fn strcoll_l( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __l: locale_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strxfrm_l( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: usize, __l: locale_t, ) -> usize; } extern "C" { pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strndup( __string: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strchr( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strrchr( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strcspn( __s: *const ::std::os::raw::c_char, __reject: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } extern "C" { pub fn strspn( __s: *const ::std::os::raw::c_char, __accept: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_ulong; } extern "C" { pub fn strpbrk( __s: *const ::std::os::raw::c_char, __accept: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strstr( __haystack: *const ::std::os::raw::c_char, __needle: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strtok( __s: *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn __strtok_r( __s: *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, __save_ptr: *mut *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strtok_r( __s: *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, __save_ptr: *mut *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; } extern "C" { pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize; } extern "C" { pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } extern "C" { #[link_name = "\u{1}__xpg_strerror_r"] pub fn strerror_r( __errnum: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __buflen: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strerror_l( __errnum: ::std::os::raw::c_int, __l: locale_t, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn bcmp( __s1: *const ::std::os::raw::c_void, __s2: *const ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { pub fn bcopy( __src: *const ::std::os::raw::c_void, __dest: *mut ::std::os::raw::c_void, __n: usize, ); } extern "C" { pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_ulong); } extern "C" { pub fn index( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn rindex( __s: *const ::std::os::raw::c_char, __c: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; } extern "C" { pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; } extern "C" { pub fn strcasecmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strncasecmp( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strcasecmp_l( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __loc: locale_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn strncasecmp_l( __s1: *const ::std::os::raw::c_char, __s2: *const ::std::os::raw::c_char, __n: usize, __loc: locale_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize); } extern "C" { pub fn strsep( __stringp: *mut *mut ::std::os::raw::c_char, __delim: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn __stpcpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn stpcpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn __stpncpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn stpncpy( __dest: *mut ::std::os::raw::c_char, __src: *const ::std::os::raw::c_char, __n: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_char; } pub type wchar_t = ::std::os::raw::c_int; #[repr(C)] #[repr(align(16))] #[derive(Debug, Copy, Clone)] pub struct max_align_t { pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, pub __bindgen_padding_0: u64, pub __clang_max_align_nonce2: u128, } #[test] fn bindgen_test_layout_max_align_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(max_align_t)) ); assert_eq!( ::std::mem::align_of::(), 16usize, concat!("Alignment of ", stringify!(max_align_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(max_align_t), "::", stringify!(__clang_max_align_nonce1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(max_align_t), "::", stringify!(__clang_max_align_nonce2) ) ); } pub type gint8 = ::std::os::raw::c_schar; pub type guint8 = ::std::os::raw::c_uchar; pub type gint16 = ::std::os::raw::c_short; pub type guint16 = ::std::os::raw::c_ushort; pub type gint32 = ::std::os::raw::c_int; pub type guint32 = ::std::os::raw::c_uint; pub type gint64 = ::std::os::raw::c_long; pub type guint64 = ::std::os::raw::c_ulong; pub type gssize = ::std::os::raw::c_long; pub type gsize = ::std::os::raw::c_ulong; pub type goffset = gint64; pub type gintptr = ::std::os::raw::c_long; pub type guintptr = ::std::os::raw::c_ulong; pub type GPid = ::std::os::raw::c_int; pub type clock_t = __clock_t; pub type time_t = __time_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tm { pub tm_sec: ::std::os::raw::c_int, pub tm_min: ::std::os::raw::c_int, pub tm_hour: ::std::os::raw::c_int, pub tm_mday: ::std::os::raw::c_int, pub tm_mon: ::std::os::raw::c_int, pub tm_year: ::std::os::raw::c_int, pub tm_wday: ::std::os::raw::c_int, pub tm_yday: ::std::os::raw::c_int, pub tm_isdst: ::std::os::raw::c_int, pub tm_gmtoff: ::std::os::raw::c_long, pub tm_zone: *const ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_tm() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, concat!("Size of: ", stringify!(tm)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(tm)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_min) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_hour) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_mday) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_mon) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_year) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_wday) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_yday) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_isdst) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_gmtoff) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(tm), "::", stringify!(tm_zone) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct timespec { pub tv_sec: __time_t, pub tv_nsec: __syscall_slong_t, } #[test] fn bindgen_test_layout_timespec() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(timespec)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(timespec)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(timespec), "::", stringify!(tv_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(timespec), "::", stringify!(tv_nsec) ) ); } pub type clockid_t = __clockid_t; pub type timer_t = __timer_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct itimerspec { pub it_interval: timespec, pub it_value: timespec, } #[test] fn bindgen_test_layout_itimerspec() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(itimerspec)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(itimerspec)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(itimerspec), "::", stringify!(it_interval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(itimerspec), "::", stringify!(it_value) ) ); } pub type pid_t = __pid_t; extern "C" { pub fn clock() -> clock_t; } extern "C" { pub fn time(__timer: *mut time_t) -> time_t; } extern "C" { pub fn difftime(__time1: time_t, __time0: time_t) -> f64; } extern "C" { pub fn mktime(__tp: *mut tm) -> time_t; } extern "C" { pub fn strftime( __s: *mut ::std::os::raw::c_char, __maxsize: usize, __format: *const ::std::os::raw::c_char, __tp: *const tm, ) -> usize; } extern "C" { pub fn strftime_l( __s: *mut ::std::os::raw::c_char, __maxsize: usize, __format: *const ::std::os::raw::c_char, __tp: *const tm, __loc: locale_t, ) -> usize; } extern "C" { pub fn gmtime(__timer: *const time_t) -> *mut tm; } extern "C" { pub fn localtime(__timer: *const time_t) -> *mut tm; } extern "C" { pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; } extern "C" { pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; } extern "C" { pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn asctime_r( __tp: *const tm, __buf: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn ctime_r( __timer: *const time_t, __buf: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; } extern "C" { pub static mut __daylight: ::std::os::raw::c_int; } extern "C" { pub static mut __timezone: ::std::os::raw::c_long; } extern "C" { pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; } extern "C" { pub fn tzset(); } extern "C" { pub static mut daylight: ::std::os::raw::c_int; } extern "C" { pub static mut timezone: ::std::os::raw::c_long; } extern "C" { pub fn timegm(__tp: *mut tm) -> time_t; } extern "C" { pub fn timelocal(__tp: *mut tm) -> time_t; } extern "C" { pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn nanosleep( __requested_time: *const timespec, __remaining: *mut timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; } extern "C" { pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; } extern "C" { pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; } extern "C" { pub fn clock_nanosleep( __clock_id: clockid_t, __flags: ::std::os::raw::c_int, __req: *const timespec, __rem: *mut timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int; } extern "C" { pub fn timer_create( __clock_id: clockid_t, __evp: *mut sigevent, __timerid: *mut timer_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int; } extern "C" { pub fn timer_settime( __timerid: timer_t, __flags: ::std::os::raw::c_int, __value: *const itimerspec, __ovalue: *mut itimerspec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int; } extern "C" { pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int; } extern "C" { pub fn timespec_get( __ts: *mut timespec, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } pub type gchar = ::std::os::raw::c_char; pub type gshort = ::std::os::raw::c_short; pub type glong = ::std::os::raw::c_long; pub type gint = ::std::os::raw::c_int; pub type gboolean = gint; pub type guchar = ::std::os::raw::c_uchar; pub type gushort = ::std::os::raw::c_ushort; pub type gulong = ::std::os::raw::c_ulong; pub type guint = ::std::os::raw::c_uint; pub type gfloat = f32; pub type gdouble = f64; pub type gpointer = *mut ::std::os::raw::c_void; pub type gconstpointer = *const ::std::os::raw::c_void; pub type GCompareFunc = ::std::option::Option gint>; pub type GCompareDataFunc = ::std::option::Option< unsafe extern "C" fn(a: gconstpointer, b: gconstpointer, user_data: gpointer) -> gint, >; pub type GEqualFunc = ::std::option::Option gboolean>; pub type GEqualFuncFull = ::std::option::Option< unsafe extern "C" fn(a: gconstpointer, b: gconstpointer, user_data: gpointer) -> gboolean, >; pub type GDestroyNotify = ::std::option::Option; pub type GFunc = ::std::option::Option; pub type GHashFunc = ::std::option::Option guint>; pub type GHFunc = ::std::option::Option< unsafe extern "C" fn(key: gpointer, value: gpointer, user_data: gpointer), >; pub type GCopyFunc = ::std::option::Option gpointer>; pub type GFreeFunc = ::std::option::Option; pub type GTranslateFunc = ::std::option::Option *const gchar>; pub type GDoubleIEEE754 = _GDoubleIEEE754; pub type GFloatIEEE754 = _GFloatIEEE754; #[repr(C)] #[derive(Copy, Clone)] pub union _GFloatIEEE754 { pub v_float: gfloat, pub mpn: _GFloatIEEE754__bindgen_ty_1, } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct _GFloatIEEE754__bindgen_ty_1 { pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, } #[test] fn bindgen_test_layout__GFloatIEEE754__bindgen_ty_1() { assert_eq!( ::std::mem::size_of::<_GFloatIEEE754__bindgen_ty_1>(), 4usize, concat!("Size of: ", stringify!(_GFloatIEEE754__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_GFloatIEEE754__bindgen_ty_1>(), 4usize, concat!("Alignment of ", stringify!(_GFloatIEEE754__bindgen_ty_1)) ); } impl _GFloatIEEE754__bindgen_ty_1 { #[inline] pub fn mantissa(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 23u8) as u32) } } #[inline] pub fn set_mantissa(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 23u8, val as u64) } } #[inline] pub fn biased_exponent(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 8u8) as u32) } } #[inline] pub fn set_biased_exponent(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(23usize, 8u8, val as u64) } } #[inline] pub fn sign(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } } #[inline] pub fn set_sign(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(31usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( mantissa: guint, biased_exponent: guint, sign: guint, ) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 23u8, { let mantissa: u32 = unsafe { ::std::mem::transmute(mantissa) }; mantissa as u64 }); __bindgen_bitfield_unit.set(23usize, 8u8, { let biased_exponent: u32 = unsafe { ::std::mem::transmute(biased_exponent) }; biased_exponent as u64 }); __bindgen_bitfield_unit.set(31usize, 1u8, { let sign: u32 = unsafe { ::std::mem::transmute(sign) }; sign as u64 }); __bindgen_bitfield_unit } } #[test] fn bindgen_test_layout__GFloatIEEE754() { const UNINIT: ::std::mem::MaybeUninit<_GFloatIEEE754> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GFloatIEEE754>(), 4usize, concat!("Size of: ", stringify!(_GFloatIEEE754)) ); assert_eq!( ::std::mem::align_of::<_GFloatIEEE754>(), 4usize, concat!("Alignment of ", stringify!(_GFloatIEEE754)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GFloatIEEE754), "::", stringify!(v_float) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mpn) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GFloatIEEE754), "::", stringify!(mpn) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union _GDoubleIEEE754 { pub v_double: gdouble, pub mpn: _GDoubleIEEE754__bindgen_ty_1, } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct _GDoubleIEEE754__bindgen_ty_1 { pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, } #[test] fn bindgen_test_layout__GDoubleIEEE754__bindgen_ty_1() { assert_eq!( ::std::mem::size_of::<_GDoubleIEEE754__bindgen_ty_1>(), 8usize, concat!("Size of: ", stringify!(_GDoubleIEEE754__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_GDoubleIEEE754__bindgen_ty_1>(), 4usize, concat!("Alignment of ", stringify!(_GDoubleIEEE754__bindgen_ty_1)) ); } impl _GDoubleIEEE754__bindgen_ty_1 { #[inline] pub fn mantissa_low(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 32u8) as u32) } } #[inline] pub fn set_mantissa_low(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 32u8, val as u64) } } #[inline] pub fn mantissa_high(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 20u8) as u32) } } #[inline] pub fn set_mantissa_high(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(32usize, 20u8, val as u64) } } #[inline] pub fn biased_exponent(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(52usize, 11u8) as u32) } } #[inline] pub fn set_biased_exponent(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(52usize, 11u8, val as u64) } } #[inline] pub fn sign(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(63usize, 1u8) as u32) } } #[inline] pub fn set_sign(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(63usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( mantissa_low: guint, mantissa_high: guint, biased_exponent: guint, sign: guint, ) -> __BindgenBitfieldUnit<[u8; 8usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 32u8, { let mantissa_low: u32 = unsafe { ::std::mem::transmute(mantissa_low) }; mantissa_low as u64 }); __bindgen_bitfield_unit.set(32usize, 20u8, { let mantissa_high: u32 = unsafe { ::std::mem::transmute(mantissa_high) }; mantissa_high as u64 }); __bindgen_bitfield_unit.set(52usize, 11u8, { let biased_exponent: u32 = unsafe { ::std::mem::transmute(biased_exponent) }; biased_exponent as u64 }); __bindgen_bitfield_unit.set(63usize, 1u8, { let sign: u32 = unsafe { ::std::mem::transmute(sign) }; sign as u64 }); __bindgen_bitfield_unit } } #[test] fn bindgen_test_layout__GDoubleIEEE754() { const UNINIT: ::std::mem::MaybeUninit<_GDoubleIEEE754> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GDoubleIEEE754>(), 8usize, concat!("Size of: ", stringify!(_GDoubleIEEE754)) ); assert_eq!( ::std::mem::align_of::<_GDoubleIEEE754>(), 8usize, concat!("Alignment of ", stringify!(_GDoubleIEEE754)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_double) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GDoubleIEEE754), "::", stringify!(v_double) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mpn) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GDoubleIEEE754), "::", stringify!(mpn) ) ); } pub type GTimeVal = _GTimeVal; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTimeVal { pub tv_sec: glong, pub tv_usec: glong, } #[test] fn bindgen_test_layout__GTimeVal() { const UNINIT: ::std::mem::MaybeUninit<_GTimeVal> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GTimeVal>(), 16usize, concat!("Size of: ", stringify!(_GTimeVal)) ); assert_eq!( ::std::mem::align_of::<_GTimeVal>(), 8usize, concat!("Alignment of ", stringify!(_GTimeVal)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTimeVal), "::", stringify!(tv_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GTimeVal), "::", stringify!(tv_usec) ) ); } pub type grefcount = gint; pub type gatomicrefcount = gint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GBytes { _unused: [u8; 0], } pub type GBytes = _GBytes; pub type GArray = _GArray; pub type GByteArray = _GByteArray; pub type GPtrArray = _GPtrArray; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GArray { pub data: *mut gchar, pub len: guint, } #[test] fn bindgen_test_layout__GArray() { const UNINIT: ::std::mem::MaybeUninit<_GArray> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GArray>(), 16usize, concat!("Size of: ", stringify!(_GArray)) ); assert_eq!( ::std::mem::align_of::<_GArray>(), 8usize, concat!("Alignment of ", stringify!(_GArray)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GArray), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GArray), "::", stringify!(len) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GByteArray { pub data: *mut guint8, pub len: guint, } #[test] fn bindgen_test_layout__GByteArray() { const UNINIT: ::std::mem::MaybeUninit<_GByteArray> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GByteArray>(), 16usize, concat!("Size of: ", stringify!(_GByteArray)) ); assert_eq!( ::std::mem::align_of::<_GByteArray>(), 8usize, concat!("Alignment of ", stringify!(_GByteArray)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GByteArray), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GByteArray), "::", stringify!(len) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GPtrArray { pub pdata: *mut gpointer, pub len: guint, } #[test] fn bindgen_test_layout__GPtrArray() { const UNINIT: ::std::mem::MaybeUninit<_GPtrArray> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GPtrArray>(), 16usize, concat!("Size of: ", stringify!(_GPtrArray)) ); assert_eq!( ::std::mem::align_of::<_GPtrArray>(), 8usize, concat!("Alignment of ", stringify!(_GPtrArray)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pdata) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GPtrArray), "::", stringify!(pdata) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GPtrArray), "::", stringify!(len) ) ); } extern "C" { pub fn g_array_new( zero_terminated: gboolean, clear_: gboolean, element_size: guint, ) -> *mut GArray; } extern "C" { pub fn g_array_new_take( data: gpointer, len: gsize, clear: gboolean, element_size: gsize, ) -> *mut GArray; } extern "C" { pub fn g_array_new_take_zero_terminated( data: gpointer, clear: gboolean, element_size: gsize, ) -> *mut GArray; } extern "C" { pub fn g_array_steal(array: *mut GArray, len: *mut gsize) -> gpointer; } extern "C" { pub fn g_array_sized_new( zero_terminated: gboolean, clear_: gboolean, element_size: guint, reserved_size: guint, ) -> *mut GArray; } extern "C" { pub fn g_array_copy(array: *mut GArray) -> *mut GArray; } extern "C" { pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut gchar; } extern "C" { pub fn g_array_ref(array: *mut GArray) -> *mut GArray; } extern "C" { pub fn g_array_unref(array: *mut GArray); } extern "C" { pub fn g_array_get_element_size(array: *mut GArray) -> guint; } extern "C" { pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: guint) -> *mut GArray; } extern "C" { pub fn g_array_prepend_vals(array: *mut GArray, data: gconstpointer, len: guint) -> *mut GArray; } extern "C" { pub fn g_array_insert_vals( array: *mut GArray, index_: guint, data: gconstpointer, len: guint, ) -> *mut GArray; } extern "C" { pub fn g_array_set_size(array: *mut GArray, length: guint) -> *mut GArray; } extern "C" { pub fn g_array_remove_index(array: *mut GArray, index_: guint) -> *mut GArray; } extern "C" { pub fn g_array_remove_index_fast(array: *mut GArray, index_: guint) -> *mut GArray; } extern "C" { pub fn g_array_remove_range(array: *mut GArray, index_: guint, length: guint) -> *mut GArray; } extern "C" { pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc); } extern "C" { pub fn g_array_sort_with_data( array: *mut GArray, compare_func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_array_binary_search( array: *mut GArray, target: gconstpointer, compare_func: GCompareFunc, out_match_index: *mut guint, ) -> gboolean; } extern "C" { pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify); } extern "C" { pub fn g_ptr_array_new() -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_with_free_func(element_free_func: GDestroyNotify) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_take( data: *mut gpointer, len: gsize, element_free_func: GDestroyNotify, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_from_array( data: *mut gpointer, len: gsize, copy_func: GCopyFunc, copy_func_user_data: gpointer, element_free_func: GDestroyNotify, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_steal(array: *mut GPtrArray, len: *mut gsize) -> *mut gpointer; } extern "C" { pub fn g_ptr_array_copy( array: *mut GPtrArray, func: GCopyFunc, user_data: gpointer, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_sized_new(reserved_size: guint) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_full( reserved_size: guint, element_free_func: GDestroyNotify, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_null_terminated( reserved_size: guint, element_free_func: GDestroyNotify, null_terminated: gboolean, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_take_null_terminated( data: *mut gpointer, element_free_func: GDestroyNotify, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_new_from_null_terminated_array( data: *mut gpointer, copy_func: GCopyFunc, copy_func_user_data: gpointer, element_free_func: GDestroyNotify, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_free(array: *mut GPtrArray, free_seg: gboolean) -> *mut gpointer; } extern "C" { pub fn g_ptr_array_ref(array: *mut GPtrArray) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_unref(array: *mut GPtrArray); } extern "C" { pub fn g_ptr_array_set_free_func(array: *mut GPtrArray, element_free_func: GDestroyNotify); } extern "C" { pub fn g_ptr_array_set_size(array: *mut GPtrArray, length: gint); } extern "C" { pub fn g_ptr_array_remove_index(array: *mut GPtrArray, index_: guint) -> gpointer; } extern "C" { pub fn g_ptr_array_remove_index_fast(array: *mut GPtrArray, index_: guint) -> gpointer; } extern "C" { pub fn g_ptr_array_steal_index(array: *mut GPtrArray, index_: guint) -> gpointer; } extern "C" { pub fn g_ptr_array_steal_index_fast(array: *mut GPtrArray, index_: guint) -> gpointer; } extern "C" { pub fn g_ptr_array_remove(array: *mut GPtrArray, data: gpointer) -> gboolean; } extern "C" { pub fn g_ptr_array_remove_fast(array: *mut GPtrArray, data: gpointer) -> gboolean; } extern "C" { pub fn g_ptr_array_remove_range( array: *mut GPtrArray, index_: guint, length: guint, ) -> *mut GPtrArray; } extern "C" { pub fn g_ptr_array_add(array: *mut GPtrArray, data: gpointer); } extern "C" { pub fn g_ptr_array_extend( array_to_extend: *mut GPtrArray, array: *mut GPtrArray, func: GCopyFunc, user_data: gpointer, ); } extern "C" { pub fn g_ptr_array_extend_and_steal(array_to_extend: *mut GPtrArray, array: *mut GPtrArray); } extern "C" { pub fn g_ptr_array_insert(array: *mut GPtrArray, index_: gint, data: gpointer); } extern "C" { pub fn g_ptr_array_sort(array: *mut GPtrArray, compare_func: GCompareFunc); } extern "C" { pub fn g_ptr_array_sort_with_data( array: *mut GPtrArray, compare_func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_ptr_array_sort_values(array: *mut GPtrArray, compare_func: GCompareFunc); } extern "C" { pub fn g_ptr_array_sort_values_with_data( array: *mut GPtrArray, compare_func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_ptr_array_foreach(array: *mut GPtrArray, func: GFunc, user_data: gpointer); } extern "C" { pub fn g_ptr_array_find( haystack: *mut GPtrArray, needle: gconstpointer, index_: *mut guint, ) -> gboolean; } extern "C" { pub fn g_ptr_array_find_with_equal_func( haystack: *mut GPtrArray, needle: gconstpointer, equal_func: GEqualFunc, index_: *mut guint, ) -> gboolean; } extern "C" { pub fn g_ptr_array_is_null_terminated(array: *mut GPtrArray) -> gboolean; } extern "C" { pub fn g_byte_array_new() -> *mut GByteArray; } extern "C" { pub fn g_byte_array_new_take(data: *mut guint8, len: gsize) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_steal(array: *mut GByteArray, len: *mut gsize) -> *mut guint8; } extern "C" { pub fn g_byte_array_sized_new(reserved_size: guint) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut guint8; } extern "C" { pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes; } extern "C" { pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_unref(array: *mut GByteArray); } extern "C" { pub fn g_byte_array_append( array: *mut GByteArray, data: *const guint8, len: guint, ) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_prepend( array: *mut GByteArray, data: *const guint8, len: guint, ) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_set_size(array: *mut GByteArray, length: guint) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: guint) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_remove_index_fast(array: *mut GByteArray, index_: guint) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_remove_range( array: *mut GByteArray, index_: guint, length: guint, ) -> *mut GByteArray; } extern "C" { pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc); } extern "C" { pub fn g_byte_array_sort_with_data( array: *mut GByteArray, compare_func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_atomic_int_get(atomic: *const gint) -> gint; } extern "C" { pub fn g_atomic_int_set(atomic: *mut gint, newval: gint); } extern "C" { pub fn g_atomic_int_inc(atomic: *mut gint); } extern "C" { pub fn g_atomic_int_dec_and_test(atomic: *mut gint) -> gboolean; } extern "C" { pub fn g_atomic_int_compare_and_exchange( atomic: *mut gint, oldval: gint, newval: gint, ) -> gboolean; } extern "C" { pub fn g_atomic_int_compare_and_exchange_full( atomic: *mut gint, oldval: gint, newval: gint, preval: *mut gint, ) -> gboolean; } extern "C" { pub fn g_atomic_int_exchange(atomic: *mut gint, newval: gint) -> gint; } extern "C" { pub fn g_atomic_int_add(atomic: *mut gint, val: gint) -> gint; } extern "C" { pub fn g_atomic_int_and(atomic: *mut guint, val: guint) -> guint; } extern "C" { pub fn g_atomic_int_or(atomic: *mut guint, val: guint) -> guint; } extern "C" { pub fn g_atomic_int_xor(atomic: *mut guint, val: guint) -> guint; } extern "C" { pub fn g_atomic_pointer_get(atomic: *const ::std::os::raw::c_void) -> gpointer; } extern "C" { pub fn g_atomic_pointer_set(atomic: *mut ::std::os::raw::c_void, newval: gpointer); } extern "C" { pub fn g_atomic_pointer_compare_and_exchange( atomic: *mut ::std::os::raw::c_void, oldval: gpointer, newval: gpointer, ) -> gboolean; } extern "C" { pub fn g_atomic_pointer_compare_and_exchange_full( atomic: *mut ::std::os::raw::c_void, oldval: gpointer, newval: gpointer, preval: *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn g_atomic_pointer_exchange( atomic: *mut ::std::os::raw::c_void, newval: gpointer, ) -> gpointer; } extern "C" { pub fn g_atomic_pointer_add(atomic: *mut ::std::os::raw::c_void, val: gssize) -> gssize; } extern "C" { pub fn g_atomic_pointer_and(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize; } extern "C" { pub fn g_atomic_pointer_or(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize; } extern "C" { pub fn g_atomic_pointer_xor(atomic: *mut ::std::os::raw::c_void, val: gsize) -> gsize; } extern "C" { pub fn g_atomic_int_exchange_and_add(atomic: *mut gint, val: gint) -> gint; } pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; pub type GQuark = guint32; extern "C" { pub fn g_quark_try_string(string: *const gchar) -> GQuark; } extern "C" { pub fn g_quark_from_static_string(string: *const gchar) -> GQuark; } extern "C" { pub fn g_quark_from_string(string: *const gchar) -> GQuark; } extern "C" { pub fn g_quark_to_string(quark: GQuark) -> *const gchar; } extern "C" { pub fn g_intern_string(string: *const gchar) -> *const gchar; } extern "C" { pub fn g_intern_static_string(string: *const gchar) -> *const gchar; } pub type GError = _GError; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GError { pub domain: GQuark, pub code: gint, pub message: *mut gchar, } #[test] fn bindgen_test_layout__GError() { const UNINIT: ::std::mem::MaybeUninit<_GError> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GError>(), 16usize, concat!("Size of: ", stringify!(_GError)) ); assert_eq!( ::std::mem::align_of::<_GError>(), 8usize, concat!("Alignment of ", stringify!(_GError)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).domain) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GError), "::", stringify!(domain) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).code) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_GError), "::", stringify!(code) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GError), "::", stringify!(message) ) ); } pub type GErrorInitFunc = ::std::option::Option; pub type GErrorCopyFunc = ::std::option::Option; pub type GErrorClearFunc = ::std::option::Option; extern "C" { pub fn g_error_domain_register_static( error_type_name: *const ::std::os::raw::c_char, error_type_private_size: gsize, error_type_init: GErrorInitFunc, error_type_copy: GErrorCopyFunc, error_type_clear: GErrorClearFunc, ) -> GQuark; } extern "C" { pub fn g_error_domain_register( error_type_name: *const ::std::os::raw::c_char, error_type_private_size: gsize, error_type_init: GErrorInitFunc, error_type_copy: GErrorCopyFunc, error_type_clear: GErrorClearFunc, ) -> GQuark; } extern "C" { pub fn g_error_new(domain: GQuark, code: gint, format: *const gchar, ...) -> *mut GError; } extern "C" { pub fn g_error_new_literal(domain: GQuark, code: gint, message: *const gchar) -> *mut GError; } extern "C" { pub fn g_error_new_valist( domain: GQuark, code: gint, format: *const gchar, args: *mut __va_list_tag, ) -> *mut GError; } extern "C" { pub fn g_error_free(error: *mut GError); } extern "C" { pub fn g_error_copy(error: *const GError) -> *mut GError; } extern "C" { pub fn g_error_matches(error: *const GError, domain: GQuark, code: gint) -> gboolean; } extern "C" { pub fn g_set_error( err: *mut *mut GError, domain: GQuark, code: gint, format: *const gchar, ... ); } extern "C" { pub fn g_set_error_literal( err: *mut *mut GError, domain: GQuark, code: gint, message: *const gchar, ); } extern "C" { pub fn g_propagate_error(dest: *mut *mut GError, src: *mut GError); } extern "C" { pub fn g_clear_error(err: *mut *mut GError); } extern "C" { pub fn g_prefix_error(err: *mut *mut GError, format: *const gchar, ...); } extern "C" { pub fn g_prefix_error_literal(err: *mut *mut GError, prefix: *const gchar); } extern "C" { pub fn g_propagate_prefixed_error( dest: *mut *mut GError, src: *mut GError, format: *const gchar, ... ); } extern "C" { pub fn g_get_user_name() -> *const gchar; } extern "C" { pub fn g_get_real_name() -> *const gchar; } extern "C" { pub fn g_get_home_dir() -> *const gchar; } extern "C" { pub fn g_get_tmp_dir() -> *const gchar; } extern "C" { pub fn g_get_host_name() -> *const gchar; } extern "C" { pub fn g_get_prgname() -> *const gchar; } extern "C" { pub fn g_set_prgname(prgname: *const gchar); } extern "C" { pub fn g_get_application_name() -> *const gchar; } extern "C" { pub fn g_set_application_name(application_name: *const gchar); } extern "C" { pub fn g_get_os_info(key_name: *const gchar) -> *mut gchar; } extern "C" { pub fn g_reload_user_special_dirs_cache(); } extern "C" { pub fn g_get_user_data_dir() -> *const gchar; } extern "C" { pub fn g_get_user_config_dir() -> *const gchar; } extern "C" { pub fn g_get_user_cache_dir() -> *const gchar; } extern "C" { pub fn g_get_user_state_dir() -> *const gchar; } extern "C" { pub fn g_get_system_data_dirs() -> *const *const gchar; } extern "C" { pub fn g_get_system_config_dirs() -> *const *const gchar; } extern "C" { pub fn g_get_user_runtime_dir() -> *const gchar; } pub const GUserDirectory_G_USER_DIRECTORY_DESKTOP: GUserDirectory = 0; pub const GUserDirectory_G_USER_DIRECTORY_DOCUMENTS: GUserDirectory = 1; pub const GUserDirectory_G_USER_DIRECTORY_DOWNLOAD: GUserDirectory = 2; pub const GUserDirectory_G_USER_DIRECTORY_MUSIC: GUserDirectory = 3; pub const GUserDirectory_G_USER_DIRECTORY_PICTURES: GUserDirectory = 4; pub const GUserDirectory_G_USER_DIRECTORY_PUBLIC_SHARE: GUserDirectory = 5; pub const GUserDirectory_G_USER_DIRECTORY_TEMPLATES: GUserDirectory = 6; pub const GUserDirectory_G_USER_DIRECTORY_VIDEOS: GUserDirectory = 7; pub const GUserDirectory_G_USER_N_DIRECTORIES: GUserDirectory = 8; pub type GUserDirectory = ::std::os::raw::c_uint; extern "C" { pub fn g_get_user_special_dir(directory: GUserDirectory) -> *const gchar; } pub type GDebugKey = _GDebugKey; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GDebugKey { pub key: *const gchar, pub value: guint, } #[test] fn bindgen_test_layout__GDebugKey() { const UNINIT: ::std::mem::MaybeUninit<_GDebugKey> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GDebugKey>(), 16usize, concat!("Size of: ", stringify!(_GDebugKey)) ); assert_eq!( ::std::mem::align_of::<_GDebugKey>(), 8usize, concat!("Alignment of ", stringify!(_GDebugKey)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GDebugKey), "::", stringify!(key) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GDebugKey), "::", stringify!(value) ) ); } extern "C" { pub fn g_parse_debug_string( string: *const gchar, keys: *const GDebugKey, nkeys: guint, ) -> guint; } extern "C" { pub fn g_snprintf(string: *mut gchar, n: gulong, format: *const gchar, ...) -> gint; } extern "C" { pub fn g_vsnprintf( string: *mut gchar, n: gulong, format: *const gchar, args: *mut __va_list_tag, ) -> gint; } extern "C" { pub fn g_nullify_pointer(nullify_location: *mut gpointer); } pub const GFormatSizeFlags_G_FORMAT_SIZE_DEFAULT: GFormatSizeFlags = 0; pub const GFormatSizeFlags_G_FORMAT_SIZE_LONG_FORMAT: GFormatSizeFlags = 1; pub const GFormatSizeFlags_G_FORMAT_SIZE_IEC_UNITS: GFormatSizeFlags = 2; pub const GFormatSizeFlags_G_FORMAT_SIZE_BITS: GFormatSizeFlags = 4; pub const GFormatSizeFlags_G_FORMAT_SIZE_ONLY_VALUE: GFormatSizeFlags = 8; pub const GFormatSizeFlags_G_FORMAT_SIZE_ONLY_UNIT: GFormatSizeFlags = 16; pub type GFormatSizeFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_format_size_full(size: guint64, flags: GFormatSizeFlags) -> *mut gchar; } extern "C" { pub fn g_format_size(size: guint64) -> *mut gchar; } extern "C" { pub fn g_format_size_for_display(size: goffset) -> *mut gchar; } pub type GVoidFunc = ::std::option::Option; extern "C" { pub fn g_atexit(func: GVoidFunc); } extern "C" { pub fn g_find_program_in_path(program: *const gchar) -> *mut gchar; } extern "C" { pub fn g_bit_nth_lsf(mask: gulong, nth_bit: gint) -> gint; } extern "C" { pub fn g_bit_nth_msf(mask: gulong, nth_bit: gint) -> gint; } extern "C" { pub fn g_bit_storage(number: gulong) -> guint; } pub type _Float32 = f32; pub type _Float64 = f64; pub type _Float32x = f64; pub type _Float64x = u128; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct div_t { pub quot: ::std::os::raw::c_int, pub rem: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_div_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(div_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(div_t), "::", stringify!(quot) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(div_t), "::", stringify!(rem) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ldiv_t { pub quot: ::std::os::raw::c_long, pub rem: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_ldiv_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(ldiv_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ldiv_t), "::", stringify!(quot) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ldiv_t), "::", stringify!(rem) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct lldiv_t { pub quot: ::std::os::raw::c_longlong, pub rem: ::std::os::raw::c_longlong, } #[test] fn bindgen_test_layout_lldiv_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(lldiv_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(lldiv_t), "::", stringify!(quot) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(lldiv_t), "::", stringify!(rem) ) ); } extern "C" { pub fn __ctype_get_mb_cur_max() -> usize; } extern "C" { pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64; } extern "C" { pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; } extern "C" { pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; } extern "C" { pub fn strtod( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, ) -> f64; } extern "C" { pub fn strtof( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, ) -> f32; } extern "C" { pub fn strtold( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, ) -> u128; } extern "C" { pub fn strtol( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_long; } extern "C" { pub fn strtoul( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_ulong; } extern "C" { pub fn strtoq( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_longlong; } extern "C" { pub fn strtouq( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_ulonglong; } extern "C" { pub fn strtoll( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_longlong; } extern "C" { pub fn strtoull( __nptr: *const ::std::os::raw::c_char, __endptr: *mut *mut ::std::os::raw::c_char, __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_ulonglong; } extern "C" { pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; } pub type u_char = __u_char; pub type u_short = __u_short; pub type u_int = __u_int; pub type u_long = __u_long; pub type quad_t = __quad_t; pub type u_quad_t = __u_quad_t; pub type fsid_t = __fsid_t; pub type loff_t = __loff_t; pub type ino_t = __ino_t; pub type dev_t = __dev_t; pub type gid_t = __gid_t; pub type mode_t = __mode_t; pub type nlink_t = __nlink_t; pub type uid_t = __uid_t; pub type off_t = __off_t; pub type id_t = __id_t; pub type daddr_t = __daddr_t; pub type caddr_t = __caddr_t; pub type key_t = __key_t; pub type ulong = ::std::os::raw::c_ulong; pub type ushort = ::std::os::raw::c_ushort; pub type uint = ::std::os::raw::c_uint; pub type u_int8_t = __uint8_t; pub type u_int16_t = __uint16_t; pub type u_int32_t = __uint32_t; pub type u_int64_t = __uint64_t; pub type register_t = ::std::os::raw::c_long; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __sigset_t { pub __val: [::std::os::raw::c_ulong; 16usize], } #[test] fn bindgen_test_layout___sigset_t() { const UNINIT: ::std::mem::MaybeUninit<__sigset_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sigset_t>(), 128usize, concat!("Size of: ", stringify!(__sigset_t)) ); assert_eq!( ::std::mem::align_of::<__sigset_t>(), 8usize, concat!("Alignment of ", stringify!(__sigset_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__sigset_t), "::", stringify!(__val) ) ); } pub type sigset_t = __sigset_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct timeval { pub tv_sec: __time_t, pub tv_usec: __suseconds_t, } #[test] fn bindgen_test_layout_timeval() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(timeval)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(timeval)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(timeval), "::", stringify!(tv_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(timeval), "::", stringify!(tv_usec) ) ); } pub type suseconds_t = __suseconds_t; pub type __fd_mask = ::std::os::raw::c_long; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct fd_set { pub __fds_bits: [__fd_mask; 16usize], } #[test] fn bindgen_test_layout_fd_set() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, concat!("Size of: ", stringify!(fd_set)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(fd_set)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(fd_set), "::", stringify!(__fds_bits) ) ); } pub type fd_mask = __fd_mask; extern "C" { pub fn select( __nfds: ::std::os::raw::c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *mut timeval, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pselect( __nfds: ::std::os::raw::c_int, __readfds: *mut fd_set, __writefds: *mut fd_set, __exceptfds: *mut fd_set, __timeout: *const timespec, __sigmask: *const __sigset_t, ) -> ::std::os::raw::c_int; } pub type blksize_t = __blksize_t; pub type blkcnt_t = __blkcnt_t; pub type fsblkcnt_t = __fsblkcnt_t; pub type fsfilcnt_t = __fsfilcnt_t; #[repr(C)] #[derive(Copy, Clone)] pub union __atomic_wide_counter { pub __value64: ::std::os::raw::c_ulonglong, pub __value32: __atomic_wide_counter__bindgen_ty_1, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low: ::std::os::raw::c_uint, pub __high: ::std::os::raw::c_uint, } #[test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__atomic_wide_counter__bindgen_ty_1>(), 8usize, concat!("Size of: ", stringify!(__atomic_wide_counter__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<__atomic_wide_counter__bindgen_ty_1>(), 4usize, concat!( "Alignment of ", stringify!(__atomic_wide_counter__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__atomic_wide_counter__bindgen_ty_1), "::", stringify!(__low) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(__atomic_wide_counter__bindgen_ty_1), "::", stringify!(__high) ) ); } #[test] fn bindgen_test_layout___atomic_wide_counter() { const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__atomic_wide_counter>(), 8usize, concat!("Size of: ", stringify!(__atomic_wide_counter)) ); assert_eq!( ::std::mem::align_of::<__atomic_wide_counter>(), 8usize, concat!("Alignment of ", stringify!(__atomic_wide_counter)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__value64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__atomic_wide_counter), "::", stringify!(__value64) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__value32) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__atomic_wide_counter), "::", stringify!(__value32) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_internal_list { pub __prev: *mut __pthread_internal_list, pub __next: *mut __pthread_internal_list, } #[test] fn bindgen_test_layout___pthread_internal_list() { const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_list> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_internal_list>(), 16usize, concat!("Size of: ", stringify!(__pthread_internal_list)) ); assert_eq!( ::std::mem::align_of::<__pthread_internal_list>(), 8usize, concat!("Alignment of ", stringify!(__pthread_internal_list)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_internal_list), "::", stringify!(__prev) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__pthread_internal_list), "::", stringify!(__next) ) ); } pub type __pthread_list_t = __pthread_internal_list; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_internal_slist { pub __next: *mut __pthread_internal_slist, } #[test] fn bindgen_test_layout___pthread_internal_slist() { const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_slist> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_internal_slist>(), 8usize, concat!("Size of: ", stringify!(__pthread_internal_slist)) ); assert_eq!( ::std::mem::align_of::<__pthread_internal_slist>(), 8usize, concat!("Alignment of ", stringify!(__pthread_internal_slist)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_internal_slist), "::", stringify!(__next) ) ); } pub type __pthread_slist_t = __pthread_internal_slist; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_mutex_s { pub __lock: ::std::os::raw::c_int, pub __count: ::std::os::raw::c_uint, pub __owner: ::std::os::raw::c_int, pub __nusers: ::std::os::raw::c_uint, pub __kind: ::std::os::raw::c_int, pub __spins: ::std::os::raw::c_short, pub __elision: ::std::os::raw::c_short, pub __list: __pthread_list_t, } #[test] fn bindgen_test_layout___pthread_mutex_s() { const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_mutex_s>(), 40usize, concat!("Size of: ", stringify!(__pthread_mutex_s)) ); assert_eq!( ::std::mem::align_of::<__pthread_mutex_s>(), 8usize, concat!("Alignment of ", stringify!(__pthread_mutex_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__lock) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__owner) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__nusers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__kind) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__spins) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__spins) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__elision) as usize - ptr as usize }, 22usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__elision) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__list) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(__pthread_mutex_s), "::", stringify!(__list) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_rwlock_arch_t { pub __readers: ::std::os::raw::c_uint, pub __writers: ::std::os::raw::c_uint, pub __wrphase_futex: ::std::os::raw::c_uint, pub __writers_futex: ::std::os::raw::c_uint, pub __pad3: ::std::os::raw::c_uint, pub __pad4: ::std::os::raw::c_uint, pub __cur_writer: ::std::os::raw::c_int, pub __shared: ::std::os::raw::c_int, pub __rwelision: ::std::os::raw::c_schar, pub __pad1: [::std::os::raw::c_uchar; 7usize], pub __pad2: ::std::os::raw::c_ulong, pub __flags: ::std::os::raw::c_uint, } #[test] fn bindgen_test_layout___pthread_rwlock_arch_t() { const UNINIT: ::std::mem::MaybeUninit<__pthread_rwlock_arch_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_rwlock_arch_t>(), 56usize, concat!("Size of: ", stringify!(__pthread_rwlock_arch_t)) ); assert_eq!( ::std::mem::align_of::<__pthread_rwlock_arch_t>(), 8usize, concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__readers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__writers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__wrphase_futex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__writers_futex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad4) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__cur_writer) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__shared) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__rwelision) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__rwelision) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad1) as usize - ptr as usize }, 33usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__pad2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(__pthread_rwlock_arch_t), "::", stringify!(__flags) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct __pthread_cond_s { pub __wseq: __atomic_wide_counter, pub __g1_start: __atomic_wide_counter, pub __g_refs: [::std::os::raw::c_uint; 2usize], pub __g_size: [::std::os::raw::c_uint; 2usize], pub __g1_orig_size: ::std::os::raw::c_uint, pub __wrefs: ::std::os::raw::c_uint, pub __g_signals: [::std::os::raw::c_uint; 2usize], } #[test] fn bindgen_test_layout___pthread_cond_s() { const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_cond_s>(), 48usize, concat!("Size of: ", stringify!(__pthread_cond_s)) ); assert_eq!( ::std::mem::align_of::<__pthread_cond_s>(), 8usize, concat!("Alignment of ", stringify!(__pthread_cond_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__wseq) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g1_start) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__g_refs) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_refs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__g_size) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__g1_orig_size) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g1_orig_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__wrefs) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__wrefs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__g_signals) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(__pthread_cond_s), "::", stringify!(__g_signals) ) ); } pub type __tss_t = ::std::os::raw::c_uint; pub type __thrd_t = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __once_flag { pub __data: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout___once_flag() { const UNINIT: ::std::mem::MaybeUninit<__once_flag> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__once_flag>(), 4usize, concat!("Size of: ", stringify!(__once_flag)) ); assert_eq!( ::std::mem::align_of::<__once_flag>(), 4usize, concat!("Alignment of ", stringify!(__once_flag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__once_flag), "::", stringify!(__data) ) ); } pub type pthread_t = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_mutexattr_t { pub __size: [::std::os::raw::c_char; 4usize], pub __align: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_pthread_mutexattr_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(pthread_mutexattr_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(pthread_mutexattr_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_mutexattr_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_mutexattr_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_condattr_t { pub __size: [::std::os::raw::c_char; 4usize], pub __align: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_pthread_condattr_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(pthread_condattr_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(pthread_condattr_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_condattr_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_condattr_t), "::", stringify!(__align) ) ); } pub type pthread_key_t = ::std::os::raw::c_uint; pub type pthread_once_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_attr_t { pub __size: [::std::os::raw::c_char; 56usize], pub __align: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_pthread_attr_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, concat!("Size of: ", stringify!(pthread_attr_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_attr_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_attr_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_attr_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_mutex_t { pub __data: __pthread_mutex_s, pub __size: [::std::os::raw::c_char; 40usize], pub __align: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_pthread_mutex_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(pthread_mutex_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_mutex_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_mutex_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_cond_t { pub __data: __pthread_cond_s, pub __size: [::std::os::raw::c_char; 48usize], pub __align: ::std::os::raw::c_longlong, } #[test] fn bindgen_test_layout_pthread_cond_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(pthread_cond_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_cond_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_cond_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_rwlock_t { pub __data: __pthread_rwlock_arch_t, pub __size: [::std::os::raw::c_char; 56usize], pub __align: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_pthread_rwlock_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, concat!("Size of: ", stringify!(pthread_rwlock_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_rwlock_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_rwlock_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_rwlockattr_t { pub __size: [::std::os::raw::c_char; 8usize], pub __align: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_pthread_rwlockattr_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(pthread_rwlockattr_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_rwlockattr_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_rwlockattr_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_rwlockattr_t), "::", stringify!(__align) ) ); } pub type pthread_spinlock_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union pthread_barrier_t { pub __size: [::std::os::raw::c_char; 32usize], pub __align: ::std::os::raw::c_long, } #[test] fn bindgen_test_layout_pthread_barrier_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(pthread_barrier_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(pthread_barrier_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_barrier_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_barrier_t), "::", stringify!(__align) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union pthread_barrierattr_t { pub __size: [::std::os::raw::c_char; 4usize], pub __align: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_pthread_barrierattr_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(pthread_barrierattr_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(pthread_barrierattr_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_barrierattr_t), "::", stringify!(__size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(pthread_barrierattr_t), "::", stringify!(__align) ) ); } extern "C" { pub fn random() -> ::std::os::raw::c_long; } extern "C" { pub fn srandom(__seed: ::std::os::raw::c_uint); } extern "C" { pub fn initstate( __seed: ::std::os::raw::c_uint, __statebuf: *mut ::std::os::raw::c_char, __statelen: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct random_data { pub fptr: *mut i32, pub rptr: *mut i32, pub state: *mut i32, pub rand_type: ::std::os::raw::c_int, pub rand_deg: ::std::os::raw::c_int, pub rand_sep: ::std::os::raw::c_int, pub end_ptr: *mut i32, } #[test] fn bindgen_test_layout_random_data() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(random_data)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(random_data)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(fptr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(rptr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(state) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rand_type) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(rand_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rand_deg) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(rand_deg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rand_sep) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(rand_sep) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).end_ptr) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(random_data), "::", stringify!(end_ptr) ) ); } extern "C" { pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int; } extern "C" { pub fn srandom_r( __seed: ::std::os::raw::c_uint, __buf: *mut random_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn initstate_r( __seed: ::std::os::raw::c_uint, __statebuf: *mut ::std::os::raw::c_char, __statelen: usize, __buf: *mut random_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn setstate_r( __statebuf: *mut ::std::os::raw::c_char, __buf: *mut random_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn rand() -> ::std::os::raw::c_int; } extern "C" { pub fn srand(__seed: ::std::os::raw::c_uint); } extern "C" { pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } extern "C" { pub fn drand48() -> f64; } extern "C" { pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64; } extern "C" { pub fn lrand48() -> ::std::os::raw::c_long; } extern "C" { pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } extern "C" { pub fn mrand48() -> ::std::os::raw::c_long; } extern "C" { pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } extern "C" { pub fn srand48(__seedval: ::std::os::raw::c_long); } extern "C" { pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort; } extern "C" { pub fn lcong48(__param: *mut ::std::os::raw::c_ushort); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct drand48_data { pub __x: [::std::os::raw::c_ushort; 3usize], pub __old_x: [::std::os::raw::c_ushort; 3usize], pub __c: ::std::os::raw::c_ushort, pub __init: ::std::os::raw::c_ushort, pub __a: ::std::os::raw::c_ulonglong, } #[test] fn bindgen_test_layout_drand48_data() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(drand48_data)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(drand48_data)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(drand48_data), "::", stringify!(__x) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__old_x) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(drand48_data), "::", stringify!(__old_x) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__c) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(drand48_data), "::", stringify!(__c) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__init) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(drand48_data), "::", stringify!(__init) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__a) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(drand48_data), "::", stringify!(__a) ) ); } extern "C" { pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int; } extern "C" { pub fn erand48_r( __xsubi: *mut ::std::os::raw::c_ushort, __buffer: *mut drand48_data, __result: *mut f64, ) -> ::std::os::raw::c_int; } extern "C" { pub fn lrand48_r( __buffer: *mut drand48_data, __result: *mut ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { pub fn nrand48_r( __xsubi: *mut ::std::os::raw::c_ushort, __buffer: *mut drand48_data, __result: *mut ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { pub fn mrand48_r( __buffer: *mut drand48_data, __result: *mut ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { pub fn jrand48_r( __xsubi: *mut ::std::os::raw::c_ushort, __buffer: *mut drand48_data, __result: *mut ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { pub fn srand48_r( __seedval: ::std::os::raw::c_long, __buffer: *mut drand48_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn seed48_r( __seed16v: *mut ::std::os::raw::c_ushort, __buffer: *mut drand48_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn lcong48_r( __param: *mut ::std::os::raw::c_ushort, __buffer: *mut drand48_data, ) -> ::std::os::raw::c_int; } extern "C" { pub fn arc4random() -> __uint32_t; } extern "C" { pub fn arc4random_buf(__buf: *mut ::std::os::raw::c_void, __size: usize); } extern "C" { pub fn arc4random_uniform(__upper_bound: __uint32_t) -> __uint32_t; } extern "C" { pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn calloc( __nmemb: ::std::os::raw::c_ulong, __size: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn realloc( __ptr: *mut ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn free(__ptr: *mut ::std::os::raw::c_void); } extern "C" { pub fn reallocarray( __ptr: *mut ::std::os::raw::c_void, __nmemb: usize, __size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn posix_memalign( __memptr: *mut *mut ::std::os::raw::c_void, __alignment: usize, __size: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn aligned_alloc( __alignment: ::std::os::raw::c_ulong, __size: ::std::os::raw::c_ulong, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn abort() -> !; } extern "C" { pub fn atexit(__func: ::std::option::Option) -> ::std::os::raw::c_int; } extern "C" { pub fn at_quick_exit( __func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { pub fn on_exit( __func: ::std::option::Option< unsafe extern "C" fn( __status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void, ), >, __arg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn quick_exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn _Exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn setenv( __name: *const ::std::os::raw::c_char, __value: *const ::std::os::raw::c_char, __replace: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn clearenv() -> ::std::os::raw::c_int; } extern "C" { pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn mkstemps( __template: *mut ::std::os::raw::c_char, __suffixlen: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn realpath( __name: *const ::std::os::raw::c_char, __resolved: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } pub type __compar_fn_t = ::std::option::Option< unsafe extern "C" fn( arg1: *const ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { pub fn bsearch( __key: *const ::std::os::raw::c_void, __base: *const ::std::os::raw::c_void, __nmemb: usize, __size: usize, __compar: __compar_fn_t, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn qsort( __base: *mut ::std::os::raw::c_void, __nmemb: usize, __size: usize, __compar: __compar_fn_t, ); } extern "C" { pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; } extern "C" { pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t; } extern "C" { pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t; } extern "C" { pub fn lldiv( __numer: ::std::os::raw::c_longlong, __denom: ::std::os::raw::c_longlong, ) -> lldiv_t; } extern "C" { pub fn ecvt( __value: f64, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn fcvt( __value: f64, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn gcvt( __value: f64, __ndigit: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn qecvt( __value: u128, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn qfcvt( __value: u128, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn qgcvt( __value: u128, __ndigit: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn ecvt_r( __value: f64, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __len: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn fcvt_r( __value: f64, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __len: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn qecvt_r( __value: u128, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __len: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn qfcvt_r( __value: u128, __ndigit: ::std::os::raw::c_int, __decpt: *mut ::std::os::raw::c_int, __sign: *mut ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __len: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int; } extern "C" { pub fn mbtowc( __pwc: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int; } extern "C" { pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize; } extern "C" { pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize; } extern "C" { pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn getsubopt( __optionp: *mut *mut ::std::os::raw::c_char, __tokens: *const *mut ::std::os::raw::c_char, __valuep: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn g_thread_error_quark() -> GQuark; } pub const GThreadError_G_THREAD_ERROR_AGAIN: GThreadError = 0; pub type GThreadError = ::std::os::raw::c_uint; pub type GThreadFunc = ::std::option::Option gpointer>; pub type GThread = _GThread; pub type GMutex = _GMutex; pub type GRecMutex = _GRecMutex; pub type GRWLock = _GRWLock; pub type GCond = _GCond; pub type GPrivate = _GPrivate; pub type GOnce = _GOnce; #[repr(C)] #[derive(Copy, Clone)] pub union _GMutex { pub p: gpointer, pub i: [guint; 2usize], } #[test] fn bindgen_test_layout__GMutex() { const UNINIT: ::std::mem::MaybeUninit<_GMutex> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GMutex>(), 8usize, concat!("Size of: ", stringify!(_GMutex)) ); assert_eq!( ::std::mem::align_of::<_GMutex>(), 8usize, concat!("Alignment of ", stringify!(_GMutex)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GMutex), "::", stringify!(p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GMutex), "::", stringify!(i) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GRWLock { pub p: gpointer, pub i: [guint; 2usize], } #[test] fn bindgen_test_layout__GRWLock() { const UNINIT: ::std::mem::MaybeUninit<_GRWLock> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GRWLock>(), 16usize, concat!("Size of: ", stringify!(_GRWLock)) ); assert_eq!( ::std::mem::align_of::<_GRWLock>(), 8usize, concat!("Alignment of ", stringify!(_GRWLock)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GRWLock), "::", stringify!(p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GRWLock), "::", stringify!(i) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GCond { pub p: gpointer, pub i: [guint; 2usize], } #[test] fn bindgen_test_layout__GCond() { const UNINIT: ::std::mem::MaybeUninit<_GCond> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GCond>(), 16usize, concat!("Size of: ", stringify!(_GCond)) ); assert_eq!( ::std::mem::align_of::<_GCond>(), 8usize, concat!("Alignment of ", stringify!(_GCond)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, 0usize, concat!("Offset of field: ", stringify!(_GCond), "::", stringify!(p)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize }, 8usize, concat!("Offset of field: ", stringify!(_GCond), "::", stringify!(i)) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GRecMutex { pub p: gpointer, pub i: [guint; 2usize], } #[test] fn bindgen_test_layout__GRecMutex() { const UNINIT: ::std::mem::MaybeUninit<_GRecMutex> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GRecMutex>(), 16usize, concat!("Size of: ", stringify!(_GRecMutex)) ); assert_eq!( ::std::mem::align_of::<_GRecMutex>(), 8usize, concat!("Alignment of ", stringify!(_GRecMutex)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GRecMutex), "::", stringify!(p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GRecMutex), "::", stringify!(i) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GPrivate { pub p: gpointer, pub notify: GDestroyNotify, pub future: [gpointer; 2usize], } #[test] fn bindgen_test_layout__GPrivate() { const UNINIT: ::std::mem::MaybeUninit<_GPrivate> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GPrivate>(), 32usize, concat!("Size of: ", stringify!(_GPrivate)) ); assert_eq!( ::std::mem::align_of::<_GPrivate>(), 8usize, concat!("Alignment of ", stringify!(_GPrivate)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GPrivate), "::", stringify!(p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).notify) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GPrivate), "::", stringify!(notify) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).future) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GPrivate), "::", stringify!(future) ) ); } pub const GOnceStatus_G_ONCE_STATUS_NOTCALLED: GOnceStatus = 0; pub const GOnceStatus_G_ONCE_STATUS_PROGRESS: GOnceStatus = 1; pub const GOnceStatus_G_ONCE_STATUS_READY: GOnceStatus = 2; pub type GOnceStatus = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GOnce { pub status: GOnceStatus, pub retval: gpointer, } #[test] fn bindgen_test_layout__GOnce() { const UNINIT: ::std::mem::MaybeUninit<_GOnce> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GOnce>(), 16usize, concat!("Size of: ", stringify!(_GOnce)) ); assert_eq!( ::std::mem::align_of::<_GOnce>(), 8usize, concat!("Alignment of ", stringify!(_GOnce)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GOnce), "::", stringify!(status) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).retval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GOnce), "::", stringify!(retval) ) ); } extern "C" { pub fn g_thread_ref(thread: *mut GThread) -> *mut GThread; } extern "C" { pub fn g_thread_unref(thread: *mut GThread); } extern "C" { pub fn g_thread_new(name: *const gchar, func: GThreadFunc, data: gpointer) -> *mut GThread; } extern "C" { pub fn g_thread_try_new( name: *const gchar, func: GThreadFunc, data: gpointer, error: *mut *mut GError, ) -> *mut GThread; } extern "C" { pub fn g_thread_self() -> *mut GThread; } extern "C" { pub fn g_thread_exit(retval: gpointer); } extern "C" { pub fn g_thread_join(thread: *mut GThread) -> gpointer; } extern "C" { pub fn g_thread_yield(); } extern "C" { pub fn g_mutex_init(mutex: *mut GMutex); } extern "C" { pub fn g_mutex_clear(mutex: *mut GMutex); } extern "C" { pub fn g_mutex_lock(mutex: *mut GMutex); } extern "C" { pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean; } extern "C" { pub fn g_mutex_unlock(mutex: *mut GMutex); } extern "C" { pub fn g_rw_lock_init(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rw_lock_clear(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rw_lock_writer_lock(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rw_lock_writer_trylock(rw_lock: *mut GRWLock) -> gboolean; } extern "C" { pub fn g_rw_lock_writer_unlock(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rw_lock_reader_lock(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rw_lock_reader_trylock(rw_lock: *mut GRWLock) -> gboolean; } extern "C" { pub fn g_rw_lock_reader_unlock(rw_lock: *mut GRWLock); } extern "C" { pub fn g_rec_mutex_init(rec_mutex: *mut GRecMutex); } extern "C" { pub fn g_rec_mutex_clear(rec_mutex: *mut GRecMutex); } extern "C" { pub fn g_rec_mutex_lock(rec_mutex: *mut GRecMutex); } extern "C" { pub fn g_rec_mutex_trylock(rec_mutex: *mut GRecMutex) -> gboolean; } extern "C" { pub fn g_rec_mutex_unlock(rec_mutex: *mut GRecMutex); } extern "C" { pub fn g_cond_init(cond: *mut GCond); } extern "C" { pub fn g_cond_clear(cond: *mut GCond); } extern "C" { pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex); } extern "C" { pub fn g_cond_signal(cond: *mut GCond); } extern "C" { pub fn g_cond_broadcast(cond: *mut GCond); } extern "C" { pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: gint64) -> gboolean; } extern "C" { pub fn g_private_get(key: *mut GPrivate) -> gpointer; } extern "C" { pub fn g_private_set(key: *mut GPrivate, value: gpointer); } extern "C" { pub fn g_private_replace(key: *mut GPrivate, value: gpointer); } extern "C" { pub fn g_once_impl(once: *mut GOnce, func: GThreadFunc, arg: gpointer) -> gpointer; } extern "C" { pub fn g_once_init_enter(location: *mut ::std::os::raw::c_void) -> gboolean; } extern "C" { pub fn g_once_init_leave(location: *mut ::std::os::raw::c_void, result: gsize); } extern "C" { pub fn g_get_num_processors() -> guint; } pub type GMutexLocker = ::std::os::raw::c_void; pub type GRecMutexLocker = ::std::os::raw::c_void; pub type GRWLockWriterLocker = ::std::os::raw::c_void; pub type GRWLockReaderLocker = ::std::os::raw::c_void; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GAsyncQueue { _unused: [u8; 0], } pub type GAsyncQueue = _GAsyncQueue; extern "C" { pub fn g_async_queue_new() -> *mut GAsyncQueue; } extern "C" { pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue; } extern "C" { pub fn g_async_queue_lock(queue: *mut GAsyncQueue); } extern "C" { pub fn g_async_queue_unlock(queue: *mut GAsyncQueue); } extern "C" { pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue; } extern "C" { pub fn g_async_queue_unref(queue: *mut GAsyncQueue); } extern "C" { pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue); } extern "C" { pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue); } extern "C" { pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer); } extern "C" { pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer); } extern "C" { pub fn g_async_queue_push_sorted( queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_async_queue_push_sorted_unlocked( queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer; } extern "C" { pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; } extern "C" { pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer; } extern "C" { pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; } extern "C" { pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: guint64) -> gpointer; } extern "C" { pub fn g_async_queue_timeout_pop_unlocked( queue: *mut GAsyncQueue, timeout: guint64, ) -> gpointer; } extern "C" { pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> gint; } extern "C" { pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> gint; } extern "C" { pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer); } extern "C" { pub fn g_async_queue_sort_unlocked( queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; } extern "C" { pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; } extern "C" { pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer); } extern "C" { pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer); } extern "C" { pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer; } extern "C" { pub fn g_async_queue_timed_pop_unlocked( queue: *mut GAsyncQueue, end_time: *mut GTimeVal, ) -> gpointer; } pub type sig_atomic_t = __sig_atomic_t; #[repr(C)] #[derive(Copy, Clone)] pub union sigval { pub sival_int: ::std::os::raw::c_int, pub sival_ptr: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_sigval() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(sigval)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigval)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigval), "::", stringify!(sival_int) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigval), "::", stringify!(sival_ptr) ) ); } pub type __sigval_t = sigval; #[repr(C)] #[derive(Copy, Clone)] pub struct siginfo_t { pub si_signo: ::std::os::raw::c_int, pub si_errno: ::std::os::raw::c_int, pub si_code: ::std::os::raw::c_int, pub __pad0: ::std::os::raw::c_int, pub _sifields: siginfo_t__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union siginfo_t__bindgen_ty_1 { pub _pad: [::std::os::raw::c_int; 28usize], pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { pub si_pid: __pid_t, pub si_uid: __uid_t, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1), "::", stringify!(si_pid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_1), "::", stringify!(si_uid) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { pub si_tid: ::std::os::raw::c_int, pub si_overrun: ::std::os::raw::c_int, pub si_sigval: __sigval_t, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_2() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2), "::", stringify!(si_tid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_overrun) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2), "::", stringify!(si_overrun) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_2), "::", stringify!(si_sigval) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { pub si_pid: __pid_t, pub si_uid: __uid_t, pub si_sigval: __sigval_t, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_3() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3), "::", stringify!(si_pid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3), "::", stringify!(si_uid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_3), "::", stringify!(si_sigval) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { pub si_pid: __pid_t, pub si_uid: __uid_t, pub si_status: ::std::os::raw::c_int, pub si_utime: __clock_t, pub si_stime: __clock_t, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_4() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4), "::", stringify!(si_pid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4), "::", stringify!(si_uid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_status) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4), "::", stringify!(si_status) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_utime) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4), "::", stringify!(si_utime) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_stime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_4), "::", stringify!(si_stime) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { pub si_addr: *mut ::std::os::raw::c_void, pub si_addr_lsb: ::std::os::raw::c_short, pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, pub _pkey: __uint32_t, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { pub _lower: *mut ::std::os::raw::c_void, pub _upper: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit< siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, > = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._lower) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1), "::", stringify!(_lower) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._upper) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1), "::", stringify!(_upper) ) ); } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._addr_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1), "::", stringify!(_addr_bnd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1), "::", stringify!(_pkey) ) ); } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_5() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5), "::", stringify!(si_addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_addr_lsb) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5), "::", stringify!(si_addr_lsb) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._bounds) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_5), "::", stringify!(_bounds) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { pub si_band: ::std::os::raw::c_long, pub si_fd: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_6() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_band) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6), "::", stringify!(si_band) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_fd) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_6), "::", stringify!(si_fd) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { pub _call_addr: *mut ::std::os::raw::c_void, pub _syscall: ::std::os::raw::c_int, pub _arch: ::std::os::raw::c_uint, } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1__bindgen_ty_7() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._call_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7), "::", stringify!(_call_addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._syscall) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7), "::", stringify!(_syscall) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._arch) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1__bindgen_ty_7), "::", stringify!(_arch) ) ); } #[test] fn bindgen_test_layout_siginfo_t__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 112usize, concat!("Size of: ", stringify!(siginfo_t__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(siginfo_t__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_pad) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._kill) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_kill) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._timer) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_timer) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._rt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_rt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigchld) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_sigchld) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigfault) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_sigfault) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigpoll) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_sigpoll) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t__bindgen_ty_1), "::", stringify!(_sigsys) ) ); } #[test] fn bindgen_test_layout_siginfo_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, concat!("Size of: ", stringify!(siginfo_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(siginfo_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_signo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_errno) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(siginfo_t), "::", stringify!(si_code) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(siginfo_t), "::", stringify!(__pad0) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sifields) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(siginfo_t), "::", stringify!(_sifields) ) ); } pub const SI_ASYNCNL: _bindgen_ty_1 = -60; pub const SI_DETHREAD: _bindgen_ty_1 = -7; pub const SI_TKILL: _bindgen_ty_1 = -6; pub const SI_SIGIO: _bindgen_ty_1 = -5; pub const SI_ASYNCIO: _bindgen_ty_1 = -4; pub const SI_MESGQ: _bindgen_ty_1 = -3; pub const SI_TIMER: _bindgen_ty_1 = -2; pub const SI_QUEUE: _bindgen_ty_1 = -1; pub const SI_USER: _bindgen_ty_1 = 0; pub const SI_KERNEL: _bindgen_ty_1 = 128; pub type _bindgen_ty_1 = ::std::os::raw::c_int; pub const ILL_ILLOPC: _bindgen_ty_2 = 1; pub const ILL_ILLOPN: _bindgen_ty_2 = 2; pub const ILL_ILLADR: _bindgen_ty_2 = 3; pub const ILL_ILLTRP: _bindgen_ty_2 = 4; pub const ILL_PRVOPC: _bindgen_ty_2 = 5; pub const ILL_PRVREG: _bindgen_ty_2 = 6; pub const ILL_COPROC: _bindgen_ty_2 = 7; pub const ILL_BADSTK: _bindgen_ty_2 = 8; pub const ILL_BADIADDR: _bindgen_ty_2 = 9; pub type _bindgen_ty_2 = ::std::os::raw::c_uint; pub const FPE_INTDIV: _bindgen_ty_3 = 1; pub const FPE_INTOVF: _bindgen_ty_3 = 2; pub const FPE_FLTDIV: _bindgen_ty_3 = 3; pub const FPE_FLTOVF: _bindgen_ty_3 = 4; pub const FPE_FLTUND: _bindgen_ty_3 = 5; pub const FPE_FLTRES: _bindgen_ty_3 = 6; pub const FPE_FLTINV: _bindgen_ty_3 = 7; pub const FPE_FLTSUB: _bindgen_ty_3 = 8; pub const FPE_FLTUNK: _bindgen_ty_3 = 14; pub const FPE_CONDTRAP: _bindgen_ty_3 = 15; pub type _bindgen_ty_3 = ::std::os::raw::c_uint; pub const SEGV_MAPERR: _bindgen_ty_4 = 1; pub const SEGV_ACCERR: _bindgen_ty_4 = 2; pub const SEGV_BNDERR: _bindgen_ty_4 = 3; pub const SEGV_PKUERR: _bindgen_ty_4 = 4; pub const SEGV_ACCADI: _bindgen_ty_4 = 5; pub const SEGV_ADIDERR: _bindgen_ty_4 = 6; pub const SEGV_ADIPERR: _bindgen_ty_4 = 7; pub const SEGV_MTEAERR: _bindgen_ty_4 = 8; pub const SEGV_MTESERR: _bindgen_ty_4 = 9; pub type _bindgen_ty_4 = ::std::os::raw::c_uint; pub const BUS_ADRALN: _bindgen_ty_5 = 1; pub const BUS_ADRERR: _bindgen_ty_5 = 2; pub const BUS_OBJERR: _bindgen_ty_5 = 3; pub const BUS_MCEERR_AR: _bindgen_ty_5 = 4; pub const BUS_MCEERR_AO: _bindgen_ty_5 = 5; pub type _bindgen_ty_5 = ::std::os::raw::c_uint; pub const CLD_EXITED: _bindgen_ty_6 = 1; pub const CLD_KILLED: _bindgen_ty_6 = 2; pub const CLD_DUMPED: _bindgen_ty_6 = 3; pub const CLD_TRAPPED: _bindgen_ty_6 = 4; pub const CLD_STOPPED: _bindgen_ty_6 = 5; pub const CLD_CONTINUED: _bindgen_ty_6 = 6; pub type _bindgen_ty_6 = ::std::os::raw::c_uint; pub const POLL_IN: _bindgen_ty_7 = 1; pub const POLL_OUT: _bindgen_ty_7 = 2; pub const POLL_MSG: _bindgen_ty_7 = 3; pub const POLL_ERR: _bindgen_ty_7 = 4; pub const POLL_PRI: _bindgen_ty_7 = 5; pub const POLL_HUP: _bindgen_ty_7 = 6; pub type _bindgen_ty_7 = ::std::os::raw::c_uint; pub type sigval_t = __sigval_t; #[repr(C)] #[derive(Copy, Clone)] pub struct sigevent { pub sigev_value: __sigval_t, pub sigev_signo: ::std::os::raw::c_int, pub sigev_notify: ::std::os::raw::c_int, pub _sigev_un: sigevent__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union sigevent__bindgen_ty_1 { pub _pad: [::std::os::raw::c_int; 12usize], pub _tid: __pid_t, pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { pub _function: ::std::option::Option, pub _attribute: *mut pthread_attr_t, } #[test] fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._function) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1), "::", stringify!(_function) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._attribute) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(sigevent__bindgen_ty_1__bindgen_ty_1), "::", stringify!(_attribute) ) ); } #[test] fn bindgen_test_layout_sigevent__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigevent__bindgen_ty_1), "::", stringify!(_pad) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigevent__bindgen_ty_1), "::", stringify!(_tid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigev_thread) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigevent__bindgen_ty_1), "::", stringify!(_sigev_thread) ) ); } #[test] fn bindgen_test_layout_sigevent() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, concat!("Size of: ", stringify!(sigevent)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigevent)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_signo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(sigevent), "::", stringify!(sigev_notify) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._sigev_un) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(sigevent), "::", stringify!(_sigev_un) ) ); } pub type sigevent_t = sigevent; pub const SIGEV_SIGNAL: _bindgen_ty_8 = 0; pub const SIGEV_NONE: _bindgen_ty_8 = 1; pub const SIGEV_THREAD: _bindgen_ty_8 = 2; pub const SIGEV_THREAD_ID: _bindgen_ty_8 = 4; pub type _bindgen_ty_8 = ::std::os::raw::c_uint; pub type __sighandler_t = ::std::option::Option; extern "C" { pub fn __sysv_signal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t) -> __sighandler_t; } extern "C" { pub fn signal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t) -> __sighandler_t; } extern "C" { pub fn kill(__pid: __pid_t, __sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn killpg(__pgrp: __pid_t, __sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn raise(__sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn ssignal(__sig: ::std::os::raw::c_int, __handler: __sighandler_t) -> __sighandler_t; } extern "C" { pub fn gsignal(__sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn psignal(__sig: ::std::os::raw::c_int, __s: *const ::std::os::raw::c_char); } extern "C" { pub fn psiginfo(__pinfo: *const siginfo_t, __s: *const ::std::os::raw::c_char); } extern "C" { pub fn sigblock(__mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn sigsetmask(__mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn siggetmask() -> ::std::os::raw::c_int; } pub type sig_t = __sighandler_t; extern "C" { pub fn sigemptyset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sigfillset(__set: *mut sigset_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sigaddset(__set: *mut sigset_t, __signo: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn sigdelset(__set: *mut sigset_t, __signo: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn sigismember( __set: *const sigset_t, __signo: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Copy, Clone)] pub struct sigaction { pub __sigaction_handler: sigaction__bindgen_ty_1, pub sa_mask: __sigset_t, pub sa_flags: ::std::os::raw::c_int, pub sa_restorer: ::std::option::Option, } #[repr(C)] #[derive(Copy, Clone)] pub union sigaction__bindgen_ty_1 { pub sa_handler: __sighandler_t, pub sa_sigaction: ::std::option::Option< unsafe extern "C" fn( arg1: ::std::os::raw::c_int, arg2: *mut siginfo_t, arg3: *mut ::std::os::raw::c_void, ), >, } #[test] fn bindgen_test_layout_sigaction__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigaction__bindgen_ty_1), "::", stringify!(sa_handler) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigaction__bindgen_ty_1), "::", stringify!(sa_sigaction) ) ); } #[test] fn bindgen_test_layout_sigaction() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 152usize, concat!("Size of: ", stringify!(sigaction)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__sigaction_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigaction), "::", stringify!(__sigaction_handler) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(sigaction), "::", stringify!(sa_mask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(sigaction), "::", stringify!(sa_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(sigaction), "::", stringify!(sa_restorer) ) ); } extern "C" { pub fn sigprocmask( __how: ::std::os::raw::c_int, __set: *const sigset_t, __oset: *mut sigset_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn sigsuspend(__set: *const sigset_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sigaction( __sig: ::std::os::raw::c_int, __act: *const sigaction, __oact: *mut sigaction, ) -> ::std::os::raw::c_int; } extern "C" { pub fn sigpending(__set: *mut sigset_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sigwait( __set: *const sigset_t, __sig: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn sigwaitinfo(__set: *const sigset_t, __info: *mut siginfo_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sigtimedwait( __set: *const sigset_t, __info: *mut siginfo_t, __timeout: *const timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn sigqueue( __pid: __pid_t, __sig: ::std::os::raw::c_int, __val: sigval, ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _fpx_sw_bytes { pub magic1: __uint32_t, pub extended_size: __uint32_t, pub xstate_bv: __uint64_t, pub xstate_size: __uint32_t, pub __glibc_reserved1: [__uint32_t; 7usize], } #[test] fn bindgen_test_layout__fpx_sw_bytes() { const UNINIT: ::std::mem::MaybeUninit<_fpx_sw_bytes> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpx_sw_bytes>(), 48usize, concat!("Size of: ", stringify!(_fpx_sw_bytes)) ); assert_eq!( ::std::mem::align_of::<_fpx_sw_bytes>(), 8usize, concat!("Alignment of ", stringify!(_fpx_sw_bytes)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).magic1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(magic1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extended_size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(extended_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).xstate_bv) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(xstate_bv) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).xstate_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(xstate_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(_fpx_sw_bytes), "::", stringify!(__glibc_reserved1) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _fpreg { pub significand: [::std::os::raw::c_ushort; 4usize], pub exponent: ::std::os::raw::c_ushort, } #[test] fn bindgen_test_layout__fpreg() { const UNINIT: ::std::mem::MaybeUninit<_fpreg> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpreg>(), 10usize, concat!("Size of: ", stringify!(_fpreg)) ); assert_eq!( ::std::mem::align_of::<_fpreg>(), 2usize, concat!("Alignment of ", stringify!(_fpreg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fpreg), "::", stringify!(significand) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_fpreg), "::", stringify!(exponent) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _fpxreg { pub significand: [::std::os::raw::c_ushort; 4usize], pub exponent: ::std::os::raw::c_ushort, pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], } #[test] fn bindgen_test_layout__fpxreg() { const UNINIT: ::std::mem::MaybeUninit<_fpxreg> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpxreg>(), 16usize, concat!("Size of: ", stringify!(_fpxreg)) ); assert_eq!( ::std::mem::align_of::<_fpxreg>(), 2usize, concat!("Alignment of ", stringify!(_fpxreg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fpxreg), "::", stringify!(significand) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_fpxreg), "::", stringify!(exponent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", stringify!(_fpxreg), "::", stringify!(__glibc_reserved1) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _xmmreg { pub element: [__uint32_t; 4usize], } #[test] fn bindgen_test_layout__xmmreg() { const UNINIT: ::std::mem::MaybeUninit<_xmmreg> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_xmmreg>(), 16usize, concat!("Size of: ", stringify!(_xmmreg)) ); assert_eq!( ::std::mem::align_of::<_xmmreg>(), 4usize, concat!("Alignment of ", stringify!(_xmmreg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_xmmreg), "::", stringify!(element) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _fpstate { pub cwd: __uint16_t, pub swd: __uint16_t, pub ftw: __uint16_t, pub fop: __uint16_t, pub rip: __uint64_t, pub rdp: __uint64_t, pub mxcsr: __uint32_t, pub mxcr_mask: __uint32_t, pub _st: [_fpxreg; 8usize], pub _xmm: [_xmmreg; 16usize], pub __glibc_reserved1: [__uint32_t; 24usize], } #[test] fn bindgen_test_layout__fpstate() { const UNINIT: ::std::mem::MaybeUninit<_fpstate> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate>(), 512usize, concat!("Size of: ", stringify!(_fpstate)) ); assert_eq!( ::std::mem::align_of::<_fpstate>(), 8usize, concat!("Alignment of ", stringify!(_fpstate)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(cwd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(swd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ftw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(ftw) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(fop) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(rip) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(rdp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(mxcsr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mxcr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(mxcr_mask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(_st) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._xmm) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(_xmm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", stringify!(_fpstate), "::", stringify!(__glibc_reserved1) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct sigcontext { pub r8: __uint64_t, pub r9: __uint64_t, pub r10: __uint64_t, pub r11: __uint64_t, pub r12: __uint64_t, pub r13: __uint64_t, pub r14: __uint64_t, pub r15: __uint64_t, pub rdi: __uint64_t, pub rsi: __uint64_t, pub rbp: __uint64_t, pub rbx: __uint64_t, pub rdx: __uint64_t, pub rax: __uint64_t, pub rcx: __uint64_t, pub rsp: __uint64_t, pub rip: __uint64_t, pub eflags: __uint64_t, pub cs: ::std::os::raw::c_ushort, pub gs: ::std::os::raw::c_ushort, pub fs: ::std::os::raw::c_ushort, pub __pad0: ::std::os::raw::c_ushort, pub err: __uint64_t, pub trapno: __uint64_t, pub oldmask: __uint64_t, pub cr2: __uint64_t, pub __bindgen_anon_1: sigcontext__bindgen_ty_1, pub __reserved1: [__uint64_t; 8usize], } #[repr(C)] #[derive(Copy, Clone)] pub union sigcontext__bindgen_ty_1 { pub fpstate: *mut _fpstate, pub __fpstate_word: __uint64_t, } #[test] fn bindgen_test_layout_sigcontext__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(sigcontext__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigcontext__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigcontext__bindgen_ty_1), "::", stringify!(fpstate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__fpstate_word) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigcontext__bindgen_ty_1), "::", stringify!(__fpstate_word) ) ); } #[test] fn bindgen_test_layout_sigcontext() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, concat!("Size of: ", stringify!(sigcontext)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigcontext)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r8) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r8) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r9) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r9) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r10) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r10) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r11) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r11) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r12) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r12) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r13) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r13) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r14) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r14) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).r15) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(r15) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rdi) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rdi) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rsi) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rsi) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rbp) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rbp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rbx) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rbx) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rdx) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rdx) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rax) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rax) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rcx) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rcx) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rsp) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rsp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(rip) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eflags) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(eflags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(cs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 146usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(gs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(fs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad0) as usize - ptr as usize }, 150usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(__pad0) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(err) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(trapno) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(oldmask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(cr2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", stringify!(sigcontext), "::", stringify!(__reserved1) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _xsave_hdr { pub xstate_bv: __uint64_t, pub __glibc_reserved1: [__uint64_t; 2usize], pub __glibc_reserved2: [__uint64_t; 5usize], } #[test] fn bindgen_test_layout__xsave_hdr() { const UNINIT: ::std::mem::MaybeUninit<_xsave_hdr> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_xsave_hdr>(), 64usize, concat!("Size of: ", stringify!(_xsave_hdr)) ); assert_eq!( ::std::mem::align_of::<_xsave_hdr>(), 8usize, concat!("Alignment of ", stringify!(_xsave_hdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).xstate_bv) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(xstate_bv) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(__glibc_reserved1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved2) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_xsave_hdr), "::", stringify!(__glibc_reserved2) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _ymmh_state { pub ymmh_space: [__uint32_t; 64usize], } #[test] fn bindgen_test_layout__ymmh_state() { const UNINIT: ::std::mem::MaybeUninit<_ymmh_state> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_ymmh_state>(), 256usize, concat!("Size of: ", stringify!(_ymmh_state)) ); assert_eq!( ::std::mem::align_of::<_ymmh_state>(), 4usize, concat!("Alignment of ", stringify!(_ymmh_state)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ymmh_space) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_ymmh_state), "::", stringify!(ymmh_space) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _xstate { pub fpstate: _fpstate, pub xstate_hdr: _xsave_hdr, pub ymmh: _ymmh_state, } #[test] fn bindgen_test_layout__xstate() { const UNINIT: ::std::mem::MaybeUninit<_xstate> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_xstate>(), 832usize, concat!("Size of: ", stringify!(_xstate)) ); assert_eq!( ::std::mem::align_of::<_xstate>(), 8usize, concat!("Alignment of ", stringify!(_xstate)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_xstate), "::", stringify!(fpstate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).xstate_hdr) as usize - ptr as usize }, 512usize, concat!( "Offset of field: ", stringify!(_xstate), "::", stringify!(xstate_hdr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ymmh) as usize - ptr as usize }, 576usize, concat!( "Offset of field: ", stringify!(_xstate), "::", stringify!(ymmh) ) ); } extern "C" { pub fn sigreturn(__scp: *mut sigcontext) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct stack_t { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_flags: ::std::os::raw::c_int, pub ss_size: usize, } #[test] fn bindgen_test_layout_stack_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(stack_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(stack_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(stack_t), "::", stringify!(ss_sp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(stack_t), "::", stringify!(ss_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(stack_t), "::", stringify!(ss_size) ) ); } pub type greg_t = ::std::os::raw::c_longlong; pub type gregset_t = [greg_t; 23usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _libc_fpxreg { pub significand: [::std::os::raw::c_ushort; 4usize], pub exponent: ::std::os::raw::c_ushort, pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], } #[test] fn bindgen_test_layout__libc_fpxreg() { const UNINIT: ::std::mem::MaybeUninit<_libc_fpxreg> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_libc_fpxreg>(), 16usize, concat!("Size of: ", stringify!(_libc_fpxreg)) ); assert_eq!( ::std::mem::align_of::<_libc_fpxreg>(), 2usize, concat!("Alignment of ", stringify!(_libc_fpxreg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(significand) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(exponent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", stringify!(_libc_fpxreg), "::", stringify!(__glibc_reserved1) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _libc_xmmreg { pub element: [__uint32_t; 4usize], } #[test] fn bindgen_test_layout__libc_xmmreg() { const UNINIT: ::std::mem::MaybeUninit<_libc_xmmreg> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_libc_xmmreg>(), 16usize, concat!("Size of: ", stringify!(_libc_xmmreg)) ); assert_eq!( ::std::mem::align_of::<_libc_xmmreg>(), 4usize, concat!("Alignment of ", stringify!(_libc_xmmreg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_libc_xmmreg), "::", stringify!(element) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _libc_fpstate { pub cwd: __uint16_t, pub swd: __uint16_t, pub ftw: __uint16_t, pub fop: __uint16_t, pub rip: __uint64_t, pub rdp: __uint64_t, pub mxcsr: __uint32_t, pub mxcr_mask: __uint32_t, pub _st: [_libc_fpxreg; 8usize], pub _xmm: [_libc_xmmreg; 16usize], pub __glibc_reserved1: [__uint32_t; 24usize], } #[test] fn bindgen_test_layout__libc_fpstate() { const UNINIT: ::std::mem::MaybeUninit<_libc_fpstate> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_libc_fpstate>(), 512usize, concat!("Size of: ", stringify!(_libc_fpstate)) ); assert_eq!( ::std::mem::align_of::<_libc_fpstate>(), 8usize, concat!("Alignment of ", stringify!(_libc_fpstate)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(cwd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(swd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ftw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(ftw) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(fop) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(rip) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(rdp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(mxcsr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mxcr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(mxcr_mask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(_st) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._xmm) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(_xmm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__glibc_reserved1) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", stringify!(_libc_fpstate), "::", stringify!(__glibc_reserved1) ) ); } pub type fpregset_t = *mut _libc_fpstate; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct mcontext_t { pub gregs: gregset_t, pub fpregs: fpregset_t, pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], } #[test] fn bindgen_test_layout_mcontext_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, concat!("Size of: ", stringify!(mcontext_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(mcontext_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(mcontext_t), "::", stringify!(gregs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fpregs) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", stringify!(mcontext_t), "::", stringify!(fpregs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", stringify!(mcontext_t), "::", stringify!(__reserved1) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ucontext_t { pub uc_flags: ::std::os::raw::c_ulong, pub uc_link: *mut ucontext_t, pub uc_stack: stack_t, pub uc_mcontext: mcontext_t, pub uc_sigmask: sigset_t, pub __fpregs_mem: _libc_fpstate, pub __ssp: [::std::os::raw::c_ulonglong; 4usize], } #[test] fn bindgen_test_layout_ucontext_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 968usize, concat!("Size of: ", stringify!(ucontext_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(ucontext_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uc_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_link) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_stack) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_mcontext) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize }, 296usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(uc_sigmask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__fpregs_mem) as usize - ptr as usize }, 424usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(__fpregs_mem) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__ssp) as usize - ptr as usize }, 936usize, concat!( "Offset of field: ", stringify!(ucontext_t), "::", stringify!(__ssp) ) ); } extern "C" { pub fn siginterrupt( __sig: ::std::os::raw::c_int, __interrupt: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } pub const SS_ONSTACK: _bindgen_ty_9 = 1; pub const SS_DISABLE: _bindgen_ty_9 = 2; pub type _bindgen_ty_9 = ::std::os::raw::c_uint; extern "C" { pub fn sigaltstack(__ss: *const stack_t, __oss: *mut stack_t) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sigstack { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_onstack: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_sigstack() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(sigstack)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(sigstack)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sigstack), "::", stringify!(ss_sp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ss_onstack) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(sigstack), "::", stringify!(ss_onstack) ) ); } extern "C" { pub fn sigstack(__ss: *mut sigstack, __oss: *mut sigstack) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_sigmask( __how: ::std::os::raw::c_int, __newmask: *const __sigset_t, __oldmask: *mut __sigset_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_kill( __threadid: pthread_t, __signo: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; } extern "C" { pub fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; } extern "C" { pub fn g_on_error_query(prg_name: *const gchar); } extern "C" { pub fn g_on_error_stack_trace(prg_name: *const gchar); } extern "C" { pub fn g_base64_encode_step( in_: *const guchar, len: gsize, break_lines: gboolean, out: *mut gchar, state: *mut gint, save: *mut gint, ) -> gsize; } extern "C" { pub fn g_base64_encode_close( break_lines: gboolean, out: *mut gchar, state: *mut gint, save: *mut gint, ) -> gsize; } extern "C" { pub fn g_base64_encode(data: *const guchar, len: gsize) -> *mut gchar; } extern "C" { pub fn g_base64_decode_step( in_: *const gchar, len: gsize, out: *mut guchar, state: *mut gint, save: *mut guint, ) -> gsize; } extern "C" { pub fn g_base64_decode(text: *const gchar, out_len: *mut gsize) -> *mut guchar; } extern "C" { pub fn g_base64_decode_inplace(text: *mut gchar, out_len: *mut gsize) -> *mut guchar; } extern "C" { pub fn g_bit_lock(address: *mut gint, lock_bit: gint); } extern "C" { pub fn g_bit_trylock(address: *mut gint, lock_bit: gint) -> gboolean; } extern "C" { pub fn g_bit_unlock(address: *mut gint, lock_bit: gint); } extern "C" { pub fn g_pointer_bit_lock(address: *mut ::std::os::raw::c_void, lock_bit: gint); } extern "C" { pub fn g_pointer_bit_trylock(address: *mut ::std::os::raw::c_void, lock_bit: gint) -> gboolean; } extern "C" { pub fn g_pointer_bit_unlock(address: *mut ::std::os::raw::c_void, lock_bit: gint); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTimeZone { _unused: [u8; 0], } pub type GTimeZone = _GTimeZone; pub const GTimeType_G_TIME_TYPE_STANDARD: GTimeType = 0; pub const GTimeType_G_TIME_TYPE_DAYLIGHT: GTimeType = 1; pub const GTimeType_G_TIME_TYPE_UNIVERSAL: GTimeType = 2; pub type GTimeType = ::std::os::raw::c_uint; extern "C" { pub fn g_time_zone_new(identifier: *const gchar) -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_new_identifier(identifier: *const gchar) -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_new_utc() -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_new_local() -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_new_offset(seconds: gint32) -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_ref(tz: *mut GTimeZone) -> *mut GTimeZone; } extern "C" { pub fn g_time_zone_unref(tz: *mut GTimeZone); } extern "C" { pub fn g_time_zone_find_interval(tz: *mut GTimeZone, type_: GTimeType, time_: gint64) -> gint; } extern "C" { pub fn g_time_zone_adjust_time( tz: *mut GTimeZone, type_: GTimeType, time_: *mut gint64, ) -> gint; } extern "C" { pub fn g_time_zone_get_abbreviation(tz: *mut GTimeZone, interval: gint) -> *const gchar; } extern "C" { pub fn g_time_zone_get_offset(tz: *mut GTimeZone, interval: gint) -> gint32; } extern "C" { pub fn g_time_zone_is_dst(tz: *mut GTimeZone, interval: gint) -> gboolean; } extern "C" { pub fn g_time_zone_get_identifier(tz: *mut GTimeZone) -> *const gchar; } pub type GTimeSpan = gint64; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GDateTime { _unused: [u8; 0], } pub type GDateTime = _GDateTime; extern "C" { pub fn g_date_time_unref(datetime: *mut GDateTime); } extern "C" { pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_now_local() -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_now_utc() -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_from_unix_local(t: gint64) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_from_unix_utc(t: gint64) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_from_iso8601( text: *const gchar, default_tz: *mut GTimeZone, ) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new( tz: *mut GTimeZone, year: gint, month: gint, day: gint, hour: gint, minute: gint, seconds: gdouble, ) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_local( year: gint, month: gint, day: gint, hour: gint, minute: gint, seconds: gdouble, ) -> *mut GDateTime; } extern "C" { pub fn g_date_time_new_utc( year: gint, month: gint, day: gint, hour: gint, minute: gint, seconds: gdouble, ) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_years(datetime: *mut GDateTime, years: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_months(datetime: *mut GDateTime, months: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_weeks(datetime: *mut GDateTime, weeks: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_days(datetime: *mut GDateTime, days: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: gint) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_seconds(datetime: *mut GDateTime, seconds: gdouble) -> *mut GDateTime; } extern "C" { pub fn g_date_time_add_full( datetime: *mut GDateTime, years: gint, months: gint, days: gint, hours: gint, minutes: gint, seconds: gdouble, ) -> *mut GDateTime; } extern "C" { pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> gint; } extern "C" { pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan; } extern "C" { pub fn g_date_time_hash(datetime: gconstpointer) -> guint; } extern "C" { pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean; } extern "C" { pub fn g_date_time_get_ymd( datetime: *mut GDateTime, year: *mut gint, month: *mut gint, day: *mut gint, ); } extern "C" { pub fn g_date_time_get_year(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_month(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_day_of_month(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_day_of_week(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_second(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> gint; } extern "C" { pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> gdouble; } extern "C" { pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> gint64; } extern "C" { pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean; } extern "C" { pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan; } extern "C" { pub fn g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone; } extern "C" { pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const gchar; } extern "C" { pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean; } extern "C" { pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime; } extern "C" { pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime; } extern "C" { pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime; } extern "C" { pub fn g_date_time_format(datetime: *mut GDateTime, format: *const gchar) -> *mut gchar; } extern "C" { pub fn g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut gchar; } pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_INVALID_URI: GBookmarkFileError = 0; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_INVALID_VALUE: GBookmarkFileError = 1; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: GBookmarkFileError = 2; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: GBookmarkFileError = 3; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_READ: GBookmarkFileError = 4; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: GBookmarkFileError = 5; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_WRITE: GBookmarkFileError = 6; pub const GBookmarkFileError_G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: GBookmarkFileError = 7; pub type GBookmarkFileError = ::std::os::raw::c_uint; extern "C" { pub fn g_bookmark_file_error_quark() -> GQuark; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GBookmarkFile { _unused: [u8; 0], } pub type GBookmarkFile = _GBookmarkFile; extern "C" { pub fn g_bookmark_file_new() -> *mut GBookmarkFile; } extern "C" { pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile); } extern "C" { pub fn g_bookmark_file_copy(bookmark: *mut GBookmarkFile) -> *mut GBookmarkFile; } extern "C" { pub fn g_bookmark_file_load_from_file( bookmark: *mut GBookmarkFile, filename: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_load_from_data( bookmark: *mut GBookmarkFile, data: *const gchar, length: gsize, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_load_from_data_dirs( bookmark: *mut GBookmarkFile, file: *const gchar, full_path: *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_to_data( bookmark: *mut GBookmarkFile, length: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_bookmark_file_to_file( bookmark: *mut GBookmarkFile, filename: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_set_title( bookmark: *mut GBookmarkFile, uri: *const gchar, title: *const gchar, ); } extern "C" { pub fn g_bookmark_file_get_title( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_bookmark_file_set_description( bookmark: *mut GBookmarkFile, uri: *const gchar, description: *const gchar, ); } extern "C" { pub fn g_bookmark_file_get_description( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_bookmark_file_set_mime_type( bookmark: *mut GBookmarkFile, uri: *const gchar, mime_type: *const gchar, ); } extern "C" { pub fn g_bookmark_file_get_mime_type( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_bookmark_file_set_groups( bookmark: *mut GBookmarkFile, uri: *const gchar, groups: *mut *const gchar, length: gsize, ); } extern "C" { pub fn g_bookmark_file_add_group( bookmark: *mut GBookmarkFile, uri: *const gchar, group: *const gchar, ); } extern "C" { pub fn g_bookmark_file_has_group( bookmark: *mut GBookmarkFile, uri: *const gchar, group: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_get_groups( bookmark: *mut GBookmarkFile, uri: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_bookmark_file_add_application( bookmark: *mut GBookmarkFile, uri: *const gchar, name: *const gchar, exec: *const gchar, ); } extern "C" { pub fn g_bookmark_file_has_application( bookmark: *mut GBookmarkFile, uri: *const gchar, name: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_get_applications( bookmark: *mut GBookmarkFile, uri: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_bookmark_file_set_app_info( bookmark: *mut GBookmarkFile, uri: *const gchar, name: *const gchar, exec: *const gchar, count: gint, stamp: time_t, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_set_application_info( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, exec: *const ::std::os::raw::c_char, count: ::std::os::raw::c_int, stamp: *mut GDateTime, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_get_app_info( bookmark: *mut GBookmarkFile, uri: *const gchar, name: *const gchar, exec: *mut *mut gchar, count: *mut guint, stamp: *mut time_t, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_get_application_info( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, exec: *mut *mut ::std::os::raw::c_char, count: *mut ::std::os::raw::c_uint, stamp: *mut *mut GDateTime, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_set_is_private( bookmark: *mut GBookmarkFile, uri: *const gchar, is_private: gboolean, ); } extern "C" { pub fn g_bookmark_file_get_is_private( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_set_icon( bookmark: *mut GBookmarkFile, uri: *const gchar, href: *const gchar, mime_type: *const gchar, ); } extern "C" { pub fn g_bookmark_file_get_icon( bookmark: *mut GBookmarkFile, uri: *const gchar, href: *mut *mut gchar, mime_type: *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_set_added( bookmark: *mut GBookmarkFile, uri: *const gchar, added: time_t, ); } extern "C" { pub fn g_bookmark_file_set_added_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, added: *mut GDateTime, ); } extern "C" { pub fn g_bookmark_file_get_added( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> time_t; } extern "C" { pub fn g_bookmark_file_get_added_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, error: *mut *mut GError, ) -> *mut GDateTime; } extern "C" { pub fn g_bookmark_file_set_modified( bookmark: *mut GBookmarkFile, uri: *const gchar, modified: time_t, ); } extern "C" { pub fn g_bookmark_file_set_modified_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, modified: *mut GDateTime, ); } extern "C" { pub fn g_bookmark_file_get_modified( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> time_t; } extern "C" { pub fn g_bookmark_file_get_modified_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, error: *mut *mut GError, ) -> *mut GDateTime; } extern "C" { pub fn g_bookmark_file_set_visited( bookmark: *mut GBookmarkFile, uri: *const gchar, visited: time_t, ); } extern "C" { pub fn g_bookmark_file_set_visited_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, visited: *mut GDateTime, ); } extern "C" { pub fn g_bookmark_file_get_visited( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> time_t; } extern "C" { pub fn g_bookmark_file_get_visited_date_time( bookmark: *mut GBookmarkFile, uri: *const ::std::os::raw::c_char, error: *mut *mut GError, ) -> *mut GDateTime; } extern "C" { pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const gchar) -> gboolean; } extern "C" { pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> gint; } extern "C" { pub fn g_bookmark_file_get_uris( bookmark: *mut GBookmarkFile, length: *mut gsize, ) -> *mut *mut gchar; } extern "C" { pub fn g_bookmark_file_remove_group( bookmark: *mut GBookmarkFile, uri: *const gchar, group: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_remove_application( bookmark: *mut GBookmarkFile, uri: *const gchar, name: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_remove_item( bookmark: *mut GBookmarkFile, uri: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bookmark_file_move_item( bookmark: *mut GBookmarkFile, old_uri: *const gchar, new_uri: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_bytes_new(data: gconstpointer, size: gsize) -> *mut GBytes; } extern "C" { pub fn g_bytes_new_take(data: gpointer, size: gsize) -> *mut GBytes; } extern "C" { pub fn g_bytes_new_static(data: gconstpointer, size: gsize) -> *mut GBytes; } extern "C" { pub fn g_bytes_new_with_free_func( data: gconstpointer, size: gsize, free_func: GDestroyNotify, user_data: gpointer, ) -> *mut GBytes; } extern "C" { pub fn g_bytes_new_from_bytes(bytes: *mut GBytes, offset: gsize, length: gsize) -> *mut GBytes; } extern "C" { pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut gsize) -> gconstpointer; } extern "C" { pub fn g_bytes_get_size(bytes: *mut GBytes) -> gsize; } extern "C" { pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes; } extern "C" { pub fn g_bytes_unref(bytes: *mut GBytes); } extern "C" { pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut gsize) -> gpointer; } extern "C" { pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray; } extern "C" { pub fn g_bytes_hash(bytes: gconstpointer) -> guint; } extern "C" { pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean; } extern "C" { pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> gint; } extern "C" { pub fn g_bytes_get_region( bytes: *mut GBytes, element_size: gsize, offset: gsize, n_elements: gsize, ) -> gconstpointer; } extern "C" { pub fn g_get_charset(charset: *mut *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn g_get_codeset() -> *mut gchar; } extern "C" { pub fn g_get_console_charset(charset: *mut *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn g_get_language_names() -> *const *const gchar; } extern "C" { pub fn g_get_language_names_with_category(category_name: *const gchar) -> *const *const gchar; } extern "C" { pub fn g_get_locale_variants(locale: *const gchar) -> *mut *mut gchar; } pub const GChecksumType_G_CHECKSUM_MD5: GChecksumType = 0; pub const GChecksumType_G_CHECKSUM_SHA1: GChecksumType = 1; pub const GChecksumType_G_CHECKSUM_SHA256: GChecksumType = 2; pub const GChecksumType_G_CHECKSUM_SHA512: GChecksumType = 3; pub const GChecksumType_G_CHECKSUM_SHA384: GChecksumType = 4; pub type GChecksumType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GChecksum { _unused: [u8; 0], } pub type GChecksum = _GChecksum; extern "C" { pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> gssize; } extern "C" { pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum; } extern "C" { pub fn g_checksum_reset(checksum: *mut GChecksum); } extern "C" { pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum; } extern "C" { pub fn g_checksum_free(checksum: *mut GChecksum); } extern "C" { pub fn g_checksum_update(checksum: *mut GChecksum, data: *const guchar, length: gssize); } extern "C" { pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const gchar; } extern "C" { pub fn g_checksum_get_digest( checksum: *mut GChecksum, buffer: *mut guint8, digest_len: *mut gsize, ); } extern "C" { pub fn g_compute_checksum_for_data( checksum_type: GChecksumType, data: *const guchar, length: gsize, ) -> *mut gchar; } extern "C" { pub fn g_compute_checksum_for_string( checksum_type: GChecksumType, str_: *const gchar, length: gssize, ) -> *mut gchar; } extern "C" { pub fn g_compute_checksum_for_bytes( checksum_type: GChecksumType, data: *mut GBytes, ) -> *mut gchar; } pub const GConvertError_G_CONVERT_ERROR_NO_CONVERSION: GConvertError = 0; pub const GConvertError_G_CONVERT_ERROR_ILLEGAL_SEQUENCE: GConvertError = 1; pub const GConvertError_G_CONVERT_ERROR_FAILED: GConvertError = 2; pub const GConvertError_G_CONVERT_ERROR_PARTIAL_INPUT: GConvertError = 3; pub const GConvertError_G_CONVERT_ERROR_BAD_URI: GConvertError = 4; pub const GConvertError_G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: GConvertError = 5; pub const GConvertError_G_CONVERT_ERROR_NO_MEMORY: GConvertError = 6; pub const GConvertError_G_CONVERT_ERROR_EMBEDDED_NUL: GConvertError = 7; pub type GConvertError = ::std::os::raw::c_uint; extern "C" { pub fn g_convert_error_quark() -> GQuark; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GIConv { _unused: [u8; 0], } pub type GIConv = *mut _GIConv; extern "C" { pub fn g_iconv_open(to_codeset: *const gchar, from_codeset: *const gchar) -> GIConv; } extern "C" { pub fn g_iconv( converter: GIConv, inbuf: *mut *mut gchar, inbytes_left: *mut gsize, outbuf: *mut *mut gchar, outbytes_left: *mut gsize, ) -> gsize; } extern "C" { pub fn g_iconv_close(converter: GIConv) -> gint; } extern "C" { pub fn g_convert( str_: *const gchar, len: gssize, to_codeset: *const gchar, from_codeset: *const gchar, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_convert_with_iconv( str_: *const gchar, len: gssize, converter: GIConv, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_convert_with_fallback( str_: *const gchar, len: gssize, to_codeset: *const gchar, from_codeset: *const gchar, fallback: *const gchar, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_locale_to_utf8( opsysstring: *const gchar, len: gssize, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_locale_from_utf8( utf8string: *const gchar, len: gssize, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_filename_to_utf8( opsysstring: *const gchar, len: gssize, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_filename_from_utf8( utf8string: *const gchar, len: gssize, bytes_read: *mut gsize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_filename_from_uri( uri: *const gchar, hostname: *mut *mut gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_filename_to_uri( filename: *const gchar, hostname: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_filename_display_name(filename: *const gchar) -> *mut gchar; } extern "C" { pub fn g_get_filename_charsets(filename_charsets: *mut *mut *const gchar) -> gboolean; } extern "C" { pub fn g_filename_display_basename(filename: *const gchar) -> *mut gchar; } extern "C" { pub fn g_uri_list_extract_uris(uri_list: *const gchar) -> *mut *mut gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GData { _unused: [u8; 0], } pub type GData = _GData; pub type GDataForeachFunc = ::std::option::Option< unsafe extern "C" fn(key_id: GQuark, data: gpointer, user_data: gpointer), >; extern "C" { pub fn g_datalist_init(datalist: *mut *mut GData); } extern "C" { pub fn g_datalist_clear(datalist: *mut *mut GData); } extern "C" { pub fn g_datalist_id_get_data(datalist: *mut *mut GData, key_id: GQuark) -> gpointer; } extern "C" { pub fn g_datalist_id_set_data_full( datalist: *mut *mut GData, key_id: GQuark, data: gpointer, destroy_func: GDestroyNotify, ); } extern "C" { pub fn g_datalist_id_remove_multiple( datalist: *mut *mut GData, keys: *mut GQuark, n_keys: gsize, ); } pub type GDuplicateFunc = ::std::option::Option gpointer>; extern "C" { pub fn g_datalist_id_dup_data( datalist: *mut *mut GData, key_id: GQuark, dup_func: GDuplicateFunc, user_data: gpointer, ) -> gpointer; } extern "C" { pub fn g_datalist_id_replace_data( datalist: *mut *mut GData, key_id: GQuark, oldval: gpointer, newval: gpointer, destroy: GDestroyNotify, old_destroy: *mut GDestroyNotify, ) -> gboolean; } extern "C" { pub fn g_datalist_id_remove_no_notify(datalist: *mut *mut GData, key_id: GQuark) -> gpointer; } extern "C" { pub fn g_datalist_foreach( datalist: *mut *mut GData, func: GDataForeachFunc, user_data: gpointer, ); } extern "C" { pub fn g_datalist_set_flags(datalist: *mut *mut GData, flags: guint); } extern "C" { pub fn g_datalist_unset_flags(datalist: *mut *mut GData, flags: guint); } extern "C" { pub fn g_datalist_get_flags(datalist: *mut *mut GData) -> guint; } extern "C" { pub fn g_dataset_destroy(dataset_location: gconstpointer); } extern "C" { pub fn g_dataset_id_get_data(dataset_location: gconstpointer, key_id: GQuark) -> gpointer; } extern "C" { pub fn g_datalist_get_data(datalist: *mut *mut GData, key: *const gchar) -> gpointer; } extern "C" { pub fn g_dataset_id_set_data_full( dataset_location: gconstpointer, key_id: GQuark, data: gpointer, destroy_func: GDestroyNotify, ); } extern "C" { pub fn g_dataset_id_remove_no_notify( dataset_location: gconstpointer, key_id: GQuark, ) -> gpointer; } extern "C" { pub fn g_dataset_foreach( dataset_location: gconstpointer, func: GDataForeachFunc, user_data: gpointer, ); } pub type GTime = gint32; pub type GDateYear = guint16; pub type GDateDay = guint8; pub type GDate = _GDate; pub const GDateDMY_G_DATE_DAY: GDateDMY = 0; pub const GDateDMY_G_DATE_MONTH: GDateDMY = 1; pub const GDateDMY_G_DATE_YEAR: GDateDMY = 2; pub type GDateDMY = ::std::os::raw::c_uint; pub const GDateWeekday_G_DATE_BAD_WEEKDAY: GDateWeekday = 0; pub const GDateWeekday_G_DATE_MONDAY: GDateWeekday = 1; pub const GDateWeekday_G_DATE_TUESDAY: GDateWeekday = 2; pub const GDateWeekday_G_DATE_WEDNESDAY: GDateWeekday = 3; pub const GDateWeekday_G_DATE_THURSDAY: GDateWeekday = 4; pub const GDateWeekday_G_DATE_FRIDAY: GDateWeekday = 5; pub const GDateWeekday_G_DATE_SATURDAY: GDateWeekday = 6; pub const GDateWeekday_G_DATE_SUNDAY: GDateWeekday = 7; pub type GDateWeekday = ::std::os::raw::c_uint; pub const GDateMonth_G_DATE_BAD_MONTH: GDateMonth = 0; pub const GDateMonth_G_DATE_JANUARY: GDateMonth = 1; pub const GDateMonth_G_DATE_FEBRUARY: GDateMonth = 2; pub const GDateMonth_G_DATE_MARCH: GDateMonth = 3; pub const GDateMonth_G_DATE_APRIL: GDateMonth = 4; pub const GDateMonth_G_DATE_MAY: GDateMonth = 5; pub const GDateMonth_G_DATE_JUNE: GDateMonth = 6; pub const GDateMonth_G_DATE_JULY: GDateMonth = 7; pub const GDateMonth_G_DATE_AUGUST: GDateMonth = 8; pub const GDateMonth_G_DATE_SEPTEMBER: GDateMonth = 9; pub const GDateMonth_G_DATE_OCTOBER: GDateMonth = 10; pub const GDateMonth_G_DATE_NOVEMBER: GDateMonth = 11; pub const GDateMonth_G_DATE_DECEMBER: GDateMonth = 12; pub type GDateMonth = ::std::os::raw::c_uint; #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct _GDate { pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, } #[test] fn bindgen_test_layout__GDate() { assert_eq!( ::std::mem::size_of::<_GDate>(), 8usize, concat!("Size of: ", stringify!(_GDate)) ); assert_eq!( ::std::mem::align_of::<_GDate>(), 4usize, concat!("Alignment of ", stringify!(_GDate)) ); } impl _GDate { #[inline] pub fn julian_days(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 32u8) as u32) } } #[inline] pub fn set_julian_days(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 32u8, val as u64) } } #[inline] pub fn julian(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } } #[inline] pub fn set_julian(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(32usize, 1u8, val as u64) } } #[inline] pub fn dmy(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } } #[inline] pub fn set_dmy(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(33usize, 1u8, val as u64) } } #[inline] pub fn day(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(34usize, 6u8) as u32) } } #[inline] pub fn set_day(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(34usize, 6u8, val as u64) } } #[inline] pub fn month(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 4u8) as u32) } } #[inline] pub fn set_month(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(40usize, 4u8, val as u64) } } #[inline] pub fn year(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(44usize, 16u8) as u32) } } #[inline] pub fn set_year(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(44usize, 16u8, val as u64) } } #[inline] pub fn new_bitfield_1( julian_days: guint, julian: guint, dmy: guint, day: guint, month: guint, year: guint, ) -> __BindgenBitfieldUnit<[u8; 8usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 32u8, { let julian_days: u32 = unsafe { ::std::mem::transmute(julian_days) }; julian_days as u64 }); __bindgen_bitfield_unit.set(32usize, 1u8, { let julian: u32 = unsafe { ::std::mem::transmute(julian) }; julian as u64 }); __bindgen_bitfield_unit.set(33usize, 1u8, { let dmy: u32 = unsafe { ::std::mem::transmute(dmy) }; dmy as u64 }); __bindgen_bitfield_unit.set(34usize, 6u8, { let day: u32 = unsafe { ::std::mem::transmute(day) }; day as u64 }); __bindgen_bitfield_unit.set(40usize, 4u8, { let month: u32 = unsafe { ::std::mem::transmute(month) }; month as u64 }); __bindgen_bitfield_unit.set(44usize, 16u8, { let year: u32 = unsafe { ::std::mem::transmute(year) }; year as u64 }); __bindgen_bitfield_unit } } extern "C" { pub fn g_date_new() -> *mut GDate; } extern "C" { pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate; } extern "C" { pub fn g_date_new_julian(julian_day: guint32) -> *mut GDate; } extern "C" { pub fn g_date_free(date: *mut GDate); } extern "C" { pub fn g_date_copy(date: *const GDate) -> *mut GDate; } extern "C" { pub fn g_date_valid(date: *const GDate) -> gboolean; } extern "C" { pub fn g_date_valid_day(day: GDateDay) -> gboolean; } extern "C" { pub fn g_date_valid_month(month: GDateMonth) -> gboolean; } extern "C" { pub fn g_date_valid_year(year: GDateYear) -> gboolean; } extern "C" { pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean; } extern "C" { pub fn g_date_valid_julian(julian_date: guint32) -> gboolean; } extern "C" { pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean; } extern "C" { pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday; } extern "C" { pub fn g_date_get_month(date: *const GDate) -> GDateMonth; } extern "C" { pub fn g_date_get_year(date: *const GDate) -> GDateYear; } extern "C" { pub fn g_date_get_day(date: *const GDate) -> GDateDay; } extern "C" { pub fn g_date_get_julian(date: *const GDate) -> guint32; } extern "C" { pub fn g_date_get_day_of_year(date: *const GDate) -> guint; } extern "C" { pub fn g_date_get_monday_week_of_year(date: *const GDate) -> guint; } extern "C" { pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> guint; } extern "C" { pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> guint; } extern "C" { pub fn g_date_clear(date: *mut GDate, n_dates: guint); } extern "C" { pub fn g_date_set_parse(date: *mut GDate, str_: *const gchar); } extern "C" { pub fn g_date_set_time_t(date: *mut GDate, timet: time_t); } extern "C" { pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal); } extern "C" { pub fn g_date_set_time(date: *mut GDate, time_: GTime); } extern "C" { pub fn g_date_set_month(date: *mut GDate, month: GDateMonth); } extern "C" { pub fn g_date_set_day(date: *mut GDate, day: GDateDay); } extern "C" { pub fn g_date_set_year(date: *mut GDate, year: GDateYear); } extern "C" { pub fn g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear); } extern "C" { pub fn g_date_set_julian(date: *mut GDate, julian_date: guint32); } extern "C" { pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean; } extern "C" { pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean; } extern "C" { pub fn g_date_add_days(date: *mut GDate, n_days: guint); } extern "C" { pub fn g_date_subtract_days(date: *mut GDate, n_days: guint); } extern "C" { pub fn g_date_add_months(date: *mut GDate, n_months: guint); } extern "C" { pub fn g_date_subtract_months(date: *mut GDate, n_months: guint); } extern "C" { pub fn g_date_add_years(date: *mut GDate, n_years: guint); } extern "C" { pub fn g_date_subtract_years(date: *mut GDate, n_years: guint); } extern "C" { pub fn g_date_is_leap_year(year: GDateYear) -> gboolean; } extern "C" { pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> guint8; } extern "C" { pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> guint8; } extern "C" { pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> guint8; } extern "C" { pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> gint; } extern "C" { pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> gint; } extern "C" { pub fn g_date_to_struct_tm(date: *const GDate, tm: *mut tm); } extern "C" { pub fn g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate); } extern "C" { pub fn g_date_order(date1: *mut GDate, date2: *mut GDate); } extern "C" { pub fn g_date_strftime( s: *mut gchar, slen: gsize, format: *const gchar, date: *const GDate, ) -> gsize; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dirent { pub d_ino: __ino_t, pub d_off: __off_t, pub d_reclen: ::std::os::raw::c_ushort, pub d_type: ::std::os::raw::c_uchar, pub d_name: [::std::os::raw::c_char; 256usize], } #[test] fn bindgen_test_layout_dirent() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 280usize, concat!("Size of: ", stringify!(dirent)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(dirent)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).d_ino) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(dirent), "::", stringify!(d_ino) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).d_off) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(dirent), "::", stringify!(d_off) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).d_reclen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(dirent), "::", stringify!(d_reclen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).d_type) as usize - ptr as usize }, 18usize, concat!( "Offset of field: ", stringify!(dirent), "::", stringify!(d_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).d_name) as usize - ptr as usize }, 19usize, concat!( "Offset of field: ", stringify!(dirent), "::", stringify!(d_name) ) ); } pub const DT_UNKNOWN: _bindgen_ty_10 = 0; pub const DT_FIFO: _bindgen_ty_10 = 1; pub const DT_CHR: _bindgen_ty_10 = 2; pub const DT_DIR: _bindgen_ty_10 = 4; pub const DT_BLK: _bindgen_ty_10 = 6; pub const DT_REG: _bindgen_ty_10 = 8; pub const DT_LNK: _bindgen_ty_10 = 10; pub const DT_SOCK: _bindgen_ty_10 = 12; pub const DT_WHT: _bindgen_ty_10 = 14; pub type _bindgen_ty_10 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; extern "C" { pub fn closedir(__dirp: *mut DIR) -> ::std::os::raw::c_int; } extern "C" { pub fn opendir(__name: *const ::std::os::raw::c_char) -> *mut DIR; } extern "C" { pub fn fdopendir(__fd: ::std::os::raw::c_int) -> *mut DIR; } extern "C" { pub fn readdir(__dirp: *mut DIR) -> *mut dirent; } extern "C" { pub fn readdir_r( __dirp: *mut DIR, __entry: *mut dirent, __result: *mut *mut dirent, ) -> ::std::os::raw::c_int; } extern "C" { pub fn rewinddir(__dirp: *mut DIR); } extern "C" { pub fn seekdir(__dirp: *mut DIR, __pos: ::std::os::raw::c_long); } extern "C" { pub fn telldir(__dirp: *mut DIR) -> ::std::os::raw::c_long; } extern "C" { pub fn dirfd(__dirp: *mut DIR) -> ::std::os::raw::c_int; } extern "C" { pub fn scandir( __dir: *const ::std::os::raw::c_char, __namelist: *mut *mut *mut dirent, __selector: ::std::option::Option< unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, >, __cmp: ::std::option::Option< unsafe extern "C" fn( arg1: *mut *const dirent, arg2: *mut *const dirent, ) -> ::std::os::raw::c_int, >, ) -> ::std::os::raw::c_int; } extern "C" { pub fn alphasort(__e1: *mut *const dirent, __e2: *mut *const dirent) -> ::std::os::raw::c_int; } extern "C" { pub fn getdirentries( __fd: ::std::os::raw::c_int, __buf: *mut ::std::os::raw::c_char, __nbytes: usize, __basep: *mut __off_t, ) -> __ssize_t; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GDir { _unused: [u8; 0], } pub type GDir = _GDir; extern "C" { pub fn g_dir_open(path: *const gchar, flags: guint, error: *mut *mut GError) -> *mut GDir; } extern "C" { pub fn g_dir_read_name(dir: *mut GDir) -> *const gchar; } extern "C" { pub fn g_dir_rewind(dir: *mut GDir); } extern "C" { pub fn g_dir_close(dir: *mut GDir); } extern "C" { pub fn g_getenv(variable: *const gchar) -> *const gchar; } extern "C" { pub fn g_setenv(variable: *const gchar, value: *const gchar, overwrite: gboolean) -> gboolean; } extern "C" { pub fn g_unsetenv(variable: *const gchar); } extern "C" { pub fn g_listenv() -> *mut *mut gchar; } extern "C" { pub fn g_get_environ() -> *mut *mut gchar; } extern "C" { pub fn g_environ_getenv(envp: *mut *mut gchar, variable: *const gchar) -> *const gchar; } extern "C" { pub fn g_environ_setenv( envp: *mut *mut gchar, variable: *const gchar, value: *const gchar, overwrite: gboolean, ) -> *mut *mut gchar; } extern "C" { pub fn g_environ_unsetenv(envp: *mut *mut gchar, variable: *const gchar) -> *mut *mut gchar; } pub const GFileError_G_FILE_ERROR_EXIST: GFileError = 0; pub const GFileError_G_FILE_ERROR_ISDIR: GFileError = 1; pub const GFileError_G_FILE_ERROR_ACCES: GFileError = 2; pub const GFileError_G_FILE_ERROR_NAMETOOLONG: GFileError = 3; pub const GFileError_G_FILE_ERROR_NOENT: GFileError = 4; pub const GFileError_G_FILE_ERROR_NOTDIR: GFileError = 5; pub const GFileError_G_FILE_ERROR_NXIO: GFileError = 6; pub const GFileError_G_FILE_ERROR_NODEV: GFileError = 7; pub const GFileError_G_FILE_ERROR_ROFS: GFileError = 8; pub const GFileError_G_FILE_ERROR_TXTBSY: GFileError = 9; pub const GFileError_G_FILE_ERROR_FAULT: GFileError = 10; pub const GFileError_G_FILE_ERROR_LOOP: GFileError = 11; pub const GFileError_G_FILE_ERROR_NOSPC: GFileError = 12; pub const GFileError_G_FILE_ERROR_NOMEM: GFileError = 13; pub const GFileError_G_FILE_ERROR_MFILE: GFileError = 14; pub const GFileError_G_FILE_ERROR_NFILE: GFileError = 15; pub const GFileError_G_FILE_ERROR_BADF: GFileError = 16; pub const GFileError_G_FILE_ERROR_INVAL: GFileError = 17; pub const GFileError_G_FILE_ERROR_PIPE: GFileError = 18; pub const GFileError_G_FILE_ERROR_AGAIN: GFileError = 19; pub const GFileError_G_FILE_ERROR_INTR: GFileError = 20; pub const GFileError_G_FILE_ERROR_IO: GFileError = 21; pub const GFileError_G_FILE_ERROR_PERM: GFileError = 22; pub const GFileError_G_FILE_ERROR_NOSYS: GFileError = 23; pub const GFileError_G_FILE_ERROR_FAILED: GFileError = 24; pub type GFileError = ::std::os::raw::c_uint; pub const GFileTest_G_FILE_TEST_IS_REGULAR: GFileTest = 1; pub const GFileTest_G_FILE_TEST_IS_SYMLINK: GFileTest = 2; pub const GFileTest_G_FILE_TEST_IS_DIR: GFileTest = 4; pub const GFileTest_G_FILE_TEST_IS_EXECUTABLE: GFileTest = 8; pub const GFileTest_G_FILE_TEST_EXISTS: GFileTest = 16; pub type GFileTest = ::std::os::raw::c_uint; pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_NONE: GFileSetContentsFlags = 0; pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_CONSISTENT: GFileSetContentsFlags = 1; pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_DURABLE: GFileSetContentsFlags = 2; pub const GFileSetContentsFlags_G_FILE_SET_CONTENTS_ONLY_EXISTING: GFileSetContentsFlags = 4; pub type GFileSetContentsFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_file_error_quark() -> GQuark; } extern "C" { pub fn g_file_error_from_errno(err_no: gint) -> GFileError; } extern "C" { pub fn g_file_test(filename: *const gchar, test: GFileTest) -> gboolean; } extern "C" { pub fn g_file_get_contents( filename: *const gchar, contents: *mut *mut gchar, length: *mut gsize, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_file_set_contents( filename: *const gchar, contents: *const gchar, length: gssize, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_file_set_contents_full( filename: *const gchar, contents: *const gchar, length: gssize, flags: GFileSetContentsFlags, mode: ::std::os::raw::c_int, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_file_read_link(filename: *const gchar, error: *mut *mut GError) -> *mut gchar; } extern "C" { pub fn g_mkdtemp(tmpl: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_mkdtemp_full(tmpl: *mut gchar, mode: gint) -> *mut gchar; } extern "C" { pub fn g_mkstemp(tmpl: *mut gchar) -> gint; } extern "C" { pub fn g_mkstemp_full(tmpl: *mut gchar, flags: gint, mode: gint) -> gint; } extern "C" { pub fn g_file_open_tmp( tmpl: *const gchar, name_used: *mut *mut gchar, error: *mut *mut GError, ) -> gint; } extern "C" { pub fn g_dir_make_tmp(tmpl: *const gchar, error: *mut *mut GError) -> *mut gchar; } extern "C" { pub fn g_build_path(separator: *const gchar, first_element: *const gchar, ...) -> *mut gchar; } extern "C" { pub fn g_build_pathv(separator: *const gchar, args: *mut *mut gchar) -> *mut gchar; } extern "C" { pub fn g_build_filename(first_element: *const gchar, ...) -> *mut gchar; } extern "C" { pub fn g_build_filenamev(args: *mut *mut gchar) -> *mut gchar; } extern "C" { pub fn g_build_filename_valist(first_element: *const gchar, args: *mut va_list) -> *mut gchar; } extern "C" { pub fn g_mkdir_with_parents(pathname: *const gchar, mode: gint) -> gint; } extern "C" { pub fn g_path_is_absolute(file_name: *const gchar) -> gboolean; } extern "C" { pub fn g_path_skip_root(file_name: *const gchar) -> *const gchar; } extern "C" { pub fn g_basename(file_name: *const gchar) -> *const gchar; } extern "C" { pub fn g_get_current_dir() -> *mut gchar; } extern "C" { pub fn g_path_get_basename(file_name: *const gchar) -> *mut gchar; } extern "C" { pub fn g_path_get_dirname(file_name: *const gchar) -> *mut gchar; } extern "C" { pub fn g_canonicalize_filename(filename: *const gchar, relative_to: *const gchar) -> *mut gchar; } extern "C" { pub fn g_strip_context(msgid: *const gchar, msgval: *const gchar) -> *const gchar; } extern "C" { pub fn g_dgettext(domain: *const gchar, msgid: *const gchar) -> *const gchar; } extern "C" { pub fn g_dcgettext(domain: *const gchar, msgid: *const gchar, category: gint) -> *const gchar; } extern "C" { pub fn g_dngettext( domain: *const gchar, msgid: *const gchar, msgid_plural: *const gchar, n: gulong, ) -> *const gchar; } extern "C" { pub fn g_dpgettext( domain: *const gchar, msgctxtid: *const gchar, msgidoffset: gsize, ) -> *const gchar; } extern "C" { pub fn g_dpgettext2( domain: *const gchar, context: *const gchar, msgid: *const gchar, ) -> *const gchar; } pub type GMemVTable = _GMemVTable; extern "C" { pub fn g_free(mem: gpointer); } extern "C" { pub fn g_free_sized(mem: gpointer, size: usize); } extern "C" { pub fn g_clear_pointer(pp: *mut gpointer, destroy: GDestroyNotify); } extern "C" { pub fn g_malloc(n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_malloc0(n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_realloc(mem: gpointer, n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_malloc(n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_malloc0(n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_realloc(mem: gpointer, n_bytes: gsize) -> gpointer; } extern "C" { pub fn g_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_malloc_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_malloc0_n(n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_try_realloc_n(mem: gpointer, n_blocks: gsize, n_block_bytes: gsize) -> gpointer; } extern "C" { pub fn g_aligned_alloc(n_blocks: gsize, n_block_bytes: gsize, alignment: gsize) -> gpointer; } extern "C" { pub fn g_aligned_alloc0(n_blocks: gsize, n_block_bytes: gsize, alignment: gsize) -> gpointer; } extern "C" { pub fn g_aligned_free(mem: gpointer); } extern "C" { pub fn g_aligned_free_sized(mem: gpointer, alignment: usize, size: usize); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMemVTable { pub malloc: ::std::option::Option gpointer>, pub realloc: ::std::option::Option gpointer>, pub free: ::std::option::Option, pub calloc: ::std::option::Option< unsafe extern "C" fn(n_blocks: gsize, n_block_bytes: gsize) -> gpointer, >, pub try_malloc: ::std::option::Option gpointer>, pub try_realloc: ::std::option::Option gpointer>, } #[test] fn bindgen_test_layout__GMemVTable() { const UNINIT: ::std::mem::MaybeUninit<_GMemVTable> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GMemVTable>(), 48usize, concat!("Size of: ", stringify!(_GMemVTable)) ); assert_eq!( ::std::mem::align_of::<_GMemVTable>(), 8usize, concat!("Alignment of ", stringify!(_GMemVTable)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).malloc) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(malloc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).realloc) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(realloc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).free) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(free) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).calloc) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(calloc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).try_malloc) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(try_malloc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).try_realloc) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GMemVTable), "::", stringify!(try_realloc) ) ); } extern "C" { pub fn g_mem_set_vtable(vtable: *mut GMemVTable); } extern "C" { pub fn g_mem_is_system_malloc() -> gboolean; } extern "C" { pub static mut g_mem_gc_friendly: gboolean; } extern "C" { pub static mut glib_mem_profiler_table: *mut GMemVTable; } extern "C" { pub fn g_mem_profile(); } pub type GNode = _GNode; pub const GTraverseFlags_G_TRAVERSE_LEAVES: GTraverseFlags = 1; pub const GTraverseFlags_G_TRAVERSE_NON_LEAVES: GTraverseFlags = 2; pub const GTraverseFlags_G_TRAVERSE_ALL: GTraverseFlags = 3; pub const GTraverseFlags_G_TRAVERSE_MASK: GTraverseFlags = 3; pub const GTraverseFlags_G_TRAVERSE_LEAFS: GTraverseFlags = 1; pub const GTraverseFlags_G_TRAVERSE_NON_LEAFS: GTraverseFlags = 2; pub type GTraverseFlags = ::std::os::raw::c_uint; pub const GTraverseType_G_IN_ORDER: GTraverseType = 0; pub const GTraverseType_G_PRE_ORDER: GTraverseType = 1; pub const GTraverseType_G_POST_ORDER: GTraverseType = 2; pub const GTraverseType_G_LEVEL_ORDER: GTraverseType = 3; pub type GTraverseType = ::std::os::raw::c_uint; pub type GNodeTraverseFunc = ::std::option::Option gboolean>; pub type GNodeForeachFunc = ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GNode { pub data: gpointer, pub next: *mut GNode, pub prev: *mut GNode, pub parent: *mut GNode, pub children: *mut GNode, } #[test] fn bindgen_test_layout__GNode() { const UNINIT: ::std::mem::MaybeUninit<_GNode> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GNode>(), 40usize, concat!("Size of: ", stringify!(_GNode)) ); assert_eq!( ::std::mem::align_of::<_GNode>(), 8usize, concat!("Alignment of ", stringify!(_GNode)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GNode), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GNode), "::", stringify!(next) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GNode), "::", stringify!(prev) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).parent) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GNode), "::", stringify!(parent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).children) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GNode), "::", stringify!(children) ) ); } extern "C" { pub fn g_node_new(data: gpointer) -> *mut GNode; } extern "C" { pub fn g_node_destroy(root: *mut GNode); } extern "C" { pub fn g_node_unlink(node: *mut GNode); } extern "C" { pub fn g_node_copy_deep(node: *mut GNode, copy_func: GCopyFunc, data: gpointer) -> *mut GNode; } extern "C" { pub fn g_node_copy(node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_insert(parent: *mut GNode, position: gint, node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_insert_before( parent: *mut GNode, sibling: *mut GNode, node: *mut GNode, ) -> *mut GNode; } extern "C" { pub fn g_node_insert_after( parent: *mut GNode, sibling: *mut GNode, node: *mut GNode, ) -> *mut GNode; } extern "C" { pub fn g_node_prepend(parent: *mut GNode, node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_n_nodes(root: *mut GNode, flags: GTraverseFlags) -> guint; } extern "C" { pub fn g_node_get_root(node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_is_ancestor(node: *mut GNode, descendant: *mut GNode) -> gboolean; } extern "C" { pub fn g_node_depth(node: *mut GNode) -> guint; } extern "C" { pub fn g_node_find( root: *mut GNode, order: GTraverseType, flags: GTraverseFlags, data: gpointer, ) -> *mut GNode; } extern "C" { pub fn g_node_traverse( root: *mut GNode, order: GTraverseType, flags: GTraverseFlags, max_depth: gint, func: GNodeTraverseFunc, data: gpointer, ); } extern "C" { pub fn g_node_max_height(root: *mut GNode) -> guint; } extern "C" { pub fn g_node_children_foreach( node: *mut GNode, flags: GTraverseFlags, func: GNodeForeachFunc, data: gpointer, ); } extern "C" { pub fn g_node_reverse_children(node: *mut GNode); } extern "C" { pub fn g_node_n_children(node: *mut GNode) -> guint; } extern "C" { pub fn g_node_nth_child(node: *mut GNode, n: guint) -> *mut GNode; } extern "C" { pub fn g_node_last_child(node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer) -> *mut GNode; } extern "C" { pub fn g_node_child_position(node: *mut GNode, child: *mut GNode) -> gint; } extern "C" { pub fn g_node_child_index(node: *mut GNode, data: gpointer) -> gint; } extern "C" { pub fn g_node_first_sibling(node: *mut GNode) -> *mut GNode; } extern "C" { pub fn g_node_last_sibling(node: *mut GNode) -> *mut GNode; } pub type GList = _GList; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GList { pub data: gpointer, pub next: *mut GList, pub prev: *mut GList, } #[test] fn bindgen_test_layout__GList() { const UNINIT: ::std::mem::MaybeUninit<_GList> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GList>(), 24usize, concat!("Size of: ", stringify!(_GList)) ); assert_eq!( ::std::mem::align_of::<_GList>(), 8usize, concat!("Alignment of ", stringify!(_GList)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GList), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GList), "::", stringify!(next) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GList), "::", stringify!(prev) ) ); } extern "C" { pub fn g_list_alloc() -> *mut GList; } extern "C" { pub fn g_list_free(list: *mut GList); } extern "C" { pub fn g_list_free_1(list: *mut GList); } extern "C" { pub fn g_list_free_full(list: *mut GList, free_func: GDestroyNotify); } extern "C" { pub fn g_list_append(list: *mut GList, data: gpointer) -> *mut GList; } extern "C" { pub fn g_list_prepend(list: *mut GList, data: gpointer) -> *mut GList; } extern "C" { pub fn g_list_insert(list: *mut GList, data: gpointer, position: gint) -> *mut GList; } extern "C" { pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc) -> *mut GList; } extern "C" { pub fn g_list_insert_sorted_with_data( list: *mut GList, data: gpointer, func: GCompareDataFunc, user_data: gpointer, ) -> *mut GList; } extern "C" { pub fn g_list_insert_before( list: *mut GList, sibling: *mut GList, data: gpointer, ) -> *mut GList; } extern "C" { pub fn g_list_insert_before_link( list: *mut GList, sibling: *mut GList, link_: *mut GList, ) -> *mut GList; } extern "C" { pub fn g_list_concat(list1: *mut GList, list2: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_remove(list: *mut GList, data: gconstpointer) -> *mut GList; } extern "C" { pub fn g_list_remove_all(list: *mut GList, data: gconstpointer) -> *mut GList; } extern "C" { pub fn g_list_remove_link(list: *mut GList, llink: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_delete_link(list: *mut GList, link_: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_reverse(list: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_copy(list: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_copy_deep(list: *mut GList, func: GCopyFunc, user_data: gpointer) -> *mut GList; } extern "C" { pub fn g_list_nth(list: *mut GList, n: guint) -> *mut GList; } extern "C" { pub fn g_list_nth_prev(list: *mut GList, n: guint) -> *mut GList; } extern "C" { pub fn g_list_find(list: *mut GList, data: gconstpointer) -> *mut GList; } extern "C" { pub fn g_list_find_custom( list: *mut GList, data: gconstpointer, func: GCompareFunc, ) -> *mut GList; } extern "C" { pub fn g_list_position(list: *mut GList, llink: *mut GList) -> gint; } extern "C" { pub fn g_list_index(list: *mut GList, data: gconstpointer) -> gint; } extern "C" { pub fn g_list_last(list: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_first(list: *mut GList) -> *mut GList; } extern "C" { pub fn g_list_length(list: *mut GList) -> guint; } extern "C" { pub fn g_list_foreach(list: *mut GList, func: GFunc, user_data: gpointer); } extern "C" { pub fn g_list_sort(list: *mut GList, compare_func: GCompareFunc) -> *mut GList; } extern "C" { pub fn g_list_sort_with_data( list: *mut GList, compare_func: GCompareDataFunc, user_data: gpointer, ) -> *mut GList; } extern "C" { pub fn g_list_nth_data(list: *mut GList, n: guint) -> gpointer; } extern "C" { pub fn g_clear_list(list_ptr: *mut *mut GList, destroy: GDestroyNotify); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GHashTable { _unused: [u8; 0], } pub type GHashTable = _GHashTable; pub type GHRFunc = ::std::option::Option< unsafe extern "C" fn(key: gpointer, value: gpointer, user_data: gpointer) -> gboolean, >; pub type GHashTableIter = _GHashTableIter; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GHashTableIter { pub dummy1: gpointer, pub dummy2: gpointer, pub dummy3: gpointer, pub dummy4: ::std::os::raw::c_int, pub dummy5: gboolean, pub dummy6: gpointer, } #[test] fn bindgen_test_layout__GHashTableIter() { const UNINIT: ::std::mem::MaybeUninit<_GHashTableIter> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GHashTableIter>(), 40usize, concat!("Size of: ", stringify!(_GHashTableIter)) ); assert_eq!( ::std::mem::align_of::<_GHashTableIter>(), 8usize, concat!("Alignment of ", stringify!(_GHashTableIter)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy2) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy3) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy4) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy4) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy5) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy5) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy6) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GHashTableIter), "::", stringify!(dummy6) ) ); } extern "C" { pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable; } extern "C" { pub fn g_hash_table_new_full( hash_func: GHashFunc, key_equal_func: GEqualFunc, key_destroy_func: GDestroyNotify, value_destroy_func: GDestroyNotify, ) -> *mut GHashTable; } extern "C" { pub fn g_hash_table_new_similar(other_hash_table: *mut GHashTable) -> *mut GHashTable; } extern "C" { pub fn g_hash_table_destroy(hash_table: *mut GHashTable); } extern "C" { pub fn g_hash_table_insert( hash_table: *mut GHashTable, key: gpointer, value: gpointer, ) -> gboolean; } extern "C" { pub fn g_hash_table_replace( hash_table: *mut GHashTable, key: gpointer, value: gpointer, ) -> gboolean; } extern "C" { pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean; } extern "C" { pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; } extern "C" { pub fn g_hash_table_remove_all(hash_table: *mut GHashTable); } extern "C" { pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; } extern "C" { pub fn g_hash_table_steal_extended( hash_table: *mut GHashTable, lookup_key: gconstpointer, stolen_key: *mut gpointer, stolen_value: *mut gpointer, ) -> gboolean; } extern "C" { pub fn g_hash_table_steal_all(hash_table: *mut GHashTable); } extern "C" { pub fn g_hash_table_steal_all_keys(hash_table: *mut GHashTable) -> *mut GPtrArray; } extern "C" { pub fn g_hash_table_steal_all_values(hash_table: *mut GHashTable) -> *mut GPtrArray; } extern "C" { pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer; } extern "C" { pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; } extern "C" { pub fn g_hash_table_lookup_extended( hash_table: *mut GHashTable, lookup_key: gconstpointer, orig_key: *mut gpointer, value: *mut gpointer, ) -> gboolean; } extern "C" { pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer); } extern "C" { pub fn g_hash_table_find( hash_table: *mut GHashTable, predicate: GHRFunc, user_data: gpointer, ) -> gpointer; } extern "C" { pub fn g_hash_table_foreach_remove( hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer, ) -> guint; } extern "C" { pub fn g_hash_table_foreach_steal( hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer, ) -> guint; } extern "C" { pub fn g_hash_table_size(hash_table: *mut GHashTable) -> guint; } extern "C" { pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList; } extern "C" { pub fn g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList; } extern "C" { pub fn g_hash_table_get_keys_as_array( hash_table: *mut GHashTable, length: *mut guint, ) -> *mut gpointer; } extern "C" { pub fn g_hash_table_get_keys_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray; } extern "C" { pub fn g_hash_table_get_values_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray; } extern "C" { pub fn g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable); } extern "C" { pub fn g_hash_table_iter_next( iter: *mut GHashTableIter, key: *mut gpointer, value: *mut gpointer, ) -> gboolean; } extern "C" { pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable; } extern "C" { pub fn g_hash_table_iter_remove(iter: *mut GHashTableIter); } extern "C" { pub fn g_hash_table_iter_replace(iter: *mut GHashTableIter, value: gpointer); } extern "C" { pub fn g_hash_table_iter_steal(iter: *mut GHashTableIter); } extern "C" { pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable; } extern "C" { pub fn g_hash_table_unref(hash_table: *mut GHashTable); } extern "C" { pub fn g_str_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } extern "C" { pub fn g_str_hash(v: gconstpointer) -> guint; } extern "C" { pub fn g_int_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } extern "C" { pub fn g_int_hash(v: gconstpointer) -> guint; } extern "C" { pub fn g_int64_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } extern "C" { pub fn g_int64_hash(v: gconstpointer) -> guint; } extern "C" { pub fn g_double_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } extern "C" { pub fn g_double_hash(v: gconstpointer) -> guint; } extern "C" { pub fn g_direct_hash(v: gconstpointer) -> guint; } extern "C" { pub fn g_direct_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GHmac { _unused: [u8; 0], } pub type GHmac = _GHmac; extern "C" { pub fn g_hmac_new(digest_type: GChecksumType, key: *const guchar, key_len: gsize) -> *mut GHmac; } extern "C" { pub fn g_hmac_copy(hmac: *const GHmac) -> *mut GHmac; } extern "C" { pub fn g_hmac_ref(hmac: *mut GHmac) -> *mut GHmac; } extern "C" { pub fn g_hmac_unref(hmac: *mut GHmac); } extern "C" { pub fn g_hmac_update(hmac: *mut GHmac, data: *const guchar, length: gssize); } extern "C" { pub fn g_hmac_get_string(hmac: *mut GHmac) -> *const gchar; } extern "C" { pub fn g_hmac_get_digest(hmac: *mut GHmac, buffer: *mut guint8, digest_len: *mut gsize); } extern "C" { pub fn g_compute_hmac_for_data( digest_type: GChecksumType, key: *const guchar, key_len: gsize, data: *const guchar, length: gsize, ) -> *mut gchar; } extern "C" { pub fn g_compute_hmac_for_string( digest_type: GChecksumType, key: *const guchar, key_len: gsize, str_: *const gchar, length: gssize, ) -> *mut gchar; } extern "C" { pub fn g_compute_hmac_for_bytes( digest_type: GChecksumType, key: *mut GBytes, data: *mut GBytes, ) -> *mut gchar; } pub type GHook = _GHook; pub type GHookList = _GHookList; pub type GHookCompareFunc = ::std::option::Option gint>; pub type GHookFindFunc = ::std::option::Option gboolean>; pub type GHookMarshaller = ::std::option::Option; pub type GHookCheckMarshaller = ::std::option::Option< unsafe extern "C" fn(hook: *mut GHook, marshal_data: gpointer) -> gboolean, >; pub type GHookFunc = ::std::option::Option; pub type GHookCheckFunc = ::std::option::Option gboolean>; pub type GHookFinalizeFunc = ::std::option::Option; pub const GHookFlagMask_G_HOOK_FLAG_ACTIVE: GHookFlagMask = 1; pub const GHookFlagMask_G_HOOK_FLAG_IN_CALL: GHookFlagMask = 2; pub const GHookFlagMask_G_HOOK_FLAG_MASK: GHookFlagMask = 15; pub type GHookFlagMask = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GHookList { pub seq_id: gulong, pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, pub hooks: *mut GHook, pub dummy3: gpointer, pub finalize_hook: GHookFinalizeFunc, pub dummy: [gpointer; 2usize], } #[test] fn bindgen_test_layout__GHookList() { const UNINIT: ::std::mem::MaybeUninit<_GHookList> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GHookList>(), 56usize, concat!("Size of: ", stringify!(_GHookList)) ); assert_eq!( ::std::mem::align_of::<_GHookList>(), 8usize, concat!("Alignment of ", stringify!(_GHookList)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seq_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GHookList), "::", stringify!(seq_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hooks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GHookList), "::", stringify!(hooks) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy3) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GHookList), "::", stringify!(dummy3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).finalize_hook) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GHookList), "::", stringify!(finalize_hook) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GHookList), "::", stringify!(dummy) ) ); } impl _GHookList { #[inline] pub fn hook_size(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } } #[inline] pub fn set_hook_size(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 16u8, val as u64) } } #[inline] pub fn is_setup(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) } } #[inline] pub fn set_is_setup(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(16usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( hook_size: guint, is_setup: guint, ) -> __BindgenBitfieldUnit<[u8; 3usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 16u8, { let hook_size: u32 = unsafe { ::std::mem::transmute(hook_size) }; hook_size as u64 }); __bindgen_bitfield_unit.set(16usize, 1u8, { let is_setup: u32 = unsafe { ::std::mem::transmute(is_setup) }; is_setup as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GHook { pub data: gpointer, pub next: *mut GHook, pub prev: *mut GHook, pub ref_count: guint, pub hook_id: gulong, pub flags: guint, pub func: gpointer, pub destroy: GDestroyNotify, } #[test] fn bindgen_test_layout__GHook() { const UNINIT: ::std::mem::MaybeUninit<_GHook> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GHook>(), 64usize, concat!("Size of: ", stringify!(_GHook)) ); assert_eq!( ::std::mem::align_of::<_GHook>(), 8usize, concat!("Alignment of ", stringify!(_GHook)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(next) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(prev) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ref_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(ref_count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hook_id) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(hook_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(func) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GHook), "::", stringify!(destroy) ) ); } extern "C" { pub fn g_hook_list_init(hook_list: *mut GHookList, hook_size: guint); } extern "C" { pub fn g_hook_list_clear(hook_list: *mut GHookList); } extern "C" { pub fn g_hook_alloc(hook_list: *mut GHookList) -> *mut GHook; } extern "C" { pub fn g_hook_free(hook_list: *mut GHookList, hook: *mut GHook); } extern "C" { pub fn g_hook_ref(hook_list: *mut GHookList, hook: *mut GHook) -> *mut GHook; } extern "C" { pub fn g_hook_unref(hook_list: *mut GHookList, hook: *mut GHook); } extern "C" { pub fn g_hook_destroy(hook_list: *mut GHookList, hook_id: gulong) -> gboolean; } extern "C" { pub fn g_hook_destroy_link(hook_list: *mut GHookList, hook: *mut GHook); } extern "C" { pub fn g_hook_prepend(hook_list: *mut GHookList, hook: *mut GHook); } extern "C" { pub fn g_hook_insert_before(hook_list: *mut GHookList, sibling: *mut GHook, hook: *mut GHook); } extern "C" { pub fn g_hook_insert_sorted( hook_list: *mut GHookList, hook: *mut GHook, func: GHookCompareFunc, ); } extern "C" { pub fn g_hook_get(hook_list: *mut GHookList, hook_id: gulong) -> *mut GHook; } extern "C" { pub fn g_hook_find( hook_list: *mut GHookList, need_valids: gboolean, func: GHookFindFunc, data: gpointer, ) -> *mut GHook; } extern "C" { pub fn g_hook_find_data( hook_list: *mut GHookList, need_valids: gboolean, data: gpointer, ) -> *mut GHook; } extern "C" { pub fn g_hook_find_func( hook_list: *mut GHookList, need_valids: gboolean, func: gpointer, ) -> *mut GHook; } extern "C" { pub fn g_hook_find_func_data( hook_list: *mut GHookList, need_valids: gboolean, func: gpointer, data: gpointer, ) -> *mut GHook; } extern "C" { pub fn g_hook_first_valid(hook_list: *mut GHookList, may_be_in_call: gboolean) -> *mut GHook; } extern "C" { pub fn g_hook_next_valid( hook_list: *mut GHookList, hook: *mut GHook, may_be_in_call: gboolean, ) -> *mut GHook; } extern "C" { pub fn g_hook_compare_ids(new_hook: *mut GHook, sibling: *mut GHook) -> gint; } extern "C" { pub fn g_hook_list_invoke(hook_list: *mut GHookList, may_recurse: gboolean); } extern "C" { pub fn g_hook_list_invoke_check(hook_list: *mut GHookList, may_recurse: gboolean); } extern "C" { pub fn g_hook_list_marshal( hook_list: *mut GHookList, may_recurse: gboolean, marshaller: GHookMarshaller, marshal_data: gpointer, ); } extern "C" { pub fn g_hook_list_marshal_check( hook_list: *mut GHookList, may_recurse: gboolean, marshaller: GHookCheckMarshaller, marshal_data: gpointer, ); } extern "C" { pub fn g_hostname_is_non_ascii(hostname: *const gchar) -> gboolean; } extern "C" { pub fn g_hostname_is_ascii_encoded(hostname: *const gchar) -> gboolean; } extern "C" { pub fn g_hostname_is_ip_address(hostname: *const gchar) -> gboolean; } extern "C" { pub fn g_hostname_to_ascii(hostname: *const gchar) -> *mut gchar; } extern "C" { pub fn g_hostname_to_unicode(hostname: *const gchar) -> *mut gchar; } pub type GPollFD = _GPollFD; pub type GPollFunc = ::std::option::Option< unsafe extern "C" fn(ufds: *mut GPollFD, nfsd: guint, timeout_: gint) -> gint, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GPollFD { pub fd: gint, pub events: gushort, pub revents: gushort, } #[test] fn bindgen_test_layout__GPollFD() { const UNINIT: ::std::mem::MaybeUninit<_GPollFD> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GPollFD>(), 8usize, concat!("Size of: ", stringify!(_GPollFD)) ); assert_eq!( ::std::mem::align_of::<_GPollFD>(), 4usize, concat!("Alignment of ", stringify!(_GPollFD)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GPollFD), "::", stringify!(fd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).events) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_GPollFD), "::", stringify!(events) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).revents) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(_GPollFD), "::", stringify!(revents) ) ); } extern "C" { pub fn g_poll(fds: *mut GPollFD, nfds: guint, timeout: gint) -> gint; } pub type GSList = _GSList; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSList { pub data: gpointer, pub next: *mut GSList, } #[test] fn bindgen_test_layout__GSList() { const UNINIT: ::std::mem::MaybeUninit<_GSList> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GSList>(), 16usize, concat!("Size of: ", stringify!(_GSList)) ); assert_eq!( ::std::mem::align_of::<_GSList>(), 8usize, concat!("Alignment of ", stringify!(_GSList)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GSList), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GSList), "::", stringify!(next) ) ); } extern "C" { pub fn g_slist_alloc() -> *mut GSList; } extern "C" { pub fn g_slist_free(list: *mut GSList); } extern "C" { pub fn g_slist_free_1(list: *mut GSList); } extern "C" { pub fn g_slist_free_full(list: *mut GSList, free_func: GDestroyNotify); } extern "C" { pub fn g_slist_append(list: *mut GSList, data: gpointer) -> *mut GSList; } extern "C" { pub fn g_slist_prepend(list: *mut GSList, data: gpointer) -> *mut GSList; } extern "C" { pub fn g_slist_insert(list: *mut GSList, data: gpointer, position: gint) -> *mut GSList; } extern "C" { pub fn g_slist_insert_sorted( list: *mut GSList, data: gpointer, func: GCompareFunc, ) -> *mut GSList; } extern "C" { pub fn g_slist_insert_sorted_with_data( list: *mut GSList, data: gpointer, func: GCompareDataFunc, user_data: gpointer, ) -> *mut GSList; } extern "C" { pub fn g_slist_insert_before( slist: *mut GSList, sibling: *mut GSList, data: gpointer, ) -> *mut GSList; } extern "C" { pub fn g_slist_concat(list1: *mut GSList, list2: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_remove(list: *mut GSList, data: gconstpointer) -> *mut GSList; } extern "C" { pub fn g_slist_remove_all(list: *mut GSList, data: gconstpointer) -> *mut GSList; } extern "C" { pub fn g_slist_remove_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_delete_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_reverse(list: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_copy(list: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_copy_deep( list: *mut GSList, func: GCopyFunc, user_data: gpointer, ) -> *mut GSList; } extern "C" { pub fn g_slist_nth(list: *mut GSList, n: guint) -> *mut GSList; } extern "C" { pub fn g_slist_find(list: *mut GSList, data: gconstpointer) -> *mut GSList; } extern "C" { pub fn g_slist_find_custom( list: *mut GSList, data: gconstpointer, func: GCompareFunc, ) -> *mut GSList; } extern "C" { pub fn g_slist_position(list: *mut GSList, llink: *mut GSList) -> gint; } extern "C" { pub fn g_slist_index(list: *mut GSList, data: gconstpointer) -> gint; } extern "C" { pub fn g_slist_last(list: *mut GSList) -> *mut GSList; } extern "C" { pub fn g_slist_length(list: *mut GSList) -> guint; } extern "C" { pub fn g_slist_foreach(list: *mut GSList, func: GFunc, user_data: gpointer); } extern "C" { pub fn g_slist_sort(list: *mut GSList, compare_func: GCompareFunc) -> *mut GSList; } extern "C" { pub fn g_slist_sort_with_data( list: *mut GSList, compare_func: GCompareDataFunc, user_data: gpointer, ) -> *mut GSList; } extern "C" { pub fn g_slist_nth_data(list: *mut GSList, n: guint) -> gpointer; } extern "C" { pub fn g_clear_slist(slist_ptr: *mut *mut GSList, destroy: GDestroyNotify); } pub const GIOCondition_G_IO_IN: GIOCondition = 1; pub const GIOCondition_G_IO_OUT: GIOCondition = 4; pub const GIOCondition_G_IO_PRI: GIOCondition = 2; pub const GIOCondition_G_IO_ERR: GIOCondition = 8; pub const GIOCondition_G_IO_HUP: GIOCondition = 16; pub const GIOCondition_G_IO_NVAL: GIOCondition = 32; pub type GIOCondition = ::std::os::raw::c_uint; pub const GMainContextFlags_G_MAIN_CONTEXT_FLAGS_NONE: GMainContextFlags = 0; pub const GMainContextFlags_G_MAIN_CONTEXT_FLAGS_OWNERLESS_POLLING: GMainContextFlags = 1; pub type GMainContextFlags = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMainContext { _unused: [u8; 0], } pub type GMainContext = _GMainContext; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMainLoop { _unused: [u8; 0], } pub type GMainLoop = _GMainLoop; pub type GSource = _GSource; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSourcePrivate { _unused: [u8; 0], } pub type GSourcePrivate = _GSourcePrivate; pub type GSourceCallbackFuncs = _GSourceCallbackFuncs; pub type GSourceFuncs = _GSourceFuncs; pub type GSourceFunc = ::std::option::Option gboolean>; pub type GSourceOnceFunc = ::std::option::Option; pub type GChildWatchFunc = ::std::option::Option; pub type GSourceDisposeFunc = ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSource { pub callback_data: gpointer, pub callback_funcs: *mut GSourceCallbackFuncs, pub source_funcs: *const GSourceFuncs, pub ref_count: guint, pub context: *mut GMainContext, pub priority: gint, pub flags: guint, pub source_id: guint, pub poll_fds: *mut GSList, pub prev: *mut GSource, pub next: *mut GSource, pub name: *mut ::std::os::raw::c_char, pub priv_: *mut GSourcePrivate, } #[test] fn bindgen_test_layout__GSource() { const UNINIT: ::std::mem::MaybeUninit<_GSource> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GSource>(), 96usize, concat!("Size of: ", stringify!(_GSource)) ); assert_eq!( ::std::mem::align_of::<_GSource>(), 8usize, concat!("Alignment of ", stringify!(_GSource)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).callback_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(callback_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).callback_funcs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(callback_funcs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).source_funcs) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(source_funcs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ref_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(ref_count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(context) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(priority) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).source_id) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(source_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).poll_fds) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(poll_fds) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(prev) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(next) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).priv_) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_GSource), "::", stringify!(priv_) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSourceCallbackFuncs { pub ref_: ::std::option::Option, pub unref: ::std::option::Option, pub get: ::std::option::Option< unsafe extern "C" fn( cb_data: gpointer, source: *mut GSource, func: *mut GSourceFunc, data: *mut gpointer, ), >, } #[test] fn bindgen_test_layout__GSourceCallbackFuncs() { const UNINIT: ::std::mem::MaybeUninit<_GSourceCallbackFuncs> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GSourceCallbackFuncs>(), 24usize, concat!("Size of: ", stringify!(_GSourceCallbackFuncs)) ); assert_eq!( ::std::mem::align_of::<_GSourceCallbackFuncs>(), 8usize, concat!("Alignment of ", stringify!(_GSourceCallbackFuncs)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ref_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(ref_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).unref) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(unref) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).get) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GSourceCallbackFuncs), "::", stringify!(get) ) ); } pub type GSourceDummyMarshal = ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSourceFuncs { pub prepare: ::std::option::Option< unsafe extern "C" fn(source: *mut GSource, timeout_: *mut gint) -> gboolean, >, pub check: ::std::option::Option gboolean>, pub dispatch: ::std::option::Option< unsafe extern "C" fn( source: *mut GSource, callback: GSourceFunc, user_data: gpointer, ) -> gboolean, >, pub finalize: ::std::option::Option, pub closure_callback: GSourceFunc, pub closure_marshal: GSourceDummyMarshal, } #[test] fn bindgen_test_layout__GSourceFuncs() { const UNINIT: ::std::mem::MaybeUninit<_GSourceFuncs> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GSourceFuncs>(), 48usize, concat!("Size of: ", stringify!(_GSourceFuncs)) ); assert_eq!( ::std::mem::align_of::<_GSourceFuncs>(), 8usize, concat!("Alignment of ", stringify!(_GSourceFuncs)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prepare) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(prepare) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).check) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(check) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dispatch) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(dispatch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).finalize) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(finalize) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).closure_callback) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(closure_callback) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).closure_marshal) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GSourceFuncs), "::", stringify!(closure_marshal) ) ); } extern "C" { pub fn g_main_context_new() -> *mut GMainContext; } extern "C" { pub fn g_main_context_new_with_flags(flags: GMainContextFlags) -> *mut GMainContext; } extern "C" { pub fn g_main_context_ref(context: *mut GMainContext) -> *mut GMainContext; } extern "C" { pub fn g_main_context_unref(context: *mut GMainContext); } extern "C" { pub fn g_main_context_default() -> *mut GMainContext; } extern "C" { pub fn g_main_context_iteration(context: *mut GMainContext, may_block: gboolean) -> gboolean; } extern "C" { pub fn g_main_context_pending(context: *mut GMainContext) -> gboolean; } extern "C" { pub fn g_main_context_find_source_by_id( context: *mut GMainContext, source_id: guint, ) -> *mut GSource; } extern "C" { pub fn g_main_context_find_source_by_user_data( context: *mut GMainContext, user_data: gpointer, ) -> *mut GSource; } extern "C" { pub fn g_main_context_find_source_by_funcs_user_data( context: *mut GMainContext, funcs: *mut GSourceFuncs, user_data: gpointer, ) -> *mut GSource; } extern "C" { pub fn g_main_context_wakeup(context: *mut GMainContext); } extern "C" { pub fn g_main_context_acquire(context: *mut GMainContext) -> gboolean; } extern "C" { pub fn g_main_context_release(context: *mut GMainContext); } extern "C" { pub fn g_main_context_is_owner(context: *mut GMainContext) -> gboolean; } extern "C" { pub fn g_main_context_wait( context: *mut GMainContext, cond: *mut GCond, mutex: *mut GMutex, ) -> gboolean; } extern "C" { pub fn g_main_context_prepare(context: *mut GMainContext, priority: *mut gint) -> gboolean; } extern "C" { pub fn g_main_context_query( context: *mut GMainContext, max_priority: gint, timeout_: *mut gint, fds: *mut GPollFD, n_fds: gint, ) -> gint; } extern "C" { pub fn g_main_context_check( context: *mut GMainContext, max_priority: gint, fds: *mut GPollFD, n_fds: gint, ) -> gboolean; } extern "C" { pub fn g_main_context_dispatch(context: *mut GMainContext); } extern "C" { pub fn g_main_context_set_poll_func(context: *mut GMainContext, func: GPollFunc); } extern "C" { pub fn g_main_context_get_poll_func(context: *mut GMainContext) -> GPollFunc; } extern "C" { pub fn g_main_context_add_poll(context: *mut GMainContext, fd: *mut GPollFD, priority: gint); } extern "C" { pub fn g_main_context_remove_poll(context: *mut GMainContext, fd: *mut GPollFD); } extern "C" { pub fn g_main_depth() -> gint; } extern "C" { pub fn g_main_current_source() -> *mut GSource; } extern "C" { pub fn g_main_context_push_thread_default(context: *mut GMainContext); } extern "C" { pub fn g_main_context_pop_thread_default(context: *mut GMainContext); } extern "C" { pub fn g_main_context_get_thread_default() -> *mut GMainContext; } extern "C" { pub fn g_main_context_ref_thread_default() -> *mut GMainContext; } pub type GMainContextPusher = ::std::os::raw::c_void; extern "C" { pub fn g_main_loop_new(context: *mut GMainContext, is_running: gboolean) -> *mut GMainLoop; } extern "C" { pub fn g_main_loop_run(loop_: *mut GMainLoop); } extern "C" { pub fn g_main_loop_quit(loop_: *mut GMainLoop); } extern "C" { pub fn g_main_loop_ref(loop_: *mut GMainLoop) -> *mut GMainLoop; } extern "C" { pub fn g_main_loop_unref(loop_: *mut GMainLoop); } extern "C" { pub fn g_main_loop_is_running(loop_: *mut GMainLoop) -> gboolean; } extern "C" { pub fn g_main_loop_get_context(loop_: *mut GMainLoop) -> *mut GMainContext; } extern "C" { pub fn g_source_new(source_funcs: *mut GSourceFuncs, struct_size: guint) -> *mut GSource; } extern "C" { pub fn g_source_set_dispose_function(source: *mut GSource, dispose: GSourceDisposeFunc); } extern "C" { pub fn g_source_ref(source: *mut GSource) -> *mut GSource; } extern "C" { pub fn g_source_unref(source: *mut GSource); } extern "C" { pub fn g_source_attach(source: *mut GSource, context: *mut GMainContext) -> guint; } extern "C" { pub fn g_source_destroy(source: *mut GSource); } extern "C" { pub fn g_source_set_priority(source: *mut GSource, priority: gint); } extern "C" { pub fn g_source_get_priority(source: *mut GSource) -> gint; } extern "C" { pub fn g_source_set_can_recurse(source: *mut GSource, can_recurse: gboolean); } extern "C" { pub fn g_source_get_can_recurse(source: *mut GSource) -> gboolean; } extern "C" { pub fn g_source_get_id(source: *mut GSource) -> guint; } extern "C" { pub fn g_source_get_context(source: *mut GSource) -> *mut GMainContext; } extern "C" { pub fn g_source_set_callback( source: *mut GSource, func: GSourceFunc, data: gpointer, notify: GDestroyNotify, ); } extern "C" { pub fn g_source_set_funcs(source: *mut GSource, funcs: *mut GSourceFuncs); } extern "C" { pub fn g_source_is_destroyed(source: *mut GSource) -> gboolean; } extern "C" { pub fn g_source_set_name(source: *mut GSource, name: *const ::std::os::raw::c_char); } extern "C" { pub fn g_source_set_static_name(source: *mut GSource, name: *const ::std::os::raw::c_char); } extern "C" { pub fn g_source_get_name(source: *mut GSource) -> *const ::std::os::raw::c_char; } extern "C" { pub fn g_source_set_name_by_id(tag: guint, name: *const ::std::os::raw::c_char); } extern "C" { pub fn g_source_set_ready_time(source: *mut GSource, ready_time: gint64); } extern "C" { pub fn g_source_get_ready_time(source: *mut GSource) -> gint64; } extern "C" { pub fn g_source_add_unix_fd(source: *mut GSource, fd: gint, events: GIOCondition) -> gpointer; } extern "C" { pub fn g_source_modify_unix_fd(source: *mut GSource, tag: gpointer, new_events: GIOCondition); } extern "C" { pub fn g_source_remove_unix_fd(source: *mut GSource, tag: gpointer); } extern "C" { pub fn g_source_query_unix_fd(source: *mut GSource, tag: gpointer) -> GIOCondition; } extern "C" { pub fn g_source_set_callback_indirect( source: *mut GSource, callback_data: gpointer, callback_funcs: *mut GSourceCallbackFuncs, ); } extern "C" { pub fn g_source_add_poll(source: *mut GSource, fd: *mut GPollFD); } extern "C" { pub fn g_source_remove_poll(source: *mut GSource, fd: *mut GPollFD); } extern "C" { pub fn g_source_add_child_source(source: *mut GSource, child_source: *mut GSource); } extern "C" { pub fn g_source_remove_child_source(source: *mut GSource, child_source: *mut GSource); } extern "C" { pub fn g_source_get_current_time(source: *mut GSource, timeval: *mut GTimeVal); } extern "C" { pub fn g_source_get_time(source: *mut GSource) -> gint64; } extern "C" { pub fn g_idle_source_new() -> *mut GSource; } extern "C" { pub fn g_child_watch_source_new(pid: GPid) -> *mut GSource; } extern "C" { pub fn g_timeout_source_new(interval: guint) -> *mut GSource; } extern "C" { pub fn g_timeout_source_new_seconds(interval: guint) -> *mut GSource; } extern "C" { pub fn g_get_current_time(result: *mut GTimeVal); } extern "C" { pub fn g_get_monotonic_time() -> gint64; } extern "C" { pub fn g_get_real_time() -> gint64; } extern "C" { pub fn g_source_remove(tag: guint) -> gboolean; } extern "C" { pub fn g_source_remove_by_user_data(user_data: gpointer) -> gboolean; } extern "C" { pub fn g_source_remove_by_funcs_user_data( funcs: *mut GSourceFuncs, user_data: gpointer, ) -> gboolean; } pub type GClearHandleFunc = ::std::option::Option; extern "C" { pub fn g_clear_handle_id(tag_ptr: *mut guint, clear_func: GClearHandleFunc); } extern "C" { pub fn g_timeout_add_full( priority: gint, interval: guint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_timeout_add(interval: guint, function: GSourceFunc, data: gpointer) -> guint; } extern "C" { pub fn g_timeout_add_once(interval: guint, function: GSourceOnceFunc, data: gpointer) -> guint; } extern "C" { pub fn g_timeout_add_seconds_full( priority: gint, interval: guint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_timeout_add_seconds(interval: guint, function: GSourceFunc, data: gpointer) -> guint; } extern "C" { pub fn g_child_watch_add_full( priority: gint, pid: GPid, function: GChildWatchFunc, data: gpointer, notify: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_child_watch_add(pid: GPid, function: GChildWatchFunc, data: gpointer) -> guint; } extern "C" { pub fn g_idle_add(function: GSourceFunc, data: gpointer) -> guint; } extern "C" { pub fn g_idle_add_full( priority: gint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_idle_add_once(function: GSourceOnceFunc, data: gpointer) -> guint; } extern "C" { pub fn g_idle_remove_by_data(data: gpointer) -> gboolean; } extern "C" { pub fn g_main_context_invoke_full( context: *mut GMainContext, priority: gint, function: GSourceFunc, data: gpointer, notify: GDestroyNotify, ); } extern "C" { pub fn g_main_context_invoke(context: *mut GMainContext, function: GSourceFunc, data: gpointer); } extern "C" { pub static mut g_timeout_funcs: GSourceFuncs; } extern "C" { pub static mut g_child_watch_funcs: GSourceFuncs; } extern "C" { pub static mut g_idle_funcs: GSourceFuncs; } extern "C" { pub static mut g_unix_signal_funcs: GSourceFuncs; } extern "C" { pub static mut g_unix_fd_source_funcs: GSourceFuncs; } pub type gunichar = guint32; pub type gunichar2 = guint16; pub const GUnicodeType_G_UNICODE_CONTROL: GUnicodeType = 0; pub const GUnicodeType_G_UNICODE_FORMAT: GUnicodeType = 1; pub const GUnicodeType_G_UNICODE_UNASSIGNED: GUnicodeType = 2; pub const GUnicodeType_G_UNICODE_PRIVATE_USE: GUnicodeType = 3; pub const GUnicodeType_G_UNICODE_SURROGATE: GUnicodeType = 4; pub const GUnicodeType_G_UNICODE_LOWERCASE_LETTER: GUnicodeType = 5; pub const GUnicodeType_G_UNICODE_MODIFIER_LETTER: GUnicodeType = 6; pub const GUnicodeType_G_UNICODE_OTHER_LETTER: GUnicodeType = 7; pub const GUnicodeType_G_UNICODE_TITLECASE_LETTER: GUnicodeType = 8; pub const GUnicodeType_G_UNICODE_UPPERCASE_LETTER: GUnicodeType = 9; pub const GUnicodeType_G_UNICODE_SPACING_MARK: GUnicodeType = 10; pub const GUnicodeType_G_UNICODE_ENCLOSING_MARK: GUnicodeType = 11; pub const GUnicodeType_G_UNICODE_NON_SPACING_MARK: GUnicodeType = 12; pub const GUnicodeType_G_UNICODE_DECIMAL_NUMBER: GUnicodeType = 13; pub const GUnicodeType_G_UNICODE_LETTER_NUMBER: GUnicodeType = 14; pub const GUnicodeType_G_UNICODE_OTHER_NUMBER: GUnicodeType = 15; pub const GUnicodeType_G_UNICODE_CONNECT_PUNCTUATION: GUnicodeType = 16; pub const GUnicodeType_G_UNICODE_DASH_PUNCTUATION: GUnicodeType = 17; pub const GUnicodeType_G_UNICODE_CLOSE_PUNCTUATION: GUnicodeType = 18; pub const GUnicodeType_G_UNICODE_FINAL_PUNCTUATION: GUnicodeType = 19; pub const GUnicodeType_G_UNICODE_INITIAL_PUNCTUATION: GUnicodeType = 20; pub const GUnicodeType_G_UNICODE_OTHER_PUNCTUATION: GUnicodeType = 21; pub const GUnicodeType_G_UNICODE_OPEN_PUNCTUATION: GUnicodeType = 22; pub const GUnicodeType_G_UNICODE_CURRENCY_SYMBOL: GUnicodeType = 23; pub const GUnicodeType_G_UNICODE_MODIFIER_SYMBOL: GUnicodeType = 24; pub const GUnicodeType_G_UNICODE_MATH_SYMBOL: GUnicodeType = 25; pub const GUnicodeType_G_UNICODE_OTHER_SYMBOL: GUnicodeType = 26; pub const GUnicodeType_G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27; pub const GUnicodeType_G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28; pub const GUnicodeType_G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29; pub type GUnicodeType = ::std::os::raw::c_uint; pub const GUnicodeBreakType_G_UNICODE_BREAK_MANDATORY: GUnicodeBreakType = 0; pub const GUnicodeBreakType_G_UNICODE_BREAK_CARRIAGE_RETURN: GUnicodeBreakType = 1; pub const GUnicodeBreakType_G_UNICODE_BREAK_LINE_FEED: GUnicodeBreakType = 2; pub const GUnicodeBreakType_G_UNICODE_BREAK_COMBINING_MARK: GUnicodeBreakType = 3; pub const GUnicodeBreakType_G_UNICODE_BREAK_SURROGATE: GUnicodeBreakType = 4; pub const GUnicodeBreakType_G_UNICODE_BREAK_ZERO_WIDTH_SPACE: GUnicodeBreakType = 5; pub const GUnicodeBreakType_G_UNICODE_BREAK_INSEPARABLE: GUnicodeBreakType = 6; pub const GUnicodeBreakType_G_UNICODE_BREAK_NON_BREAKING_GLUE: GUnicodeBreakType = 7; pub const GUnicodeBreakType_G_UNICODE_BREAK_CONTINGENT: GUnicodeBreakType = 8; pub const GUnicodeBreakType_G_UNICODE_BREAK_SPACE: GUnicodeBreakType = 9; pub const GUnicodeBreakType_G_UNICODE_BREAK_AFTER: GUnicodeBreakType = 10; pub const GUnicodeBreakType_G_UNICODE_BREAK_BEFORE: GUnicodeBreakType = 11; pub const GUnicodeBreakType_G_UNICODE_BREAK_BEFORE_AND_AFTER: GUnicodeBreakType = 12; pub const GUnicodeBreakType_G_UNICODE_BREAK_HYPHEN: GUnicodeBreakType = 13; pub const GUnicodeBreakType_G_UNICODE_BREAK_NON_STARTER: GUnicodeBreakType = 14; pub const GUnicodeBreakType_G_UNICODE_BREAK_OPEN_PUNCTUATION: GUnicodeBreakType = 15; pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PUNCTUATION: GUnicodeBreakType = 16; pub const GUnicodeBreakType_G_UNICODE_BREAK_QUOTATION: GUnicodeBreakType = 17; pub const GUnicodeBreakType_G_UNICODE_BREAK_EXCLAMATION: GUnicodeBreakType = 18; pub const GUnicodeBreakType_G_UNICODE_BREAK_IDEOGRAPHIC: GUnicodeBreakType = 19; pub const GUnicodeBreakType_G_UNICODE_BREAK_NUMERIC: GUnicodeBreakType = 20; pub const GUnicodeBreakType_G_UNICODE_BREAK_INFIX_SEPARATOR: GUnicodeBreakType = 21; pub const GUnicodeBreakType_G_UNICODE_BREAK_SYMBOL: GUnicodeBreakType = 22; pub const GUnicodeBreakType_G_UNICODE_BREAK_ALPHABETIC: GUnicodeBreakType = 23; pub const GUnicodeBreakType_G_UNICODE_BREAK_PREFIX: GUnicodeBreakType = 24; pub const GUnicodeBreakType_G_UNICODE_BREAK_POSTFIX: GUnicodeBreakType = 25; pub const GUnicodeBreakType_G_UNICODE_BREAK_COMPLEX_CONTEXT: GUnicodeBreakType = 26; pub const GUnicodeBreakType_G_UNICODE_BREAK_AMBIGUOUS: GUnicodeBreakType = 27; pub const GUnicodeBreakType_G_UNICODE_BREAK_UNKNOWN: GUnicodeBreakType = 28; pub const GUnicodeBreakType_G_UNICODE_BREAK_NEXT_LINE: GUnicodeBreakType = 29; pub const GUnicodeBreakType_G_UNICODE_BREAK_WORD_JOINER: GUnicodeBreakType = 30; pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_L_JAMO: GUnicodeBreakType = 31; pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_V_JAMO: GUnicodeBreakType = 32; pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_T_JAMO: GUnicodeBreakType = 33; pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: GUnicodeBreakType = 34; pub const GUnicodeBreakType_G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: GUnicodeBreakType = 35; pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PARANTHESIS: GUnicodeBreakType = 36; pub const GUnicodeBreakType_G_UNICODE_BREAK_CLOSE_PARENTHESIS: GUnicodeBreakType = 36; pub const GUnicodeBreakType_G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: GUnicodeBreakType = 37; pub const GUnicodeBreakType_G_UNICODE_BREAK_HEBREW_LETTER: GUnicodeBreakType = 38; pub const GUnicodeBreakType_G_UNICODE_BREAK_REGIONAL_INDICATOR: GUnicodeBreakType = 39; pub const GUnicodeBreakType_G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40; pub const GUnicodeBreakType_G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41; pub const GUnicodeBreakType_G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42; pub type GUnicodeBreakType = ::std::os::raw::c_uint; pub const GUnicodeScript_G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1; pub const GUnicodeScript_G_UNICODE_SCRIPT_COMMON: GUnicodeScript = 0; pub const GUnicodeScript_G_UNICODE_SCRIPT_INHERITED: GUnicodeScript = 1; pub const GUnicodeScript_G_UNICODE_SCRIPT_ARABIC: GUnicodeScript = 2; pub const GUnicodeScript_G_UNICODE_SCRIPT_ARMENIAN: GUnicodeScript = 3; pub const GUnicodeScript_G_UNICODE_SCRIPT_BENGALI: GUnicodeScript = 4; pub const GUnicodeScript_G_UNICODE_SCRIPT_BOPOMOFO: GUnicodeScript = 5; pub const GUnicodeScript_G_UNICODE_SCRIPT_CHEROKEE: GUnicodeScript = 6; pub const GUnicodeScript_G_UNICODE_SCRIPT_COPTIC: GUnicodeScript = 7; pub const GUnicodeScript_G_UNICODE_SCRIPT_CYRILLIC: GUnicodeScript = 8; pub const GUnicodeScript_G_UNICODE_SCRIPT_DESERET: GUnicodeScript = 9; pub const GUnicodeScript_G_UNICODE_SCRIPT_DEVANAGARI: GUnicodeScript = 10; pub const GUnicodeScript_G_UNICODE_SCRIPT_ETHIOPIC: GUnicodeScript = 11; pub const GUnicodeScript_G_UNICODE_SCRIPT_GEORGIAN: GUnicodeScript = 12; pub const GUnicodeScript_G_UNICODE_SCRIPT_GOTHIC: GUnicodeScript = 13; pub const GUnicodeScript_G_UNICODE_SCRIPT_GREEK: GUnicodeScript = 14; pub const GUnicodeScript_G_UNICODE_SCRIPT_GUJARATI: GUnicodeScript = 15; pub const GUnicodeScript_G_UNICODE_SCRIPT_GURMUKHI: GUnicodeScript = 16; pub const GUnicodeScript_G_UNICODE_SCRIPT_HAN: GUnicodeScript = 17; pub const GUnicodeScript_G_UNICODE_SCRIPT_HANGUL: GUnicodeScript = 18; pub const GUnicodeScript_G_UNICODE_SCRIPT_HEBREW: GUnicodeScript = 19; pub const GUnicodeScript_G_UNICODE_SCRIPT_HIRAGANA: GUnicodeScript = 20; pub const GUnicodeScript_G_UNICODE_SCRIPT_KANNADA: GUnicodeScript = 21; pub const GUnicodeScript_G_UNICODE_SCRIPT_KATAKANA: GUnicodeScript = 22; pub const GUnicodeScript_G_UNICODE_SCRIPT_KHMER: GUnicodeScript = 23; pub const GUnicodeScript_G_UNICODE_SCRIPT_LAO: GUnicodeScript = 24; pub const GUnicodeScript_G_UNICODE_SCRIPT_LATIN: GUnicodeScript = 25; pub const GUnicodeScript_G_UNICODE_SCRIPT_MALAYALAM: GUnicodeScript = 26; pub const GUnicodeScript_G_UNICODE_SCRIPT_MONGOLIAN: GUnicodeScript = 27; pub const GUnicodeScript_G_UNICODE_SCRIPT_MYANMAR: GUnicodeScript = 28; pub const GUnicodeScript_G_UNICODE_SCRIPT_OGHAM: GUnicodeScript = 29; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_ITALIC: GUnicodeScript = 30; pub const GUnicodeScript_G_UNICODE_SCRIPT_ORIYA: GUnicodeScript = 31; pub const GUnicodeScript_G_UNICODE_SCRIPT_RUNIC: GUnicodeScript = 32; pub const GUnicodeScript_G_UNICODE_SCRIPT_SINHALA: GUnicodeScript = 33; pub const GUnicodeScript_G_UNICODE_SCRIPT_SYRIAC: GUnicodeScript = 34; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAMIL: GUnicodeScript = 35; pub const GUnicodeScript_G_UNICODE_SCRIPT_TELUGU: GUnicodeScript = 36; pub const GUnicodeScript_G_UNICODE_SCRIPT_THAANA: GUnicodeScript = 37; pub const GUnicodeScript_G_UNICODE_SCRIPT_THAI: GUnicodeScript = 38; pub const GUnicodeScript_G_UNICODE_SCRIPT_TIBETAN: GUnicodeScript = 39; pub const GUnicodeScript_G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: GUnicodeScript = 40; pub const GUnicodeScript_G_UNICODE_SCRIPT_YI: GUnicodeScript = 41; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAGALOG: GUnicodeScript = 42; pub const GUnicodeScript_G_UNICODE_SCRIPT_HANUNOO: GUnicodeScript = 43; pub const GUnicodeScript_G_UNICODE_SCRIPT_BUHID: GUnicodeScript = 44; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAGBANWA: GUnicodeScript = 45; pub const GUnicodeScript_G_UNICODE_SCRIPT_BRAILLE: GUnicodeScript = 46; pub const GUnicodeScript_G_UNICODE_SCRIPT_CYPRIOT: GUnicodeScript = 47; pub const GUnicodeScript_G_UNICODE_SCRIPT_LIMBU: GUnicodeScript = 48; pub const GUnicodeScript_G_UNICODE_SCRIPT_OSMANYA: GUnicodeScript = 49; pub const GUnicodeScript_G_UNICODE_SCRIPT_SHAVIAN: GUnicodeScript = 50; pub const GUnicodeScript_G_UNICODE_SCRIPT_LINEAR_B: GUnicodeScript = 51; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_LE: GUnicodeScript = 52; pub const GUnicodeScript_G_UNICODE_SCRIPT_UGARITIC: GUnicodeScript = 53; pub const GUnicodeScript_G_UNICODE_SCRIPT_NEW_TAI_LUE: GUnicodeScript = 54; pub const GUnicodeScript_G_UNICODE_SCRIPT_BUGINESE: GUnicodeScript = 55; pub const GUnicodeScript_G_UNICODE_SCRIPT_GLAGOLITIC: GUnicodeScript = 56; pub const GUnicodeScript_G_UNICODE_SCRIPT_TIFINAGH: GUnicodeScript = 57; pub const GUnicodeScript_G_UNICODE_SCRIPT_SYLOTI_NAGRI: GUnicodeScript = 58; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_PERSIAN: GUnicodeScript = 59; pub const GUnicodeScript_G_UNICODE_SCRIPT_KHAROSHTHI: GUnicodeScript = 60; pub const GUnicodeScript_G_UNICODE_SCRIPT_UNKNOWN: GUnicodeScript = 61; pub const GUnicodeScript_G_UNICODE_SCRIPT_BALINESE: GUnicodeScript = 62; pub const GUnicodeScript_G_UNICODE_SCRIPT_CUNEIFORM: GUnicodeScript = 63; pub const GUnicodeScript_G_UNICODE_SCRIPT_PHOENICIAN: GUnicodeScript = 64; pub const GUnicodeScript_G_UNICODE_SCRIPT_PHAGS_PA: GUnicodeScript = 65; pub const GUnicodeScript_G_UNICODE_SCRIPT_NKO: GUnicodeScript = 66; pub const GUnicodeScript_G_UNICODE_SCRIPT_KAYAH_LI: GUnicodeScript = 67; pub const GUnicodeScript_G_UNICODE_SCRIPT_LEPCHA: GUnicodeScript = 68; pub const GUnicodeScript_G_UNICODE_SCRIPT_REJANG: GUnicodeScript = 69; pub const GUnicodeScript_G_UNICODE_SCRIPT_SUNDANESE: GUnicodeScript = 70; pub const GUnicodeScript_G_UNICODE_SCRIPT_SAURASHTRA: GUnicodeScript = 71; pub const GUnicodeScript_G_UNICODE_SCRIPT_CHAM: GUnicodeScript = 72; pub const GUnicodeScript_G_UNICODE_SCRIPT_OL_CHIKI: GUnicodeScript = 73; pub const GUnicodeScript_G_UNICODE_SCRIPT_VAI: GUnicodeScript = 74; pub const GUnicodeScript_G_UNICODE_SCRIPT_CARIAN: GUnicodeScript = 75; pub const GUnicodeScript_G_UNICODE_SCRIPT_LYCIAN: GUnicodeScript = 76; pub const GUnicodeScript_G_UNICODE_SCRIPT_LYDIAN: GUnicodeScript = 77; pub const GUnicodeScript_G_UNICODE_SCRIPT_AVESTAN: GUnicodeScript = 78; pub const GUnicodeScript_G_UNICODE_SCRIPT_BAMUM: GUnicodeScript = 79; pub const GUnicodeScript_G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: GUnicodeScript = 80; pub const GUnicodeScript_G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: GUnicodeScript = 81; pub const GUnicodeScript_G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: GUnicodeScript = 82; pub const GUnicodeScript_G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: GUnicodeScript = 83; pub const GUnicodeScript_G_UNICODE_SCRIPT_JAVANESE: GUnicodeScript = 84; pub const GUnicodeScript_G_UNICODE_SCRIPT_KAITHI: GUnicodeScript = 85; pub const GUnicodeScript_G_UNICODE_SCRIPT_LISU: GUnicodeScript = 86; pub const GUnicodeScript_G_UNICODE_SCRIPT_MEETEI_MAYEK: GUnicodeScript = 87; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: GUnicodeScript = 88; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_TURKIC: GUnicodeScript = 89; pub const GUnicodeScript_G_UNICODE_SCRIPT_SAMARITAN: GUnicodeScript = 90; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_THAM: GUnicodeScript = 91; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAI_VIET: GUnicodeScript = 92; pub const GUnicodeScript_G_UNICODE_SCRIPT_BATAK: GUnicodeScript = 93; pub const GUnicodeScript_G_UNICODE_SCRIPT_BRAHMI: GUnicodeScript = 94; pub const GUnicodeScript_G_UNICODE_SCRIPT_MANDAIC: GUnicodeScript = 95; pub const GUnicodeScript_G_UNICODE_SCRIPT_CHAKMA: GUnicodeScript = 96; pub const GUnicodeScript_G_UNICODE_SCRIPT_MEROITIC_CURSIVE: GUnicodeScript = 97; pub const GUnicodeScript_G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: GUnicodeScript = 98; pub const GUnicodeScript_G_UNICODE_SCRIPT_MIAO: GUnicodeScript = 99; pub const GUnicodeScript_G_UNICODE_SCRIPT_SHARADA: GUnicodeScript = 100; pub const GUnicodeScript_G_UNICODE_SCRIPT_SORA_SOMPENG: GUnicodeScript = 101; pub const GUnicodeScript_G_UNICODE_SCRIPT_TAKRI: GUnicodeScript = 102; pub const GUnicodeScript_G_UNICODE_SCRIPT_BASSA_VAH: GUnicodeScript = 103; pub const GUnicodeScript_G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: GUnicodeScript = 104; pub const GUnicodeScript_G_UNICODE_SCRIPT_DUPLOYAN: GUnicodeScript = 105; pub const GUnicodeScript_G_UNICODE_SCRIPT_ELBASAN: GUnicodeScript = 106; pub const GUnicodeScript_G_UNICODE_SCRIPT_GRANTHA: GUnicodeScript = 107; pub const GUnicodeScript_G_UNICODE_SCRIPT_KHOJKI: GUnicodeScript = 108; pub const GUnicodeScript_G_UNICODE_SCRIPT_KHUDAWADI: GUnicodeScript = 109; pub const GUnicodeScript_G_UNICODE_SCRIPT_LINEAR_A: GUnicodeScript = 110; pub const GUnicodeScript_G_UNICODE_SCRIPT_MAHAJANI: GUnicodeScript = 111; pub const GUnicodeScript_G_UNICODE_SCRIPT_MANICHAEAN: GUnicodeScript = 112; pub const GUnicodeScript_G_UNICODE_SCRIPT_MENDE_KIKAKUI: GUnicodeScript = 113; pub const GUnicodeScript_G_UNICODE_SCRIPT_MODI: GUnicodeScript = 114; pub const GUnicodeScript_G_UNICODE_SCRIPT_MRO: GUnicodeScript = 115; pub const GUnicodeScript_G_UNICODE_SCRIPT_NABATAEAN: GUnicodeScript = 116; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: GUnicodeScript = 117; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_PERMIC: GUnicodeScript = 118; pub const GUnicodeScript_G_UNICODE_SCRIPT_PAHAWH_HMONG: GUnicodeScript = 119; pub const GUnicodeScript_G_UNICODE_SCRIPT_PALMYRENE: GUnicodeScript = 120; pub const GUnicodeScript_G_UNICODE_SCRIPT_PAU_CIN_HAU: GUnicodeScript = 121; pub const GUnicodeScript_G_UNICODE_SCRIPT_PSALTER_PAHLAVI: GUnicodeScript = 122; pub const GUnicodeScript_G_UNICODE_SCRIPT_SIDDHAM: GUnicodeScript = 123; pub const GUnicodeScript_G_UNICODE_SCRIPT_TIRHUTA: GUnicodeScript = 124; pub const GUnicodeScript_G_UNICODE_SCRIPT_WARANG_CITI: GUnicodeScript = 125; pub const GUnicodeScript_G_UNICODE_SCRIPT_AHOM: GUnicodeScript = 126; pub const GUnicodeScript_G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: GUnicodeScript = 127; pub const GUnicodeScript_G_UNICODE_SCRIPT_HATRAN: GUnicodeScript = 128; pub const GUnicodeScript_G_UNICODE_SCRIPT_MULTANI: GUnicodeScript = 129; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_HUNGARIAN: GUnicodeScript = 130; pub const GUnicodeScript_G_UNICODE_SCRIPT_SIGNWRITING: GUnicodeScript = 131; pub const GUnicodeScript_G_UNICODE_SCRIPT_ADLAM: GUnicodeScript = 132; pub const GUnicodeScript_G_UNICODE_SCRIPT_BHAIKSUKI: GUnicodeScript = 133; pub const GUnicodeScript_G_UNICODE_SCRIPT_MARCHEN: GUnicodeScript = 134; pub const GUnicodeScript_G_UNICODE_SCRIPT_NEWA: GUnicodeScript = 135; pub const GUnicodeScript_G_UNICODE_SCRIPT_OSAGE: GUnicodeScript = 136; pub const GUnicodeScript_G_UNICODE_SCRIPT_TANGUT: GUnicodeScript = 137; pub const GUnicodeScript_G_UNICODE_SCRIPT_MASARAM_GONDI: GUnicodeScript = 138; pub const GUnicodeScript_G_UNICODE_SCRIPT_NUSHU: GUnicodeScript = 139; pub const GUnicodeScript_G_UNICODE_SCRIPT_SOYOMBO: GUnicodeScript = 140; pub const GUnicodeScript_G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: GUnicodeScript = 141; pub const GUnicodeScript_G_UNICODE_SCRIPT_DOGRA: GUnicodeScript = 142; pub const GUnicodeScript_G_UNICODE_SCRIPT_GUNJALA_GONDI: GUnicodeScript = 143; pub const GUnicodeScript_G_UNICODE_SCRIPT_HANIFI_ROHINGYA: GUnicodeScript = 144; pub const GUnicodeScript_G_UNICODE_SCRIPT_MAKASAR: GUnicodeScript = 145; pub const GUnicodeScript_G_UNICODE_SCRIPT_MEDEFAIDRIN: GUnicodeScript = 146; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_SOGDIAN: GUnicodeScript = 147; pub const GUnicodeScript_G_UNICODE_SCRIPT_SOGDIAN: GUnicodeScript = 148; pub const GUnicodeScript_G_UNICODE_SCRIPT_ELYMAIC: GUnicodeScript = 149; pub const GUnicodeScript_G_UNICODE_SCRIPT_NANDINAGARI: GUnicodeScript = 150; pub const GUnicodeScript_G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: GUnicodeScript = 151; pub const GUnicodeScript_G_UNICODE_SCRIPT_WANCHO: GUnicodeScript = 152; pub const GUnicodeScript_G_UNICODE_SCRIPT_CHORASMIAN: GUnicodeScript = 153; pub const GUnicodeScript_G_UNICODE_SCRIPT_DIVES_AKURU: GUnicodeScript = 154; pub const GUnicodeScript_G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT: GUnicodeScript = 155; pub const GUnicodeScript_G_UNICODE_SCRIPT_YEZIDI: GUnicodeScript = 156; pub const GUnicodeScript_G_UNICODE_SCRIPT_CYPRO_MINOAN: GUnicodeScript = 157; pub const GUnicodeScript_G_UNICODE_SCRIPT_OLD_UYGHUR: GUnicodeScript = 158; pub const GUnicodeScript_G_UNICODE_SCRIPT_TANGSA: GUnicodeScript = 159; pub const GUnicodeScript_G_UNICODE_SCRIPT_TOTO: GUnicodeScript = 160; pub const GUnicodeScript_G_UNICODE_SCRIPT_VITHKUQI: GUnicodeScript = 161; pub const GUnicodeScript_G_UNICODE_SCRIPT_MATH: GUnicodeScript = 162; pub const GUnicodeScript_G_UNICODE_SCRIPT_KAWI: GUnicodeScript = 163; pub const GUnicodeScript_G_UNICODE_SCRIPT_NAG_MUNDARI: GUnicodeScript = 164; pub type GUnicodeScript = ::std::os::raw::c_int; extern "C" { pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> guint32; } extern "C" { pub fn g_unicode_script_from_iso15924(iso15924: guint32) -> GUnicodeScript; } extern "C" { pub fn g_unichar_isalnum(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isalpha(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_iscntrl(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isdigit(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isgraph(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_islower(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isprint(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_ispunct(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isspace(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isupper(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isxdigit(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_istitle(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_isdefined(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_iswide(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_iswide_cjk(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_iszerowidth(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_ismark(c: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_toupper(c: gunichar) -> gunichar; } extern "C" { pub fn g_unichar_tolower(c: gunichar) -> gunichar; } extern "C" { pub fn g_unichar_totitle(c: gunichar) -> gunichar; } extern "C" { pub fn g_unichar_digit_value(c: gunichar) -> gint; } extern "C" { pub fn g_unichar_xdigit_value(c: gunichar) -> gint; } extern "C" { pub fn g_unichar_type(c: gunichar) -> GUnicodeType; } extern "C" { pub fn g_unichar_break_type(c: gunichar) -> GUnicodeBreakType; } extern "C" { pub fn g_unichar_combining_class(uc: gunichar) -> gint; } extern "C" { pub fn g_unichar_get_mirror_char(ch: gunichar, mirrored_ch: *mut gunichar) -> gboolean; } extern "C" { pub fn g_unichar_get_script(ch: gunichar) -> GUnicodeScript; } extern "C" { pub fn g_unichar_validate(ch: gunichar) -> gboolean; } extern "C" { pub fn g_unichar_compose(a: gunichar, b: gunichar, ch: *mut gunichar) -> gboolean; } extern "C" { pub fn g_unichar_decompose(ch: gunichar, a: *mut gunichar, b: *mut gunichar) -> gboolean; } extern "C" { pub fn g_unichar_fully_decompose( ch: gunichar, compat: gboolean, result: *mut gunichar, result_len: gsize, ) -> gsize; } extern "C" { pub fn g_unicode_canonical_ordering(string: *mut gunichar, len: gsize); } extern "C" { pub fn g_unicode_canonical_decomposition(ch: gunichar, result_len: *mut gsize) -> *mut gunichar; } extern "C" { pub static g_utf8_skip: *const gchar; } extern "C" { pub fn g_utf8_get_char(p: *const gchar) -> gunichar; } extern "C" { pub fn g_utf8_get_char_validated(p: *const gchar, max_len: gssize) -> gunichar; } extern "C" { pub fn g_utf8_offset_to_pointer(str_: *const gchar, offset: glong) -> *mut gchar; } extern "C" { pub fn g_utf8_pointer_to_offset(str_: *const gchar, pos: *const gchar) -> glong; } extern "C" { pub fn g_utf8_prev_char(p: *const gchar) -> *mut gchar; } extern "C" { pub fn g_utf8_find_next_char(p: *const gchar, end: *const gchar) -> *mut gchar; } extern "C" { pub fn g_utf8_find_prev_char(str_: *const gchar, p: *const gchar) -> *mut gchar; } extern "C" { pub fn g_utf8_strlen(p: *const gchar, max: gssize) -> glong; } extern "C" { pub fn g_utf8_substring(str_: *const gchar, start_pos: glong, end_pos: glong) -> *mut gchar; } extern "C" { pub fn g_utf8_strncpy(dest: *mut gchar, src: *const gchar, n: gsize) -> *mut gchar; } extern "C" { pub fn g_utf8_strchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar; } extern "C" { pub fn g_utf8_strrchr(p: *const gchar, len: gssize, c: gunichar) -> *mut gchar; } extern "C" { pub fn g_utf8_strreverse(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_utf8_to_utf16( str_: *const gchar, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gunichar2; } extern "C" { pub fn g_utf8_to_ucs4( str_: *const gchar, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gunichar; } extern "C" { pub fn g_utf8_to_ucs4_fast( str_: *const gchar, len: glong, items_written: *mut glong, ) -> *mut gunichar; } extern "C" { pub fn g_utf16_to_ucs4( str_: *const gunichar2, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gunichar; } extern "C" { pub fn g_utf16_to_utf8( str_: *const gunichar2, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_ucs4_to_utf16( str_: *const gunichar, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gunichar2; } extern "C" { pub fn g_ucs4_to_utf8( str_: *const gunichar, len: glong, items_read: *mut glong, items_written: *mut glong, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_unichar_to_utf8(c: gunichar, outbuf: *mut gchar) -> gint; } extern "C" { pub fn g_utf8_validate(str_: *const gchar, max_len: gssize, end: *mut *const gchar) -> gboolean; } extern "C" { pub fn g_utf8_validate_len( str_: *const gchar, max_len: gsize, end: *mut *const gchar, ) -> gboolean; } extern "C" { pub fn g_utf8_strup(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_utf8_strdown(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_utf8_casefold(str_: *const gchar, len: gssize) -> *mut gchar; } pub const GNormalizeMode_G_NORMALIZE_DEFAULT: GNormalizeMode = 0; pub const GNormalizeMode_G_NORMALIZE_NFD: GNormalizeMode = 0; pub const GNormalizeMode_G_NORMALIZE_DEFAULT_COMPOSE: GNormalizeMode = 1; pub const GNormalizeMode_G_NORMALIZE_NFC: GNormalizeMode = 1; pub const GNormalizeMode_G_NORMALIZE_ALL: GNormalizeMode = 2; pub const GNormalizeMode_G_NORMALIZE_NFKD: GNormalizeMode = 2; pub const GNormalizeMode_G_NORMALIZE_ALL_COMPOSE: GNormalizeMode = 3; pub const GNormalizeMode_G_NORMALIZE_NFKC: GNormalizeMode = 3; pub type GNormalizeMode = ::std::os::raw::c_uint; extern "C" { pub fn g_utf8_normalize(str_: *const gchar, len: gssize, mode: GNormalizeMode) -> *mut gchar; } extern "C" { pub fn g_utf8_collate(str1: *const gchar, str2: *const gchar) -> gint; } extern "C" { pub fn g_utf8_collate_key(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_utf8_collate_key_for_filename(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_utf8_make_valid(str_: *const gchar, len: gssize) -> *mut gchar; } pub const GAsciiType_G_ASCII_ALNUM: GAsciiType = 1; pub const GAsciiType_G_ASCII_ALPHA: GAsciiType = 2; pub const GAsciiType_G_ASCII_CNTRL: GAsciiType = 4; pub const GAsciiType_G_ASCII_DIGIT: GAsciiType = 8; pub const GAsciiType_G_ASCII_GRAPH: GAsciiType = 16; pub const GAsciiType_G_ASCII_LOWER: GAsciiType = 32; pub const GAsciiType_G_ASCII_PRINT: GAsciiType = 64; pub const GAsciiType_G_ASCII_PUNCT: GAsciiType = 128; pub const GAsciiType_G_ASCII_SPACE: GAsciiType = 256; pub const GAsciiType_G_ASCII_UPPER: GAsciiType = 512; pub const GAsciiType_G_ASCII_XDIGIT: GAsciiType = 1024; pub type GAsciiType = ::std::os::raw::c_uint; extern "C" { pub static g_ascii_table: *const guint16; } extern "C" { pub fn g_ascii_tolower(c: gchar) -> gchar; } extern "C" { pub fn g_ascii_toupper(c: gchar) -> gchar; } extern "C" { pub fn g_ascii_digit_value(c: gchar) -> gint; } extern "C" { pub fn g_ascii_xdigit_value(c: gchar) -> gint; } extern "C" { pub fn g_strdelimit( string: *mut gchar, delimiters: *const gchar, new_delimiter: gchar, ) -> *mut gchar; } extern "C" { pub fn g_strcanon( string: *mut gchar, valid_chars: *const gchar, substitutor: gchar, ) -> *mut gchar; } extern "C" { pub fn g_strerror(errnum: gint) -> *const gchar; } extern "C" { pub fn g_strsignal(signum: gint) -> *const gchar; } extern "C" { pub fn g_strreverse(string: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_strlcpy(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize; } extern "C" { pub fn g_strlcat(dest: *mut gchar, src: *const gchar, dest_size: gsize) -> gsize; } extern "C" { pub fn g_strstr_len( haystack: *const gchar, haystack_len: gssize, needle: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_strrstr(haystack: *const gchar, needle: *const gchar) -> *mut gchar; } extern "C" { pub fn g_strrstr_len( haystack: *const gchar, haystack_len: gssize, needle: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_str_has_suffix(str_: *const gchar, suffix: *const gchar) -> gboolean; } extern "C" { pub fn g_str_has_prefix(str_: *const gchar, prefix: *const gchar) -> gboolean; } extern "C" { pub fn g_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble; } extern "C" { pub fn g_ascii_strtod(nptr: *const gchar, endptr: *mut *mut gchar) -> gdouble; } extern "C" { pub fn g_ascii_strtoull(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> guint64; } extern "C" { pub fn g_ascii_strtoll(nptr: *const gchar, endptr: *mut *mut gchar, base: guint) -> gint64; } extern "C" { pub fn g_ascii_dtostr(buffer: *mut gchar, buf_len: gint, d: gdouble) -> *mut gchar; } extern "C" { pub fn g_ascii_formatd( buffer: *mut gchar, buf_len: gint, format: *const gchar, d: gdouble, ) -> *mut gchar; } extern "C" { pub fn g_strchug(string: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_strchomp(string: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_ascii_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint; } extern "C" { pub fn g_ascii_strncasecmp(s1: *const gchar, s2: *const gchar, n: gsize) -> gint; } extern "C" { pub fn g_ascii_strdown(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_ascii_strup(str_: *const gchar, len: gssize) -> *mut gchar; } extern "C" { pub fn g_str_is_ascii(str_: *const gchar) -> gboolean; } extern "C" { pub fn g_strcasecmp(s1: *const gchar, s2: *const gchar) -> gint; } extern "C" { pub fn g_strncasecmp(s1: *const gchar, s2: *const gchar, n: guint) -> gint; } extern "C" { pub fn g_strdown(string: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_strup(string: *mut gchar) -> *mut gchar; } extern "C" { pub fn g_strdup(str_: *const gchar) -> *mut gchar; } extern "C" { pub fn g_strdup_printf(format: *const gchar, ...) -> *mut gchar; } extern "C" { pub fn g_strdup_vprintf(format: *const gchar, args: *mut __va_list_tag) -> *mut gchar; } extern "C" { pub fn g_strndup(str_: *const gchar, n: gsize) -> *mut gchar; } extern "C" { pub fn g_strnfill(length: gsize, fill_char: gchar) -> *mut gchar; } extern "C" { pub fn g_strconcat(string1: *const gchar, ...) -> *mut gchar; } extern "C" { pub fn g_strjoin(separator: *const gchar, ...) -> *mut gchar; } extern "C" { pub fn g_strcompress(source: *const gchar) -> *mut gchar; } extern "C" { pub fn g_strescape(source: *const gchar, exceptions: *const gchar) -> *mut gchar; } extern "C" { pub fn g_memdup(mem: gconstpointer, byte_size: guint) -> gpointer; } extern "C" { pub fn g_memdup2(mem: gconstpointer, byte_size: gsize) -> gpointer; } pub type GStrv = *mut *mut gchar; extern "C" { pub fn g_strsplit( string: *const gchar, delimiter: *const gchar, max_tokens: gint, ) -> *mut *mut gchar; } extern "C" { pub fn g_strsplit_set( string: *const gchar, delimiters: *const gchar, max_tokens: gint, ) -> *mut *mut gchar; } extern "C" { pub fn g_strjoinv(separator: *const gchar, str_array: *mut *mut gchar) -> *mut gchar; } extern "C" { pub fn g_strfreev(str_array: *mut *mut gchar); } extern "C" { pub fn g_strdupv(str_array: *mut *mut gchar) -> *mut *mut gchar; } extern "C" { pub fn g_strv_length(str_array: *mut *mut gchar) -> guint; } extern "C" { pub fn g_stpcpy(dest: *mut gchar, src: *const ::std::os::raw::c_char) -> *mut gchar; } extern "C" { pub fn g_str_to_ascii(str_: *const gchar, from_locale: *const gchar) -> *mut gchar; } extern "C" { pub fn g_str_tokenize_and_fold( string: *const gchar, translit_locale: *const gchar, ascii_alternates: *mut *mut *mut gchar, ) -> *mut *mut gchar; } extern "C" { pub fn g_str_match_string( search_term: *const gchar, potential_hit: *const gchar, accept_alternates: gboolean, ) -> gboolean; } extern "C" { pub fn g_strv_contains(strv: *const *const gchar, str_: *const gchar) -> gboolean; } extern "C" { pub fn g_strv_equal(strv1: *const *const gchar, strv2: *const *const gchar) -> gboolean; } pub const GNumberParserError_G_NUMBER_PARSER_ERROR_INVALID: GNumberParserError = 0; pub const GNumberParserError_G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: GNumberParserError = 1; pub type GNumberParserError = ::std::os::raw::c_uint; extern "C" { pub fn g_number_parser_error_quark() -> GQuark; } extern "C" { pub fn g_ascii_string_to_signed( str_: *const gchar, base: guint, min: gint64, max: gint64, out_num: *mut gint64, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_ascii_string_to_unsigned( str_: *const gchar, base: guint, min: guint64, max: guint64, out_num: *mut guint64, error: *mut *mut GError, ) -> gboolean; } pub type GString = _GString; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GString { pub str_: *mut gchar, pub len: gsize, pub allocated_len: gsize, } #[test] fn bindgen_test_layout__GString() { const UNINIT: ::std::mem::MaybeUninit<_GString> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GString>(), 24usize, concat!("Size of: ", stringify!(_GString)) ); assert_eq!( ::std::mem::align_of::<_GString>(), 8usize, concat!("Alignment of ", stringify!(_GString)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GString), "::", stringify!(str_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GString), "::", stringify!(len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).allocated_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GString), "::", stringify!(allocated_len) ) ); } extern "C" { pub fn g_string_new(init: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_new_len(init: *const gchar, len: gssize) -> *mut GString; } extern "C" { pub fn g_string_sized_new(dfl_size: gsize) -> *mut GString; } extern "C" { pub fn g_string_free(string: *mut GString, free_segment: gboolean) -> *mut gchar; } extern "C" { pub fn g_string_free_and_steal(string: *mut GString) -> *mut gchar; } extern "C" { pub fn g_string_free_to_bytes(string: *mut GString) -> *mut GBytes; } extern "C" { pub fn g_string_equal(v: *const GString, v2: *const GString) -> gboolean; } extern "C" { pub fn g_string_hash(str_: *const GString) -> guint; } extern "C" { pub fn g_string_assign(string: *mut GString, rval: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_truncate(string: *mut GString, len: gsize) -> *mut GString; } extern "C" { pub fn g_string_set_size(string: *mut GString, len: gsize) -> *mut GString; } extern "C" { pub fn g_string_insert_len( string: *mut GString, pos: gssize, val: *const gchar, len: gssize, ) -> *mut GString; } extern "C" { pub fn g_string_append(string: *mut GString, val: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_append_len( string: *mut GString, val: *const gchar, len: gssize, ) -> *mut GString; } extern "C" { pub fn g_string_append_c(string: *mut GString, c: gchar) -> *mut GString; } extern "C" { pub fn g_string_append_unichar(string: *mut GString, wc: gunichar) -> *mut GString; } extern "C" { pub fn g_string_prepend(string: *mut GString, val: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_prepend_c(string: *mut GString, c: gchar) -> *mut GString; } extern "C" { pub fn g_string_prepend_unichar(string: *mut GString, wc: gunichar) -> *mut GString; } extern "C" { pub fn g_string_prepend_len( string: *mut GString, val: *const gchar, len: gssize, ) -> *mut GString; } extern "C" { pub fn g_string_insert(string: *mut GString, pos: gssize, val: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_insert_c(string: *mut GString, pos: gssize, c: gchar) -> *mut GString; } extern "C" { pub fn g_string_insert_unichar(string: *mut GString, pos: gssize, wc: gunichar) -> *mut GString; } extern "C" { pub fn g_string_overwrite(string: *mut GString, pos: gsize, val: *const gchar) -> *mut GString; } extern "C" { pub fn g_string_overwrite_len( string: *mut GString, pos: gsize, val: *const gchar, len: gssize, ) -> *mut GString; } extern "C" { pub fn g_string_erase(string: *mut GString, pos: gssize, len: gssize) -> *mut GString; } extern "C" { pub fn g_string_replace( string: *mut GString, find: *const gchar, replace: *const gchar, limit: guint, ) -> guint; } extern "C" { pub fn g_string_ascii_down(string: *mut GString) -> *mut GString; } extern "C" { pub fn g_string_ascii_up(string: *mut GString) -> *mut GString; } extern "C" { pub fn g_string_vprintf(string: *mut GString, format: *const gchar, args: *mut __va_list_tag); } extern "C" { pub fn g_string_printf(string: *mut GString, format: *const gchar, ...); } extern "C" { pub fn g_string_append_vprintf( string: *mut GString, format: *const gchar, args: *mut __va_list_tag, ); } extern "C" { pub fn g_string_append_printf(string: *mut GString, format: *const gchar, ...); } extern "C" { pub fn g_string_append_uri_escaped( string: *mut GString, unescaped: *const gchar, reserved_chars_allowed: *const gchar, allow_utf8: gboolean, ) -> *mut GString; } extern "C" { pub fn g_string_down(string: *mut GString) -> *mut GString; } extern "C" { pub fn g_string_up(string: *mut GString) -> *mut GString; } pub type GIOChannel = _GIOChannel; pub type GIOFuncs = _GIOFuncs; pub const GIOError_G_IO_ERROR_NONE: GIOError = 0; pub const GIOError_G_IO_ERROR_AGAIN: GIOError = 1; pub const GIOError_G_IO_ERROR_INVAL: GIOError = 2; pub const GIOError_G_IO_ERROR_UNKNOWN: GIOError = 3; pub type GIOError = ::std::os::raw::c_uint; pub const GIOChannelError_G_IO_CHANNEL_ERROR_FBIG: GIOChannelError = 0; pub const GIOChannelError_G_IO_CHANNEL_ERROR_INVAL: GIOChannelError = 1; pub const GIOChannelError_G_IO_CHANNEL_ERROR_IO: GIOChannelError = 2; pub const GIOChannelError_G_IO_CHANNEL_ERROR_ISDIR: GIOChannelError = 3; pub const GIOChannelError_G_IO_CHANNEL_ERROR_NOSPC: GIOChannelError = 4; pub const GIOChannelError_G_IO_CHANNEL_ERROR_NXIO: GIOChannelError = 5; pub const GIOChannelError_G_IO_CHANNEL_ERROR_OVERFLOW: GIOChannelError = 6; pub const GIOChannelError_G_IO_CHANNEL_ERROR_PIPE: GIOChannelError = 7; pub const GIOChannelError_G_IO_CHANNEL_ERROR_FAILED: GIOChannelError = 8; pub type GIOChannelError = ::std::os::raw::c_uint; pub const GIOStatus_G_IO_STATUS_ERROR: GIOStatus = 0; pub const GIOStatus_G_IO_STATUS_NORMAL: GIOStatus = 1; pub const GIOStatus_G_IO_STATUS_EOF: GIOStatus = 2; pub const GIOStatus_G_IO_STATUS_AGAIN: GIOStatus = 3; pub type GIOStatus = ::std::os::raw::c_uint; pub const GSeekType_G_SEEK_CUR: GSeekType = 0; pub const GSeekType_G_SEEK_SET: GSeekType = 1; pub const GSeekType_G_SEEK_END: GSeekType = 2; pub type GSeekType = ::std::os::raw::c_uint; pub const GIOFlags_G_IO_FLAG_NONE: GIOFlags = 0; pub const GIOFlags_G_IO_FLAG_APPEND: GIOFlags = 1; pub const GIOFlags_G_IO_FLAG_NONBLOCK: GIOFlags = 2; pub const GIOFlags_G_IO_FLAG_IS_READABLE: GIOFlags = 4; pub const GIOFlags_G_IO_FLAG_IS_WRITABLE: GIOFlags = 8; pub const GIOFlags_G_IO_FLAG_IS_WRITEABLE: GIOFlags = 8; pub const GIOFlags_G_IO_FLAG_IS_SEEKABLE: GIOFlags = 16; pub const GIOFlags_G_IO_FLAG_MASK: GIOFlags = 31; pub const GIOFlags_G_IO_FLAG_GET_MASK: GIOFlags = 31; pub const GIOFlags_G_IO_FLAG_SET_MASK: GIOFlags = 3; pub type GIOFlags = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GIOChannel { pub ref_count: gint, pub funcs: *mut GIOFuncs, pub encoding: *mut gchar, pub read_cd: GIConv, pub write_cd: GIConv, pub line_term: *mut gchar, pub line_term_len: guint, pub buf_size: gsize, pub read_buf: *mut GString, pub encoded_read_buf: *mut GString, pub write_buf: *mut GString, pub partial_write_buf: [gchar; 6usize], pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub reserved1: gpointer, pub reserved2: gpointer, } #[test] fn bindgen_test_layout__GIOChannel() { const UNINIT: ::std::mem::MaybeUninit<_GIOChannel> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GIOChannel>(), 112usize, concat!("Size of: ", stringify!(_GIOChannel)) ); assert_eq!( ::std::mem::align_of::<_GIOChannel>(), 8usize, concat!("Alignment of ", stringify!(_GIOChannel)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ref_count) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(ref_count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(funcs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).encoding) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(encoding) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).read_cd) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(read_cd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).write_cd) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(write_cd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).line_term) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(line_term) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).line_term_len) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(line_term_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).buf_size) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(buf_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).read_buf) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(read_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).encoded_read_buf) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(encoded_read_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).write_buf) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(write_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).partial_write_buf) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(partial_write_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(reserved1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).reserved2) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(_GIOChannel), "::", stringify!(reserved2) ) ); } impl _GIOChannel { #[inline] pub fn use_buffer(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_use_buffer(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn do_encode(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_do_encode(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn close_on_unref(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_close_on_unref(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn is_readable(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } #[inline] pub fn set_is_readable(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 1u8, val as u64) } } #[inline] pub fn is_writeable(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } #[inline] pub fn set_is_writeable(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 1u8, val as u64) } } #[inline] pub fn is_seekable(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } } #[inline] pub fn set_is_seekable(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(5usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( use_buffer: guint, do_encode: guint, close_on_unref: guint, is_readable: guint, is_writeable: guint, is_seekable: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let use_buffer: u32 = unsafe { ::std::mem::transmute(use_buffer) }; use_buffer as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let do_encode: u32 = unsafe { ::std::mem::transmute(do_encode) }; do_encode as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let close_on_unref: u32 = unsafe { ::std::mem::transmute(close_on_unref) }; close_on_unref as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let is_readable: u32 = unsafe { ::std::mem::transmute(is_readable) }; is_readable as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let is_writeable: u32 = unsafe { ::std::mem::transmute(is_writeable) }; is_writeable as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let is_seekable: u32 = unsafe { ::std::mem::transmute(is_seekable) }; is_seekable as u64 }); __bindgen_bitfield_unit } } pub type GIOFunc = ::std::option::Option< unsafe extern "C" fn( source: *mut GIOChannel, condition: GIOCondition, data: gpointer, ) -> gboolean, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GIOFuncs { pub io_read: ::std::option::Option< unsafe extern "C" fn( channel: *mut GIOChannel, buf: *mut gchar, count: gsize, bytes_read: *mut gsize, err: *mut *mut GError, ) -> GIOStatus, >, pub io_write: ::std::option::Option< unsafe extern "C" fn( channel: *mut GIOChannel, buf: *const gchar, count: gsize, bytes_written: *mut gsize, err: *mut *mut GError, ) -> GIOStatus, >, pub io_seek: ::std::option::Option< unsafe extern "C" fn( channel: *mut GIOChannel, offset: gint64, type_: GSeekType, err: *mut *mut GError, ) -> GIOStatus, >, pub io_close: ::std::option::Option< unsafe extern "C" fn(channel: *mut GIOChannel, err: *mut *mut GError) -> GIOStatus, >, pub io_create_watch: ::std::option::Option< unsafe extern "C" fn(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource, >, pub io_free: ::std::option::Option, pub io_set_flags: ::std::option::Option< unsafe extern "C" fn( channel: *mut GIOChannel, flags: GIOFlags, err: *mut *mut GError, ) -> GIOStatus, >, pub io_get_flags: ::std::option::Option GIOFlags>, } #[test] fn bindgen_test_layout__GIOFuncs() { const UNINIT: ::std::mem::MaybeUninit<_GIOFuncs> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GIOFuncs>(), 64usize, concat!("Size of: ", stringify!(_GIOFuncs)) ); assert_eq!( ::std::mem::align_of::<_GIOFuncs>(), 8usize, concat!("Alignment of ", stringify!(_GIOFuncs)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_read) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_read) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_write) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_write) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_seek) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_seek) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_close) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_close) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_create_watch) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_create_watch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_free) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_free) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_set_flags) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_set_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).io_get_flags) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GIOFuncs), "::", stringify!(io_get_flags) ) ); } extern "C" { pub fn g_io_channel_init(channel: *mut GIOChannel); } extern "C" { pub fn g_io_channel_ref(channel: *mut GIOChannel) -> *mut GIOChannel; } extern "C" { pub fn g_io_channel_unref(channel: *mut GIOChannel); } extern "C" { pub fn g_io_channel_read( channel: *mut GIOChannel, buf: *mut gchar, count: gsize, bytes_read: *mut gsize, ) -> GIOError; } extern "C" { pub fn g_io_channel_write( channel: *mut GIOChannel, buf: *const gchar, count: gsize, bytes_written: *mut gsize, ) -> GIOError; } extern "C" { pub fn g_io_channel_seek( channel: *mut GIOChannel, offset: gint64, type_: GSeekType, ) -> GIOError; } extern "C" { pub fn g_io_channel_close(channel: *mut GIOChannel); } extern "C" { pub fn g_io_channel_shutdown( channel: *mut GIOChannel, flush: gboolean, err: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_add_watch_full( channel: *mut GIOChannel, priority: gint, condition: GIOCondition, func: GIOFunc, user_data: gpointer, notify: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_io_create_watch(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource; } extern "C" { pub fn g_io_add_watch( channel: *mut GIOChannel, condition: GIOCondition, func: GIOFunc, user_data: gpointer, ) -> guint; } extern "C" { pub fn g_io_channel_set_buffer_size(channel: *mut GIOChannel, size: gsize); } extern "C" { pub fn g_io_channel_get_buffer_size(channel: *mut GIOChannel) -> gsize; } extern "C" { pub fn g_io_channel_get_buffer_condition(channel: *mut GIOChannel) -> GIOCondition; } extern "C" { pub fn g_io_channel_set_flags( channel: *mut GIOChannel, flags: GIOFlags, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_get_flags(channel: *mut GIOChannel) -> GIOFlags; } extern "C" { pub fn g_io_channel_set_line_term( channel: *mut GIOChannel, line_term: *const gchar, length: gint, ); } extern "C" { pub fn g_io_channel_get_line_term(channel: *mut GIOChannel, length: *mut gint) -> *const gchar; } extern "C" { pub fn g_io_channel_set_buffered(channel: *mut GIOChannel, buffered: gboolean); } extern "C" { pub fn g_io_channel_get_buffered(channel: *mut GIOChannel) -> gboolean; } extern "C" { pub fn g_io_channel_set_encoding( channel: *mut GIOChannel, encoding: *const gchar, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_get_encoding(channel: *mut GIOChannel) -> *const gchar; } extern "C" { pub fn g_io_channel_set_close_on_unref(channel: *mut GIOChannel, do_close: gboolean); } extern "C" { pub fn g_io_channel_get_close_on_unref(channel: *mut GIOChannel) -> gboolean; } extern "C" { pub fn g_io_channel_flush(channel: *mut GIOChannel, error: *mut *mut GError) -> GIOStatus; } extern "C" { pub fn g_io_channel_read_line( channel: *mut GIOChannel, str_return: *mut *mut gchar, length: *mut gsize, terminator_pos: *mut gsize, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_read_line_string( channel: *mut GIOChannel, buffer: *mut GString, terminator_pos: *mut gsize, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_read_to_end( channel: *mut GIOChannel, str_return: *mut *mut gchar, length: *mut gsize, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_read_chars( channel: *mut GIOChannel, buf: *mut gchar, count: gsize, bytes_read: *mut gsize, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_read_unichar( channel: *mut GIOChannel, thechar: *mut gunichar, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_write_chars( channel: *mut GIOChannel, buf: *const gchar, count: gssize, bytes_written: *mut gsize, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_write_unichar( channel: *mut GIOChannel, thechar: gunichar, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_seek_position( channel: *mut GIOChannel, offset: gint64, type_: GSeekType, error: *mut *mut GError, ) -> GIOStatus; } extern "C" { pub fn g_io_channel_new_file( filename: *const gchar, mode: *const gchar, error: *mut *mut GError, ) -> *mut GIOChannel; } extern "C" { pub fn g_io_channel_error_quark() -> GQuark; } extern "C" { pub fn g_io_channel_error_from_errno(en: gint) -> GIOChannelError; } extern "C" { pub fn g_io_channel_unix_new(fd: ::std::os::raw::c_int) -> *mut GIOChannel; } extern "C" { pub fn g_io_channel_unix_get_fd(channel: *mut GIOChannel) -> gint; } extern "C" { pub static mut g_io_watch_funcs: GSourceFuncs; } pub const GKeyFileError_G_KEY_FILE_ERROR_UNKNOWN_ENCODING: GKeyFileError = 0; pub const GKeyFileError_G_KEY_FILE_ERROR_PARSE: GKeyFileError = 1; pub const GKeyFileError_G_KEY_FILE_ERROR_NOT_FOUND: GKeyFileError = 2; pub const GKeyFileError_G_KEY_FILE_ERROR_KEY_NOT_FOUND: GKeyFileError = 3; pub const GKeyFileError_G_KEY_FILE_ERROR_GROUP_NOT_FOUND: GKeyFileError = 4; pub const GKeyFileError_G_KEY_FILE_ERROR_INVALID_VALUE: GKeyFileError = 5; pub type GKeyFileError = ::std::os::raw::c_uint; extern "C" { pub fn g_key_file_error_quark() -> GQuark; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GKeyFile { _unused: [u8; 0], } pub type GKeyFile = _GKeyFile; pub const GKeyFileFlags_G_KEY_FILE_NONE: GKeyFileFlags = 0; pub const GKeyFileFlags_G_KEY_FILE_KEEP_COMMENTS: GKeyFileFlags = 1; pub const GKeyFileFlags_G_KEY_FILE_KEEP_TRANSLATIONS: GKeyFileFlags = 2; pub type GKeyFileFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_key_file_new() -> *mut GKeyFile; } extern "C" { pub fn g_key_file_ref(key_file: *mut GKeyFile) -> *mut GKeyFile; } extern "C" { pub fn g_key_file_unref(key_file: *mut GKeyFile); } extern "C" { pub fn g_key_file_free(key_file: *mut GKeyFile); } extern "C" { pub fn g_key_file_set_list_separator(key_file: *mut GKeyFile, separator: gchar); } extern "C" { pub fn g_key_file_load_from_file( key_file: *mut GKeyFile, file: *const gchar, flags: GKeyFileFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_load_from_data( key_file: *mut GKeyFile, data: *const gchar, length: gsize, flags: GKeyFileFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_load_from_bytes( key_file: *mut GKeyFile, bytes: *mut GBytes, flags: GKeyFileFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_load_from_dirs( key_file: *mut GKeyFile, file: *const gchar, search_dirs: *mut *const gchar, full_path: *mut *mut gchar, flags: GKeyFileFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_load_from_data_dirs( key_file: *mut GKeyFile, file: *const gchar, full_path: *mut *mut gchar, flags: GKeyFileFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_to_data( key_file: *mut GKeyFile, length: *mut gsize, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_key_file_save_to_file( key_file: *mut GKeyFile, filename: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_get_start_group(key_file: *mut GKeyFile) -> *mut gchar; } extern "C" { pub fn g_key_file_get_groups(key_file: *mut GKeyFile, length: *mut gsize) -> *mut *mut gchar; } extern "C" { pub fn g_key_file_get_keys( key_file: *mut GKeyFile, group_name: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_key_file_has_group(key_file: *mut GKeyFile, group_name: *const gchar) -> gboolean; } extern "C" { pub fn g_key_file_has_key( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_get_value( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_key_file_set_value( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: *const gchar, ); } extern "C" { pub fn g_key_file_get_string( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_key_file_set_string( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, string: *const gchar, ); } extern "C" { pub fn g_key_file_get_locale_string( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, locale: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_key_file_get_locale_for_key( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, locale: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_key_file_set_locale_string( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, locale: *const gchar, string: *const gchar, ); } extern "C" { pub fn g_key_file_get_boolean( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_set_boolean( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: gboolean, ); } extern "C" { pub fn g_key_file_get_integer( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gint; } extern "C" { pub fn g_key_file_set_integer( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: gint, ); } extern "C" { pub fn g_key_file_get_int64( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gint64; } extern "C" { pub fn g_key_file_set_int64( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: gint64, ); } extern "C" { pub fn g_key_file_get_uint64( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> guint64; } extern "C" { pub fn g_key_file_set_uint64( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: guint64, ); } extern "C" { pub fn g_key_file_get_double( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gdouble; } extern "C" { pub fn g_key_file_set_double( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, value: gdouble, ); } extern "C" { pub fn g_key_file_get_string_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_key_file_set_string_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, list: *const *const gchar, length: gsize, ); } extern "C" { pub fn g_key_file_get_locale_string_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, locale: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_key_file_set_locale_string_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, locale: *const gchar, list: *const *const gchar, length: gsize, ); } extern "C" { pub fn g_key_file_get_boolean_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut gboolean; } extern "C" { pub fn g_key_file_set_boolean_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, list: *mut gboolean, length: gsize, ); } extern "C" { pub fn g_key_file_get_integer_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut gint; } extern "C" { pub fn g_key_file_set_double_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, list: *mut gdouble, length: gsize, ); } extern "C" { pub fn g_key_file_get_double_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, length: *mut gsize, error: *mut *mut GError, ) -> *mut gdouble; } extern "C" { pub fn g_key_file_set_integer_list( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, list: *mut gint, length: gsize, ); } extern "C" { pub fn g_key_file_set_comment( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, comment: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_get_comment( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_key_file_remove_comment( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_remove_key( key_file: *mut GKeyFile, group_name: *const gchar, key: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_key_file_remove_group( key_file: *mut GKeyFile, group_name: *const gchar, error: *mut *mut GError, ) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMappedFile { _unused: [u8; 0], } pub type GMappedFile = _GMappedFile; extern "C" { pub fn g_mapped_file_new( filename: *const gchar, writable: gboolean, error: *mut *mut GError, ) -> *mut GMappedFile; } extern "C" { pub fn g_mapped_file_new_from_fd( fd: gint, writable: gboolean, error: *mut *mut GError, ) -> *mut GMappedFile; } extern "C" { pub fn g_mapped_file_get_length(file: *mut GMappedFile) -> gsize; } extern "C" { pub fn g_mapped_file_get_contents(file: *mut GMappedFile) -> *mut gchar; } extern "C" { pub fn g_mapped_file_get_bytes(file: *mut GMappedFile) -> *mut GBytes; } extern "C" { pub fn g_mapped_file_ref(file: *mut GMappedFile) -> *mut GMappedFile; } extern "C" { pub fn g_mapped_file_unref(file: *mut GMappedFile); } extern "C" { pub fn g_mapped_file_free(file: *mut GMappedFile); } pub const GMarkupError_G_MARKUP_ERROR_BAD_UTF8: GMarkupError = 0; pub const GMarkupError_G_MARKUP_ERROR_EMPTY: GMarkupError = 1; pub const GMarkupError_G_MARKUP_ERROR_PARSE: GMarkupError = 2; pub const GMarkupError_G_MARKUP_ERROR_UNKNOWN_ELEMENT: GMarkupError = 3; pub const GMarkupError_G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: GMarkupError = 4; pub const GMarkupError_G_MARKUP_ERROR_INVALID_CONTENT: GMarkupError = 5; pub const GMarkupError_G_MARKUP_ERROR_MISSING_ATTRIBUTE: GMarkupError = 6; pub type GMarkupError = ::std::os::raw::c_uint; extern "C" { pub fn g_markup_error_quark() -> GQuark; } pub const GMarkupParseFlags_G_MARKUP_DEFAULT_FLAGS: GMarkupParseFlags = 0; pub const GMarkupParseFlags_G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: GMarkupParseFlags = 1; pub const GMarkupParseFlags_G_MARKUP_TREAT_CDATA_AS_TEXT: GMarkupParseFlags = 2; pub const GMarkupParseFlags_G_MARKUP_PREFIX_ERROR_POSITION: GMarkupParseFlags = 4; pub const GMarkupParseFlags_G_MARKUP_IGNORE_QUALIFIED: GMarkupParseFlags = 8; pub type GMarkupParseFlags = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMarkupParseContext { _unused: [u8; 0], } pub type GMarkupParseContext = _GMarkupParseContext; pub type GMarkupParser = _GMarkupParser; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMarkupParser { pub start_element: ::std::option::Option< unsafe extern "C" fn( context: *mut GMarkupParseContext, element_name: *const gchar, attribute_names: *mut *const gchar, attribute_values: *mut *const gchar, user_data: gpointer, error: *mut *mut GError, ), >, pub end_element: ::std::option::Option< unsafe extern "C" fn( context: *mut GMarkupParseContext, element_name: *const gchar, user_data: gpointer, error: *mut *mut GError, ), >, pub text: ::std::option::Option< unsafe extern "C" fn( context: *mut GMarkupParseContext, text: *const gchar, text_len: gsize, user_data: gpointer, error: *mut *mut GError, ), >, pub passthrough: ::std::option::Option< unsafe extern "C" fn( context: *mut GMarkupParseContext, passthrough_text: *const gchar, text_len: gsize, user_data: gpointer, error: *mut *mut GError, ), >, pub error: ::std::option::Option< unsafe extern "C" fn( context: *mut GMarkupParseContext, error: *mut GError, user_data: gpointer, ), >, } #[test] fn bindgen_test_layout__GMarkupParser() { const UNINIT: ::std::mem::MaybeUninit<_GMarkupParser> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GMarkupParser>(), 40usize, concat!("Size of: ", stringify!(_GMarkupParser)) ); assert_eq!( ::std::mem::align_of::<_GMarkupParser>(), 8usize, concat!("Alignment of ", stringify!(_GMarkupParser)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).start_element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(start_element) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).end_element) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(end_element) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).text) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(text) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).passthrough) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(passthrough) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).error) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GMarkupParser), "::", stringify!(error) ) ); } extern "C" { pub fn g_markup_parse_context_new( parser: *const GMarkupParser, flags: GMarkupParseFlags, user_data: gpointer, user_data_dnotify: GDestroyNotify, ) -> *mut GMarkupParseContext; } extern "C" { pub fn g_markup_parse_context_ref( context: *mut GMarkupParseContext, ) -> *mut GMarkupParseContext; } extern "C" { pub fn g_markup_parse_context_unref(context: *mut GMarkupParseContext); } extern "C" { pub fn g_markup_parse_context_free(context: *mut GMarkupParseContext); } extern "C" { pub fn g_markup_parse_context_parse( context: *mut GMarkupParseContext, text: *const gchar, text_len: gssize, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_markup_parse_context_push( context: *mut GMarkupParseContext, parser: *const GMarkupParser, user_data: gpointer, ); } extern "C" { pub fn g_markup_parse_context_pop(context: *mut GMarkupParseContext) -> gpointer; } extern "C" { pub fn g_markup_parse_context_end_parse( context: *mut GMarkupParseContext, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_markup_parse_context_get_element(context: *mut GMarkupParseContext) -> *const gchar; } extern "C" { pub fn g_markup_parse_context_get_element_stack( context: *mut GMarkupParseContext, ) -> *const GSList; } extern "C" { pub fn g_markup_parse_context_get_position( context: *mut GMarkupParseContext, line_number: *mut gint, char_number: *mut gint, ); } extern "C" { pub fn g_markup_parse_context_get_user_data(context: *mut GMarkupParseContext) -> gpointer; } extern "C" { pub fn g_markup_escape_text(text: *const gchar, length: gssize) -> *mut gchar; } extern "C" { pub fn g_markup_printf_escaped(format: *const ::std::os::raw::c_char, ...) -> *mut gchar; } extern "C" { pub fn g_markup_vprintf_escaped( format: *const ::std::os::raw::c_char, args: *mut __va_list_tag, ) -> *mut gchar; } pub const GMarkupCollectType_G_MARKUP_COLLECT_INVALID: GMarkupCollectType = 0; pub const GMarkupCollectType_G_MARKUP_COLLECT_STRING: GMarkupCollectType = 1; pub const GMarkupCollectType_G_MARKUP_COLLECT_STRDUP: GMarkupCollectType = 2; pub const GMarkupCollectType_G_MARKUP_COLLECT_BOOLEAN: GMarkupCollectType = 3; pub const GMarkupCollectType_G_MARKUP_COLLECT_TRISTATE: GMarkupCollectType = 4; pub const GMarkupCollectType_G_MARKUP_COLLECT_OPTIONAL: GMarkupCollectType = 65536; pub type GMarkupCollectType = ::std::os::raw::c_uint; extern "C" { pub fn g_markup_collect_attributes( element_name: *const gchar, attribute_names: *mut *const gchar, attribute_values: *mut *const gchar, error: *mut *mut GError, first_type: GMarkupCollectType, first_attr: *const gchar, ... ) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GVariantType { _unused: [u8; 0], } pub type GVariantType = _GVariantType; extern "C" { pub fn g_variant_type_string_is_valid(type_string: *const gchar) -> gboolean; } extern "C" { pub fn g_variant_type_string_scan( string: *const gchar, limit: *const gchar, endptr: *mut *const gchar, ) -> gboolean; } extern "C" { pub fn g_variant_type_free(type_: *mut GVariantType); } extern "C" { pub fn g_variant_type_copy(type_: *const GVariantType) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_new(type_string: *const gchar) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_get_string_length(type_: *const GVariantType) -> gsize; } extern "C" { pub fn g_variant_type_peek_string(type_: *const GVariantType) -> *const gchar; } extern "C" { pub fn g_variant_type_dup_string(type_: *const GVariantType) -> *mut gchar; } extern "C" { pub fn g_variant_type_is_definite(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_container(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_basic(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_maybe(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_array(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_tuple(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_dict_entry(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_is_variant(type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_type_hash(type_: gconstpointer) -> guint; } extern "C" { pub fn g_variant_type_equal(type1: gconstpointer, type2: gconstpointer) -> gboolean; } extern "C" { pub fn g_variant_type_is_subtype_of( type_: *const GVariantType, supertype: *const GVariantType, ) -> gboolean; } extern "C" { pub fn g_variant_type_element(type_: *const GVariantType) -> *const GVariantType; } extern "C" { pub fn g_variant_type_first(type_: *const GVariantType) -> *const GVariantType; } extern "C" { pub fn g_variant_type_next(type_: *const GVariantType) -> *const GVariantType; } extern "C" { pub fn g_variant_type_n_items(type_: *const GVariantType) -> gsize; } extern "C" { pub fn g_variant_type_key(type_: *const GVariantType) -> *const GVariantType; } extern "C" { pub fn g_variant_type_value(type_: *const GVariantType) -> *const GVariantType; } extern "C" { pub fn g_variant_type_new_array(element: *const GVariantType) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_new_maybe(element: *const GVariantType) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_new_tuple( items: *const *const GVariantType, length: gint, ) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_new_dict_entry( key: *const GVariantType, value: *const GVariantType, ) -> *mut GVariantType; } extern "C" { pub fn g_variant_type_checked_(arg1: *const gchar) -> *const GVariantType; } extern "C" { pub fn g_variant_type_string_get_depth_(type_string: *const gchar) -> gsize; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GVariant { _unused: [u8; 0], } pub type GVariant = _GVariant; pub const GVariantClass_G_VARIANT_CLASS_BOOLEAN: GVariantClass = 98; pub const GVariantClass_G_VARIANT_CLASS_BYTE: GVariantClass = 121; pub const GVariantClass_G_VARIANT_CLASS_INT16: GVariantClass = 110; pub const GVariantClass_G_VARIANT_CLASS_UINT16: GVariantClass = 113; pub const GVariantClass_G_VARIANT_CLASS_INT32: GVariantClass = 105; pub const GVariantClass_G_VARIANT_CLASS_UINT32: GVariantClass = 117; pub const GVariantClass_G_VARIANT_CLASS_INT64: GVariantClass = 120; pub const GVariantClass_G_VARIANT_CLASS_UINT64: GVariantClass = 116; pub const GVariantClass_G_VARIANT_CLASS_HANDLE: GVariantClass = 104; pub const GVariantClass_G_VARIANT_CLASS_DOUBLE: GVariantClass = 100; pub const GVariantClass_G_VARIANT_CLASS_STRING: GVariantClass = 115; pub const GVariantClass_G_VARIANT_CLASS_OBJECT_PATH: GVariantClass = 111; pub const GVariantClass_G_VARIANT_CLASS_SIGNATURE: GVariantClass = 103; pub const GVariantClass_G_VARIANT_CLASS_VARIANT: GVariantClass = 118; pub const GVariantClass_G_VARIANT_CLASS_MAYBE: GVariantClass = 109; pub const GVariantClass_G_VARIANT_CLASS_ARRAY: GVariantClass = 97; pub const GVariantClass_G_VARIANT_CLASS_TUPLE: GVariantClass = 40; pub const GVariantClass_G_VARIANT_CLASS_DICT_ENTRY: GVariantClass = 123; pub type GVariantClass = ::std::os::raw::c_uint; extern "C" { pub fn g_variant_unref(value: *mut GVariant); } extern "C" { pub fn g_variant_ref(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_ref_sink(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_is_floating(value: *mut GVariant) -> gboolean; } extern "C" { pub fn g_variant_take_ref(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_get_type(value: *mut GVariant) -> *const GVariantType; } extern "C" { pub fn g_variant_get_type_string(value: *mut GVariant) -> *const gchar; } extern "C" { pub fn g_variant_is_of_type(value: *mut GVariant, type_: *const GVariantType) -> gboolean; } extern "C" { pub fn g_variant_is_container(value: *mut GVariant) -> gboolean; } extern "C" { pub fn g_variant_classify(value: *mut GVariant) -> GVariantClass; } extern "C" { pub fn g_variant_new_boolean(value: gboolean) -> *mut GVariant; } extern "C" { pub fn g_variant_new_byte(value: guint8) -> *mut GVariant; } extern "C" { pub fn g_variant_new_int16(value: gint16) -> *mut GVariant; } extern "C" { pub fn g_variant_new_uint16(value: guint16) -> *mut GVariant; } extern "C" { pub fn g_variant_new_int32(value: gint32) -> *mut GVariant; } extern "C" { pub fn g_variant_new_uint32(value: guint32) -> *mut GVariant; } extern "C" { pub fn g_variant_new_int64(value: gint64) -> *mut GVariant; } extern "C" { pub fn g_variant_new_uint64(value: guint64) -> *mut GVariant; } extern "C" { pub fn g_variant_new_handle(value: gint32) -> *mut GVariant; } extern "C" { pub fn g_variant_new_double(value: gdouble) -> *mut GVariant; } extern "C" { pub fn g_variant_new_string(string: *const gchar) -> *mut GVariant; } extern "C" { pub fn g_variant_new_take_string(string: *mut gchar) -> *mut GVariant; } extern "C" { pub fn g_variant_new_printf(format_string: *const gchar, ...) -> *mut GVariant; } extern "C" { pub fn g_variant_new_object_path(object_path: *const gchar) -> *mut GVariant; } extern "C" { pub fn g_variant_is_object_path(string: *const gchar) -> gboolean; } extern "C" { pub fn g_variant_new_signature(signature: *const gchar) -> *mut GVariant; } extern "C" { pub fn g_variant_is_signature(string: *const gchar) -> gboolean; } extern "C" { pub fn g_variant_new_variant(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_new_strv(strv: *const *const gchar, length: gssize) -> *mut GVariant; } extern "C" { pub fn g_variant_new_objv(strv: *const *const gchar, length: gssize) -> *mut GVariant; } extern "C" { pub fn g_variant_new_bytestring(string: *const gchar) -> *mut GVariant; } extern "C" { pub fn g_variant_new_bytestring_array( strv: *const *const gchar, length: gssize, ) -> *mut GVariant; } extern "C" { pub fn g_variant_new_fixed_array( element_type: *const GVariantType, elements: gconstpointer, n_elements: gsize, element_size: gsize, ) -> *mut GVariant; } extern "C" { pub fn g_variant_get_boolean(value: *mut GVariant) -> gboolean; } extern "C" { pub fn g_variant_get_byte(value: *mut GVariant) -> guint8; } extern "C" { pub fn g_variant_get_int16(value: *mut GVariant) -> gint16; } extern "C" { pub fn g_variant_get_uint16(value: *mut GVariant) -> guint16; } extern "C" { pub fn g_variant_get_int32(value: *mut GVariant) -> gint32; } extern "C" { pub fn g_variant_get_uint32(value: *mut GVariant) -> guint32; } extern "C" { pub fn g_variant_get_int64(value: *mut GVariant) -> gint64; } extern "C" { pub fn g_variant_get_uint64(value: *mut GVariant) -> guint64; } extern "C" { pub fn g_variant_get_handle(value: *mut GVariant) -> gint32; } extern "C" { pub fn g_variant_get_double(value: *mut GVariant) -> gdouble; } extern "C" { pub fn g_variant_get_variant(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_get_string(value: *mut GVariant, length: *mut gsize) -> *const gchar; } extern "C" { pub fn g_variant_dup_string(value: *mut GVariant, length: *mut gsize) -> *mut gchar; } extern "C" { pub fn g_variant_get_strv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar; } extern "C" { pub fn g_variant_dup_strv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar; } extern "C" { pub fn g_variant_get_objv(value: *mut GVariant, length: *mut gsize) -> *mut *const gchar; } extern "C" { pub fn g_variant_dup_objv(value: *mut GVariant, length: *mut gsize) -> *mut *mut gchar; } extern "C" { pub fn g_variant_get_bytestring(value: *mut GVariant) -> *const gchar; } extern "C" { pub fn g_variant_dup_bytestring(value: *mut GVariant, length: *mut gsize) -> *mut gchar; } extern "C" { pub fn g_variant_get_bytestring_array( value: *mut GVariant, length: *mut gsize, ) -> *mut *const gchar; } extern "C" { pub fn g_variant_dup_bytestring_array( value: *mut GVariant, length: *mut gsize, ) -> *mut *mut gchar; } extern "C" { pub fn g_variant_new_maybe( child_type: *const GVariantType, child: *mut GVariant, ) -> *mut GVariant; } extern "C" { pub fn g_variant_new_array( child_type: *const GVariantType, children: *const *mut GVariant, n_children: gsize, ) -> *mut GVariant; } extern "C" { pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: gsize) -> *mut GVariant; } extern "C" { pub fn g_variant_new_dict_entry(key: *mut GVariant, value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_get_maybe(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_n_children(value: *mut GVariant) -> gsize; } extern "C" { pub fn g_variant_get_child( value: *mut GVariant, index_: gsize, format_string: *const gchar, ... ); } extern "C" { pub fn g_variant_get_child_value(value: *mut GVariant, index_: gsize) -> *mut GVariant; } extern "C" { pub fn g_variant_lookup( dictionary: *mut GVariant, key: *const gchar, format_string: *const gchar, ... ) -> gboolean; } extern "C" { pub fn g_variant_lookup_value( dictionary: *mut GVariant, key: *const gchar, expected_type: *const GVariantType, ) -> *mut GVariant; } extern "C" { pub fn g_variant_get_fixed_array( value: *mut GVariant, n_elements: *mut gsize, element_size: gsize, ) -> gconstpointer; } extern "C" { pub fn g_variant_get_size(value: *mut GVariant) -> gsize; } extern "C" { pub fn g_variant_get_data(value: *mut GVariant) -> gconstpointer; } extern "C" { pub fn g_variant_get_data_as_bytes(value: *mut GVariant) -> *mut GBytes; } extern "C" { pub fn g_variant_store(value: *mut GVariant, data: gpointer); } extern "C" { pub fn g_variant_print(value: *mut GVariant, type_annotate: gboolean) -> *mut gchar; } extern "C" { pub fn g_variant_print_string( value: *mut GVariant, string: *mut GString, type_annotate: gboolean, ) -> *mut GString; } extern "C" { pub fn g_variant_hash(value: gconstpointer) -> guint; } extern "C" { pub fn g_variant_equal(one: gconstpointer, two: gconstpointer) -> gboolean; } extern "C" { pub fn g_variant_get_normal_form(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_is_normal_form(value: *mut GVariant) -> gboolean; } extern "C" { pub fn g_variant_byteswap(value: *mut GVariant) -> *mut GVariant; } extern "C" { pub fn g_variant_new_from_bytes( type_: *const GVariantType, bytes: *mut GBytes, trusted: gboolean, ) -> *mut GVariant; } extern "C" { pub fn g_variant_new_from_data( type_: *const GVariantType, data: gconstpointer, size: gsize, trusted: gboolean, notify: GDestroyNotify, user_data: gpointer, ) -> *mut GVariant; } pub type GVariantIter = _GVariantIter; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GVariantIter { pub x: [gsize; 16usize], } #[test] fn bindgen_test_layout__GVariantIter() { const UNINIT: ::std::mem::MaybeUninit<_GVariantIter> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantIter>(), 128usize, concat!("Size of: ", stringify!(_GVariantIter)) ); assert_eq!( ::std::mem::align_of::<_GVariantIter>(), 8usize, concat!("Alignment of ", stringify!(_GVariantIter)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantIter), "::", stringify!(x) ) ); } extern "C" { pub fn g_variant_iter_new(value: *mut GVariant) -> *mut GVariantIter; } extern "C" { pub fn g_variant_iter_init(iter: *mut GVariantIter, value: *mut GVariant) -> gsize; } extern "C" { pub fn g_variant_iter_copy(iter: *mut GVariantIter) -> *mut GVariantIter; } extern "C" { pub fn g_variant_iter_n_children(iter: *mut GVariantIter) -> gsize; } extern "C" { pub fn g_variant_iter_free(iter: *mut GVariantIter); } extern "C" { pub fn g_variant_iter_next_value(iter: *mut GVariantIter) -> *mut GVariant; } extern "C" { pub fn g_variant_iter_next( iter: *mut GVariantIter, format_string: *const gchar, ... ) -> gboolean; } extern "C" { pub fn g_variant_iter_loop( iter: *mut GVariantIter, format_string: *const gchar, ... ) -> gboolean; } pub type GVariantBuilder = _GVariantBuilder; #[repr(C)] #[derive(Copy, Clone)] pub struct _GVariantBuilder { pub u: _GVariantBuilder__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _GVariantBuilder__bindgen_ty_1 { pub s: _GVariantBuilder__bindgen_ty_1__bindgen_ty_1, pub x: [gsize; 16usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GVariantBuilder__bindgen_ty_1__bindgen_ty_1 { pub partial_magic: gsize, pub type_: *const GVariantType, pub y: [gsize; 14usize], } #[test] fn bindgen_test_layout__GVariantBuilder__bindgen_ty_1__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>(), 128usize, concat!( "Size of: ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1__bindgen_ty_1>(), 8usize, concat!( "Alignment of ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).partial_magic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1), "::", stringify!(partial_magic) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder__bindgen_ty_1__bindgen_ty_1), "::", stringify!(y) ) ); } #[test] fn bindgen_test_layout__GVariantBuilder__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_GVariantBuilder__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantBuilder__bindgen_ty_1>(), 128usize, concat!("Size of: ", stringify!(_GVariantBuilder__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_GVariantBuilder__bindgen_ty_1>(), 8usize, concat!("Alignment of ", stringify!(_GVariantBuilder__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder__bindgen_ty_1), "::", stringify!(s) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder__bindgen_ty_1), "::", stringify!(x) ) ); } #[test] fn bindgen_test_layout__GVariantBuilder() { const UNINIT: ::std::mem::MaybeUninit<_GVariantBuilder> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantBuilder>(), 128usize, concat!("Size of: ", stringify!(_GVariantBuilder)) ); assert_eq!( ::std::mem::align_of::<_GVariantBuilder>(), 8usize, concat!("Alignment of ", stringify!(_GVariantBuilder)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantBuilder), "::", stringify!(u) ) ); } pub const GVariantParseError_G_VARIANT_PARSE_ERROR_FAILED: GVariantParseError = 0; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED: GVariantParseError = 1; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE: GVariantParseError = 2; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED: GVariantParseError = 3; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END: GVariantParseError = 4; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_CHARACTER: GVariantParseError = 5; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING: GVariantParseError = 6; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH: GVariantParseError = 7; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE: GVariantParseError = 8; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING: GVariantParseError = 9; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE: GVariantParseError = 10; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE: GVariantParseError = 11; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG: GVariantParseError = 12; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_TYPE_ERROR: GVariantParseError = 13; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN: GVariantParseError = 14; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD: GVariantParseError = 15; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT: GVariantParseError = 16; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17; pub const GVariantParseError_G_VARIANT_PARSE_ERROR_RECURSION: GVariantParseError = 18; pub type GVariantParseError = ::std::os::raw::c_uint; extern "C" { pub fn g_variant_parser_get_error_quark() -> GQuark; } extern "C" { pub fn g_variant_parse_error_quark() -> GQuark; } extern "C" { pub fn g_variant_builder_new(type_: *const GVariantType) -> *mut GVariantBuilder; } extern "C" { pub fn g_variant_builder_unref(builder: *mut GVariantBuilder); } extern "C" { pub fn g_variant_builder_ref(builder: *mut GVariantBuilder) -> *mut GVariantBuilder; } extern "C" { pub fn g_variant_builder_init(builder: *mut GVariantBuilder, type_: *const GVariantType); } extern "C" { pub fn g_variant_builder_end(builder: *mut GVariantBuilder) -> *mut GVariant; } extern "C" { pub fn g_variant_builder_clear(builder: *mut GVariantBuilder); } extern "C" { pub fn g_variant_builder_open(builder: *mut GVariantBuilder, type_: *const GVariantType); } extern "C" { pub fn g_variant_builder_close(builder: *mut GVariantBuilder); } extern "C" { pub fn g_variant_builder_add_value(builder: *mut GVariantBuilder, value: *mut GVariant); } extern "C" { pub fn g_variant_builder_add(builder: *mut GVariantBuilder, format_string: *const gchar, ...); } extern "C" { pub fn g_variant_builder_add_parsed(builder: *mut GVariantBuilder, format: *const gchar, ...); } extern "C" { pub fn g_variant_new(format_string: *const gchar, ...) -> *mut GVariant; } extern "C" { pub fn g_variant_get(value: *mut GVariant, format_string: *const gchar, ...); } extern "C" { pub fn g_variant_new_va( format_string: *const gchar, endptr: *mut *const gchar, app: *mut va_list, ) -> *mut GVariant; } extern "C" { pub fn g_variant_get_va( value: *mut GVariant, format_string: *const gchar, endptr: *mut *const gchar, app: *mut va_list, ); } extern "C" { pub fn g_variant_check_format_string( value: *mut GVariant, format_string: *const gchar, copy_only: gboolean, ) -> gboolean; } extern "C" { pub fn g_variant_parse( type_: *const GVariantType, text: *const gchar, limit: *const gchar, endptr: *mut *const gchar, error: *mut *mut GError, ) -> *mut GVariant; } extern "C" { pub fn g_variant_new_parsed(format: *const gchar, ...) -> *mut GVariant; } extern "C" { pub fn g_variant_new_parsed_va(format: *const gchar, app: *mut va_list) -> *mut GVariant; } extern "C" { pub fn g_variant_parse_error_print_context( error: *mut GError, source_str: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_variant_compare(one: gconstpointer, two: gconstpointer) -> gint; } pub type GVariantDict = _GVariantDict; #[repr(C)] #[derive(Copy, Clone)] pub struct _GVariantDict { pub u: _GVariantDict__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _GVariantDict__bindgen_ty_1 { pub s: _GVariantDict__bindgen_ty_1__bindgen_ty_1, pub x: [gsize; 16usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GVariantDict__bindgen_ty_1__bindgen_ty_1 { pub asv: *mut GVariant, pub partial_magic: gsize, pub y: [gsize; 14usize], } #[test] fn bindgen_test_layout__GVariantDict__bindgen_ty_1__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_GVariantDict__bindgen_ty_1__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>(), 128usize, concat!( "Size of: ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::<_GVariantDict__bindgen_ty_1__bindgen_ty_1>(), 8usize, concat!( "Alignment of ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).asv) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1), "::", stringify!(asv) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).partial_magic) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1), "::", stringify!(partial_magic) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1__bindgen_ty_1), "::", stringify!(y) ) ); } #[test] fn bindgen_test_layout__GVariantDict__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_GVariantDict__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantDict__bindgen_ty_1>(), 128usize, concat!("Size of: ", stringify!(_GVariantDict__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_GVariantDict__bindgen_ty_1>(), 8usize, concat!("Alignment of ", stringify!(_GVariantDict__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1), "::", stringify!(s) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantDict__bindgen_ty_1), "::", stringify!(x) ) ); } #[test] fn bindgen_test_layout__GVariantDict() { const UNINIT: ::std::mem::MaybeUninit<_GVariantDict> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GVariantDict>(), 128usize, concat!("Size of: ", stringify!(_GVariantDict)) ); assert_eq!( ::std::mem::align_of::<_GVariantDict>(), 8usize, concat!("Alignment of ", stringify!(_GVariantDict)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GVariantDict), "::", stringify!(u) ) ); } extern "C" { pub fn g_variant_dict_new(from_asv: *mut GVariant) -> *mut GVariantDict; } extern "C" { pub fn g_variant_dict_init(dict: *mut GVariantDict, from_asv: *mut GVariant); } extern "C" { pub fn g_variant_dict_lookup( dict: *mut GVariantDict, key: *const gchar, format_string: *const gchar, ... ) -> gboolean; } extern "C" { pub fn g_variant_dict_lookup_value( dict: *mut GVariantDict, key: *const gchar, expected_type: *const GVariantType, ) -> *mut GVariant; } extern "C" { pub fn g_variant_dict_contains(dict: *mut GVariantDict, key: *const gchar) -> gboolean; } extern "C" { pub fn g_variant_dict_insert( dict: *mut GVariantDict, key: *const gchar, format_string: *const gchar, ... ); } extern "C" { pub fn g_variant_dict_insert_value( dict: *mut GVariantDict, key: *const gchar, value: *mut GVariant, ); } extern "C" { pub fn g_variant_dict_remove(dict: *mut GVariantDict, key: *const gchar) -> gboolean; } extern "C" { pub fn g_variant_dict_clear(dict: *mut GVariantDict); } extern "C" { pub fn g_variant_dict_end(dict: *mut GVariantDict) -> *mut GVariant; } extern "C" { pub fn g_variant_dict_ref(dict: *mut GVariantDict) -> *mut GVariantDict; } extern "C" { pub fn g_variant_dict_unref(dict: *mut GVariantDict); } extern "C" { pub fn g_printf_string_upper_bound(format: *const gchar, args: *mut __va_list_tag) -> gsize; } pub const GLogLevelFlags_G_LOG_FLAG_RECURSION: GLogLevelFlags = 1; pub const GLogLevelFlags_G_LOG_FLAG_FATAL: GLogLevelFlags = 2; pub const GLogLevelFlags_G_LOG_LEVEL_ERROR: GLogLevelFlags = 4; pub const GLogLevelFlags_G_LOG_LEVEL_CRITICAL: GLogLevelFlags = 8; pub const GLogLevelFlags_G_LOG_LEVEL_WARNING: GLogLevelFlags = 16; pub const GLogLevelFlags_G_LOG_LEVEL_MESSAGE: GLogLevelFlags = 32; pub const GLogLevelFlags_G_LOG_LEVEL_INFO: GLogLevelFlags = 64; pub const GLogLevelFlags_G_LOG_LEVEL_DEBUG: GLogLevelFlags = 128; pub const GLogLevelFlags_G_LOG_LEVEL_MASK: GLogLevelFlags = -4; pub type GLogLevelFlags = ::std::os::raw::c_int; pub type GLogFunc = ::std::option::Option< unsafe extern "C" fn( log_domain: *const gchar, log_level: GLogLevelFlags, message: *const gchar, user_data: gpointer, ), >; extern "C" { pub fn g_log_set_handler( log_domain: *const gchar, log_levels: GLogLevelFlags, log_func: GLogFunc, user_data: gpointer, ) -> guint; } extern "C" { pub fn g_log_set_handler_full( log_domain: *const gchar, log_levels: GLogLevelFlags, log_func: GLogFunc, user_data: gpointer, destroy: GDestroyNotify, ) -> guint; } extern "C" { pub fn g_log_remove_handler(log_domain: *const gchar, handler_id: guint); } extern "C" { pub fn g_log_default_handler( log_domain: *const gchar, log_level: GLogLevelFlags, message: *const gchar, unused_data: gpointer, ); } extern "C" { pub fn g_log_set_default_handler(log_func: GLogFunc, user_data: gpointer) -> GLogFunc; } extern "C" { pub fn g_log(log_domain: *const gchar, log_level: GLogLevelFlags, format: *const gchar, ...); } extern "C" { pub fn g_logv( log_domain: *const gchar, log_level: GLogLevelFlags, format: *const gchar, args: *mut __va_list_tag, ); } extern "C" { pub fn g_log_set_fatal_mask( log_domain: *const gchar, fatal_mask: GLogLevelFlags, ) -> GLogLevelFlags; } extern "C" { pub fn g_log_set_always_fatal(fatal_mask: GLogLevelFlags) -> GLogLevelFlags; } pub const GLogWriterOutput_G_LOG_WRITER_HANDLED: GLogWriterOutput = 1; pub const GLogWriterOutput_G_LOG_WRITER_UNHANDLED: GLogWriterOutput = 0; pub type GLogWriterOutput = ::std::os::raw::c_uint; pub type GLogField = _GLogField; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GLogField { pub key: *const gchar, pub value: gconstpointer, pub length: gssize, } #[test] fn bindgen_test_layout__GLogField() { const UNINIT: ::std::mem::MaybeUninit<_GLogField> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GLogField>(), 24usize, concat!("Size of: ", stringify!(_GLogField)) ); assert_eq!( ::std::mem::align_of::<_GLogField>(), 8usize, concat!("Alignment of ", stringify!(_GLogField)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GLogField), "::", stringify!(key) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GLogField), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GLogField), "::", stringify!(length) ) ); } pub type GLogWriterFunc = ::std::option::Option< unsafe extern "C" fn( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, user_data: gpointer, ) -> GLogWriterOutput, >; extern "C" { pub fn g_log_structured(log_domain: *const gchar, log_level: GLogLevelFlags, ...); } extern "C" { pub fn g_log_structured_array( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, ); } extern "C" { pub fn g_log_variant( log_domain: *const gchar, log_level: GLogLevelFlags, fields: *mut GVariant, ); } extern "C" { pub fn g_log_set_writer_func( func: GLogWriterFunc, user_data: gpointer, user_data_free: GDestroyNotify, ); } extern "C" { pub fn g_log_writer_supports_color(output_fd: gint) -> gboolean; } extern "C" { pub fn g_log_writer_is_journald(output_fd: gint) -> gboolean; } extern "C" { pub fn g_log_writer_format_fields( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, use_color: gboolean, ) -> *mut gchar; } extern "C" { pub fn g_log_writer_journald( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, user_data: gpointer, ) -> GLogWriterOutput; } extern "C" { pub fn g_log_writer_standard_streams( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, user_data: gpointer, ) -> GLogWriterOutput; } extern "C" { pub fn g_log_writer_default( log_level: GLogLevelFlags, fields: *const GLogField, n_fields: gsize, user_data: gpointer, ) -> GLogWriterOutput; } extern "C" { pub fn g_log_writer_default_set_use_stderr(use_stderr: gboolean); } extern "C" { pub fn g_log_writer_default_would_drop( log_level: GLogLevelFlags, log_domain: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn g_log_get_debug_enabled() -> gboolean; } extern "C" { pub fn g_log_set_debug_enabled(enabled: gboolean); } extern "C" { pub fn _g_log_fallback_handler( log_domain: *const gchar, log_level: GLogLevelFlags, message: *const gchar, unused_data: gpointer, ); } extern "C" { pub fn g_return_if_fail_warning( log_domain: *const ::std::os::raw::c_char, pretty_function: *const ::std::os::raw::c_char, expression: *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_warn_message( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, warnexpr: *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_assert_warning( log_domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, pretty_function: *const ::std::os::raw::c_char, expression: *const ::std::os::raw::c_char, ) -> !; } extern "C" { pub fn g_log_structured_standard( log_domain: *const gchar, log_level: GLogLevelFlags, file: *const gchar, line: *const gchar, func: *const gchar, message_format: *const gchar, ... ); } pub type GPrintFunc = ::std::option::Option; extern "C" { pub fn g_print(format: *const gchar, ...); } extern "C" { pub fn g_set_print_handler(func: GPrintFunc) -> GPrintFunc; } extern "C" { pub fn g_printerr(format: *const gchar, ...); } extern "C" { pub fn g_set_printerr_handler(func: GPrintFunc) -> GPrintFunc; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GOptionContext { _unused: [u8; 0], } pub type GOptionContext = _GOptionContext; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GOptionGroup { _unused: [u8; 0], } pub type GOptionGroup = _GOptionGroup; pub type GOptionEntry = _GOptionEntry; pub const GOptionFlags_G_OPTION_FLAG_NONE: GOptionFlags = 0; pub const GOptionFlags_G_OPTION_FLAG_HIDDEN: GOptionFlags = 1; pub const GOptionFlags_G_OPTION_FLAG_IN_MAIN: GOptionFlags = 2; pub const GOptionFlags_G_OPTION_FLAG_REVERSE: GOptionFlags = 4; pub const GOptionFlags_G_OPTION_FLAG_NO_ARG: GOptionFlags = 8; pub const GOptionFlags_G_OPTION_FLAG_FILENAME: GOptionFlags = 16; pub const GOptionFlags_G_OPTION_FLAG_OPTIONAL_ARG: GOptionFlags = 32; pub const GOptionFlags_G_OPTION_FLAG_NOALIAS: GOptionFlags = 64; pub type GOptionFlags = ::std::os::raw::c_uint; pub const GOptionArg_G_OPTION_ARG_NONE: GOptionArg = 0; pub const GOptionArg_G_OPTION_ARG_STRING: GOptionArg = 1; pub const GOptionArg_G_OPTION_ARG_INT: GOptionArg = 2; pub const GOptionArg_G_OPTION_ARG_CALLBACK: GOptionArg = 3; pub const GOptionArg_G_OPTION_ARG_FILENAME: GOptionArg = 4; pub const GOptionArg_G_OPTION_ARG_STRING_ARRAY: GOptionArg = 5; pub const GOptionArg_G_OPTION_ARG_FILENAME_ARRAY: GOptionArg = 6; pub const GOptionArg_G_OPTION_ARG_DOUBLE: GOptionArg = 7; pub const GOptionArg_G_OPTION_ARG_INT64: GOptionArg = 8; pub type GOptionArg = ::std::os::raw::c_uint; pub type GOptionArgFunc = ::std::option::Option< unsafe extern "C" fn( option_name: *const gchar, value: *const gchar, data: gpointer, error: *mut *mut GError, ) -> gboolean, >; pub type GOptionParseFunc = ::std::option::Option< unsafe extern "C" fn( context: *mut GOptionContext, group: *mut GOptionGroup, data: gpointer, error: *mut *mut GError, ) -> gboolean, >; pub type GOptionErrorFunc = ::std::option::Option< unsafe extern "C" fn( context: *mut GOptionContext, group: *mut GOptionGroup, data: gpointer, error: *mut *mut GError, ), >; pub const GOptionError_G_OPTION_ERROR_UNKNOWN_OPTION: GOptionError = 0; pub const GOptionError_G_OPTION_ERROR_BAD_VALUE: GOptionError = 1; pub const GOptionError_G_OPTION_ERROR_FAILED: GOptionError = 2; pub type GOptionError = ::std::os::raw::c_uint; extern "C" { pub fn g_option_error_quark() -> GQuark; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GOptionEntry { pub long_name: *const gchar, pub short_name: gchar, pub flags: gint, pub arg: GOptionArg, pub arg_data: gpointer, pub description: *const gchar, pub arg_description: *const gchar, } #[test] fn bindgen_test_layout__GOptionEntry() { const UNINIT: ::std::mem::MaybeUninit<_GOptionEntry> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GOptionEntry>(), 48usize, concat!("Size of: ", stringify!(_GOptionEntry)) ); assert_eq!( ::std::mem::align_of::<_GOptionEntry>(), 8usize, concat!("Alignment of ", stringify!(_GOptionEntry)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).long_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(long_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).short_name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(short_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).arg_data) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).description) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(description) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).arg_description) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GOptionEntry), "::", stringify!(arg_description) ) ); } extern "C" { pub fn g_option_context_new(parameter_string: *const gchar) -> *mut GOptionContext; } extern "C" { pub fn g_option_context_set_summary(context: *mut GOptionContext, summary: *const gchar); } extern "C" { pub fn g_option_context_get_summary(context: *mut GOptionContext) -> *const gchar; } extern "C" { pub fn g_option_context_set_description( context: *mut GOptionContext, description: *const gchar, ); } extern "C" { pub fn g_option_context_get_description(context: *mut GOptionContext) -> *const gchar; } extern "C" { pub fn g_option_context_free(context: *mut GOptionContext); } extern "C" { pub fn g_option_context_set_help_enabled(context: *mut GOptionContext, help_enabled: gboolean); } extern "C" { pub fn g_option_context_get_help_enabled(context: *mut GOptionContext) -> gboolean; } extern "C" { pub fn g_option_context_set_ignore_unknown_options( context: *mut GOptionContext, ignore_unknown: gboolean, ); } extern "C" { pub fn g_option_context_get_ignore_unknown_options(context: *mut GOptionContext) -> gboolean; } extern "C" { pub fn g_option_context_set_strict_posix(context: *mut GOptionContext, strict_posix: gboolean); } extern "C" { pub fn g_option_context_get_strict_posix(context: *mut GOptionContext) -> gboolean; } extern "C" { pub fn g_option_context_add_main_entries( context: *mut GOptionContext, entries: *const GOptionEntry, translation_domain: *const gchar, ); } extern "C" { pub fn g_option_context_parse( context: *mut GOptionContext, argc: *mut gint, argv: *mut *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_option_context_parse_strv( context: *mut GOptionContext, arguments: *mut *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_option_context_set_translate_func( context: *mut GOptionContext, func: GTranslateFunc, data: gpointer, destroy_notify: GDestroyNotify, ); } extern "C" { pub fn g_option_context_set_translation_domain( context: *mut GOptionContext, domain: *const gchar, ); } extern "C" { pub fn g_option_context_add_group(context: *mut GOptionContext, group: *mut GOptionGroup); } extern "C" { pub fn g_option_context_set_main_group(context: *mut GOptionContext, group: *mut GOptionGroup); } extern "C" { pub fn g_option_context_get_main_group(context: *mut GOptionContext) -> *mut GOptionGroup; } extern "C" { pub fn g_option_context_get_help( context: *mut GOptionContext, main_help: gboolean, group: *mut GOptionGroup, ) -> *mut gchar; } extern "C" { pub fn g_option_group_new( name: *const gchar, description: *const gchar, help_description: *const gchar, user_data: gpointer, destroy: GDestroyNotify, ) -> *mut GOptionGroup; } extern "C" { pub fn g_option_group_set_parse_hooks( group: *mut GOptionGroup, pre_parse_func: GOptionParseFunc, post_parse_func: GOptionParseFunc, ); } extern "C" { pub fn g_option_group_set_error_hook(group: *mut GOptionGroup, error_func: GOptionErrorFunc); } extern "C" { pub fn g_option_group_free(group: *mut GOptionGroup); } extern "C" { pub fn g_option_group_ref(group: *mut GOptionGroup) -> *mut GOptionGroup; } extern "C" { pub fn g_option_group_unref(group: *mut GOptionGroup); } extern "C" { pub fn g_option_group_add_entries(group: *mut GOptionGroup, entries: *const GOptionEntry); } extern "C" { pub fn g_option_group_set_translate_func( group: *mut GOptionGroup, func: GTranslateFunc, data: gpointer, destroy_notify: GDestroyNotify, ); } extern "C" { pub fn g_option_group_set_translation_domain(group: *mut GOptionGroup, domain: *const gchar); } pub type GPathBuf = _GPathBuf; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GPathBuf { pub dummy: [gpointer; 8usize], } #[test] fn bindgen_test_layout__GPathBuf() { const UNINIT: ::std::mem::MaybeUninit<_GPathBuf> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GPathBuf>(), 64usize, concat!("Size of: ", stringify!(_GPathBuf)) ); assert_eq!( ::std::mem::align_of::<_GPathBuf>(), 8usize, concat!("Alignment of ", stringify!(_GPathBuf)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GPathBuf), "::", stringify!(dummy) ) ); } extern "C" { pub fn g_path_buf_new() -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_new_from_path(path: *const ::std::os::raw::c_char) -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_init(buf: *mut GPathBuf) -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_init_from_path( buf: *mut GPathBuf, path: *const ::std::os::raw::c_char, ) -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_clear(buf: *mut GPathBuf); } extern "C" { pub fn g_path_buf_clear_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_path_buf_free(buf: *mut GPathBuf); } extern "C" { pub fn g_path_buf_free_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_path_buf_copy(buf: *mut GPathBuf) -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_push( buf: *mut GPathBuf, path: *const ::std::os::raw::c_char, ) -> *mut GPathBuf; } extern "C" { pub fn g_path_buf_pop(buf: *mut GPathBuf) -> gboolean; } extern "C" { pub fn g_path_buf_set_filename( buf: *mut GPathBuf, file_name: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn g_path_buf_set_extension( buf: *mut GPathBuf, extension: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn g_path_buf_to_path(buf: *mut GPathBuf) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_path_buf_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GPatternSpec { _unused: [u8; 0], } pub type GPatternSpec = _GPatternSpec; extern "C" { pub fn g_pattern_spec_new(pattern: *const gchar) -> *mut GPatternSpec; } extern "C" { pub fn g_pattern_spec_free(pspec: *mut GPatternSpec); } extern "C" { pub fn g_pattern_spec_copy(pspec: *mut GPatternSpec) -> *mut GPatternSpec; } extern "C" { pub fn g_pattern_spec_equal(pspec1: *mut GPatternSpec, pspec2: *mut GPatternSpec) -> gboolean; } extern "C" { pub fn g_pattern_spec_match( pspec: *mut GPatternSpec, string_length: gsize, string: *const gchar, string_reversed: *const gchar, ) -> gboolean; } extern "C" { pub fn g_pattern_spec_match_string(pspec: *mut GPatternSpec, string: *const gchar) -> gboolean; } extern "C" { pub fn g_pattern_match( pspec: *mut GPatternSpec, string_length: guint, string: *const gchar, string_reversed: *const gchar, ) -> gboolean; } extern "C" { pub fn g_pattern_match_string(pspec: *mut GPatternSpec, string: *const gchar) -> gboolean; } extern "C" { pub fn g_pattern_match_simple(pattern: *const gchar, string: *const gchar) -> gboolean; } extern "C" { pub fn g_spaced_primes_closest(num: guint) -> guint; } extern "C" { pub fn g_qsort_with_data( pbase: gconstpointer, total_elems: gint, size: gsize, compare_func: GCompareDataFunc, user_data: gpointer, ); } pub type GQueue = _GQueue; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GQueue { pub head: *mut GList, pub tail: *mut GList, pub length: guint, } #[test] fn bindgen_test_layout__GQueue() { const UNINIT: ::std::mem::MaybeUninit<_GQueue> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GQueue>(), 24usize, concat!("Size of: ", stringify!(_GQueue)) ); assert_eq!( ::std::mem::align_of::<_GQueue>(), 8usize, concat!("Alignment of ", stringify!(_GQueue)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).head) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GQueue), "::", stringify!(head) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tail) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GQueue), "::", stringify!(tail) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GQueue), "::", stringify!(length) ) ); } extern "C" { pub fn g_queue_new() -> *mut GQueue; } extern "C" { pub fn g_queue_free(queue: *mut GQueue); } extern "C" { pub fn g_queue_free_full(queue: *mut GQueue, free_func: GDestroyNotify); } extern "C" { pub fn g_queue_init(queue: *mut GQueue); } extern "C" { pub fn g_queue_clear(queue: *mut GQueue); } extern "C" { pub fn g_queue_is_empty(queue: *mut GQueue) -> gboolean; } extern "C" { pub fn g_queue_clear_full(queue: *mut GQueue, free_func: GDestroyNotify); } extern "C" { pub fn g_queue_get_length(queue: *mut GQueue) -> guint; } extern "C" { pub fn g_queue_reverse(queue: *mut GQueue); } extern "C" { pub fn g_queue_copy(queue: *mut GQueue) -> *mut GQueue; } extern "C" { pub fn g_queue_foreach(queue: *mut GQueue, func: GFunc, user_data: gpointer); } extern "C" { pub fn g_queue_find(queue: *mut GQueue, data: gconstpointer) -> *mut GList; } extern "C" { pub fn g_queue_find_custom( queue: *mut GQueue, data: gconstpointer, func: GCompareFunc, ) -> *mut GList; } extern "C" { pub fn g_queue_sort(queue: *mut GQueue, compare_func: GCompareDataFunc, user_data: gpointer); } extern "C" { pub fn g_queue_push_head(queue: *mut GQueue, data: gpointer); } extern "C" { pub fn g_queue_push_tail(queue: *mut GQueue, data: gpointer); } extern "C" { pub fn g_queue_push_nth(queue: *mut GQueue, data: gpointer, n: gint); } extern "C" { pub fn g_queue_pop_head(queue: *mut GQueue) -> gpointer; } extern "C" { pub fn g_queue_pop_tail(queue: *mut GQueue) -> gpointer; } extern "C" { pub fn g_queue_pop_nth(queue: *mut GQueue, n: guint) -> gpointer; } extern "C" { pub fn g_queue_peek_head(queue: *mut GQueue) -> gpointer; } extern "C" { pub fn g_queue_peek_tail(queue: *mut GQueue) -> gpointer; } extern "C" { pub fn g_queue_peek_nth(queue: *mut GQueue, n: guint) -> gpointer; } extern "C" { pub fn g_queue_index(queue: *mut GQueue, data: gconstpointer) -> gint; } extern "C" { pub fn g_queue_remove(queue: *mut GQueue, data: gconstpointer) -> gboolean; } extern "C" { pub fn g_queue_remove_all(queue: *mut GQueue, data: gconstpointer) -> guint; } extern "C" { pub fn g_queue_insert_before(queue: *mut GQueue, sibling: *mut GList, data: gpointer); } extern "C" { pub fn g_queue_insert_before_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList); } extern "C" { pub fn g_queue_insert_after(queue: *mut GQueue, sibling: *mut GList, data: gpointer); } extern "C" { pub fn g_queue_insert_after_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList); } extern "C" { pub fn g_queue_insert_sorted( queue: *mut GQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_queue_push_head_link(queue: *mut GQueue, link_: *mut GList); } extern "C" { pub fn g_queue_push_tail_link(queue: *mut GQueue, link_: *mut GList); } extern "C" { pub fn g_queue_push_nth_link(queue: *mut GQueue, n: gint, link_: *mut GList); } extern "C" { pub fn g_queue_pop_head_link(queue: *mut GQueue) -> *mut GList; } extern "C" { pub fn g_queue_pop_tail_link(queue: *mut GQueue) -> *mut GList; } extern "C" { pub fn g_queue_pop_nth_link(queue: *mut GQueue, n: guint) -> *mut GList; } extern "C" { pub fn g_queue_peek_head_link(queue: *mut GQueue) -> *mut GList; } extern "C" { pub fn g_queue_peek_tail_link(queue: *mut GQueue) -> *mut GList; } extern "C" { pub fn g_queue_peek_nth_link(queue: *mut GQueue, n: guint) -> *mut GList; } extern "C" { pub fn g_queue_link_index(queue: *mut GQueue, link_: *mut GList) -> gint; } extern "C" { pub fn g_queue_unlink(queue: *mut GQueue, link_: *mut GList); } extern "C" { pub fn g_queue_delete_link(queue: *mut GQueue, link_: *mut GList); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GRand { _unused: [u8; 0], } pub type GRand = _GRand; extern "C" { pub fn g_rand_new_with_seed(seed: guint32) -> *mut GRand; } extern "C" { pub fn g_rand_new_with_seed_array(seed: *const guint32, seed_length: guint) -> *mut GRand; } extern "C" { pub fn g_rand_new() -> *mut GRand; } extern "C" { pub fn g_rand_free(rand_: *mut GRand); } extern "C" { pub fn g_rand_copy(rand_: *mut GRand) -> *mut GRand; } extern "C" { pub fn g_rand_set_seed(rand_: *mut GRand, seed: guint32); } extern "C" { pub fn g_rand_set_seed_array(rand_: *mut GRand, seed: *const guint32, seed_length: guint); } extern "C" { pub fn g_rand_int(rand_: *mut GRand) -> guint32; } extern "C" { pub fn g_rand_int_range(rand_: *mut GRand, begin: gint32, end: gint32) -> gint32; } extern "C" { pub fn g_rand_double(rand_: *mut GRand) -> gdouble; } extern "C" { pub fn g_rand_double_range(rand_: *mut GRand, begin: gdouble, end: gdouble) -> gdouble; } extern "C" { pub fn g_random_set_seed(seed: guint32); } extern "C" { pub fn g_random_int() -> guint32; } extern "C" { pub fn g_random_int_range(begin: gint32, end: gint32) -> gint32; } extern "C" { pub fn g_random_double() -> gdouble; } extern "C" { pub fn g_random_double_range(begin: gdouble, end: gdouble) -> gdouble; } extern "C" { pub fn g_rc_box_alloc(block_size: gsize) -> gpointer; } extern "C" { pub fn g_rc_box_alloc0(block_size: gsize) -> gpointer; } extern "C" { pub fn g_rc_box_dup(block_size: gsize, mem_block: gconstpointer) -> gpointer; } extern "C" { pub fn g_rc_box_acquire(mem_block: gpointer) -> gpointer; } extern "C" { pub fn g_rc_box_release(mem_block: gpointer); } extern "C" { pub fn g_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify); } extern "C" { pub fn g_rc_box_get_size(mem_block: gpointer) -> gsize; } extern "C" { pub fn g_atomic_rc_box_alloc(block_size: gsize) -> gpointer; } extern "C" { pub fn g_atomic_rc_box_alloc0(block_size: gsize) -> gpointer; } extern "C" { pub fn g_atomic_rc_box_dup(block_size: gsize, mem_block: gconstpointer) -> gpointer; } extern "C" { pub fn g_atomic_rc_box_acquire(mem_block: gpointer) -> gpointer; } extern "C" { pub fn g_atomic_rc_box_release(mem_block: gpointer); } extern "C" { pub fn g_atomic_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify); } extern "C" { pub fn g_atomic_rc_box_get_size(mem_block: gpointer) -> gsize; } extern "C" { pub fn g_ref_count_init(rc: *mut grefcount); } extern "C" { pub fn g_ref_count_inc(rc: *mut grefcount); } extern "C" { pub fn g_ref_count_dec(rc: *mut grefcount) -> gboolean; } extern "C" { pub fn g_ref_count_compare(rc: *mut grefcount, val: gint) -> gboolean; } extern "C" { pub fn g_atomic_ref_count_init(arc: *mut gatomicrefcount); } extern "C" { pub fn g_atomic_ref_count_inc(arc: *mut gatomicrefcount); } extern "C" { pub fn g_atomic_ref_count_dec(arc: *mut gatomicrefcount) -> gboolean; } extern "C" { pub fn g_atomic_ref_count_compare(arc: *mut gatomicrefcount, val: gint) -> gboolean; } extern "C" { pub fn g_ref_string_new(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_ref_string_new_len( str_: *const ::std::os::raw::c_char, len: gssize, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_ref_string_new_intern( str_: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_ref_string_acquire(str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_ref_string_release(str_: *mut ::std::os::raw::c_char); } extern "C" { pub fn g_ref_string_length(str_: *mut ::std::os::raw::c_char) -> gsize; } pub type GRefString = ::std::os::raw::c_char; pub const GRegexError_G_REGEX_ERROR_COMPILE: GRegexError = 0; pub const GRegexError_G_REGEX_ERROR_OPTIMIZE: GRegexError = 1; pub const GRegexError_G_REGEX_ERROR_REPLACE: GRegexError = 2; pub const GRegexError_G_REGEX_ERROR_MATCH: GRegexError = 3; pub const GRegexError_G_REGEX_ERROR_INTERNAL: GRegexError = 4; pub const GRegexError_G_REGEX_ERROR_STRAY_BACKSLASH: GRegexError = 101; pub const GRegexError_G_REGEX_ERROR_MISSING_CONTROL_CHAR: GRegexError = 102; pub const GRegexError_G_REGEX_ERROR_UNRECOGNIZED_ESCAPE: GRegexError = 103; pub const GRegexError_G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER: GRegexError = 104; pub const GRegexError_G_REGEX_ERROR_QUANTIFIER_TOO_BIG: GRegexError = 105; pub const GRegexError_G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS: GRegexError = 106; pub const GRegexError_G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS: GRegexError = 107; pub const GRegexError_G_REGEX_ERROR_RANGE_OUT_OF_ORDER: GRegexError = 108; pub const GRegexError_G_REGEX_ERROR_NOTHING_TO_REPEAT: GRegexError = 109; pub const GRegexError_G_REGEX_ERROR_UNRECOGNIZED_CHARACTER: GRegexError = 112; pub const GRegexError_G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS: GRegexError = 113; pub const GRegexError_G_REGEX_ERROR_UNMATCHED_PARENTHESIS: GRegexError = 114; pub const GRegexError_G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE: GRegexError = 115; pub const GRegexError_G_REGEX_ERROR_UNTERMINATED_COMMENT: GRegexError = 118; pub const GRegexError_G_REGEX_ERROR_EXPRESSION_TOO_LARGE: GRegexError = 120; pub const GRegexError_G_REGEX_ERROR_MEMORY_ERROR: GRegexError = 121; pub const GRegexError_G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND: GRegexError = 125; pub const GRegexError_G_REGEX_ERROR_MALFORMED_CONDITION: GRegexError = 126; pub const GRegexError_G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES: GRegexError = 127; pub const GRegexError_G_REGEX_ERROR_ASSERTION_EXPECTED: GRegexError = 128; pub const GRegexError_G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME: GRegexError = 130; pub const GRegexError_G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: GRegexError = 131; pub const GRegexError_G_REGEX_ERROR_HEX_CODE_TOO_LARGE: GRegexError = 134; pub const GRegexError_G_REGEX_ERROR_INVALID_CONDITION: GRegexError = 135; pub const GRegexError_G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND: GRegexError = 136; pub const GRegexError_G_REGEX_ERROR_INFINITE_LOOP: GRegexError = 140; pub const GRegexError_G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR: GRegexError = 142; pub const GRegexError_G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME: GRegexError = 143; pub const GRegexError_G_REGEX_ERROR_MALFORMED_PROPERTY: GRegexError = 146; pub const GRegexError_G_REGEX_ERROR_UNKNOWN_PROPERTY: GRegexError = 147; pub const GRegexError_G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG: GRegexError = 148; pub const GRegexError_G_REGEX_ERROR_TOO_MANY_SUBPATTERNS: GRegexError = 149; pub const GRegexError_G_REGEX_ERROR_INVALID_OCTAL_VALUE: GRegexError = 151; pub const GRegexError_G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: GRegexError = 154; pub const GRegexError_G_REGEX_ERROR_DEFINE_REPETION: GRegexError = 155; pub const GRegexError_G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: GRegexError = 156; pub const GRegexError_G_REGEX_ERROR_MISSING_BACK_REFERENCE: GRegexError = 157; pub const GRegexError_G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE: GRegexError = 158; pub const GRegexError_G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: GRegexError = 159; pub const GRegexError_G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB: GRegexError = 160; pub const GRegexError_G_REGEX_ERROR_NUMBER_TOO_BIG: GRegexError = 161; pub const GRegexError_G_REGEX_ERROR_MISSING_SUBPATTERN_NAME: GRegexError = 162; pub const GRegexError_G_REGEX_ERROR_MISSING_DIGIT: GRegexError = 163; pub const GRegexError_G_REGEX_ERROR_INVALID_DATA_CHARACTER: GRegexError = 164; pub const GRegexError_G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME: GRegexError = 165; pub const GRegexError_G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: GRegexError = 166; pub const GRegexError_G_REGEX_ERROR_INVALID_CONTROL_CHAR: GRegexError = 168; pub const GRegexError_G_REGEX_ERROR_MISSING_NAME: GRegexError = 169; pub const GRegexError_G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS: GRegexError = 171; pub const GRegexError_G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES: GRegexError = 172; pub const GRegexError_G_REGEX_ERROR_NAME_TOO_LONG: GRegexError = 175; pub const GRegexError_G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE: GRegexError = 176; pub type GRegexError = ::std::os::raw::c_uint; extern "C" { pub fn g_regex_error_quark() -> GQuark; } pub const GRegexCompileFlags_G_REGEX_DEFAULT: GRegexCompileFlags = 0; pub const GRegexCompileFlags_G_REGEX_CASELESS: GRegexCompileFlags = 1; pub const GRegexCompileFlags_G_REGEX_MULTILINE: GRegexCompileFlags = 2; pub const GRegexCompileFlags_G_REGEX_DOTALL: GRegexCompileFlags = 4; pub const GRegexCompileFlags_G_REGEX_EXTENDED: GRegexCompileFlags = 8; pub const GRegexCompileFlags_G_REGEX_ANCHORED: GRegexCompileFlags = 16; pub const GRegexCompileFlags_G_REGEX_DOLLAR_ENDONLY: GRegexCompileFlags = 32; pub const GRegexCompileFlags_G_REGEX_UNGREEDY: GRegexCompileFlags = 512; pub const GRegexCompileFlags_G_REGEX_RAW: GRegexCompileFlags = 2048; pub const GRegexCompileFlags_G_REGEX_NO_AUTO_CAPTURE: GRegexCompileFlags = 4096; pub const GRegexCompileFlags_G_REGEX_OPTIMIZE: GRegexCompileFlags = 8192; pub const GRegexCompileFlags_G_REGEX_FIRSTLINE: GRegexCompileFlags = 262144; pub const GRegexCompileFlags_G_REGEX_DUPNAMES: GRegexCompileFlags = 524288; pub const GRegexCompileFlags_G_REGEX_NEWLINE_CR: GRegexCompileFlags = 1048576; pub const GRegexCompileFlags_G_REGEX_NEWLINE_LF: GRegexCompileFlags = 2097152; pub const GRegexCompileFlags_G_REGEX_NEWLINE_CRLF: GRegexCompileFlags = 3145728; pub const GRegexCompileFlags_G_REGEX_NEWLINE_ANYCRLF: GRegexCompileFlags = 5242880; pub const GRegexCompileFlags_G_REGEX_BSR_ANYCRLF: GRegexCompileFlags = 8388608; pub const GRegexCompileFlags_G_REGEX_JAVASCRIPT_COMPAT: GRegexCompileFlags = 33554432; pub type GRegexCompileFlags = ::std::os::raw::c_uint; pub const GRegexMatchFlags_G_REGEX_MATCH_DEFAULT: GRegexMatchFlags = 0; pub const GRegexMatchFlags_G_REGEX_MATCH_ANCHORED: GRegexMatchFlags = 16; pub const GRegexMatchFlags_G_REGEX_MATCH_NOTBOL: GRegexMatchFlags = 128; pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEOL: GRegexMatchFlags = 256; pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEMPTY: GRegexMatchFlags = 1024; pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL: GRegexMatchFlags = 32768; pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_CR: GRegexMatchFlags = 1048576; pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_LF: GRegexMatchFlags = 2097152; pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_CRLF: GRegexMatchFlags = 3145728; pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_ANY: GRegexMatchFlags = 4194304; pub const GRegexMatchFlags_G_REGEX_MATCH_NEWLINE_ANYCRLF: GRegexMatchFlags = 5242880; pub const GRegexMatchFlags_G_REGEX_MATCH_BSR_ANYCRLF: GRegexMatchFlags = 8388608; pub const GRegexMatchFlags_G_REGEX_MATCH_BSR_ANY: GRegexMatchFlags = 16777216; pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags = 32768; pub const GRegexMatchFlags_G_REGEX_MATCH_PARTIAL_HARD: GRegexMatchFlags = 134217728; pub const GRegexMatchFlags_G_REGEX_MATCH_NOTEMPTY_ATSTART: GRegexMatchFlags = 268435456; pub type GRegexMatchFlags = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GRegex { _unused: [u8; 0], } pub type GRegex = _GRegex; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMatchInfo { _unused: [u8; 0], } pub type GMatchInfo = _GMatchInfo; pub type GRegexEvalCallback = ::std::option::Option< unsafe extern "C" fn( match_info: *const GMatchInfo, result: *mut GString, user_data: gpointer, ) -> gboolean, >; extern "C" { pub fn g_regex_new( pattern: *const gchar, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags, error: *mut *mut GError, ) -> *mut GRegex; } extern "C" { pub fn g_regex_ref(regex: *mut GRegex) -> *mut GRegex; } extern "C" { pub fn g_regex_unref(regex: *mut GRegex); } extern "C" { pub fn g_regex_get_pattern(regex: *const GRegex) -> *const gchar; } extern "C" { pub fn g_regex_get_max_backref(regex: *const GRegex) -> gint; } extern "C" { pub fn g_regex_get_capture_count(regex: *const GRegex) -> gint; } extern "C" { pub fn g_regex_get_has_cr_or_lf(regex: *const GRegex) -> gboolean; } extern "C" { pub fn g_regex_get_max_lookbehind(regex: *const GRegex) -> gint; } extern "C" { pub fn g_regex_get_string_number(regex: *const GRegex, name: *const gchar) -> gint; } extern "C" { pub fn g_regex_escape_string(string: *const gchar, length: gint) -> *mut gchar; } extern "C" { pub fn g_regex_escape_nul(string: *const gchar, length: gint) -> *mut gchar; } extern "C" { pub fn g_regex_get_compile_flags(regex: *const GRegex) -> GRegexCompileFlags; } extern "C" { pub fn g_regex_get_match_flags(regex: *const GRegex) -> GRegexMatchFlags; } extern "C" { pub fn g_regex_match_simple( pattern: *const gchar, string: *const gchar, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags, ) -> gboolean; } extern "C" { pub fn g_regex_match( regex: *const GRegex, string: *const gchar, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, ) -> gboolean; } extern "C" { pub fn g_regex_match_full( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_regex_match_all( regex: *const GRegex, string: *const gchar, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, ) -> gboolean; } extern "C" { pub fn g_regex_match_all_full( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, match_options: GRegexMatchFlags, match_info: *mut *mut GMatchInfo, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_regex_split_simple( pattern: *const gchar, string: *const gchar, compile_options: GRegexCompileFlags, match_options: GRegexMatchFlags, ) -> *mut *mut gchar; } extern "C" { pub fn g_regex_split( regex: *const GRegex, string: *const gchar, match_options: GRegexMatchFlags, ) -> *mut *mut gchar; } extern "C" { pub fn g_regex_split_full( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, match_options: GRegexMatchFlags, max_tokens: gint, error: *mut *mut GError, ) -> *mut *mut gchar; } extern "C" { pub fn g_regex_replace( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, replacement: *const gchar, match_options: GRegexMatchFlags, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_regex_replace_literal( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, replacement: *const gchar, match_options: GRegexMatchFlags, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_regex_replace_eval( regex: *const GRegex, string: *const gchar, string_len: gssize, start_position: gint, match_options: GRegexMatchFlags, eval: GRegexEvalCallback, user_data: gpointer, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_regex_check_replacement( replacement: *const gchar, has_references: *mut gboolean, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_match_info_get_regex(match_info: *const GMatchInfo) -> *mut GRegex; } extern "C" { pub fn g_match_info_get_string(match_info: *const GMatchInfo) -> *const gchar; } extern "C" { pub fn g_match_info_ref(match_info: *mut GMatchInfo) -> *mut GMatchInfo; } extern "C" { pub fn g_match_info_unref(match_info: *mut GMatchInfo); } extern "C" { pub fn g_match_info_free(match_info: *mut GMatchInfo); } extern "C" { pub fn g_match_info_next(match_info: *mut GMatchInfo, error: *mut *mut GError) -> gboolean; } extern "C" { pub fn g_match_info_matches(match_info: *const GMatchInfo) -> gboolean; } extern "C" { pub fn g_match_info_get_match_count(match_info: *const GMatchInfo) -> gint; } extern "C" { pub fn g_match_info_is_partial_match(match_info: *const GMatchInfo) -> gboolean; } extern "C" { pub fn g_match_info_expand_references( match_info: *const GMatchInfo, string_to_expand: *const gchar, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_match_info_fetch(match_info: *const GMatchInfo, match_num: gint) -> *mut gchar; } extern "C" { pub fn g_match_info_fetch_pos( match_info: *const GMatchInfo, match_num: gint, start_pos: *mut gint, end_pos: *mut gint, ) -> gboolean; } extern "C" { pub fn g_match_info_fetch_named( match_info: *const GMatchInfo, name: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_match_info_fetch_named_pos( match_info: *const GMatchInfo, name: *const gchar, start_pos: *mut gint, end_pos: *mut gint, ) -> gboolean; } extern "C" { pub fn g_match_info_fetch_all(match_info: *const GMatchInfo) -> *mut *mut gchar; } pub type GScanner = _GScanner; pub type GScannerConfig = _GScannerConfig; pub type GTokenValue = _GTokenValue; pub type GScannerMsgFunc = ::std::option::Option< unsafe extern "C" fn(scanner: *mut GScanner, message: *mut gchar, error: gboolean), >; pub const GErrorType_G_ERR_UNKNOWN: GErrorType = 0; pub const GErrorType_G_ERR_UNEXP_EOF: GErrorType = 1; pub const GErrorType_G_ERR_UNEXP_EOF_IN_STRING: GErrorType = 2; pub const GErrorType_G_ERR_UNEXP_EOF_IN_COMMENT: GErrorType = 3; pub const GErrorType_G_ERR_NON_DIGIT_IN_CONST: GErrorType = 4; pub const GErrorType_G_ERR_DIGIT_RADIX: GErrorType = 5; pub const GErrorType_G_ERR_FLOAT_RADIX: GErrorType = 6; pub const GErrorType_G_ERR_FLOAT_MALFORMED: GErrorType = 7; pub type GErrorType = ::std::os::raw::c_uint; pub const GTokenType_G_TOKEN_EOF: GTokenType = 0; pub const GTokenType_G_TOKEN_LEFT_PAREN: GTokenType = 40; pub const GTokenType_G_TOKEN_RIGHT_PAREN: GTokenType = 41; pub const GTokenType_G_TOKEN_LEFT_CURLY: GTokenType = 123; pub const GTokenType_G_TOKEN_RIGHT_CURLY: GTokenType = 125; pub const GTokenType_G_TOKEN_LEFT_BRACE: GTokenType = 91; pub const GTokenType_G_TOKEN_RIGHT_BRACE: GTokenType = 93; pub const GTokenType_G_TOKEN_EQUAL_SIGN: GTokenType = 61; pub const GTokenType_G_TOKEN_COMMA: GTokenType = 44; pub const GTokenType_G_TOKEN_NONE: GTokenType = 256; pub const GTokenType_G_TOKEN_ERROR: GTokenType = 257; pub const GTokenType_G_TOKEN_CHAR: GTokenType = 258; pub const GTokenType_G_TOKEN_BINARY: GTokenType = 259; pub const GTokenType_G_TOKEN_OCTAL: GTokenType = 260; pub const GTokenType_G_TOKEN_INT: GTokenType = 261; pub const GTokenType_G_TOKEN_HEX: GTokenType = 262; pub const GTokenType_G_TOKEN_FLOAT: GTokenType = 263; pub const GTokenType_G_TOKEN_STRING: GTokenType = 264; pub const GTokenType_G_TOKEN_SYMBOL: GTokenType = 265; pub const GTokenType_G_TOKEN_IDENTIFIER: GTokenType = 266; pub const GTokenType_G_TOKEN_IDENTIFIER_NULL: GTokenType = 267; pub const GTokenType_G_TOKEN_COMMENT_SINGLE: GTokenType = 268; pub const GTokenType_G_TOKEN_COMMENT_MULTI: GTokenType = 269; pub const GTokenType_G_TOKEN_LAST: GTokenType = 270; pub type GTokenType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub union _GTokenValue { pub v_symbol: gpointer, pub v_identifier: *mut gchar, pub v_binary: gulong, pub v_octal: gulong, pub v_int: gulong, pub v_int64: guint64, pub v_float: gdouble, pub v_hex: gulong, pub v_string: *mut gchar, pub v_comment: *mut gchar, pub v_char: guchar, pub v_error: guint, } #[test] fn bindgen_test_layout__GTokenValue() { const UNINIT: ::std::mem::MaybeUninit<_GTokenValue> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GTokenValue>(), 8usize, concat!("Size of: ", stringify!(_GTokenValue)) ); assert_eq!( ::std::mem::align_of::<_GTokenValue>(), 8usize, concat!("Alignment of ", stringify!(_GTokenValue)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_symbol) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_symbol) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_identifier) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_identifier) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_binary) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_binary) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_octal) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_octal) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_int) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_int64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_int64) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_float) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_hex) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_hex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_string) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_string) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_comment) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_comment) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_char) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_char) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).v_error) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTokenValue), "::", stringify!(v_error) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GScannerConfig { pub cset_skip_characters: *mut gchar, pub cset_identifier_first: *mut gchar, pub cset_identifier_nth: *mut gchar, pub cpair_comment_single: *mut gchar, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, pub padding_dummy: guint, } #[test] fn bindgen_test_layout__GScannerConfig() { const UNINIT: ::std::mem::MaybeUninit<_GScannerConfig> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GScannerConfig>(), 40usize, concat!("Size of: ", stringify!(_GScannerConfig)) ); assert_eq!( ::std::mem::align_of::<_GScannerConfig>(), 8usize, concat!("Alignment of ", stringify!(_GScannerConfig)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cset_skip_characters) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(cset_skip_characters) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cset_identifier_first) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(cset_identifier_first) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cset_identifier_nth) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(cset_identifier_nth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cpair_comment_single) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(cpair_comment_single) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).padding_dummy) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(_GScannerConfig), "::", stringify!(padding_dummy) ) ); } impl _GScannerConfig { #[inline] pub fn case_sensitive(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_case_sensitive(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn skip_comment_multi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_skip_comment_multi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn skip_comment_single(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_skip_comment_single(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn scan_comment_multi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } #[inline] pub fn set_scan_comment_multi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 1u8, val as u64) } } #[inline] pub fn scan_identifier(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } #[inline] pub fn set_scan_identifier(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 1u8, val as u64) } } #[inline] pub fn scan_identifier_1char(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } } #[inline] pub fn set_scan_identifier_1char(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(5usize, 1u8, val as u64) } } #[inline] pub fn scan_identifier_NULL(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } } #[inline] pub fn set_scan_identifier_NULL(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(6usize, 1u8, val as u64) } } #[inline] pub fn scan_symbols(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } } #[inline] pub fn set_scan_symbols(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(7usize, 1u8, val as u64) } } #[inline] pub fn scan_binary(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } } #[inline] pub fn set_scan_binary(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(8usize, 1u8, val as u64) } } #[inline] pub fn scan_octal(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } } #[inline] pub fn set_scan_octal(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(9usize, 1u8, val as u64) } } #[inline] pub fn scan_float(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } } #[inline] pub fn set_scan_float(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(10usize, 1u8, val as u64) } } #[inline] pub fn scan_hex(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } } #[inline] pub fn set_scan_hex(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(11usize, 1u8, val as u64) } } #[inline] pub fn scan_hex_dollar(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } } #[inline] pub fn set_scan_hex_dollar(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(12usize, 1u8, val as u64) } } #[inline] pub fn scan_string_sq(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) } } #[inline] pub fn set_scan_string_sq(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(13usize, 1u8, val as u64) } } #[inline] pub fn scan_string_dq(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) } } #[inline] pub fn set_scan_string_dq(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(14usize, 1u8, val as u64) } } #[inline] pub fn numbers_2_int(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } } #[inline] pub fn set_numbers_2_int(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(15usize, 1u8, val as u64) } } #[inline] pub fn int_2_float(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) } } #[inline] pub fn set_int_2_float(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(16usize, 1u8, val as u64) } } #[inline] pub fn identifier_2_string(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) } } #[inline] pub fn set_identifier_2_string(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(17usize, 1u8, val as u64) } } #[inline] pub fn char_2_token(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) } } #[inline] pub fn set_char_2_token(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(18usize, 1u8, val as u64) } } #[inline] pub fn symbol_2_token(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) } } #[inline] pub fn set_symbol_2_token(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(19usize, 1u8, val as u64) } } #[inline] pub fn scope_0_fallback(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } } #[inline] pub fn set_scope_0_fallback(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(20usize, 1u8, val as u64) } } #[inline] pub fn store_int64(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } } #[inline] pub fn set_store_int64(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(21usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( case_sensitive: guint, skip_comment_multi: guint, skip_comment_single: guint, scan_comment_multi: guint, scan_identifier: guint, scan_identifier_1char: guint, scan_identifier_NULL: guint, scan_symbols: guint, scan_binary: guint, scan_octal: guint, scan_float: guint, scan_hex: guint, scan_hex_dollar: guint, scan_string_sq: guint, scan_string_dq: guint, numbers_2_int: guint, int_2_float: guint, identifier_2_string: guint, char_2_token: guint, symbol_2_token: guint, scope_0_fallback: guint, store_int64: guint, ) -> __BindgenBitfieldUnit<[u8; 3usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let case_sensitive: u32 = unsafe { ::std::mem::transmute(case_sensitive) }; case_sensitive as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let skip_comment_multi: u32 = unsafe { ::std::mem::transmute(skip_comment_multi) }; skip_comment_multi as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let skip_comment_single: u32 = unsafe { ::std::mem::transmute(skip_comment_single) }; skip_comment_single as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let scan_comment_multi: u32 = unsafe { ::std::mem::transmute(scan_comment_multi) }; scan_comment_multi as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let scan_identifier: u32 = unsafe { ::std::mem::transmute(scan_identifier) }; scan_identifier as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let scan_identifier_1char: u32 = unsafe { ::std::mem::transmute(scan_identifier_1char) }; scan_identifier_1char as u64 }); __bindgen_bitfield_unit.set(6usize, 1u8, { let scan_identifier_NULL: u32 = unsafe { ::std::mem::transmute(scan_identifier_NULL) }; scan_identifier_NULL as u64 }); __bindgen_bitfield_unit.set(7usize, 1u8, { let scan_symbols: u32 = unsafe { ::std::mem::transmute(scan_symbols) }; scan_symbols as u64 }); __bindgen_bitfield_unit.set(8usize, 1u8, { let scan_binary: u32 = unsafe { ::std::mem::transmute(scan_binary) }; scan_binary as u64 }); __bindgen_bitfield_unit.set(9usize, 1u8, { let scan_octal: u32 = unsafe { ::std::mem::transmute(scan_octal) }; scan_octal as u64 }); __bindgen_bitfield_unit.set(10usize, 1u8, { let scan_float: u32 = unsafe { ::std::mem::transmute(scan_float) }; scan_float as u64 }); __bindgen_bitfield_unit.set(11usize, 1u8, { let scan_hex: u32 = unsafe { ::std::mem::transmute(scan_hex) }; scan_hex as u64 }); __bindgen_bitfield_unit.set(12usize, 1u8, { let scan_hex_dollar: u32 = unsafe { ::std::mem::transmute(scan_hex_dollar) }; scan_hex_dollar as u64 }); __bindgen_bitfield_unit.set(13usize, 1u8, { let scan_string_sq: u32 = unsafe { ::std::mem::transmute(scan_string_sq) }; scan_string_sq as u64 }); __bindgen_bitfield_unit.set(14usize, 1u8, { let scan_string_dq: u32 = unsafe { ::std::mem::transmute(scan_string_dq) }; scan_string_dq as u64 }); __bindgen_bitfield_unit.set(15usize, 1u8, { let numbers_2_int: u32 = unsafe { ::std::mem::transmute(numbers_2_int) }; numbers_2_int as u64 }); __bindgen_bitfield_unit.set(16usize, 1u8, { let int_2_float: u32 = unsafe { ::std::mem::transmute(int_2_float) }; int_2_float as u64 }); __bindgen_bitfield_unit.set(17usize, 1u8, { let identifier_2_string: u32 = unsafe { ::std::mem::transmute(identifier_2_string) }; identifier_2_string as u64 }); __bindgen_bitfield_unit.set(18usize, 1u8, { let char_2_token: u32 = unsafe { ::std::mem::transmute(char_2_token) }; char_2_token as u64 }); __bindgen_bitfield_unit.set(19usize, 1u8, { let symbol_2_token: u32 = unsafe { ::std::mem::transmute(symbol_2_token) }; symbol_2_token as u64 }); __bindgen_bitfield_unit.set(20usize, 1u8, { let scope_0_fallback: u32 = unsafe { ::std::mem::transmute(scope_0_fallback) }; scope_0_fallback as u64 }); __bindgen_bitfield_unit.set(21usize, 1u8, { let store_int64: u32 = unsafe { ::std::mem::transmute(store_int64) }; store_int64 as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Copy, Clone)] pub struct _GScanner { pub user_data: gpointer, pub max_parse_errors: guint, pub parse_errors: guint, pub input_name: *const gchar, pub qdata: *mut GData, pub config: *mut GScannerConfig, pub token: GTokenType, pub value: GTokenValue, pub line: guint, pub position: guint, pub next_token: GTokenType, pub next_value: GTokenValue, pub next_line: guint, pub next_position: guint, pub symbol_table: *mut GHashTable, pub input_fd: gint, pub text: *const gchar, pub text_end: *const gchar, pub buffer: *mut gchar, pub scope_id: guint, pub msg_handler: GScannerMsgFunc, } #[test] fn bindgen_test_layout__GScanner() { const UNINIT: ::std::mem::MaybeUninit<_GScanner> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GScanner>(), 144usize, concat!("Size of: ", stringify!(_GScanner)) ); assert_eq!( ::std::mem::align_of::<_GScanner>(), 8usize, concat!("Alignment of ", stringify!(_GScanner)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).user_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(user_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).max_parse_errors) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(max_parse_errors) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).parse_errors) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(parse_errors) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input_name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(input_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).qdata) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(qdata) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).config) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(config) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).token) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(token) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(line) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).position) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(position) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next_token) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(next_token) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next_value) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(next_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next_line) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(next_line) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next_position) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(next_position) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).symbol_table) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(symbol_table) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input_fd) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(input_fd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).text) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(text) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).text_end) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(text_end) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).buffer) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(buffer) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).scope_id) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(scope_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).msg_handler) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(_GScanner), "::", stringify!(msg_handler) ) ); } extern "C" { pub fn g_scanner_new(config_templ: *const GScannerConfig) -> *mut GScanner; } extern "C" { pub fn g_scanner_destroy(scanner: *mut GScanner); } extern "C" { pub fn g_scanner_input_file(scanner: *mut GScanner, input_fd: gint); } extern "C" { pub fn g_scanner_sync_file_offset(scanner: *mut GScanner); } extern "C" { pub fn g_scanner_input_text(scanner: *mut GScanner, text: *const gchar, text_len: guint); } extern "C" { pub fn g_scanner_get_next_token(scanner: *mut GScanner) -> GTokenType; } extern "C" { pub fn g_scanner_peek_next_token(scanner: *mut GScanner) -> GTokenType; } extern "C" { pub fn g_scanner_cur_token(scanner: *mut GScanner) -> GTokenType; } extern "C" { pub fn g_scanner_cur_value(scanner: *mut GScanner) -> GTokenValue; } extern "C" { pub fn g_scanner_cur_line(scanner: *mut GScanner) -> guint; } extern "C" { pub fn g_scanner_cur_position(scanner: *mut GScanner) -> guint; } extern "C" { pub fn g_scanner_eof(scanner: *mut GScanner) -> gboolean; } extern "C" { pub fn g_scanner_set_scope(scanner: *mut GScanner, scope_id: guint) -> guint; } extern "C" { pub fn g_scanner_scope_add_symbol( scanner: *mut GScanner, scope_id: guint, symbol: *const gchar, value: gpointer, ); } extern "C" { pub fn g_scanner_scope_remove_symbol( scanner: *mut GScanner, scope_id: guint, symbol: *const gchar, ); } extern "C" { pub fn g_scanner_scope_lookup_symbol( scanner: *mut GScanner, scope_id: guint, symbol: *const gchar, ) -> gpointer; } extern "C" { pub fn g_scanner_scope_foreach_symbol( scanner: *mut GScanner, scope_id: guint, func: GHFunc, user_data: gpointer, ); } extern "C" { pub fn g_scanner_lookup_symbol(scanner: *mut GScanner, symbol: *const gchar) -> gpointer; } extern "C" { pub fn g_scanner_unexp_token( scanner: *mut GScanner, expected_token: GTokenType, identifier_spec: *const gchar, symbol_spec: *const gchar, symbol_name: *const gchar, message: *const gchar, is_error: gint, ); } extern "C" { pub fn g_scanner_error(scanner: *mut GScanner, format: *const gchar, ...); } extern "C" { pub fn g_scanner_warn(scanner: *mut GScanner, format: *const gchar, ...); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSequence { _unused: [u8; 0], } pub type GSequence = _GSequence; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GSequenceNode { _unused: [u8; 0], } pub type GSequenceIter = _GSequenceNode; pub type GSequenceIterCompareFunc = ::std::option::Option< unsafe extern "C" fn(a: *mut GSequenceIter, b: *mut GSequenceIter, data: gpointer) -> gint, >; extern "C" { pub fn g_sequence_new(data_destroy: GDestroyNotify) -> *mut GSequence; } extern "C" { pub fn g_sequence_free(seq: *mut GSequence); } extern "C" { pub fn g_sequence_get_length(seq: *mut GSequence) -> gint; } extern "C" { pub fn g_sequence_foreach(seq: *mut GSequence, func: GFunc, user_data: gpointer); } extern "C" { pub fn g_sequence_foreach_range( begin: *mut GSequenceIter, end: *mut GSequenceIter, func: GFunc, user_data: gpointer, ); } extern "C" { pub fn g_sequence_sort(seq: *mut GSequence, cmp_func: GCompareDataFunc, cmp_data: gpointer); } extern "C" { pub fn g_sequence_sort_iter( seq: *mut GSequence, cmp_func: GSequenceIterCompareFunc, cmp_data: gpointer, ); } extern "C" { pub fn g_sequence_is_empty(seq: *mut GSequence) -> gboolean; } extern "C" { pub fn g_sequence_get_begin_iter(seq: *mut GSequence) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_get_end_iter(seq: *mut GSequence) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_get_iter_at_pos(seq: *mut GSequence, pos: gint) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_append(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_prepend(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_move(src: *mut GSequenceIter, dest: *mut GSequenceIter); } extern "C" { pub fn g_sequence_swap(a: *mut GSequenceIter, b: *mut GSequenceIter); } extern "C" { pub fn g_sequence_insert_sorted( seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_insert_sorted_iter( seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_sort_changed( iter: *mut GSequenceIter, cmp_func: GCompareDataFunc, cmp_data: gpointer, ); } extern "C" { pub fn g_sequence_sort_changed_iter( iter: *mut GSequenceIter, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer, ); } extern "C" { pub fn g_sequence_remove(iter: *mut GSequenceIter); } extern "C" { pub fn g_sequence_remove_range(begin: *mut GSequenceIter, end: *mut GSequenceIter); } extern "C" { pub fn g_sequence_move_range( dest: *mut GSequenceIter, begin: *mut GSequenceIter, end: *mut GSequenceIter, ); } extern "C" { pub fn g_sequence_search( seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_search_iter( seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_lookup( seq: *mut GSequence, data: gpointer, cmp_func: GCompareDataFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_lookup_iter( seq: *mut GSequence, data: gpointer, iter_cmp: GSequenceIterCompareFunc, cmp_data: gpointer, ) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_get(iter: *mut GSequenceIter) -> gpointer; } extern "C" { pub fn g_sequence_set(iter: *mut GSequenceIter, data: gpointer); } extern "C" { pub fn g_sequence_iter_is_begin(iter: *mut GSequenceIter) -> gboolean; } extern "C" { pub fn g_sequence_iter_is_end(iter: *mut GSequenceIter) -> gboolean; } extern "C" { pub fn g_sequence_iter_next(iter: *mut GSequenceIter) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_iter_prev(iter: *mut GSequenceIter) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_iter_get_position(iter: *mut GSequenceIter) -> gint; } extern "C" { pub fn g_sequence_iter_move(iter: *mut GSequenceIter, delta: gint) -> *mut GSequenceIter; } extern "C" { pub fn g_sequence_iter_get_sequence(iter: *mut GSequenceIter) -> *mut GSequence; } extern "C" { pub fn g_sequence_iter_compare(a: *mut GSequenceIter, b: *mut GSequenceIter) -> gint; } extern "C" { pub fn g_sequence_range_get_midpoint( begin: *mut GSequenceIter, end: *mut GSequenceIter, ) -> *mut GSequenceIter; } pub const GShellError_G_SHELL_ERROR_BAD_QUOTING: GShellError = 0; pub const GShellError_G_SHELL_ERROR_EMPTY_STRING: GShellError = 1; pub const GShellError_G_SHELL_ERROR_FAILED: GShellError = 2; pub type GShellError = ::std::os::raw::c_uint; extern "C" { pub fn g_shell_error_quark() -> GQuark; } extern "C" { pub fn g_shell_quote(unquoted_string: *const gchar) -> *mut gchar; } extern "C" { pub fn g_shell_unquote(quoted_string: *const gchar, error: *mut *mut GError) -> *mut gchar; } extern "C" { pub fn g_shell_parse_argv( command_line: *const gchar, argcp: *mut gint, argvp: *mut *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_slice_alloc(block_size: gsize) -> gpointer; } extern "C" { pub fn g_slice_alloc0(block_size: gsize) -> gpointer; } extern "C" { pub fn g_slice_copy(block_size: gsize, mem_block: gconstpointer) -> gpointer; } extern "C" { pub fn g_slice_free1(block_size: gsize, mem_block: gpointer); } extern "C" { pub fn g_slice_free_chain_with_offset( block_size: gsize, mem_chain: gpointer, next_offset: gsize, ); } pub const GSliceConfig_G_SLICE_CONFIG_ALWAYS_MALLOC: GSliceConfig = 1; pub const GSliceConfig_G_SLICE_CONFIG_BYPASS_MAGAZINES: GSliceConfig = 2; pub const GSliceConfig_G_SLICE_CONFIG_WORKING_SET_MSECS: GSliceConfig = 3; pub const GSliceConfig_G_SLICE_CONFIG_COLOR_INCREMENT: GSliceConfig = 4; pub const GSliceConfig_G_SLICE_CONFIG_CHUNK_SIZES: GSliceConfig = 5; pub const GSliceConfig_G_SLICE_CONFIG_CONTENTION_COUNTER: GSliceConfig = 6; pub type GSliceConfig = ::std::os::raw::c_uint; extern "C" { pub fn g_slice_set_config(ckey: GSliceConfig, value: gint64); } extern "C" { pub fn g_slice_get_config(ckey: GSliceConfig) -> gint64; } extern "C" { pub fn g_slice_get_config_state( ckey: GSliceConfig, address: gint64, n_values: *mut guint, ) -> *mut gint64; } pub const GSpawnError_G_SPAWN_ERROR_FORK: GSpawnError = 0; pub const GSpawnError_G_SPAWN_ERROR_READ: GSpawnError = 1; pub const GSpawnError_G_SPAWN_ERROR_CHDIR: GSpawnError = 2; pub const GSpawnError_G_SPAWN_ERROR_ACCES: GSpawnError = 3; pub const GSpawnError_G_SPAWN_ERROR_PERM: GSpawnError = 4; pub const GSpawnError_G_SPAWN_ERROR_TOO_BIG: GSpawnError = 5; pub const GSpawnError_G_SPAWN_ERROR_2BIG: GSpawnError = 5; pub const GSpawnError_G_SPAWN_ERROR_NOEXEC: GSpawnError = 6; pub const GSpawnError_G_SPAWN_ERROR_NAMETOOLONG: GSpawnError = 7; pub const GSpawnError_G_SPAWN_ERROR_NOENT: GSpawnError = 8; pub const GSpawnError_G_SPAWN_ERROR_NOMEM: GSpawnError = 9; pub const GSpawnError_G_SPAWN_ERROR_NOTDIR: GSpawnError = 10; pub const GSpawnError_G_SPAWN_ERROR_LOOP: GSpawnError = 11; pub const GSpawnError_G_SPAWN_ERROR_TXTBUSY: GSpawnError = 12; pub const GSpawnError_G_SPAWN_ERROR_IO: GSpawnError = 13; pub const GSpawnError_G_SPAWN_ERROR_NFILE: GSpawnError = 14; pub const GSpawnError_G_SPAWN_ERROR_MFILE: GSpawnError = 15; pub const GSpawnError_G_SPAWN_ERROR_INVAL: GSpawnError = 16; pub const GSpawnError_G_SPAWN_ERROR_ISDIR: GSpawnError = 17; pub const GSpawnError_G_SPAWN_ERROR_LIBBAD: GSpawnError = 18; pub const GSpawnError_G_SPAWN_ERROR_FAILED: GSpawnError = 19; pub type GSpawnError = ::std::os::raw::c_uint; pub type GSpawnChildSetupFunc = ::std::option::Option; pub const GSpawnFlags_G_SPAWN_DEFAULT: GSpawnFlags = 0; pub const GSpawnFlags_G_SPAWN_LEAVE_DESCRIPTORS_OPEN: GSpawnFlags = 1; pub const GSpawnFlags_G_SPAWN_DO_NOT_REAP_CHILD: GSpawnFlags = 2; pub const GSpawnFlags_G_SPAWN_SEARCH_PATH: GSpawnFlags = 4; pub const GSpawnFlags_G_SPAWN_STDOUT_TO_DEV_NULL: GSpawnFlags = 8; pub const GSpawnFlags_G_SPAWN_STDERR_TO_DEV_NULL: GSpawnFlags = 16; pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDIN: GSpawnFlags = 32; pub const GSpawnFlags_G_SPAWN_FILE_AND_ARGV_ZERO: GSpawnFlags = 64; pub const GSpawnFlags_G_SPAWN_SEARCH_PATH_FROM_ENVP: GSpawnFlags = 128; pub const GSpawnFlags_G_SPAWN_CLOEXEC_PIPES: GSpawnFlags = 256; pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDOUT: GSpawnFlags = 512; pub const GSpawnFlags_G_SPAWN_CHILD_INHERITS_STDERR: GSpawnFlags = 1024; pub const GSpawnFlags_G_SPAWN_STDIN_FROM_DEV_NULL: GSpawnFlags = 2048; pub type GSpawnFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_spawn_error_quark() -> GQuark; } extern "C" { pub fn g_spawn_exit_error_quark() -> GQuark; } extern "C" { pub fn g_spawn_async( working_directory: *const gchar, argv: *mut *mut gchar, envp: *mut *mut gchar, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_async_with_pipes( working_directory: *const gchar, argv: *mut *mut gchar, envp: *mut *mut gchar, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, standard_input: *mut gint, standard_output: *mut gint, standard_error: *mut gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_async_with_pipes_and_fds( working_directory: *const gchar, argv: *const *const gchar, envp: *const *const gchar, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, stdin_fd: gint, stdout_fd: gint, stderr_fd: gint, source_fds: *const gint, target_fds: *const gint, n_fds: gsize, child_pid_out: *mut GPid, stdin_pipe_out: *mut gint, stdout_pipe_out: *mut gint, stderr_pipe_out: *mut gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_async_with_fds( working_directory: *const gchar, argv: *mut *mut gchar, envp: *mut *mut gchar, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, child_pid: *mut GPid, stdin_fd: gint, stdout_fd: gint, stderr_fd: gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_sync( working_directory: *const gchar, argv: *mut *mut gchar, envp: *mut *mut gchar, flags: GSpawnFlags, child_setup: GSpawnChildSetupFunc, user_data: gpointer, standard_output: *mut *mut gchar, standard_error: *mut *mut gchar, wait_status: *mut gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_command_line_sync( command_line: *const gchar, standard_output: *mut *mut gchar, standard_error: *mut *mut gchar, wait_status: *mut gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_command_line_async( command_line: *const gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_spawn_check_wait_status(wait_status: gint, error: *mut *mut GError) -> gboolean; } extern "C" { pub fn g_spawn_check_exit_status(wait_status: gint, error: *mut *mut GError) -> gboolean; } extern "C" { pub fn g_spawn_close_pid(pid: GPid); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GStringChunk { _unused: [u8; 0], } pub type GStringChunk = _GStringChunk; extern "C" { pub fn g_string_chunk_new(size: gsize) -> *mut GStringChunk; } extern "C" { pub fn g_string_chunk_free(chunk: *mut GStringChunk); } extern "C" { pub fn g_string_chunk_clear(chunk: *mut GStringChunk); } extern "C" { pub fn g_string_chunk_insert(chunk: *mut GStringChunk, string: *const gchar) -> *mut gchar; } extern "C" { pub fn g_string_chunk_insert_len( chunk: *mut GStringChunk, string: *const gchar, len: gssize, ) -> *mut gchar; } extern "C" { pub fn g_string_chunk_insert_const( chunk: *mut GStringChunk, string: *const gchar, ) -> *mut gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GStrvBuilder { _unused: [u8; 0], } pub type GStrvBuilder = _GStrvBuilder; extern "C" { pub fn g_strv_builder_new() -> *mut GStrvBuilder; } extern "C" { pub fn g_strv_builder_unref(builder: *mut GStrvBuilder); } extern "C" { pub fn g_strv_builder_ref(builder: *mut GStrvBuilder) -> *mut GStrvBuilder; } extern "C" { pub fn g_strv_builder_add(builder: *mut GStrvBuilder, value: *const ::std::os::raw::c_char); } extern "C" { pub fn g_strv_builder_addv( builder: *mut GStrvBuilder, value: *mut *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_strv_builder_add_many(builder: *mut GStrvBuilder, ...); } extern "C" { pub fn g_strv_builder_end(builder: *mut GStrvBuilder) -> GStrv; } extern "C" { pub fn __errno_location() -> *mut ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct GTestCase { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct GTestSuite { _unused: [u8; 0], } pub type GTestFunc = ::std::option::Option; pub type GTestDataFunc = ::std::option::Option; pub type GTestFixtureFunc = ::std::option::Option; extern "C" { pub fn g_strcmp0( str1: *const ::std::os::raw::c_char, str2: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn g_test_minimized_result( minimized_quantity: f64, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn g_test_maximized_result( maximized_quantity: f64, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn g_test_init( argc: *mut ::std::os::raw::c_int, argv: *mut *mut *mut ::std::os::raw::c_char, ... ); } extern "C" { pub fn g_test_subprocess() -> gboolean; } extern "C" { pub fn g_test_run() -> ::std::os::raw::c_int; } extern "C" { pub fn g_test_add_func(testpath: *const ::std::os::raw::c_char, test_func: GTestFunc); } extern "C" { pub fn g_test_add_data_func( testpath: *const ::std::os::raw::c_char, test_data: gconstpointer, test_func: GTestDataFunc, ); } extern "C" { pub fn g_test_add_data_func_full( testpath: *const ::std::os::raw::c_char, test_data: gpointer, test_func: GTestDataFunc, data_free_func: GDestroyNotify, ); } extern "C" { pub fn g_test_get_path() -> *const ::std::os::raw::c_char; } extern "C" { pub fn g_test_fail(); } extern "C" { pub fn g_test_fail_printf(format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn g_test_incomplete(msg: *const gchar); } extern "C" { pub fn g_test_incomplete_printf(format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn g_test_skip(msg: *const gchar); } extern "C" { pub fn g_test_skip_printf(format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn g_test_failed() -> gboolean; } extern "C" { pub fn g_test_set_nonfatal_assertions(); } extern "C" { pub fn g_test_message(format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn g_test_bug_base(uri_pattern: *const ::std::os::raw::c_char); } extern "C" { pub fn g_test_bug(bug_uri_snippet: *const ::std::os::raw::c_char); } extern "C" { pub fn g_test_summary(summary: *const ::std::os::raw::c_char); } extern "C" { pub fn g_test_timer_start(); } extern "C" { pub fn g_test_timer_elapsed() -> f64; } extern "C" { pub fn g_test_timer_last() -> f64; } extern "C" { pub fn g_test_queue_free(gfree_pointer: gpointer); } extern "C" { pub fn g_test_queue_destroy(destroy_func: GDestroyNotify, destroy_data: gpointer); } pub const GTestTrapFlags_G_TEST_TRAP_DEFAULT: GTestTrapFlags = 0; pub const GTestTrapFlags_G_TEST_TRAP_SILENCE_STDOUT: GTestTrapFlags = 128; pub const GTestTrapFlags_G_TEST_TRAP_SILENCE_STDERR: GTestTrapFlags = 256; pub const GTestTrapFlags_G_TEST_TRAP_INHERIT_STDIN: GTestTrapFlags = 512; pub type GTestTrapFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_test_trap_fork(usec_timeout: guint64, test_trap_flags: GTestTrapFlags) -> gboolean; } pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_DEFAULT: GTestSubprocessFlags = 0; pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDIN: GTestSubprocessFlags = 1; pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDOUT: GTestSubprocessFlags = 2; pub const GTestSubprocessFlags_G_TEST_SUBPROCESS_INHERIT_STDERR: GTestSubprocessFlags = 4; pub type GTestSubprocessFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_test_trap_subprocess( test_path: *const ::std::os::raw::c_char, usec_timeout: guint64, test_flags: GTestSubprocessFlags, ); } extern "C" { pub fn g_test_trap_has_passed() -> gboolean; } extern "C" { pub fn g_test_trap_reached_timeout() -> gboolean; } extern "C" { pub fn g_test_rand_int() -> gint32; } extern "C" { pub fn g_test_rand_int_range(begin: gint32, end: gint32) -> gint32; } extern "C" { pub fn g_test_rand_double() -> f64; } extern "C" { pub fn g_test_rand_double_range(range_start: f64, range_end: f64) -> f64; } extern "C" { pub fn g_test_create_case( test_name: *const ::std::os::raw::c_char, data_size: gsize, test_data: gconstpointer, data_setup: GTestFixtureFunc, data_test: GTestFixtureFunc, data_teardown: GTestFixtureFunc, ) -> *mut GTestCase; } extern "C" { pub fn g_test_create_suite(suite_name: *const ::std::os::raw::c_char) -> *mut GTestSuite; } extern "C" { pub fn g_test_get_root() -> *mut GTestSuite; } extern "C" { pub fn g_test_suite_add(suite: *mut GTestSuite, test_case: *mut GTestCase); } extern "C" { pub fn g_test_suite_add_suite(suite: *mut GTestSuite, nestedsuite: *mut GTestSuite); } extern "C" { pub fn g_test_run_suite(suite: *mut GTestSuite) -> ::std::os::raw::c_int; } extern "C" { pub fn g_test_case_free(test_case: *mut GTestCase); } extern "C" { pub fn g_test_suite_free(suite: *mut GTestSuite); } extern "C" { pub fn g_test_trap_assertions( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, assertion_flags: guint64, pattern: *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_assertion_message( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, message: *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_assertion_message_expr( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, expr: *const ::std::os::raw::c_char, ) -> !; } extern "C" { pub fn g_assertion_message_cmpstr( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, expr: *const ::std::os::raw::c_char, arg1: *const ::std::os::raw::c_char, cmp: *const ::std::os::raw::c_char, arg2: *const ::std::os::raw::c_char, ); } extern "C" { pub fn g_assertion_message_cmpstrv( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, expr: *const ::std::os::raw::c_char, arg1: *const *const ::std::os::raw::c_char, arg2: *const *const ::std::os::raw::c_char, first_wrong_idx: gsize, ); } extern "C" { pub fn g_assertion_message_cmpnum( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, expr: *const ::std::os::raw::c_char, arg1: u128, cmp: *const ::std::os::raw::c_char, arg2: u128, numtype: ::std::os::raw::c_char, ); } extern "C" { pub fn g_assertion_message_error( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, expr: *const ::std::os::raw::c_char, error: *const GError, error_domain: GQuark, error_code: ::std::os::raw::c_int, ); } extern "C" { pub fn g_test_add_vtable( testpath: *const ::std::os::raw::c_char, data_size: gsize, test_data: gconstpointer, data_setup: GTestFixtureFunc, data_test: GTestFixtureFunc, data_teardown: GTestFixtureFunc, ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct GTestConfig { pub test_initialized: gboolean, pub test_quick: gboolean, pub test_perf: gboolean, pub test_verbose: gboolean, pub test_quiet: gboolean, pub test_undefined: gboolean, } #[test] fn bindgen_test_layout_GTestConfig() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(GTestConfig)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(GTestConfig)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_initialized) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_initialized) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_quick) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_quick) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_perf) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_perf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_verbose) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_verbose) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_quiet) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_quiet) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).test_undefined) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(GTestConfig), "::", stringify!(test_undefined) ) ); } extern "C" { pub static g_test_config_vars: *const GTestConfig; } pub const GTestResult_G_TEST_RUN_SUCCESS: GTestResult = 0; pub const GTestResult_G_TEST_RUN_SKIPPED: GTestResult = 1; pub const GTestResult_G_TEST_RUN_FAILURE: GTestResult = 2; pub const GTestResult_G_TEST_RUN_INCOMPLETE: GTestResult = 3; pub type GTestResult = ::std::os::raw::c_uint; pub const GTestLogType_G_TEST_LOG_NONE: GTestLogType = 0; pub const GTestLogType_G_TEST_LOG_ERROR: GTestLogType = 1; pub const GTestLogType_G_TEST_LOG_START_BINARY: GTestLogType = 2; pub const GTestLogType_G_TEST_LOG_LIST_CASE: GTestLogType = 3; pub const GTestLogType_G_TEST_LOG_SKIP_CASE: GTestLogType = 4; pub const GTestLogType_G_TEST_LOG_START_CASE: GTestLogType = 5; pub const GTestLogType_G_TEST_LOG_STOP_CASE: GTestLogType = 6; pub const GTestLogType_G_TEST_LOG_MIN_RESULT: GTestLogType = 7; pub const GTestLogType_G_TEST_LOG_MAX_RESULT: GTestLogType = 8; pub const GTestLogType_G_TEST_LOG_MESSAGE: GTestLogType = 9; pub const GTestLogType_G_TEST_LOG_START_SUITE: GTestLogType = 10; pub const GTestLogType_G_TEST_LOG_STOP_SUITE: GTestLogType = 11; pub type GTestLogType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct GTestLogMsg { pub log_type: GTestLogType, pub n_strings: guint, pub strings: *mut *mut gchar, pub n_nums: guint, pub nums: *mut u128, } #[test] fn bindgen_test_layout_GTestLogMsg() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(GTestLogMsg)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(GTestLogMsg)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).log_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(log_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).n_strings) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(n_strings) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strings) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(strings) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).n_nums) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(n_nums) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nums) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(GTestLogMsg), "::", stringify!(nums) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct GTestLogBuffer { pub data: *mut GString, pub msgs: *mut GSList, } #[test] fn bindgen_test_layout_GTestLogBuffer() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(GTestLogBuffer)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(GTestLogBuffer)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(GTestLogBuffer), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).msgs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(GTestLogBuffer), "::", stringify!(msgs) ) ); } extern "C" { pub fn g_test_log_type_name(log_type: GTestLogType) -> *const ::std::os::raw::c_char; } extern "C" { pub fn g_test_log_buffer_new() -> *mut GTestLogBuffer; } extern "C" { pub fn g_test_log_buffer_free(tbuffer: *mut GTestLogBuffer); } extern "C" { pub fn g_test_log_buffer_push( tbuffer: *mut GTestLogBuffer, n_bytes: guint, bytes: *const guint8, ); } extern "C" { pub fn g_test_log_buffer_pop(tbuffer: *mut GTestLogBuffer) -> *mut GTestLogMsg; } extern "C" { pub fn g_test_log_msg_free(tmsg: *mut GTestLogMsg); } pub type GTestLogFatalFunc = ::std::option::Option< unsafe extern "C" fn( log_domain: *const gchar, log_level: GLogLevelFlags, message: *const gchar, user_data: gpointer, ) -> gboolean, >; extern "C" { pub fn g_test_log_set_fatal_handler(log_func: GTestLogFatalFunc, user_data: gpointer); } extern "C" { pub fn g_test_expect_message( log_domain: *const gchar, log_level: GLogLevelFlags, pattern: *const gchar, ); } extern "C" { pub fn g_test_assert_expected_messages_internal( domain: *const ::std::os::raw::c_char, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_int, func: *const ::std::os::raw::c_char, ); } pub const GTestFileType_G_TEST_DIST: GTestFileType = 0; pub const GTestFileType_G_TEST_BUILT: GTestFileType = 1; pub type GTestFileType = ::std::os::raw::c_uint; extern "C" { pub fn g_test_build_filename( file_type: GTestFileType, first_path: *const gchar, ... ) -> *mut gchar; } extern "C" { pub fn g_test_get_dir(file_type: GTestFileType) -> *const gchar; } extern "C" { pub fn g_test_get_filename( file_type: GTestFileType, first_path: *const gchar, ... ) -> *const gchar; } pub type GThreadPool = _GThreadPool; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GThreadPool { pub func: GFunc, pub user_data: gpointer, pub exclusive: gboolean, } #[test] fn bindgen_test_layout__GThreadPool() { const UNINIT: ::std::mem::MaybeUninit<_GThreadPool> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GThreadPool>(), 24usize, concat!("Size of: ", stringify!(_GThreadPool)) ); assert_eq!( ::std::mem::align_of::<_GThreadPool>(), 8usize, concat!("Alignment of ", stringify!(_GThreadPool)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GThreadPool), "::", stringify!(func) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).user_data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GThreadPool), "::", stringify!(user_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exclusive) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GThreadPool), "::", stringify!(exclusive) ) ); } extern "C" { pub fn g_thread_pool_new( func: GFunc, user_data: gpointer, max_threads: gint, exclusive: gboolean, error: *mut *mut GError, ) -> *mut GThreadPool; } extern "C" { pub fn g_thread_pool_new_full( func: GFunc, user_data: gpointer, item_free_func: GDestroyNotify, max_threads: gint, exclusive: gboolean, error: *mut *mut GError, ) -> *mut GThreadPool; } extern "C" { pub fn g_thread_pool_free(pool: *mut GThreadPool, immediate: gboolean, wait_: gboolean); } extern "C" { pub fn g_thread_pool_push( pool: *mut GThreadPool, data: gpointer, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_thread_pool_unprocessed(pool: *mut GThreadPool) -> guint; } extern "C" { pub fn g_thread_pool_set_sort_function( pool: *mut GThreadPool, func: GCompareDataFunc, user_data: gpointer, ); } extern "C" { pub fn g_thread_pool_move_to_front(pool: *mut GThreadPool, data: gpointer) -> gboolean; } extern "C" { pub fn g_thread_pool_set_max_threads( pool: *mut GThreadPool, max_threads: gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_thread_pool_get_max_threads(pool: *mut GThreadPool) -> gint; } extern "C" { pub fn g_thread_pool_get_num_threads(pool: *mut GThreadPool) -> guint; } extern "C" { pub fn g_thread_pool_set_max_unused_threads(max_threads: gint); } extern "C" { pub fn g_thread_pool_get_max_unused_threads() -> gint; } extern "C" { pub fn g_thread_pool_get_num_unused_threads() -> guint; } extern "C" { pub fn g_thread_pool_stop_unused_threads(); } extern "C" { pub fn g_thread_pool_set_max_idle_time(interval: guint); } extern "C" { pub fn g_thread_pool_get_max_idle_time() -> guint; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTimer { _unused: [u8; 0], } pub type GTimer = _GTimer; extern "C" { pub fn g_timer_new() -> *mut GTimer; } extern "C" { pub fn g_timer_destroy(timer: *mut GTimer); } extern "C" { pub fn g_timer_start(timer: *mut GTimer); } extern "C" { pub fn g_timer_stop(timer: *mut GTimer); } extern "C" { pub fn g_timer_reset(timer: *mut GTimer); } extern "C" { pub fn g_timer_continue(timer: *mut GTimer); } extern "C" { pub fn g_timer_elapsed(timer: *mut GTimer, microseconds: *mut gulong) -> gdouble; } extern "C" { pub fn g_timer_is_active(timer: *mut GTimer) -> gboolean; } extern "C" { pub fn g_usleep(microseconds: gulong); } extern "C" { pub fn g_time_val_add(time_: *mut GTimeVal, microseconds: glong); } extern "C" { pub fn g_time_val_from_iso8601(iso_date: *const gchar, time_: *mut GTimeVal) -> gboolean; } extern "C" { pub fn g_time_val_to_iso8601(time_: *mut GTimeVal) -> *mut gchar; } pub type GTrashStack = _GTrashStack; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTrashStack { pub next: *mut GTrashStack, } #[test] fn bindgen_test_layout__GTrashStack() { const UNINIT: ::std::mem::MaybeUninit<_GTrashStack> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GTrashStack>(), 8usize, concat!("Size of: ", stringify!(_GTrashStack)) ); assert_eq!( ::std::mem::align_of::<_GTrashStack>(), 8usize, concat!("Alignment of ", stringify!(_GTrashStack)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTrashStack), "::", stringify!(next) ) ); } extern "C" { pub fn g_trash_stack_push(stack_p: *mut *mut GTrashStack, data_p: gpointer); } extern "C" { pub fn g_trash_stack_pop(stack_p: *mut *mut GTrashStack) -> gpointer; } extern "C" { pub fn g_trash_stack_peek(stack_p: *mut *mut GTrashStack) -> gpointer; } extern "C" { pub fn g_trash_stack_height(stack_p: *mut *mut GTrashStack) -> guint; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTree { _unused: [u8; 0], } pub type GTree = _GTree; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTreeNode { _unused: [u8; 0], } pub type GTreeNode = _GTreeNode; pub type GTraverseFunc = ::std::option::Option< unsafe extern "C" fn(key: gpointer, value: gpointer, data: gpointer) -> gboolean, >; pub type GTraverseNodeFunc = ::std::option::Option gboolean>; extern "C" { pub fn g_tree_new(key_compare_func: GCompareFunc) -> *mut GTree; } extern "C" { pub fn g_tree_new_with_data( key_compare_func: GCompareDataFunc, key_compare_data: gpointer, ) -> *mut GTree; } extern "C" { pub fn g_tree_new_full( key_compare_func: GCompareDataFunc, key_compare_data: gpointer, key_destroy_func: GDestroyNotify, value_destroy_func: GDestroyNotify, ) -> *mut GTree; } extern "C" { pub fn g_tree_node_first(tree: *mut GTree) -> *mut GTreeNode; } extern "C" { pub fn g_tree_node_last(tree: *mut GTree) -> *mut GTreeNode; } extern "C" { pub fn g_tree_node_previous(node: *mut GTreeNode) -> *mut GTreeNode; } extern "C" { pub fn g_tree_node_next(node: *mut GTreeNode) -> *mut GTreeNode; } extern "C" { pub fn g_tree_ref(tree: *mut GTree) -> *mut GTree; } extern "C" { pub fn g_tree_unref(tree: *mut GTree); } extern "C" { pub fn g_tree_destroy(tree: *mut GTree); } extern "C" { pub fn g_tree_insert_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode; } extern "C" { pub fn g_tree_insert(tree: *mut GTree, key: gpointer, value: gpointer); } extern "C" { pub fn g_tree_replace_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode; } extern "C" { pub fn g_tree_replace(tree: *mut GTree, key: gpointer, value: gpointer); } extern "C" { pub fn g_tree_remove(tree: *mut GTree, key: gconstpointer) -> gboolean; } extern "C" { pub fn g_tree_remove_all(tree: *mut GTree); } extern "C" { pub fn g_tree_steal(tree: *mut GTree, key: gconstpointer) -> gboolean; } extern "C" { pub fn g_tree_node_key(node: *mut GTreeNode) -> gpointer; } extern "C" { pub fn g_tree_node_value(node: *mut GTreeNode) -> gpointer; } extern "C" { pub fn g_tree_lookup_node(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode; } extern "C" { pub fn g_tree_lookup(tree: *mut GTree, key: gconstpointer) -> gpointer; } extern "C" { pub fn g_tree_lookup_extended( tree: *mut GTree, lookup_key: gconstpointer, orig_key: *mut gpointer, value: *mut gpointer, ) -> gboolean; } extern "C" { pub fn g_tree_foreach(tree: *mut GTree, func: GTraverseFunc, user_data: gpointer); } extern "C" { pub fn g_tree_foreach_node(tree: *mut GTree, func: GTraverseNodeFunc, user_data: gpointer); } extern "C" { pub fn g_tree_traverse( tree: *mut GTree, traverse_func: GTraverseFunc, traverse_type: GTraverseType, user_data: gpointer, ); } extern "C" { pub fn g_tree_search_node( tree: *mut GTree, search_func: GCompareFunc, user_data: gconstpointer, ) -> *mut GTreeNode; } extern "C" { pub fn g_tree_search( tree: *mut GTree, search_func: GCompareFunc, user_data: gconstpointer, ) -> gpointer; } extern "C" { pub fn g_tree_lower_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode; } extern "C" { pub fn g_tree_upper_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode; } extern "C" { pub fn g_tree_height(tree: *mut GTree) -> gint; } extern "C" { pub fn g_tree_nnodes(tree: *mut GTree) -> gint; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GUri { _unused: [u8; 0], } pub type GUri = _GUri; extern "C" { pub fn g_uri_ref(uri: *mut GUri) -> *mut GUri; } extern "C" { pub fn g_uri_unref(uri: *mut GUri); } pub const GUriFlags_G_URI_FLAGS_NONE: GUriFlags = 0; pub const GUriFlags_G_URI_FLAGS_PARSE_RELAXED: GUriFlags = 1; pub const GUriFlags_G_URI_FLAGS_HAS_PASSWORD: GUriFlags = 2; pub const GUriFlags_G_URI_FLAGS_HAS_AUTH_PARAMS: GUriFlags = 4; pub const GUriFlags_G_URI_FLAGS_ENCODED: GUriFlags = 8; pub const GUriFlags_G_URI_FLAGS_NON_DNS: GUriFlags = 16; pub const GUriFlags_G_URI_FLAGS_ENCODED_QUERY: GUriFlags = 32; pub const GUriFlags_G_URI_FLAGS_ENCODED_PATH: GUriFlags = 64; pub const GUriFlags_G_URI_FLAGS_ENCODED_FRAGMENT: GUriFlags = 128; pub const GUriFlags_G_URI_FLAGS_SCHEME_NORMALIZE: GUriFlags = 256; pub type GUriFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_uri_split( uri_ref: *const gchar, flags: GUriFlags, scheme: *mut *mut gchar, userinfo: *mut *mut gchar, host: *mut *mut gchar, port: *mut gint, path: *mut *mut gchar, query: *mut *mut gchar, fragment: *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_uri_split_with_user( uri_ref: *const gchar, flags: GUriFlags, scheme: *mut *mut gchar, user: *mut *mut gchar, password: *mut *mut gchar, auth_params: *mut *mut gchar, host: *mut *mut gchar, port: *mut gint, path: *mut *mut gchar, query: *mut *mut gchar, fragment: *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_uri_split_network( uri_string: *const gchar, flags: GUriFlags, scheme: *mut *mut gchar, host: *mut *mut gchar, port: *mut gint, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_uri_is_valid( uri_string: *const gchar, flags: GUriFlags, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_uri_join( flags: GUriFlags, scheme: *const gchar, userinfo: *const gchar, host: *const gchar, port: gint, path: *const gchar, query: *const gchar, fragment: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_uri_join_with_user( flags: GUriFlags, scheme: *const gchar, user: *const gchar, password: *const gchar, auth_params: *const gchar, host: *const gchar, port: gint, path: *const gchar, query: *const gchar, fragment: *const gchar, ) -> *mut gchar; } extern "C" { pub fn g_uri_parse( uri_string: *const gchar, flags: GUriFlags, error: *mut *mut GError, ) -> *mut GUri; } extern "C" { pub fn g_uri_parse_relative( base_uri: *mut GUri, uri_ref: *const gchar, flags: GUriFlags, error: *mut *mut GError, ) -> *mut GUri; } extern "C" { pub fn g_uri_resolve_relative( base_uri_string: *const gchar, uri_ref: *const gchar, flags: GUriFlags, error: *mut *mut GError, ) -> *mut gchar; } extern "C" { pub fn g_uri_build( flags: GUriFlags, scheme: *const gchar, userinfo: *const gchar, host: *const gchar, port: gint, path: *const gchar, query: *const gchar, fragment: *const gchar, ) -> *mut GUri; } extern "C" { pub fn g_uri_build_with_user( flags: GUriFlags, scheme: *const gchar, user: *const gchar, password: *const gchar, auth_params: *const gchar, host: *const gchar, port: gint, path: *const gchar, query: *const gchar, fragment: *const gchar, ) -> *mut GUri; } pub const GUriHideFlags_G_URI_HIDE_NONE: GUriHideFlags = 0; pub const GUriHideFlags_G_URI_HIDE_USERINFO: GUriHideFlags = 1; pub const GUriHideFlags_G_URI_HIDE_PASSWORD: GUriHideFlags = 2; pub const GUriHideFlags_G_URI_HIDE_AUTH_PARAMS: GUriHideFlags = 4; pub const GUriHideFlags_G_URI_HIDE_QUERY: GUriHideFlags = 8; pub const GUriHideFlags_G_URI_HIDE_FRAGMENT: GUriHideFlags = 16; pub type GUriHideFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_uri_to_string(uri: *mut GUri) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_to_string_partial( uri: *mut GUri, flags: GUriHideFlags, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_get_scheme(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_userinfo(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_user(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_password(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_auth_params(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_host(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_port(uri: *mut GUri) -> gint; } extern "C" { pub fn g_uri_get_path(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_query(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_fragment(uri: *mut GUri) -> *const gchar; } extern "C" { pub fn g_uri_get_flags(uri: *mut GUri) -> GUriFlags; } pub const GUriParamsFlags_G_URI_PARAMS_NONE: GUriParamsFlags = 0; pub const GUriParamsFlags_G_URI_PARAMS_CASE_INSENSITIVE: GUriParamsFlags = 1; pub const GUriParamsFlags_G_URI_PARAMS_WWW_FORM: GUriParamsFlags = 2; pub const GUriParamsFlags_G_URI_PARAMS_PARSE_RELAXED: GUriParamsFlags = 4; pub type GUriParamsFlags = ::std::os::raw::c_uint; extern "C" { pub fn g_uri_parse_params( params: *const gchar, length: gssize, separators: *const gchar, flags: GUriParamsFlags, error: *mut *mut GError, ) -> *mut GHashTable; } pub type GUriParamsIter = _GUriParamsIter; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GUriParamsIter { pub dummy0: gint, pub dummy1: gpointer, pub dummy2: gpointer, pub dummy3: [guint8; 256usize], } #[test] fn bindgen_test_layout__GUriParamsIter() { const UNINIT: ::std::mem::MaybeUninit<_GUriParamsIter> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GUriParamsIter>(), 280usize, concat!("Size of: ", stringify!(_GUriParamsIter)) ); assert_eq!( ::std::mem::align_of::<_GUriParamsIter>(), 8usize, concat!("Alignment of ", stringify!(_GUriParamsIter)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy0) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GUriParamsIter), "::", stringify!(dummy0) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy1) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GUriParamsIter), "::", stringify!(dummy1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy2) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GUriParamsIter), "::", stringify!(dummy2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy3) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GUriParamsIter), "::", stringify!(dummy3) ) ); } extern "C" { pub fn g_uri_params_iter_init( iter: *mut GUriParamsIter, params: *const gchar, length: gssize, separators: *const gchar, flags: GUriParamsFlags, ); } extern "C" { pub fn g_uri_params_iter_next( iter: *mut GUriParamsIter, attribute: *mut *mut gchar, value: *mut *mut gchar, error: *mut *mut GError, ) -> gboolean; } extern "C" { pub fn g_uri_error_quark() -> GQuark; } pub const GUriError_G_URI_ERROR_FAILED: GUriError = 0; pub const GUriError_G_URI_ERROR_BAD_SCHEME: GUriError = 1; pub const GUriError_G_URI_ERROR_BAD_USER: GUriError = 2; pub const GUriError_G_URI_ERROR_BAD_PASSWORD: GUriError = 3; pub const GUriError_G_URI_ERROR_BAD_AUTH_PARAMS: GUriError = 4; pub const GUriError_G_URI_ERROR_BAD_HOST: GUriError = 5; pub const GUriError_G_URI_ERROR_BAD_PORT: GUriError = 6; pub const GUriError_G_URI_ERROR_BAD_PATH: GUriError = 7; pub const GUriError_G_URI_ERROR_BAD_QUERY: GUriError = 8; pub const GUriError_G_URI_ERROR_BAD_FRAGMENT: GUriError = 9; pub type GUriError = ::std::os::raw::c_uint; extern "C" { pub fn g_uri_unescape_string( escaped_string: *const ::std::os::raw::c_char, illegal_characters: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_unescape_segment( escaped_string: *const ::std::os::raw::c_char, escaped_string_end: *const ::std::os::raw::c_char, illegal_characters: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_parse_scheme(uri: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_peek_scheme(uri: *const ::std::os::raw::c_char) -> *const ::std::os::raw::c_char; } extern "C" { pub fn g_uri_escape_string( unescaped: *const ::std::os::raw::c_char, reserved_chars_allowed: *const ::std::os::raw::c_char, allow_utf8: gboolean, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uri_unescape_bytes( escaped_string: *const ::std::os::raw::c_char, length: gssize, illegal_characters: *const ::std::os::raw::c_char, error: *mut *mut GError, ) -> *mut GBytes; } extern "C" { pub fn g_uri_escape_bytes( unescaped: *const guint8, length: gsize, reserved_chars_allowed: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn g_uuid_string_is_valid(str_: *const gchar) -> gboolean; } extern "C" { pub fn g_uuid_string_random() -> *mut gchar; } extern "C" { pub static glib_major_version: guint; } extern "C" { pub static glib_minor_version: guint; } extern "C" { pub static glib_micro_version: guint; } extern "C" { pub static glib_interface_age: guint; } extern "C" { pub static glib_binary_age: guint; } extern "C" { pub fn glib_check_version( required_major: guint, required_minor: guint, required_micro: guint, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GAllocator { _unused: [u8; 0], } pub type GAllocator = _GAllocator; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GMemChunk { _unused: [u8; 0], } pub type GMemChunk = _GMemChunk; extern "C" { pub fn g_mem_chunk_new( name: *const gchar, atom_size: gint, area_size: gsize, type_: gint, ) -> *mut GMemChunk; } extern "C" { pub fn g_mem_chunk_destroy(mem_chunk: *mut GMemChunk); } extern "C" { pub fn g_mem_chunk_alloc(mem_chunk: *mut GMemChunk) -> gpointer; } extern "C" { pub fn g_mem_chunk_alloc0(mem_chunk: *mut GMemChunk) -> gpointer; } extern "C" { pub fn g_mem_chunk_free(mem_chunk: *mut GMemChunk, mem: gpointer); } extern "C" { pub fn g_mem_chunk_clean(mem_chunk: *mut GMemChunk); } extern "C" { pub fn g_mem_chunk_reset(mem_chunk: *mut GMemChunk); } extern "C" { pub fn g_mem_chunk_print(mem_chunk: *mut GMemChunk); } extern "C" { pub fn g_mem_chunk_info(); } extern "C" { pub fn g_blow_chunks(); } extern "C" { pub fn g_allocator_new(name: *const gchar, n_preallocs: guint) -> *mut GAllocator; } extern "C" { pub fn g_allocator_free(allocator: *mut GAllocator); } extern "C" { pub fn g_list_push_allocator(allocator: *mut GAllocator); } extern "C" { pub fn g_list_pop_allocator(); } extern "C" { pub fn g_slist_push_allocator(allocator: *mut GAllocator); } extern "C" { pub fn g_slist_pop_allocator(); } extern "C" { pub fn g_node_push_allocator(allocator: *mut GAllocator); } extern "C" { pub fn g_node_pop_allocator(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GCache { _unused: [u8; 0], } pub type GCache = _GCache; pub type GCacheNewFunc = ::std::option::Option gpointer>; pub type GCacheDupFunc = ::std::option::Option gpointer>; pub type GCacheDestroyFunc = ::std::option::Option; extern "C" { pub fn g_cache_new( value_new_func: GCacheNewFunc, value_destroy_func: GCacheDestroyFunc, key_dup_func: GCacheDupFunc, key_destroy_func: GCacheDestroyFunc, hash_key_func: GHashFunc, hash_value_func: GHashFunc, key_equal_func: GEqualFunc, ) -> *mut GCache; } extern "C" { pub fn g_cache_destroy(cache: *mut GCache); } extern "C" { pub fn g_cache_insert(cache: *mut GCache, key: gpointer) -> gpointer; } extern "C" { pub fn g_cache_remove(cache: *mut GCache, value: gconstpointer); } extern "C" { pub fn g_cache_key_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer); } extern "C" { pub fn g_cache_value_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer); } pub type GCompletion = _GCompletion; pub type GCompletionFunc = ::std::option::Option *mut gchar>; pub type GCompletionStrncmpFunc = ::std::option::Option< unsafe extern "C" fn(s1: *const gchar, s2: *const gchar, n: gsize) -> gint, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GCompletion { pub items: *mut GList, pub func: GCompletionFunc, pub prefix: *mut gchar, pub cache: *mut GList, pub strncmp_func: GCompletionStrncmpFunc, } #[test] fn bindgen_test_layout__GCompletion() { const UNINIT: ::std::mem::MaybeUninit<_GCompletion> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GCompletion>(), 40usize, concat!("Size of: ", stringify!(_GCompletion)) ); assert_eq!( ::std::mem::align_of::<_GCompletion>(), 8usize, concat!("Alignment of ", stringify!(_GCompletion)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).items) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GCompletion), "::", stringify!(items) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GCompletion), "::", stringify!(func) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prefix) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GCompletion), "::", stringify!(prefix) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cache) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GCompletion), "::", stringify!(cache) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strncmp_func) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GCompletion), "::", stringify!(strncmp_func) ) ); } extern "C" { pub fn g_completion_new(func: GCompletionFunc) -> *mut GCompletion; } extern "C" { pub fn g_completion_add_items(cmp: *mut GCompletion, items: *mut GList); } extern "C" { pub fn g_completion_remove_items(cmp: *mut GCompletion, items: *mut GList); } extern "C" { pub fn g_completion_clear_items(cmp: *mut GCompletion); } extern "C" { pub fn g_completion_complete( cmp: *mut GCompletion, prefix: *const gchar, new_prefix: *mut *mut gchar, ) -> *mut GList; } extern "C" { pub fn g_completion_complete_utf8( cmp: *mut GCompletion, prefix: *const gchar, new_prefix: *mut *mut gchar, ) -> *mut GList; } extern "C" { pub fn g_completion_set_compare(cmp: *mut GCompletion, strncmp_func: GCompletionStrncmpFunc); } extern "C" { pub fn g_completion_free(cmp: *mut GCompletion); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GRelation { _unused: [u8; 0], } pub type GRelation = _GRelation; pub type GTuples = _GTuples; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GTuples { pub len: guint, } #[test] fn bindgen_test_layout__GTuples() { const UNINIT: ::std::mem::MaybeUninit<_GTuples> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GTuples>(), 4usize, concat!("Size of: ", stringify!(_GTuples)) ); assert_eq!( ::std::mem::align_of::<_GTuples>(), 4usize, concat!("Alignment of ", stringify!(_GTuples)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GTuples), "::", stringify!(len) ) ); } extern "C" { pub fn g_relation_new(fields: gint) -> *mut GRelation; } extern "C" { pub fn g_relation_destroy(relation: *mut GRelation); } extern "C" { pub fn g_relation_index( relation: *mut GRelation, field: gint, hash_func: GHashFunc, key_equal_func: GEqualFunc, ); } extern "C" { pub fn g_relation_insert(relation: *mut GRelation, ...); } extern "C" { pub fn g_relation_delete(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint; } extern "C" { pub fn g_relation_select( relation: *mut GRelation, key: gconstpointer, field: gint, ) -> *mut GTuples; } extern "C" { pub fn g_relation_count(relation: *mut GRelation, key: gconstpointer, field: gint) -> gint; } extern "C" { pub fn g_relation_exists(relation: *mut GRelation, ...) -> gboolean; } extern "C" { pub fn g_relation_print(relation: *mut GRelation); } extern "C" { pub fn g_tuples_destroy(tuples: *mut GTuples); } extern "C" { pub fn g_tuples_index(tuples: *mut GTuples, index_: gint, field: gint) -> gpointer; } pub const GThreadPriority_G_THREAD_PRIORITY_LOW: GThreadPriority = 0; pub const GThreadPriority_G_THREAD_PRIORITY_NORMAL: GThreadPriority = 1; pub const GThreadPriority_G_THREAD_PRIORITY_HIGH: GThreadPriority = 2; pub const GThreadPriority_G_THREAD_PRIORITY_URGENT: GThreadPriority = 3; pub type GThreadPriority = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GThread { pub func: GThreadFunc, pub data: gpointer, pub joinable: gboolean, pub priority: GThreadPriority, } #[test] fn bindgen_test_layout__GThread() { const UNINIT: ::std::mem::MaybeUninit<_GThread> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GThread>(), 24usize, concat!("Size of: ", stringify!(_GThread)) ); assert_eq!( ::std::mem::align_of::<_GThread>(), 8usize, concat!("Alignment of ", stringify!(_GThread)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GThread), "::", stringify!(func) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GThread), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).joinable) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GThread), "::", stringify!(joinable) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(_GThread), "::", stringify!(priority) ) ); } pub type GThreadFunctions = _GThreadFunctions; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GThreadFunctions { pub mutex_new: ::std::option::Option *mut GMutex>, pub mutex_lock: ::std::option::Option, pub mutex_trylock: ::std::option::Option gboolean>, pub mutex_unlock: ::std::option::Option, pub mutex_free: ::std::option::Option, pub cond_new: ::std::option::Option *mut GCond>, pub cond_signal: ::std::option::Option, pub cond_broadcast: ::std::option::Option, pub cond_wait: ::std::option::Option, pub cond_timed_wait: ::std::option::Option< unsafe extern "C" fn( cond: *mut GCond, mutex: *mut GMutex, end_time: *mut GTimeVal, ) -> gboolean, >, pub cond_free: ::std::option::Option, pub private_new: ::std::option::Option *mut GPrivate>, pub private_get: ::std::option::Option gpointer>, pub private_set: ::std::option::Option, pub thread_create: ::std::option::Option< unsafe extern "C" fn( func: GThreadFunc, data: gpointer, stack_size: gulong, joinable: gboolean, bound: gboolean, priority: GThreadPriority, thread: gpointer, error: *mut *mut GError, ), >, pub thread_yield: ::std::option::Option, pub thread_join: ::std::option::Option, pub thread_exit: ::std::option::Option, pub thread_set_priority: ::std::option::Option, pub thread_self: ::std::option::Option, pub thread_equal: ::std::option::Option< unsafe extern "C" fn(thread1: gpointer, thread2: gpointer) -> gboolean, >, } #[test] fn bindgen_test_layout__GThreadFunctions() { const UNINIT: ::std::mem::MaybeUninit<_GThreadFunctions> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GThreadFunctions>(), 168usize, concat!("Size of: ", stringify!(_GThreadFunctions)) ); assert_eq!( ::std::mem::align_of::<_GThreadFunctions>(), 8usize, concat!("Alignment of ", stringify!(_GThreadFunctions)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex_new) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_new) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex_lock) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_lock) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex_trylock) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_trylock) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex_unlock) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_unlock) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex_free) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(mutex_free) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_new) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_new) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_signal) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_signal) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_broadcast) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_broadcast) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_wait) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_wait) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_timed_wait) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_timed_wait) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cond_free) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(cond_free) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).private_new) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_new) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).private_get) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_get) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).private_set) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(private_set) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_create) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_create) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_yield) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_yield) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_join) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_join) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_exit) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_exit) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_set_priority) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_set_priority) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_self) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_self) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_equal) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_GThreadFunctions), "::", stringify!(thread_equal) ) ); } extern "C" { pub static mut g_thread_functions_for_glib_use: GThreadFunctions; } extern "C" { pub static mut g_thread_use_default_impl: gboolean; } extern "C" { pub static mut g_thread_gettime: ::std::option::Option guint64>; } extern "C" { pub fn g_thread_create( func: GThreadFunc, data: gpointer, joinable: gboolean, error: *mut *mut GError, ) -> *mut GThread; } extern "C" { pub fn g_thread_create_full( func: GThreadFunc, data: gpointer, stack_size: gulong, joinable: gboolean, bound: gboolean, priority: GThreadPriority, error: *mut *mut GError, ) -> *mut GThread; } extern "C" { pub fn g_thread_set_priority(thread: *mut GThread, priority: GThreadPriority); } extern "C" { pub fn g_thread_foreach(thread_func: GFunc, user_data: gpointer); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sched_param { pub sched_priority: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_sched_param() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(sched_param)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(sched_param)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sched_param), "::", stringify!(sched_priority) ) ); } pub type __cpu_mask = ::std::os::raw::c_ulong; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct cpu_set_t { pub __bits: [__cpu_mask; 16usize], } #[test] fn bindgen_test_layout_cpu_set_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, concat!("Size of: ", stringify!(cpu_set_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(cpu_set_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(cpu_set_t), "::", stringify!(__bits) ) ); } extern "C" { pub fn __sched_cpucount(__setsize: usize, __setp: *const cpu_set_t) -> ::std::os::raw::c_int; } extern "C" { pub fn __sched_cpualloc(__count: usize) -> *mut cpu_set_t; } extern "C" { pub fn __sched_cpufree(__set: *mut cpu_set_t); } extern "C" { pub fn sched_setparam(__pid: __pid_t, __param: *const sched_param) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_getparam(__pid: __pid_t, __param: *mut sched_param) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_setscheduler( __pid: __pid_t, __policy: ::std::os::raw::c_int, __param: *const sched_param, ) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_getscheduler(__pid: __pid_t) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_yield() -> ::std::os::raw::c_int; } extern "C" { pub fn sched_get_priority_max(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_get_priority_min(__algorithm: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn sched_rr_get_interval(__pid: __pid_t, __t: *mut timespec) -> ::std::os::raw::c_int; } pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __jmp_buf_tag { pub __jmpbuf: __jmp_buf, pub __mask_was_saved: ::std::os::raw::c_int, pub __saved_mask: __sigset_t, } #[test] fn bindgen_test_layout___jmp_buf_tag() { const UNINIT: ::std::mem::MaybeUninit<__jmp_buf_tag> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__jmp_buf_tag>(), 200usize, concat!("Size of: ", stringify!(__jmp_buf_tag)) ); assert_eq!( ::std::mem::align_of::<__jmp_buf_tag>(), 8usize, concat!("Alignment of ", stringify!(__jmp_buf_tag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__jmpbuf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__jmp_buf_tag), "::", stringify!(__jmpbuf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__mask_was_saved) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(__jmp_buf_tag), "::", stringify!(__mask_was_saved) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__saved_mask) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(__jmp_buf_tag), "::", stringify!(__saved_mask) ) ); } pub const PTHREAD_CREATE_JOINABLE: _bindgen_ty_11 = 0; pub const PTHREAD_CREATE_DETACHED: _bindgen_ty_11 = 1; pub type _bindgen_ty_11 = ::std::os::raw::c_uint; pub const PTHREAD_MUTEX_TIMED_NP: _bindgen_ty_12 = 0; pub const PTHREAD_MUTEX_RECURSIVE_NP: _bindgen_ty_12 = 1; pub const PTHREAD_MUTEX_ERRORCHECK_NP: _bindgen_ty_12 = 2; pub const PTHREAD_MUTEX_ADAPTIVE_NP: _bindgen_ty_12 = 3; pub const PTHREAD_MUTEX_NORMAL: _bindgen_ty_12 = 0; pub const PTHREAD_MUTEX_RECURSIVE: _bindgen_ty_12 = 1; pub const PTHREAD_MUTEX_ERRORCHECK: _bindgen_ty_12 = 2; pub const PTHREAD_MUTEX_DEFAULT: _bindgen_ty_12 = 0; pub type _bindgen_ty_12 = ::std::os::raw::c_uint; pub const PTHREAD_MUTEX_STALLED: _bindgen_ty_13 = 0; pub const PTHREAD_MUTEX_STALLED_NP: _bindgen_ty_13 = 0; pub const PTHREAD_MUTEX_ROBUST: _bindgen_ty_13 = 1; pub const PTHREAD_MUTEX_ROBUST_NP: _bindgen_ty_13 = 1; pub type _bindgen_ty_13 = ::std::os::raw::c_uint; pub const PTHREAD_PRIO_NONE: _bindgen_ty_14 = 0; pub const PTHREAD_PRIO_INHERIT: _bindgen_ty_14 = 1; pub const PTHREAD_PRIO_PROTECT: _bindgen_ty_14 = 2; pub type _bindgen_ty_14 = ::std::os::raw::c_uint; pub const PTHREAD_RWLOCK_PREFER_READER_NP: _bindgen_ty_15 = 0; pub const PTHREAD_RWLOCK_PREFER_WRITER_NP: _bindgen_ty_15 = 1; pub const PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP: _bindgen_ty_15 = 2; pub const PTHREAD_RWLOCK_DEFAULT_NP: _bindgen_ty_15 = 0; pub type _bindgen_ty_15 = ::std::os::raw::c_uint; pub const PTHREAD_INHERIT_SCHED: _bindgen_ty_16 = 0; pub const PTHREAD_EXPLICIT_SCHED: _bindgen_ty_16 = 1; pub type _bindgen_ty_16 = ::std::os::raw::c_uint; pub const PTHREAD_SCOPE_SYSTEM: _bindgen_ty_17 = 0; pub const PTHREAD_SCOPE_PROCESS: _bindgen_ty_17 = 1; pub type _bindgen_ty_17 = ::std::os::raw::c_uint; pub const PTHREAD_PROCESS_PRIVATE: _bindgen_ty_18 = 0; pub const PTHREAD_PROCESS_SHARED: _bindgen_ty_18 = 1; pub type _bindgen_ty_18 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _pthread_cleanup_buffer { pub __routine: ::std::option::Option, pub __arg: *mut ::std::os::raw::c_void, pub __canceltype: ::std::os::raw::c_int, pub __prev: *mut _pthread_cleanup_buffer, } #[test] fn bindgen_test_layout__pthread_cleanup_buffer() { const UNINIT: ::std::mem::MaybeUninit<_pthread_cleanup_buffer> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_pthread_cleanup_buffer>(), 32usize, concat!("Size of: ", stringify!(_pthread_cleanup_buffer)) ); assert_eq!( ::std::mem::align_of::<_pthread_cleanup_buffer>(), 8usize, concat!("Alignment of ", stringify!(_pthread_cleanup_buffer)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__routine) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__routine) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__arg) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__arg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__canceltype) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__canceltype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_pthread_cleanup_buffer), "::", stringify!(__prev) ) ); } pub const PTHREAD_CANCEL_ENABLE: _bindgen_ty_19 = 0; pub const PTHREAD_CANCEL_DISABLE: _bindgen_ty_19 = 1; pub type _bindgen_ty_19 = ::std::os::raw::c_uint; pub const PTHREAD_CANCEL_DEFERRED: _bindgen_ty_20 = 0; pub const PTHREAD_CANCEL_ASYNCHRONOUS: _bindgen_ty_20 = 1; pub type _bindgen_ty_20 = ::std::os::raw::c_uint; extern "C" { pub fn pthread_create( __newthread: *mut pthread_t, __attr: *const pthread_attr_t, __start_routine: ::std::option::Option< unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, >, __arg: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_exit(__retval: *mut ::std::os::raw::c_void) -> !; } extern "C" { pub fn pthread_join( __th: pthread_t, __thread_return: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_detach(__th: pthread_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_self() -> pthread_t; } extern "C" { pub fn pthread_equal(__thread1: pthread_t, __thread2: pthread_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_init(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_destroy(__attr: *mut pthread_attr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getdetachstate( __attr: *const pthread_attr_t, __detachstate: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setdetachstate( __attr: *mut pthread_attr_t, __detachstate: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getguardsize( __attr: *const pthread_attr_t, __guardsize: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setguardsize( __attr: *mut pthread_attr_t, __guardsize: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getschedparam( __attr: *const pthread_attr_t, __param: *mut sched_param, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setschedparam( __attr: *mut pthread_attr_t, __param: *const sched_param, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getschedpolicy( __attr: *const pthread_attr_t, __policy: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setschedpolicy( __attr: *mut pthread_attr_t, __policy: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getinheritsched( __attr: *const pthread_attr_t, __inherit: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setinheritsched( __attr: *mut pthread_attr_t, __inherit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getscope( __attr: *const pthread_attr_t, __scope: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setscope( __attr: *mut pthread_attr_t, __scope: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getstackaddr( __attr: *const pthread_attr_t, __stackaddr: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setstackaddr( __attr: *mut pthread_attr_t, __stackaddr: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getstacksize( __attr: *const pthread_attr_t, __stacksize: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setstacksize( __attr: *mut pthread_attr_t, __stacksize: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_getstack( __attr: *const pthread_attr_t, __stackaddr: *mut *mut ::std::os::raw::c_void, __stacksize: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_attr_setstack( __attr: *mut pthread_attr_t, __stackaddr: *mut ::std::os::raw::c_void, __stacksize: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_setschedparam( __target_thread: pthread_t, __policy: ::std::os::raw::c_int, __param: *const sched_param, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_getschedparam( __target_thread: pthread_t, __policy: *mut ::std::os::raw::c_int, __param: *mut sched_param, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_setschedprio( __target_thread: pthread_t, __prio: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_once( __once_control: *mut pthread_once_t, __init_routine: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_setcancelstate( __state: ::std::os::raw::c_int, __oldstate: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_setcanceltype( __type: ::std::os::raw::c_int, __oldtype: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cancel(__th: pthread_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_testcancel(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __cancel_jmp_buf_tag { pub __cancel_jmp_buf: __jmp_buf, pub __mask_was_saved: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout___cancel_jmp_buf_tag() { const UNINIT: ::std::mem::MaybeUninit<__cancel_jmp_buf_tag> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__cancel_jmp_buf_tag>(), 72usize, concat!("Size of: ", stringify!(__cancel_jmp_buf_tag)) ); assert_eq!( ::std::mem::align_of::<__cancel_jmp_buf_tag>(), 8usize, concat!("Alignment of ", stringify!(__cancel_jmp_buf_tag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cancel_jmp_buf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__cancel_jmp_buf_tag), "::", stringify!(__cancel_jmp_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__mask_was_saved) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(__cancel_jmp_buf_tag), "::", stringify!(__mask_was_saved) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_unwind_buf_t { pub __cancel_jmp_buf: [__cancel_jmp_buf_tag; 1usize], pub __pad: [*mut ::std::os::raw::c_void; 4usize], } #[test] fn bindgen_test_layout___pthread_unwind_buf_t() { const UNINIT: ::std::mem::MaybeUninit<__pthread_unwind_buf_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_unwind_buf_t>(), 104usize, concat!("Size of: ", stringify!(__pthread_unwind_buf_t)) ); assert_eq!( ::std::mem::align_of::<__pthread_unwind_buf_t>(), 8usize, concat!("Alignment of ", stringify!(__pthread_unwind_buf_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cancel_jmp_buf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_unwind_buf_t), "::", stringify!(__cancel_jmp_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(__pthread_unwind_buf_t), "::", stringify!(__pad) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __pthread_cleanup_frame { pub __cancel_routine: ::std::option::Option, pub __cancel_arg: *mut ::std::os::raw::c_void, pub __do_it: ::std::os::raw::c_int, pub __cancel_type: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout___pthread_cleanup_frame() { const UNINIT: ::std::mem::MaybeUninit<__pthread_cleanup_frame> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__pthread_cleanup_frame>(), 24usize, concat!("Size of: ", stringify!(__pthread_cleanup_frame)) ); assert_eq!( ::std::mem::align_of::<__pthread_cleanup_frame>(), 8usize, concat!("Alignment of ", stringify!(__pthread_cleanup_frame)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cancel_routine) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__pthread_cleanup_frame), "::", stringify!(__cancel_routine) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cancel_arg) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__pthread_cleanup_frame), "::", stringify!(__cancel_arg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__do_it) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(__pthread_cleanup_frame), "::", stringify!(__do_it) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__cancel_type) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(__pthread_cleanup_frame), "::", stringify!(__cancel_type) ) ); } extern "C" { pub fn __pthread_register_cancel(__buf: *mut __pthread_unwind_buf_t); } extern "C" { pub fn __pthread_unregister_cancel(__buf: *mut __pthread_unwind_buf_t); } extern "C" { pub fn __pthread_unwind_next(__buf: *mut __pthread_unwind_buf_t) -> !; } extern "C" { pub fn __sigsetjmp( __env: *mut __jmp_buf_tag, __savemask: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_init( __mutex: *mut pthread_mutex_t, __mutexattr: *const pthread_mutexattr_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_destroy(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_trylock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_lock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_timedlock( __mutex: *mut pthread_mutex_t, __abstime: *const timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_unlock(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_getprioceiling( __mutex: *const pthread_mutex_t, __prioceiling: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_setprioceiling( __mutex: *mut pthread_mutex_t, __prioceiling: ::std::os::raw::c_int, __old_ceiling: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutex_consistent(__mutex: *mut pthread_mutex_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_init(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_destroy(__attr: *mut pthread_mutexattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_getpshared( __attr: *const pthread_mutexattr_t, __pshared: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_setpshared( __attr: *mut pthread_mutexattr_t, __pshared: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_gettype( __attr: *const pthread_mutexattr_t, __kind: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_settype( __attr: *mut pthread_mutexattr_t, __kind: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_getprotocol( __attr: *const pthread_mutexattr_t, __protocol: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_setprotocol( __attr: *mut pthread_mutexattr_t, __protocol: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_getprioceiling( __attr: *const pthread_mutexattr_t, __prioceiling: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_setprioceiling( __attr: *mut pthread_mutexattr_t, __prioceiling: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_getrobust( __attr: *const pthread_mutexattr_t, __robustness: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_mutexattr_setrobust( __attr: *mut pthread_mutexattr_t, __robustness: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_init( __rwlock: *mut pthread_rwlock_t, __attr: *const pthread_rwlockattr_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_destroy(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_rdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_tryrdlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_timedrdlock( __rwlock: *mut pthread_rwlock_t, __abstime: *const timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_wrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_trywrlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_timedwrlock( __rwlock: *mut pthread_rwlock_t, __abstime: *const timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlock_unlock(__rwlock: *mut pthread_rwlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_init(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_destroy(__attr: *mut pthread_rwlockattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_getpshared( __attr: *const pthread_rwlockattr_t, __pshared: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_setpshared( __attr: *mut pthread_rwlockattr_t, __pshared: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_getkind_np( __attr: *const pthread_rwlockattr_t, __pref: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_rwlockattr_setkind_np( __attr: *mut pthread_rwlockattr_t, __pref: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_init( __cond: *mut pthread_cond_t, __cond_attr: *const pthread_condattr_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_destroy(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_signal(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_broadcast(__cond: *mut pthread_cond_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_wait( __cond: *mut pthread_cond_t, __mutex: *mut pthread_mutex_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_cond_timedwait( __cond: *mut pthread_cond_t, __mutex: *mut pthread_mutex_t, __abstime: *const timespec, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_init(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_destroy(__attr: *mut pthread_condattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_getpshared( __attr: *const pthread_condattr_t, __pshared: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_setpshared( __attr: *mut pthread_condattr_t, __pshared: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_getclock( __attr: *const pthread_condattr_t, __clock_id: *mut __clockid_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_condattr_setclock( __attr: *mut pthread_condattr_t, __clock_id: __clockid_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_spin_init( __lock: *mut pthread_spinlock_t, __pshared: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_spin_destroy(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_spin_lock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_spin_trylock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_spin_unlock(__lock: *mut pthread_spinlock_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrier_init( __barrier: *mut pthread_barrier_t, __attr: *const pthread_barrierattr_t, __count: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrier_destroy(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrier_wait(__barrier: *mut pthread_barrier_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrierattr_init(__attr: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrierattr_destroy(__attr: *mut pthread_barrierattr_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrierattr_getpshared( __attr: *const pthread_barrierattr_t, __pshared: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_barrierattr_setpshared( __attr: *mut pthread_barrierattr_t, __pshared: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_key_create( __key: *mut pthread_key_t, __destr_function: ::std::option::Option< unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), >, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_key_delete(__key: pthread_key_t) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_getspecific(__key: pthread_key_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn pthread_setspecific( __key: pthread_key_t, __pointer: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_getcpuclockid( __thread_id: pthread_t, __clock_id: *mut __clockid_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn pthread_atfork( __prepare: ::std::option::Option, __parent: ::std::option::Option, __child: ::std::option::Option, ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Copy, Clone)] pub struct GStaticMutex { pub mutex: *mut GMutex, pub unused: pthread_mutex_t, } #[test] fn bindgen_test_layout_GStaticMutex() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(GStaticMutex)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(GStaticMutex)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(GStaticMutex), "::", stringify!(mutex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(GStaticMutex), "::", stringify!(unused) ) ); } extern "C" { pub fn g_static_mutex_init(mutex: *mut GStaticMutex); } extern "C" { pub fn g_static_mutex_free(mutex: *mut GStaticMutex); } extern "C" { pub fn g_static_mutex_get_mutex_impl(mutex: *mut GStaticMutex) -> *mut GMutex; } pub type GStaticRecMutex = _GStaticRecMutex; #[repr(C)] #[derive(Copy, Clone)] pub struct _GStaticRecMutex { pub mutex: GStaticMutex, pub depth: guint, pub unused: _GStaticRecMutex__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _GStaticRecMutex__bindgen_ty_1 { pub owner: pthread_t, pub dummy: gdouble, } #[test] fn bindgen_test_layout__GStaticRecMutex__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_GStaticRecMutex__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GStaticRecMutex__bindgen_ty_1>(), 8usize, concat!("Size of: ", stringify!(_GStaticRecMutex__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_GStaticRecMutex__bindgen_ty_1>(), 8usize, concat!("Alignment of ", stringify!(_GStaticRecMutex__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).owner) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GStaticRecMutex__bindgen_ty_1), "::", stringify!(owner) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dummy) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GStaticRecMutex__bindgen_ty_1), "::", stringify!(dummy) ) ); } #[test] fn bindgen_test_layout__GStaticRecMutex() { const UNINIT: ::std::mem::MaybeUninit<_GStaticRecMutex> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GStaticRecMutex>(), 64usize, concat!("Size of: ", stringify!(_GStaticRecMutex)) ); assert_eq!( ::std::mem::align_of::<_GStaticRecMutex>(), 8usize, concat!("Alignment of ", stringify!(_GStaticRecMutex)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(mutex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).depth) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(depth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GStaticRecMutex), "::", stringify!(unused) ) ); } extern "C" { pub fn g_static_rec_mutex_init(mutex: *mut GStaticRecMutex); } extern "C" { pub fn g_static_rec_mutex_lock(mutex: *mut GStaticRecMutex); } extern "C" { pub fn g_static_rec_mutex_trylock(mutex: *mut GStaticRecMutex) -> gboolean; } extern "C" { pub fn g_static_rec_mutex_unlock(mutex: *mut GStaticRecMutex); } extern "C" { pub fn g_static_rec_mutex_lock_full(mutex: *mut GStaticRecMutex, depth: guint); } extern "C" { pub fn g_static_rec_mutex_unlock_full(mutex: *mut GStaticRecMutex) -> guint; } extern "C" { pub fn g_static_rec_mutex_free(mutex: *mut GStaticRecMutex); } pub type GStaticRWLock = _GStaticRWLock; #[repr(C)] #[derive(Copy, Clone)] pub struct _GStaticRWLock { pub mutex: GStaticMutex, pub read_cond: *mut GCond, pub write_cond: *mut GCond, pub read_counter: guint, pub have_writer: gboolean, pub want_to_read: guint, pub want_to_write: guint, } #[test] fn bindgen_test_layout__GStaticRWLock() { const UNINIT: ::std::mem::MaybeUninit<_GStaticRWLock> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GStaticRWLock>(), 80usize, concat!("Size of: ", stringify!(_GStaticRWLock)) ); assert_eq!( ::std::mem::align_of::<_GStaticRWLock>(), 8usize, concat!("Alignment of ", stringify!(_GStaticRWLock)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mutex) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(mutex) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).read_cond) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(read_cond) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).write_cond) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(write_cond) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).read_counter) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(read_counter) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).have_writer) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(have_writer) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).want_to_read) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(want_to_read) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).want_to_write) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", stringify!(_GStaticRWLock), "::", stringify!(want_to_write) ) ); } extern "C" { pub fn g_static_rw_lock_init(lock: *mut GStaticRWLock); } extern "C" { pub fn g_static_rw_lock_reader_lock(lock: *mut GStaticRWLock); } extern "C" { pub fn g_static_rw_lock_reader_trylock(lock: *mut GStaticRWLock) -> gboolean; } extern "C" { pub fn g_static_rw_lock_reader_unlock(lock: *mut GStaticRWLock); } extern "C" { pub fn g_static_rw_lock_writer_lock(lock: *mut GStaticRWLock); } extern "C" { pub fn g_static_rw_lock_writer_trylock(lock: *mut GStaticRWLock) -> gboolean; } extern "C" { pub fn g_static_rw_lock_writer_unlock(lock: *mut GStaticRWLock); } extern "C" { pub fn g_static_rw_lock_free(lock: *mut GStaticRWLock); } extern "C" { pub fn g_private_new(notify: GDestroyNotify) -> *mut GPrivate; } pub type GStaticPrivate = _GStaticPrivate; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _GStaticPrivate { pub index: guint, } #[test] fn bindgen_test_layout__GStaticPrivate() { const UNINIT: ::std::mem::MaybeUninit<_GStaticPrivate> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_GStaticPrivate>(), 4usize, concat!("Size of: ", stringify!(_GStaticPrivate)) ); assert_eq!( ::std::mem::align_of::<_GStaticPrivate>(), 4usize, concat!("Alignment of ", stringify!(_GStaticPrivate)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).index) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_GStaticPrivate), "::", stringify!(index) ) ); } extern "C" { pub fn g_static_private_init(private_key: *mut GStaticPrivate); } extern "C" { pub fn g_static_private_get(private_key: *mut GStaticPrivate) -> gpointer; } extern "C" { pub fn g_static_private_set( private_key: *mut GStaticPrivate, data: gpointer, notify: GDestroyNotify, ); } extern "C" { pub fn g_static_private_free(private_key: *mut GStaticPrivate); } extern "C" { pub fn g_once_init_enter_impl(location: *mut gsize) -> gboolean; } extern "C" { pub fn g_thread_init(vtable: gpointer); } extern "C" { pub fn g_thread_init_with_errorcheck_mutexes(vtable: gpointer); } extern "C" { pub fn g_thread_get_initialized() -> gboolean; } extern "C" { pub static mut g_threads_got_initialized: gboolean; } extern "C" { pub fn g_mutex_new() -> *mut GMutex; } extern "C" { pub fn g_mutex_free(mutex: *mut GMutex); } extern "C" { pub fn g_cond_new() -> *mut GCond; } extern "C" { pub fn g_cond_free(cond: *mut GCond); } extern "C" { pub fn g_cond_timed_wait( cond: *mut GCond, mutex: *mut GMutex, timeval: *mut GTimeVal, ) -> gboolean; } pub type GAsyncQueue_autoptr = *mut GAsyncQueue; pub type GAsyncQueue_listautoptr = *mut GList; pub type GAsyncQueue_slistautoptr = *mut GSList; pub type GAsyncQueue_queueautoptr = *mut GQueue; pub type GBookmarkFile_autoptr = *mut GBookmarkFile; pub type GBookmarkFile_listautoptr = *mut GList; pub type GBookmarkFile_slistautoptr = *mut GSList; pub type GBookmarkFile_queueautoptr = *mut GQueue; pub type GBytes_autoptr = *mut GBytes; pub type GBytes_listautoptr = *mut GList; pub type GBytes_slistautoptr = *mut GSList; pub type GBytes_queueautoptr = *mut GQueue; pub type GChecksum_autoptr = *mut GChecksum; pub type GChecksum_listautoptr = *mut GList; pub type GChecksum_slistautoptr = *mut GSList; pub type GChecksum_queueautoptr = *mut GQueue; pub type GDateTime_autoptr = *mut GDateTime; pub type GDateTime_listautoptr = *mut GList; pub type GDateTime_slistautoptr = *mut GSList; pub type GDateTime_queueautoptr = *mut GQueue; pub type GDate_autoptr = *mut GDate; pub type GDate_listautoptr = *mut GList; pub type GDate_slistautoptr = *mut GSList; pub type GDate_queueautoptr = *mut GQueue; pub type GDir_autoptr = *mut GDir; pub type GDir_listautoptr = *mut GList; pub type GDir_slistautoptr = *mut GSList; pub type GDir_queueautoptr = *mut GQueue; pub type GError_autoptr = *mut GError; pub type GError_listautoptr = *mut GList; pub type GError_slistautoptr = *mut GSList; pub type GError_queueautoptr = *mut GQueue; pub type GHashTable_autoptr = *mut GHashTable; pub type GHashTable_listautoptr = *mut GList; pub type GHashTable_slistautoptr = *mut GSList; pub type GHashTable_queueautoptr = *mut GQueue; pub type GHmac_autoptr = *mut GHmac; pub type GHmac_listautoptr = *mut GList; pub type GHmac_slistautoptr = *mut GSList; pub type GHmac_queueautoptr = *mut GQueue; pub type GIOChannel_autoptr = *mut GIOChannel; pub type GIOChannel_listautoptr = *mut GList; pub type GIOChannel_slistautoptr = *mut GSList; pub type GIOChannel_queueautoptr = *mut GQueue; pub type GKeyFile_autoptr = *mut GKeyFile; pub type GKeyFile_listautoptr = *mut GList; pub type GKeyFile_slistautoptr = *mut GSList; pub type GKeyFile_queueautoptr = *mut GQueue; pub type GList_autoptr = *mut GList; pub type GList_listautoptr = *mut GList; pub type GList_slistautoptr = *mut GSList; pub type GList_queueautoptr = *mut GQueue; pub type GArray_autoptr = *mut GArray; pub type GArray_listautoptr = *mut GList; pub type GArray_slistautoptr = *mut GSList; pub type GArray_queueautoptr = *mut GQueue; pub type GPtrArray_autoptr = *mut GPtrArray; pub type GPtrArray_listautoptr = *mut GList; pub type GPtrArray_slistautoptr = *mut GSList; pub type GPtrArray_queueautoptr = *mut GQueue; pub type GByteArray_autoptr = *mut GByteArray; pub type GByteArray_listautoptr = *mut GList; pub type GByteArray_slistautoptr = *mut GSList; pub type GByteArray_queueautoptr = *mut GQueue; pub type GMainContext_autoptr = *mut GMainContext; pub type GMainContext_listautoptr = *mut GList; pub type GMainContext_slistautoptr = *mut GSList; pub type GMainContext_queueautoptr = *mut GQueue; pub type GMainContextPusher_autoptr = *mut GMainContextPusher; pub type GMainContextPusher_listautoptr = *mut GList; pub type GMainContextPusher_slistautoptr = *mut GSList; pub type GMainContextPusher_queueautoptr = *mut GQueue; pub type GMainLoop_autoptr = *mut GMainLoop; pub type GMainLoop_listautoptr = *mut GList; pub type GMainLoop_slistautoptr = *mut GSList; pub type GMainLoop_queueautoptr = *mut GQueue; pub type GSource_autoptr = *mut GSource; pub type GSource_listautoptr = *mut GList; pub type GSource_slistautoptr = *mut GSList; pub type GSource_queueautoptr = *mut GQueue; pub type GMappedFile_autoptr = *mut GMappedFile; pub type GMappedFile_listautoptr = *mut GList; pub type GMappedFile_slistautoptr = *mut GSList; pub type GMappedFile_queueautoptr = *mut GQueue; pub type GMarkupParseContext_autoptr = *mut GMarkupParseContext; pub type GMarkupParseContext_listautoptr = *mut GList; pub type GMarkupParseContext_slistautoptr = *mut GSList; pub type GMarkupParseContext_queueautoptr = *mut GQueue; pub type GNode_autoptr = *mut GNode; pub type GNode_listautoptr = *mut GList; pub type GNode_slistautoptr = *mut GSList; pub type GNode_queueautoptr = *mut GQueue; pub type GOptionContext_autoptr = *mut GOptionContext; pub type GOptionContext_listautoptr = *mut GList; pub type GOptionContext_slistautoptr = *mut GSList; pub type GOptionContext_queueautoptr = *mut GQueue; pub type GOptionGroup_autoptr = *mut GOptionGroup; pub type GOptionGroup_listautoptr = *mut GList; pub type GOptionGroup_slistautoptr = *mut GSList; pub type GOptionGroup_queueautoptr = *mut GQueue; pub type GPatternSpec_autoptr = *mut GPatternSpec; pub type GPatternSpec_listautoptr = *mut GList; pub type GPatternSpec_slistautoptr = *mut GSList; pub type GPatternSpec_queueautoptr = *mut GQueue; pub type GQueue_autoptr = *mut GQueue; pub type GQueue_listautoptr = *mut GList; pub type GQueue_slistautoptr = *mut GSList; pub type GQueue_queueautoptr = *mut GQueue; pub type GRand_autoptr = *mut GRand; pub type GRand_listautoptr = *mut GList; pub type GRand_slistautoptr = *mut GSList; pub type GRand_queueautoptr = *mut GQueue; pub type GRegex_autoptr = *mut GRegex; pub type GRegex_listautoptr = *mut GList; pub type GRegex_slistautoptr = *mut GSList; pub type GRegex_queueautoptr = *mut GQueue; pub type GMatchInfo_autoptr = *mut GMatchInfo; pub type GMatchInfo_listautoptr = *mut GList; pub type GMatchInfo_slistautoptr = *mut GSList; pub type GMatchInfo_queueautoptr = *mut GQueue; pub type GScanner_autoptr = *mut GScanner; pub type GScanner_listautoptr = *mut GList; pub type GScanner_slistautoptr = *mut GSList; pub type GScanner_queueautoptr = *mut GQueue; pub type GSequence_autoptr = *mut GSequence; pub type GSequence_listautoptr = *mut GList; pub type GSequence_slistautoptr = *mut GSList; pub type GSequence_queueautoptr = *mut GQueue; pub type GSList_autoptr = *mut GSList; pub type GSList_listautoptr = *mut GList; pub type GSList_slistautoptr = *mut GSList; pub type GSList_queueautoptr = *mut GQueue; pub type GString_autoptr = *mut GString; pub type GString_listautoptr = *mut GList; pub type GString_slistautoptr = *mut GSList; pub type GString_queueautoptr = *mut GQueue; pub type GStringChunk_autoptr = *mut GStringChunk; pub type GStringChunk_listautoptr = *mut GList; pub type GStringChunk_slistautoptr = *mut GSList; pub type GStringChunk_queueautoptr = *mut GQueue; pub type GStrvBuilder_autoptr = *mut GStrvBuilder; pub type GStrvBuilder_listautoptr = *mut GList; pub type GStrvBuilder_slistautoptr = *mut GSList; pub type GStrvBuilder_queueautoptr = *mut GQueue; pub type GThread_autoptr = *mut GThread; pub type GThread_listautoptr = *mut GList; pub type GThread_slistautoptr = *mut GSList; pub type GThread_queueautoptr = *mut GQueue; pub type GMutexLocker_autoptr = *mut GMutexLocker; pub type GMutexLocker_listautoptr = *mut GList; pub type GMutexLocker_slistautoptr = *mut GSList; pub type GMutexLocker_queueautoptr = *mut GQueue; pub type GRecMutexLocker_autoptr = *mut GRecMutexLocker; pub type GRecMutexLocker_listautoptr = *mut GList; pub type GRecMutexLocker_slistautoptr = *mut GSList; pub type GRecMutexLocker_queueautoptr = *mut GQueue; pub type GRWLockWriterLocker_autoptr = *mut GRWLockWriterLocker; pub type GRWLockWriterLocker_listautoptr = *mut GList; pub type GRWLockWriterLocker_slistautoptr = *mut GSList; pub type GRWLockWriterLocker_queueautoptr = *mut GQueue; pub type GRWLockReaderLocker_autoptr = *mut GRWLockReaderLocker; pub type GRWLockReaderLocker_listautoptr = *mut GList; pub type GRWLockReaderLocker_slistautoptr = *mut GSList; pub type GRWLockReaderLocker_queueautoptr = *mut GQueue; pub type GTimer_autoptr = *mut GTimer; pub type GTimer_listautoptr = *mut GList; pub type GTimer_slistautoptr = *mut GSList; pub type GTimer_queueautoptr = *mut GQueue; pub type GTimeZone_autoptr = *mut GTimeZone; pub type GTimeZone_listautoptr = *mut GList; pub type GTimeZone_slistautoptr = *mut GSList; pub type GTimeZone_queueautoptr = *mut GQueue; pub type GTree_autoptr = *mut GTree; pub type GTree_listautoptr = *mut GList; pub type GTree_slistautoptr = *mut GSList; pub type GTree_queueautoptr = *mut GQueue; pub type GVariant_autoptr = *mut GVariant; pub type GVariant_listautoptr = *mut GList; pub type GVariant_slistautoptr = *mut GSList; pub type GVariant_queueautoptr = *mut GQueue; pub type GVariantBuilder_autoptr = *mut GVariantBuilder; pub type GVariantBuilder_listautoptr = *mut GList; pub type GVariantBuilder_slistautoptr = *mut GSList; pub type GVariantBuilder_queueautoptr = *mut GQueue; pub type GVariantIter_autoptr = *mut GVariantIter; pub type GVariantIter_listautoptr = *mut GList; pub type GVariantIter_slistautoptr = *mut GSList; pub type GVariantIter_queueautoptr = *mut GQueue; pub type GVariantDict_autoptr = *mut GVariantDict; pub type GVariantDict_listautoptr = *mut GList; pub type GVariantDict_slistautoptr = *mut GSList; pub type GVariantDict_queueautoptr = *mut GQueue; pub type GVariantType_autoptr = *mut GVariantType; pub type GVariantType_listautoptr = *mut GList; pub type GVariantType_slistautoptr = *mut GSList; pub type GVariantType_queueautoptr = *mut GQueue; pub type GRefString_autoptr = *mut GRefString; pub type GRefString_listautoptr = *mut GList; pub type GRefString_slistautoptr = *mut GSList; pub type GRefString_queueautoptr = *mut GQueue; pub type GUri_autoptr = *mut GUri; pub type GUri_listautoptr = *mut GList; pub type GUri_slistautoptr = *mut GSList; pub type GUri_queueautoptr = *mut GQueue; pub type GPathBuf_autoptr = *mut GPathBuf; pub type GPathBuf_listautoptr = *mut GList; pub type GPathBuf_slistautoptr = *mut GSList; pub type GPathBuf_queueautoptr = *mut GQueue; #[repr(C)] #[derive(Copy, Clone)] pub struct __mbstate_t { pub __count: ::std::os::raw::c_int, pub __value: __mbstate_t__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch: ::std::os::raw::c_uint, pub __wchb: [::std::os::raw::c_char; 4usize], } #[test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(), 4usize, concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(), 4usize, concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__mbstate_t__bindgen_ty_1), "::", stringify!(__wch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__mbstate_t__bindgen_ty_1), "::", stringify!(__wchb) ) ); } #[test] fn bindgen_test_layout___mbstate_t() { const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__mbstate_t>(), 8usize, concat!("Size of: ", stringify!(__mbstate_t)) ); assert_eq!( ::std::mem::align_of::<__mbstate_t>(), 4usize, concat!("Alignment of ", stringify!(__mbstate_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__mbstate_t), "::", stringify!(__count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__value) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(__mbstate_t), "::", stringify!(__value) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _G_fpos_t { pub __pos: __off_t, pub __state: __mbstate_t, } #[test] fn bindgen_test_layout__G_fpos_t() { const UNINIT: ::std::mem::MaybeUninit<_G_fpos_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_G_fpos_t>(), 16usize, concat!("Size of: ", stringify!(_G_fpos_t)) ); assert_eq!( ::std::mem::align_of::<_G_fpos_t>(), 8usize, concat!("Alignment of ", stringify!(_G_fpos_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_G_fpos_t), "::", stringify!(__pos) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_G_fpos_t), "::", stringify!(__state) ) ); } pub type __fpos_t = _G_fpos_t; #[repr(C)] #[derive(Copy, Clone)] pub struct _G_fpos64_t { pub __pos: __off64_t, pub __state: __mbstate_t, } #[test] fn bindgen_test_layout__G_fpos64_t() { const UNINIT: ::std::mem::MaybeUninit<_G_fpos64_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_G_fpos64_t>(), 16usize, concat!("Size of: ", stringify!(_G_fpos64_t)) ); assert_eq!( ::std::mem::align_of::<_G_fpos64_t>(), 8usize, concat!("Alignment of ", stringify!(_G_fpos64_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_G_fpos64_t), "::", stringify!(__pos) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_G_fpos64_t), "::", stringify!(__state) ) ); } pub type __fpos64_t = _G_fpos64_t; pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _IO_marker { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _IO_codecvt { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _IO_wide_data { _unused: [u8; 0], } pub type _IO_lock_t = ::std::os::raw::c_void; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _IO_FILE { pub _flags: ::std::os::raw::c_int, pub _IO_read_ptr: *mut ::std::os::raw::c_char, pub _IO_read_end: *mut ::std::os::raw::c_char, pub _IO_read_base: *mut ::std::os::raw::c_char, pub _IO_write_base: *mut ::std::os::raw::c_char, pub _IO_write_ptr: *mut ::std::os::raw::c_char, pub _IO_write_end: *mut ::std::os::raw::c_char, pub _IO_buf_base: *mut ::std::os::raw::c_char, pub _IO_buf_end: *mut ::std::os::raw::c_char, pub _IO_save_base: *mut ::std::os::raw::c_char, pub _IO_backup_base: *mut ::std::os::raw::c_char, pub _IO_save_end: *mut ::std::os::raw::c_char, pub _markers: *mut _IO_marker, pub _chain: *mut _IO_FILE, pub _fileno: ::std::os::raw::c_int, pub _flags2: ::std::os::raw::c_int, pub _old_offset: __off_t, pub _cur_column: ::std::os::raw::c_ushort, pub _vtable_offset: ::std::os::raw::c_schar, pub _shortbuf: [::std::os::raw::c_char; 1usize], pub _lock: *mut _IO_lock_t, pub _offset: __off64_t, pub _codecvt: *mut _IO_codecvt, pub _wide_data: *mut _IO_wide_data, pub _freeres_list: *mut _IO_FILE, pub _freeres_buf: *mut ::std::os::raw::c_void, pub __pad5: usize, pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } #[test] fn bindgen_test_layout__IO_FILE() { const UNINIT: ::std::mem::MaybeUninit<_IO_FILE> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_IO_FILE>(), 216usize, concat!("Size of: ", stringify!(_IO_FILE)) ); assert_eq!( ::std::mem::align_of::<_IO_FILE>(), 8usize, concat!("Alignment of ", stringify!(_IO_FILE)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_read_ptr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_read_end) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_read_base) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_write_base) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_write_ptr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_write_end) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_buf_base) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_buf_end) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_save_base) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_backup_base) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_IO_save_end) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_markers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_chain) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_fileno) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize }, 116usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_flags2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_old_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_cur_column) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize }, 130usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_vtable_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize }, 131usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_shortbuf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_lock) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_codecvt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_wide_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_freeres_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_freeres_buf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(__pad5) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_mode) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize }, 196usize, concat!( "Offset of field: ", stringify!(_IO_FILE), "::", stringify!(_unused2) ) ); } pub type fpos_t = __fpos_t; extern "C" { pub static mut stdin: *mut FILE; } extern "C" { pub static mut stdout: *mut FILE; } extern "C" { pub static mut stderr: *mut FILE; } extern "C" { pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn rename( __old: *const ::std::os::raw::c_char, __new: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn renameat( __oldfd: ::std::os::raw::c_int, __old: *const ::std::os::raw::c_char, __newfd: ::std::os::raw::c_int, __new: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn tmpfile() -> *mut FILE; } extern "C" { pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn tempnam( __dir: *const ::std::os::raw::c_char, __pfx: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fopen( __filename: *const ::std::os::raw::c_char, __modes: *const ::std::os::raw::c_char, ) -> *mut FILE; } extern "C" { pub fn freopen( __filename: *const ::std::os::raw::c_char, __modes: *const ::std::os::raw::c_char, __stream: *mut FILE, ) -> *mut FILE; } extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char) -> *mut FILE; } extern "C" { pub fn fmemopen( __s: *mut ::std::os::raw::c_void, __len: usize, __modes: *const ::std::os::raw::c_char, ) -> *mut FILE; } extern "C" { pub fn open_memstream( __bufloc: *mut *mut ::std::os::raw::c_char, __sizeloc: *mut usize, ) -> *mut FILE; } extern "C" { pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); } extern "C" { pub fn setvbuf( __stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __modes: ::std::os::raw::c_int, __n: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize); } extern "C" { pub fn setlinebuf(__stream: *mut FILE); } extern "C" { pub fn fprintf( __stream: *mut FILE, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } extern "C" { pub fn sprintf( __s: *mut ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn vfprintf( __s: *mut FILE, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn vprintf( __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn vsprintf( __s: *mut ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn snprintf( __s: *mut ::std::os::raw::c_char, __maxlen: ::std::os::raw::c_ulong, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn vsnprintf( __s: *mut ::std::os::raw::c_char, __maxlen: ::std::os::raw::c_ulong, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn vdprintf( __fd: ::std::os::raw::c_int, __fmt: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dprintf( __fd: ::std::os::raw::c_int, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn fscanf( __stream: *mut FILE, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } extern "C" { pub fn sscanf( __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1( __stream: *mut FILE, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_scanf"] pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1( __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } extern "C" { pub fn vfscanf( __s: *mut FILE, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn vscanf( __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn vsscanf( __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1( __s: *mut FILE, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1( __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { #[link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1( __s: *const ::std::os::raw::c_char, __format: *const ::std::os::raw::c_char, __arg: *mut __va_list_tag, ) -> ::std::os::raw::c_int; } extern "C" { pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn getchar() -> ::std::os::raw::c_int; } extern "C" { pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn getchar_unlocked() -> ::std::os::raw::c_int; } extern "C" { pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fgets( __s: *mut ::std::os::raw::c_char, __n: ::std::os::raw::c_int, __stream: *mut FILE, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn __getdelim( __lineptr: *mut *mut ::std::os::raw::c_char, __n: *mut usize, __delimiter: ::std::os::raw::c_int, __stream: *mut FILE, ) -> __ssize_t; } extern "C" { pub fn getdelim( __lineptr: *mut *mut ::std::os::raw::c_char, __n: *mut usize, __delimiter: ::std::os::raw::c_int, __stream: *mut FILE, ) -> __ssize_t; } extern "C" { pub fn getline( __lineptr: *mut *mut ::std::os::raw::c_char, __n: *mut usize, __stream: *mut FILE, ) -> __ssize_t; } extern "C" { pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fread( __ptr: *mut ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, __n: ::std::os::raw::c_ulong, __stream: *mut FILE, ) -> ::std::os::raw::c_ulong; } extern "C" { pub fn fwrite( __ptr: *const ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, __n: ::std::os::raw::c_ulong, __s: *mut FILE, ) -> ::std::os::raw::c_ulong; } extern "C" { pub fn fread_unlocked( __ptr: *mut ::std::os::raw::c_void, __size: usize, __n: usize, __stream: *mut FILE, ) -> usize; } extern "C" { pub fn fwrite_unlocked( __ptr: *const ::std::os::raw::c_void, __size: usize, __n: usize, __stream: *mut FILE, ) -> usize; } extern "C" { pub fn fseek( __stream: *mut FILE, __off: ::std::os::raw::c_long, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; } extern "C" { pub fn rewind(__stream: *mut FILE); } extern "C" { pub fn fseeko( __stream: *mut FILE, __off: __off_t, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn ftello(__stream: *mut FILE) -> __off_t; } extern "C" { pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; } extern "C" { pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; } extern "C" { pub fn clearerr(__stream: *mut FILE); } extern "C" { pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn clearerr_unlocked(__stream: *mut FILE); } extern "C" { pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn perror(__s: *const ::std::os::raw::c_char); } extern "C" { pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn popen( __command: *const ::std::os::raw::c_char, __modes: *const ::std::os::raw::c_char, ) -> *mut FILE; } extern "C" { pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn flockfile(__stream: *mut FILE); } extern "C" { pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn funlockfile(__stream: *mut FILE); } extern "C" { pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } pub const ws_log_level_LOG_LEVEL_NONE: ws_log_level = 0; pub const ws_log_level_LOG_LEVEL_NOISY: ws_log_level = 1; pub const ws_log_level_LOG_LEVEL_DEBUG: ws_log_level = 2; pub const ws_log_level_LOG_LEVEL_INFO: ws_log_level = 3; pub const ws_log_level_LOG_LEVEL_MESSAGE: ws_log_level = 4; pub const ws_log_level_LOG_LEVEL_WARNING: ws_log_level = 5; pub const ws_log_level_LOG_LEVEL_CRITICAL: ws_log_level = 6; pub const ws_log_level_LOG_LEVEL_ERROR: ws_log_level = 7; pub const ws_log_level_LOG_LEVEL_ECHO: ws_log_level = 8; pub const ws_log_level__LOG_LEVEL_LAST: ws_log_level = 9; pub type ws_log_level = ::std::os::raw::c_uint; pub type ws_log_writer_cb = ::std::option::Option< unsafe extern "C" fn( domain: *const ::std::os::raw::c_char, level: ws_log_level, timestamp: timespec, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, user_format: *const ::std::os::raw::c_char, user_ap: *mut __va_list_tag, user_data: *mut ::std::os::raw::c_void, ), >; pub type ws_log_writer_free_data_cb = ::std::option::Option; extern "C" { pub fn ws_log_file_writer( fp: *mut FILE, domain: *const ::std::os::raw::c_char, level: ws_log_level, timestamp: timespec, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, user_format: *const ::std::os::raw::c_char, user_ap: *mut __va_list_tag, ); } extern "C" { pub fn ws_log_console_writer( domain: *const ::std::os::raw::c_char, level: ws_log_level, timestamp: timespec, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, user_format: *const ::std::os::raw::c_char, user_ap: *mut __va_list_tag, ); } extern "C" { pub fn ws_log_console_writer_set_use_stdout(use_stdout: bool); } extern "C" { pub fn ws_log_level_to_string(level: ws_log_level) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ws_log_msg_is_active(domain: *const ::std::os::raw::c_char, level: ws_log_level) -> bool; } extern "C" { pub fn ws_log_get_level() -> ws_log_level; } extern "C" { pub fn ws_log_set_level(level: ws_log_level) -> ws_log_level; } extern "C" { pub fn ws_log_set_level_str(str_level: *const ::std::os::raw::c_char) -> ws_log_level; } extern "C" { pub fn ws_log_set_domain_filter(domain_filter: *const ::std::os::raw::c_char); } extern "C" { pub fn ws_log_set_debug_filter(str_filter: *const ::std::os::raw::c_char); } extern "C" { pub fn ws_log_set_noisy_filter(str_filter: *const ::std::os::raw::c_char); } extern "C" { pub fn ws_log_set_fatal(level: ws_log_level) -> ws_log_level; } extern "C" { pub fn ws_log_set_fatal_str(str_level: *const ::std::os::raw::c_char) -> ws_log_level; } extern "C" { pub fn ws_log_set_writer(writer: ws_log_writer_cb); } extern "C" { pub fn ws_log_set_writer_with_data( writer: ws_log_writer_cb, user_data: *mut ::std::os::raw::c_void, free_user_data: ws_log_writer_free_data_cb, ); } extern "C" { pub fn ws_log_parse_args( argc_ptr: *mut ::std::os::raw::c_int, argv: *mut *mut ::std::os::raw::c_char, vcmdarg_err: ::std::option::Option< unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char, ap: *mut __va_list_tag), >, exit_failure: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn ws_log_init( progname: *const ::std::os::raw::c_char, vcmdarg_err: ::std::option::Option< unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char, ap: *mut __va_list_tag), >, ); } extern "C" { pub fn ws_log_init_with_writer( progname: *const ::std::os::raw::c_char, writer: ws_log_writer_cb, vcmdarg_err: ::std::option::Option< unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char, ap: *mut __va_list_tag), >, ); } extern "C" { pub fn ws_log_init_with_writer_and_data( progname: *const ::std::os::raw::c_char, writer: ws_log_writer_cb, user_data: *mut ::std::os::raw::c_void, free_user_data: ws_log_writer_free_data_cb, vcmdarg_err: ::std::option::Option< unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char, ap: *mut __va_list_tag), >, ); } extern "C" { pub fn ws_log( domain: *const ::std::os::raw::c_char, level: ws_log_level, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn ws_logv( domain: *const ::std::os::raw::c_char, level: ws_log_level, format: *const ::std::os::raw::c_char, ap: *mut __va_list_tag, ); } extern "C" { pub fn ws_log_full( domain: *const ::std::os::raw::c_char, level: ws_log_level, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn ws_logv_full( domain: *const ::std::os::raw::c_char, level: ws_log_level, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ap: *mut __va_list_tag, ); } extern "C" { pub fn ws_log_fatal_full( domain: *const ::std::os::raw::c_char, level: ws_log_level, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn ws_log_buffer_full( domain: *const ::std::os::raw::c_char, level: ws_log_level, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, buffer: *const u8, size: usize, max_bytes_len: usize, msg: *const ::std::os::raw::c_char, ); } extern "C" { pub fn ws_log_write_always_full( domain: *const ::std::os::raw::c_char, level: ws_log_level, file: *const ::std::os::raw::c_char, line: ::std::os::raw::c_long, func: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ... ); } extern "C" { pub fn ws_log_add_custom_file(fp: *mut FILE); } extern "C" { pub fn ws_log_print_usage(fp: *mut FILE); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_allocator_t { _unused: [u8; 0], } pub type wmem_allocator_t = _wmem_allocator_t; pub const _wmem_allocator_type_t_WMEM_ALLOCATOR_SIMPLE: _wmem_allocator_type_t = 0; pub const _wmem_allocator_type_t_WMEM_ALLOCATOR_BLOCK: _wmem_allocator_type_t = 1; pub const _wmem_allocator_type_t_WMEM_ALLOCATOR_STRICT: _wmem_allocator_type_t = 2; pub const _wmem_allocator_type_t_WMEM_ALLOCATOR_BLOCK_FAST: _wmem_allocator_type_t = 3; pub type _wmem_allocator_type_t = ::std::os::raw::c_uint; pub use self::_wmem_allocator_type_t as wmem_allocator_type_t; extern "C" { pub fn wmem_alloc(allocator: *mut wmem_allocator_t, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_alloc0( allocator: *mut wmem_allocator_t, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_free(allocator: *mut wmem_allocator_t, ptr: *mut ::std::os::raw::c_void); } extern "C" { pub fn wmem_realloc( allocator: *mut wmem_allocator_t, ptr: *mut ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_free_all(allocator: *mut wmem_allocator_t); } extern "C" { pub fn wmem_gc(allocator: *mut wmem_allocator_t); } extern "C" { pub fn wmem_destroy_allocator(allocator: *mut wmem_allocator_t); } extern "C" { pub fn wmem_allocator_new(type_: wmem_allocator_type_t) -> *mut wmem_allocator_t; } extern "C" { pub fn wmem_init(); } extern "C" { pub fn wmem_cleanup(); } extern "C" { pub fn wmem_enter_scope(allocator: *mut wmem_allocator_t); } extern "C" { pub fn wmem_leave_scope(allocator: *mut wmem_allocator_t); } extern "C" { pub fn wmem_in_scope(allocator: *mut wmem_allocator_t) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_array_t { _unused: [u8; 0], } pub type wmem_array_t = _wmem_array_t; extern "C" { pub fn wmem_array_sized_new( allocator: *mut wmem_allocator_t, elem_size: gsize, alloc_count: guint, ) -> *mut wmem_array_t; } extern "C" { pub fn wmem_array_new(allocator: *mut wmem_allocator_t, elem_size: gsize) -> *mut wmem_array_t; } extern "C" { pub fn wmem_array_grow(array: *mut wmem_array_t, to_add: guint); } extern "C" { pub fn wmem_array_set_null_terminator(array: *mut wmem_array_t); } extern "C" { pub fn wmem_array_bzero(array: *mut wmem_array_t); } extern "C" { pub fn wmem_array_append( array: *mut wmem_array_t, in_: *const ::std::os::raw::c_void, count: guint, ); } extern "C" { pub fn wmem_array_index( array: *mut wmem_array_t, array_index: guint, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_array_try_index( array: *mut wmem_array_t, array_index: guint, val: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wmem_array_sort( array: *mut wmem_array_t, compar: ::std::option::Option< unsafe extern "C" fn( arg1: *const ::std::os::raw::c_void, arg2: *const ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >, ); } extern "C" { pub fn wmem_array_get_raw(array: *mut wmem_array_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_array_get_count(array: *mut wmem_array_t) -> guint; } extern "C" { pub fn wmem_destroy_array(array: *mut wmem_array_t); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_list_t { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_list_frame_t { _unused: [u8; 0], } pub type wmem_list_t = _wmem_list_t; pub type wmem_list_frame_t = _wmem_list_frame_t; extern "C" { pub fn wmem_list_count(list: *const wmem_list_t) -> guint; } extern "C" { pub fn wmem_list_head(list: *const wmem_list_t) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_tail(list: *const wmem_list_t) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_frame_next(frame: *const wmem_list_frame_t) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_frame_prev(frame: *const wmem_list_frame_t) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_frame_data(frame: *const wmem_list_frame_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_list_remove(list: *mut wmem_list_t, data: *mut ::std::os::raw::c_void); } extern "C" { pub fn wmem_list_remove_frame(list: *mut wmem_list_t, frame: *mut wmem_list_frame_t); } extern "C" { pub fn wmem_list_find( list: *mut wmem_list_t, data: *const ::std::os::raw::c_void, ) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_find_custom( list: *mut wmem_list_t, data: *const ::std::os::raw::c_void, func: GCompareFunc, ) -> *mut wmem_list_frame_t; } extern "C" { pub fn wmem_list_prepend(list: *mut wmem_list_t, data: *mut ::std::os::raw::c_void); } extern "C" { pub fn wmem_list_append(list: *mut wmem_list_t, data: *mut ::std::os::raw::c_void); } extern "C" { pub fn wmem_list_insert_sorted( list: *mut wmem_list_t, data: *mut ::std::os::raw::c_void, func: GCompareFunc, ); } extern "C" { pub fn wmem_list_new(allocator: *mut wmem_allocator_t) -> *mut wmem_list_t; } extern "C" { pub fn wmem_list_foreach(list: *mut wmem_list_t, foreach_func: GFunc, user_data: gpointer); } extern "C" { pub fn wmem_destroy_list(list: *mut wmem_list_t); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_map_t { _unused: [u8; 0], } pub type wmem_map_t = _wmem_map_t; extern "C" { pub fn wmem_map_new( allocator: *mut wmem_allocator_t, hash_func: GHashFunc, eql_func: GEqualFunc, ) -> *mut wmem_map_t; } extern "C" { pub fn wmem_map_new_autoreset( metadata_scope: *mut wmem_allocator_t, data_scope: *mut wmem_allocator_t, hash_func: GHashFunc, eql_func: GEqualFunc, ) -> *mut wmem_map_t; } extern "C" { pub fn wmem_map_insert( map: *mut wmem_map_t, key: *const ::std::os::raw::c_void, value: *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_map_contains(map: *mut wmem_map_t, key: *const ::std::os::raw::c_void) -> gboolean; } extern "C" { pub fn wmem_map_lookup( map: *mut wmem_map_t, key: *const ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_map_lookup_extended( map: *mut wmem_map_t, key: *const ::std::os::raw::c_void, orig_key: *mut *const ::std::os::raw::c_void, value: *mut *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn wmem_map_remove( map: *mut wmem_map_t, key: *const ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_map_steal(map: *mut wmem_map_t, key: *const ::std::os::raw::c_void) -> gboolean; } extern "C" { pub fn wmem_map_get_keys( list_allocator: *mut wmem_allocator_t, map: *mut wmem_map_t, ) -> *mut wmem_list_t; } extern "C" { pub fn wmem_map_foreach(map: *mut wmem_map_t, foreach_func: GHFunc, user_data: gpointer); } extern "C" { pub fn wmem_map_size(map: *mut wmem_map_t) -> guint; } extern "C" { pub fn wmem_strong_hash(buf: *const guint8, len: usize) -> guint32; } extern "C" { pub fn wmem_str_hash(key: gconstpointer) -> guint; } extern "C" { pub fn wmem_int64_hash(key: gconstpointer) -> guint; } extern "C" { pub fn wmem_double_hash(key: gconstpointer) -> guint; } extern "C" { pub fn wmem_memdup( allocator: *mut wmem_allocator_t, source: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_compare_int(a: gconstpointer, b: gconstpointer) -> gint; } extern "C" { pub fn wmem_compare_uint(a: gconstpointer, b: gconstpointer) -> gint; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_multimap_t { _unused: [u8; 0], } pub type wmem_multimap_t = _wmem_multimap_t; extern "C" { pub fn wmem_multimap_new( allocator: *mut wmem_allocator_t, hash_func: GHashFunc, eql_func: GEqualFunc, ) -> *mut wmem_multimap_t; } extern "C" { pub fn wmem_multimap_new_autoreset( metadata_scope: *mut wmem_allocator_t, data_scope: *mut wmem_allocator_t, hash_func: GHashFunc, eql_func: GEqualFunc, ) -> *mut wmem_multimap_t; } extern "C" { pub fn wmem_multimap_get_keys( list_allocator: *mut wmem_allocator_t, map: *mut wmem_multimap_t, ) -> *mut wmem_list_t; } extern "C" { pub fn wmem_multimap_size(map: *mut wmem_multimap_t) -> guint; } extern "C" { pub fn wmem_multimap_count( map: *mut wmem_multimap_t, key: *const ::std::os::raw::c_void, ) -> guint; } extern "C" { pub fn wmem_multimap_insert32( map: *mut wmem_multimap_t, key: *const ::std::os::raw::c_void, frame_num: guint32, value: *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn wmem_multimap_lookup32( map: *mut wmem_multimap_t, key: *const ::std::os::raw::c_void, frame_num: guint32, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_multimap_lookup32_le( map: *mut wmem_multimap_t, key: *const ::std::os::raw::c_void, frame_num: guint32, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_multimap_remove32( map: *mut wmem_multimap_t, key: *const ::std::os::raw::c_void, frame_num: guint32, ) -> *mut ::std::os::raw::c_void; } pub type wmem_queue_t = wmem_list_t; pub type wmem_stack_t = wmem_list_t; extern "C" { pub fn wmem_stack_peek(stack: *const wmem_stack_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_stack_pop(stack: *mut wmem_stack_t) -> *mut ::std::os::raw::c_void; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_strbuf_t { pub allocator: *mut wmem_allocator_t, pub str_: *mut gchar, pub len: gsize, pub alloc_len: gsize, pub max_len: gsize, } #[test] fn bindgen_test_layout__wmem_strbuf_t() { const UNINIT: ::std::mem::MaybeUninit<_wmem_strbuf_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wmem_strbuf_t>(), 40usize, concat!("Size of: ", stringify!(_wmem_strbuf_t)) ); assert_eq!( ::std::mem::align_of::<_wmem_strbuf_t>(), 8usize, concat!("Alignment of ", stringify!(_wmem_strbuf_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).allocator) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_wmem_strbuf_t), "::", stringify!(allocator) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_wmem_strbuf_t), "::", stringify!(str_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_wmem_strbuf_t), "::", stringify!(len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).alloc_len) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_wmem_strbuf_t), "::", stringify!(alloc_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).max_len) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_wmem_strbuf_t), "::", stringify!(max_len) ) ); } pub type wmem_strbuf_t = _wmem_strbuf_t; extern "C" { pub fn wmem_strbuf_sized_new( allocator: *mut wmem_allocator_t, alloc_len: gsize, max_len: gsize, ) -> *mut wmem_strbuf_t; } extern "C" { pub fn wmem_strbuf_new( allocator: *mut wmem_allocator_t, str_: *const gchar, ) -> *mut wmem_strbuf_t; } extern "C" { pub fn wmem_strbuf_new_len( allocator: *mut wmem_allocator_t, str_: *const gchar, len: usize, ) -> *mut wmem_strbuf_t; } extern "C" { pub fn wmem_strbuf_dup( allocator: *mut wmem_allocator_t, strbuf: *const wmem_strbuf_t, ) -> *mut wmem_strbuf_t; } extern "C" { pub fn wmem_strbuf_append(strbuf: *mut wmem_strbuf_t, str_: *const gchar); } extern "C" { pub fn wmem_strbuf_append_len( strbuf: *mut wmem_strbuf_t, str_: *const gchar, append_len: gsize, ); } extern "C" { pub fn wmem_strbuf_append_printf(strbuf: *mut wmem_strbuf_t, format: *const gchar, ...); } extern "C" { pub fn wmem_strbuf_append_vprintf( strbuf: *mut wmem_strbuf_t, fmt: *const gchar, ap: *mut __va_list_tag, ); } extern "C" { pub fn wmem_strbuf_append_c(strbuf: *mut wmem_strbuf_t, c: gchar); } extern "C" { pub fn wmem_strbuf_append_unichar(strbuf: *mut wmem_strbuf_t, c: gunichar); } extern "C" { pub fn wmem_strbuf_truncate(strbuf: *mut wmem_strbuf_t, len: gsize); } extern "C" { pub fn wmem_strbuf_get_str(strbuf: *const wmem_strbuf_t) -> *const gchar; } extern "C" { pub fn wmem_strbuf_get_len(strbuf: *const wmem_strbuf_t) -> gsize; } extern "C" { pub fn wmem_strbuf_strcmp( sb1: *const wmem_strbuf_t, sb2: *const wmem_strbuf_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wmem_strbuf_strstr( haystack: *const wmem_strbuf_t, needle: *const wmem_strbuf_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wmem_strbuf_finalize(strbuf: *mut wmem_strbuf_t) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn wmem_strbuf_destroy(strbuf: *mut wmem_strbuf_t); } extern "C" { pub fn wmem_strdup(allocator: *mut wmem_allocator_t, src: *const gchar) -> *mut gchar; } extern "C" { pub fn wmem_strndup( allocator: *mut wmem_allocator_t, src: *const gchar, len: usize, ) -> *mut gchar; } extern "C" { pub fn wmem_strdup_printf( allocator: *mut wmem_allocator_t, fmt: *const gchar, ... ) -> *mut gchar; } extern "C" { pub fn wmem_strdup_vprintf( allocator: *mut wmem_allocator_t, fmt: *const gchar, ap: *mut __va_list_tag, ) -> *mut gchar; } extern "C" { pub fn ws_memmem( haystack: *const ::std::os::raw::c_void, haystack_len: usize, needle: *const ::std::os::raw::c_void, needle_len: usize, ) -> *const guint8; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_tree_t { _unused: [u8; 0], } pub type wmem_tree_t = _wmem_tree_t; extern "C" { pub fn wmem_tree_new(allocator: *mut wmem_allocator_t) -> *mut wmem_tree_t; } extern "C" { pub fn wmem_tree_new_autoreset( metadata_scope: *mut wmem_allocator_t, data_scope: *mut wmem_allocator_t, ) -> *mut wmem_tree_t; } extern "C" { pub fn wmem_tree_destroy(tree: *mut wmem_tree_t, free_keys: gboolean, free_values: gboolean); } extern "C" { pub fn wmem_tree_is_empty(tree: *mut wmem_tree_t) -> gboolean; } extern "C" { pub fn wmem_tree_count(tree: *mut wmem_tree_t) -> guint; } extern "C" { pub fn wmem_tree_insert32( tree: *mut wmem_tree_t, key: guint32, data: *mut ::std::os::raw::c_void, ); } extern "C" { pub fn wmem_tree_lookup32(tree: *mut wmem_tree_t, key: guint32) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_tree_lookup32_le( tree: *mut wmem_tree_t, key: guint32, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_tree_remove32(tree: *mut wmem_tree_t, key: guint32) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_tree_insert_string( tree: *mut wmem_tree_t, key: *const gchar, data: *mut ::std::os::raw::c_void, flags: guint32, ); } extern "C" { pub fn wmem_tree_lookup_string( tree: *mut wmem_tree_t, key: *const gchar, flags: guint32, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_tree_remove_string( tree: *mut wmem_tree_t, key: *const gchar, flags: guint32, ) -> *mut ::std::os::raw::c_void; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_tree_key_t { pub length: guint32, pub key: *mut guint32, } #[test] fn bindgen_test_layout__wmem_tree_key_t() { const UNINIT: ::std::mem::MaybeUninit<_wmem_tree_key_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wmem_tree_key_t>(), 16usize, concat!("Size of: ", stringify!(_wmem_tree_key_t)) ); assert_eq!( ::std::mem::align_of::<_wmem_tree_key_t>(), 8usize, concat!("Alignment of ", stringify!(_wmem_tree_key_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_wmem_tree_key_t), "::", stringify!(length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).key) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_wmem_tree_key_t), "::", stringify!(key) ) ); } pub type wmem_tree_key_t = _wmem_tree_key_t; extern "C" { pub fn wmem_tree_insert32_array( tree: *mut wmem_tree_t, key: *mut wmem_tree_key_t, data: *mut ::std::os::raw::c_void, ); } extern "C" { pub fn wmem_tree_lookup32_array( tree: *mut wmem_tree_t, key: *mut wmem_tree_key_t, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wmem_tree_lookup32_array_le( tree: *mut wmem_tree_t, key: *mut wmem_tree_key_t, ) -> *mut ::std::os::raw::c_void; } pub type wmem_foreach_func = ::std::option::Option< unsafe extern "C" fn( key: *const ::std::os::raw::c_void, value: *mut ::std::os::raw::c_void, userdata: *mut ::std::os::raw::c_void, ) -> gboolean, >; pub type wmem_printer_func = ::std::option::Option; extern "C" { pub fn wmem_tree_foreach( tree: *mut wmem_tree_t, callback: wmem_foreach_func, user_data: *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn wmem_print_tree( tree: *mut wmem_tree_t, key_printer: wmem_printer_func, data_printer: wmem_printer_func, ); } pub type wmem_itree_t = _wmem_tree_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _wmem_range_t { pub low: guint64, pub high: guint64, pub max_edge: guint64, } #[test] fn bindgen_test_layout__wmem_range_t() { const UNINIT: ::std::mem::MaybeUninit<_wmem_range_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wmem_range_t>(), 24usize, concat!("Size of: ", stringify!(_wmem_range_t)) ); assert_eq!( ::std::mem::align_of::<_wmem_range_t>(), 8usize, concat!("Alignment of ", stringify!(_wmem_range_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).low) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_wmem_range_t), "::", stringify!(low) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).high) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_wmem_range_t), "::", stringify!(high) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).max_edge) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_wmem_range_t), "::", stringify!(max_edge) ) ); } extern "C" { pub fn wmem_itree_new(allocator: *mut wmem_allocator_t) -> *mut wmem_itree_t; } extern "C" { pub fn wmem_itree_is_empty(tree: *mut wmem_itree_t) -> gboolean; } extern "C" { pub fn wmem_itree_insert( tree: *mut wmem_itree_t, low: guint64, high: guint64, data: *mut ::std::os::raw::c_void, ); } extern "C" { pub fn wmem_itree_find_intervals( tree: *mut wmem_itree_t, allocator: *mut wmem_allocator_t, low: guint64, high: guint64, ) -> *mut wmem_list_t; } extern "C" { pub fn wmem_print_itree(tree: *mut wmem_itree_t); } pub const _wmem_cb_event_t_WMEM_CB_FREE_EVENT: _wmem_cb_event_t = 0; pub const _wmem_cb_event_t_WMEM_CB_DESTROY_EVENT: _wmem_cb_event_t = 1; pub type _wmem_cb_event_t = ::std::os::raw::c_uint; pub use self::_wmem_cb_event_t as wmem_cb_event_t; pub type wmem_user_cb_t = ::std::option::Option< unsafe extern "C" fn( arg1: *mut wmem_allocator_t, arg2: wmem_cb_event_t, arg3: *mut ::std::os::raw::c_void, ) -> gboolean, >; extern "C" { pub fn wmem_register_callback( allocator: *mut wmem_allocator_t, callback: wmem_user_cb_t, user_data: *mut ::std::os::raw::c_void, ) -> guint; } extern "C" { pub fn wmem_unregister_callback(allocator: *mut wmem_allocator_t, id: guint); } pub type ws_in4_addr = guint32; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct e_in6_addr { pub bytes: [guint8; 16usize], } #[test] fn bindgen_test_layout_e_in6_addr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(e_in6_addr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(e_in6_addr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(e_in6_addr), "::", stringify!(bytes) ) ); } pub type ws_in6_addr = e_in6_addr; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ws_ip6_hdr { pub ip6h_vc_flow: guint32, pub ip6h_plen: guint16, pub ip6h_nxt: guint8, pub ip6h_hlim: guint8, pub ip6h_src: ws_in6_addr, pub ip6h_dst: ws_in6_addr, } #[test] fn bindgen_test_layout_ws_ip6_hdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(ws_ip6_hdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ws_ip6_hdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_vc_flow) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_vc_flow) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_plen) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_plen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_nxt) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_hlim) as usize - ptr as usize }, 7usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_hlim) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_src) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_src) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6h_dst) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(ws_ip6_hdr), "::", stringify!(ip6h_dst) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ip6_ext { pub ip6e_nxt: guchar, pub ip6e_len: guchar, } #[test] fn bindgen_test_layout_ip6_ext() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 2usize, concat!("Size of: ", stringify!(ip6_ext)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(ip6_ext)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6e_nxt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ip6_ext), "::", stringify!(ip6e_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6e_len) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ip6_ext), "::", stringify!(ip6e_len) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ip6_rthdr { pub ip6r_nxt: guint8, pub ip6r_len: guint8, pub ip6r_type: guint8, pub ip6r_segleft: guint8, } #[test] fn bindgen_test_layout_ip6_rthdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(ip6_rthdr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(ip6_rthdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r_nxt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ip6_rthdr), "::", stringify!(ip6r_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r_len) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ip6_rthdr), "::", stringify!(ip6r_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r_type) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ip6_rthdr), "::", stringify!(ip6r_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r_segleft) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(ip6_rthdr), "::", stringify!(ip6r_segleft) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ip6_rthdr0 { pub ip6r0_nxt: guint8, pub ip6r0_len: guint8, pub ip6r0_type: guint8, pub ip6r0_segleft: guint8, pub ip6r0_reserved: guint8, pub ip6r0_slmap: [guint8; 3usize], pub ip6r0_addr: [ws_in6_addr; 1usize], } #[test] fn bindgen_test_layout_ip6_rthdr0() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(ip6_rthdr0)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(ip6_rthdr0)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_nxt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_len) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_type) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_segleft) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_segleft) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_reserved) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_reserved) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_slmap) as usize - ptr as usize }, 5usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_slmap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6r0_addr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ip6_rthdr0), "::", stringify!(ip6r0_addr) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ip6_frag { pub ip6f_nxt: guint8, pub ip6f_reserved: guint8, pub ip6f_offlg: guint16, pub ip6f_ident: guint32, } #[test] fn bindgen_test_layout_ip6_frag() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(ip6_frag)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ip6_frag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6f_nxt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ip6_frag), "::", stringify!(ip6f_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6f_reserved) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ip6_frag), "::", stringify!(ip6f_reserved) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6f_offlg) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ip6_frag), "::", stringify!(ip6f_offlg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6f_ident) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ip6_frag), "::", stringify!(ip6f_ident) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_block { _unused: [u8; 0], } pub type wtap_block_t = *mut wtap_block; pub const wtap_block_type_t_WTAP_BLOCK_SECTION: wtap_block_type_t = 0; pub const wtap_block_type_t_WTAP_BLOCK_IF_ID_AND_INFO: wtap_block_type_t = 1; pub const wtap_block_type_t_WTAP_BLOCK_NAME_RESOLUTION: wtap_block_type_t = 2; pub const wtap_block_type_t_WTAP_BLOCK_IF_STATISTICS: wtap_block_type_t = 3; pub const wtap_block_type_t_WTAP_BLOCK_DECRYPTION_SECRETS: wtap_block_type_t = 4; pub const wtap_block_type_t_WTAP_BLOCK_PACKET: wtap_block_type_t = 5; pub const wtap_block_type_t_WTAP_BLOCK_FT_SPECIFIC_REPORT: wtap_block_type_t = 6; pub const wtap_block_type_t_WTAP_BLOCK_FT_SPECIFIC_EVENT: wtap_block_type_t = 7; pub const wtap_block_type_t_WTAP_BLOCK_SYSDIG_EVENT: wtap_block_type_t = 8; pub const wtap_block_type_t_WTAP_BLOCK_SYSTEMD_JOURNAL_EXPORT: wtap_block_type_t = 9; pub const wtap_block_type_t_WTAP_BLOCK_CUSTOM: wtap_block_type_t = 10; pub const wtap_block_type_t_MAX_WTAP_BLOCK_TYPE_VALUE: wtap_block_type_t = 11; pub type wtap_block_type_t = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_section_mandatory_s { pub section_length: guint64, } #[test] fn bindgen_test_layout_wtapng_section_mandatory_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(wtapng_section_mandatory_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtapng_section_mandatory_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).section_length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_section_mandatory_s), "::", stringify!(section_length) ) ); } pub type wtapng_section_mandatory_t = wtapng_section_mandatory_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_iface_descriptions_s { pub interface_data: *mut GArray, } #[test] fn bindgen_test_layout_wtapng_iface_descriptions_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(wtapng_iface_descriptions_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtapng_iface_descriptions_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).interface_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_iface_descriptions_s), "::", stringify!(interface_data) ) ); } pub type wtapng_iface_descriptions_t = wtapng_iface_descriptions_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_if_descr_mandatory_s { pub wtap_encap: ::std::os::raw::c_int, pub time_units_per_second: guint64, pub tsprecision: ::std::os::raw::c_int, pub snap_len: guint32, pub num_stat_entries: guint8, pub interface_statistics: *mut GArray, } #[test] fn bindgen_test_layout_wtapng_if_descr_mandatory_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(wtapng_if_descr_mandatory_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtapng_if_descr_mandatory_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wtap_encap) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(wtap_encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).time_units_per_second) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(time_units_per_second) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tsprecision) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(tsprecision) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).snap_len) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(snap_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_stat_entries) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(num_stat_entries) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).interface_statistics) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(wtapng_if_descr_mandatory_s), "::", stringify!(interface_statistics) ) ); } pub type wtapng_if_descr_mandatory_t = wtapng_if_descr_mandatory_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_if_stats_mandatory_s { pub interface_id: guint32, pub ts_high: guint32, pub ts_low: guint32, } #[test] fn bindgen_test_layout_wtapng_if_stats_mandatory_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, concat!("Size of: ", stringify!(wtapng_if_stats_mandatory_s)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(wtapng_if_stats_mandatory_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).interface_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_if_stats_mandatory_s), "::", stringify!(interface_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ts_high) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtapng_if_stats_mandatory_s), "::", stringify!(ts_high) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ts_low) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtapng_if_stats_mandatory_s), "::", stringify!(ts_low) ) ); } pub type wtapng_if_stats_mandatory_t = wtapng_if_stats_mandatory_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_dsb_mandatory_s { pub secrets_type: guint32, pub secrets_len: guint32, pub secrets_data: *mut guint8, } #[test] fn bindgen_test_layout_wtapng_dsb_mandatory_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(wtapng_dsb_mandatory_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtapng_dsb_mandatory_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).secrets_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_dsb_mandatory_s), "::", stringify!(secrets_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).secrets_len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtapng_dsb_mandatory_s), "::", stringify!(secrets_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).secrets_data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtapng_dsb_mandatory_s), "::", stringify!(secrets_data) ) ); } pub type wtapng_dsb_mandatory_t = wtapng_dsb_mandatory_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtapng_ft_specific_mandatory_s { pub record_type: guint, } #[test] fn bindgen_test_layout_wtapng_ft_specific_mandatory_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(wtapng_ft_specific_mandatory_s)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(wtapng_ft_specific_mandatory_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).record_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtapng_ft_specific_mandatory_s), "::", stringify!(record_type) ) ); } pub type wtapng_ft_specific_mandatory_t = wtapng_ft_specific_mandatory_s; pub const wtap_opttype_e_WTAP_OPTTYPE_UINT8: wtap_opttype_e = 0; pub const wtap_opttype_e_WTAP_OPTTYPE_UINT32: wtap_opttype_e = 1; pub const wtap_opttype_e_WTAP_OPTTYPE_UINT64: wtap_opttype_e = 2; pub const wtap_opttype_e_WTAP_OPTTYPE_STRING: wtap_opttype_e = 3; pub const wtap_opttype_e_WTAP_OPTTYPE_BYTES: wtap_opttype_e = 4; pub const wtap_opttype_e_WTAP_OPTTYPE_IPv4: wtap_opttype_e = 5; pub const wtap_opttype_e_WTAP_OPTTYPE_IPv6: wtap_opttype_e = 6; pub const wtap_opttype_e_WTAP_OPTTYPE_CUSTOM: wtap_opttype_e = 7; pub const wtap_opttype_e_WTAP_OPTTYPE_IF_FILTER: wtap_opttype_e = 8; pub const wtap_opttype_e_WTAP_OPTTYPE_PACKET_VERDICT: wtap_opttype_e = 9; pub type wtap_opttype_e = ::std::os::raw::c_uint; pub const wtap_opttype_return_val_WTAP_OPTTYPE_SUCCESS: wtap_opttype_return_val = 0; pub const wtap_opttype_return_val_WTAP_OPTTYPE_NO_SUCH_OPTION: wtap_opttype_return_val = -1; pub const wtap_opttype_return_val_WTAP_OPTTYPE_NOT_FOUND: wtap_opttype_return_val = -2; pub const wtap_opttype_return_val_WTAP_OPTTYPE_TYPE_MISMATCH: wtap_opttype_return_val = -3; pub const wtap_opttype_return_val_WTAP_OPTTYPE_NUMBER_MISMATCH: wtap_opttype_return_val = -4; pub const wtap_opttype_return_val_WTAP_OPTTYPE_ALREADY_EXISTS: wtap_opttype_return_val = -5; pub const wtap_opttype_return_val_WTAP_OPTTYPE_BAD_BLOCK: wtap_opttype_return_val = -6; pub type wtap_opttype_return_val = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub struct custom_opt_s { pub pen: guint32, pub data: custom_opt_s__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union custom_opt_s__bindgen_ty_1 { pub generic_data: custom_opt_s__bindgen_ty_1_generic_custom_opt_data, pub nflx_data: custom_opt_s__bindgen_ty_1_nflx_custom_opt_data, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct custom_opt_s__bindgen_ty_1_generic_custom_opt_data { pub custom_data_len: gsize, pub custom_data: *mut gchar, } #[test] fn bindgen_test_layout_custom_opt_s__bindgen_ty_1_generic_custom_opt_data() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(custom_opt_s__bindgen_ty_1_generic_custom_opt_data) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(custom_opt_s__bindgen_ty_1_generic_custom_opt_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_data_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_generic_custom_opt_data), "::", stringify!(custom_data_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_generic_custom_opt_data), "::", stringify!(custom_data) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct custom_opt_s__bindgen_ty_1_nflx_custom_opt_data { pub type_: guint32, pub custom_data_len: gsize, pub custom_data: *mut gchar, pub use_little_endian: gboolean, } #[test] fn bindgen_test_layout_custom_opt_s__bindgen_ty_1_nflx_custom_opt_data() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!( "Size of: ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_data_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data), "::", stringify!(custom_data_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data), "::", stringify!(custom_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).use_little_endian) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1_nflx_custom_opt_data), "::", stringify!(use_little_endian) ) ); } #[test] fn bindgen_test_layout_custom_opt_s__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(custom_opt_s__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(custom_opt_s__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).generic_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1), "::", stringify!(generic_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(custom_opt_s__bindgen_ty_1), "::", stringify!(nflx_data) ) ); } #[test] fn bindgen_test_layout_custom_opt_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(custom_opt_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(custom_opt_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pen) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(custom_opt_s), "::", stringify!(pen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(custom_opt_s), "::", stringify!(data) ) ); } pub type custom_opt_t = custom_opt_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nflx_custom_opt_s { pub nflx_use_little_endian: gboolean, pub nflx_type: guint32, pub nflx_custom_data_len: gsize, pub nflx_custom_data: *mut gchar, } #[test] fn bindgen_test_layout_nflx_custom_opt_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(nflx_custom_opt_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(nflx_custom_opt_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_use_little_endian) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nflx_custom_opt_s), "::", stringify!(nflx_use_little_endian) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_type) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(nflx_custom_opt_s), "::", stringify!(nflx_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_custom_data_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nflx_custom_opt_s), "::", stringify!(nflx_custom_data_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_custom_data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(nflx_custom_opt_s), "::", stringify!(nflx_custom_data) ) ); } pub type nflx_custom_opt_t = nflx_custom_opt_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_bpf_insn_s { pub code: guint16, pub jt: guint8, pub jf: guint8, pub k: guint32, } #[test] fn bindgen_test_layout_wtap_bpf_insn_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(wtap_bpf_insn_s)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(wtap_bpf_insn_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).code) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_bpf_insn_s), "::", stringify!(code) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).jt) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(wtap_bpf_insn_s), "::", stringify!(jt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).jf) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(wtap_bpf_insn_s), "::", stringify!(jf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).k) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_bpf_insn_s), "::", stringify!(k) ) ); } pub type wtap_bpf_insn_t = wtap_bpf_insn_s; pub const if_filter_type_e_if_filter_pcap: if_filter_type_e = 0; pub const if_filter_type_e_if_filter_bpf: if_filter_type_e = 1; pub type if_filter_type_e = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct if_filter_opt_s { pub type_: if_filter_type_e, pub data: if_filter_opt_s__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union if_filter_opt_s__bindgen_ty_1 { pub filter_str: *mut gchar, pub bpf_prog: if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns { pub bpf_prog_len: guint, pub bpf_prog: *mut wtap_bpf_insn_t, } #[test] fn bindgen_test_layout_if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!( "Size of: ", stringify!(if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns) ) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bpf_prog_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns), "::", stringify!(bpf_prog_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bpf_prog) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s__bindgen_ty_1_wtap_bpf_insns), "::", stringify!(bpf_prog) ) ); } #[test] fn bindgen_test_layout_if_filter_opt_s__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(if_filter_opt_s__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(if_filter_opt_s__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).filter_str) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s__bindgen_ty_1), "::", stringify!(filter_str) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bpf_prog) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s__bindgen_ty_1), "::", stringify!(bpf_prog) ) ); } #[test] fn bindgen_test_layout_if_filter_opt_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(if_filter_opt_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(if_filter_opt_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(if_filter_opt_s), "::", stringify!(data) ) ); } pub type if_filter_opt_t = if_filter_opt_s; pub const packet_verdict_type_e_packet_verdict_hardware: packet_verdict_type_e = 0; pub const packet_verdict_type_e_packet_verdict_linux_ebpf_tc: packet_verdict_type_e = 1; pub const packet_verdict_type_e_packet_verdict_linux_ebpf_xdp: packet_verdict_type_e = 2; pub type packet_verdict_type_e = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct packet_verdict_opt_s { pub type_: packet_verdict_type_e, pub data: packet_verdict_opt_s__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union packet_verdict_opt_s__bindgen_ty_1 { pub verdict_bytes: *mut GByteArray, pub verdict_linux_ebpf_tc: guint64, pub verdict_linux_ebpf_xdp: guint64, } #[test] fn bindgen_test_layout_packet_verdict_opt_s__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(packet_verdict_opt_s__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(packet_verdict_opt_s__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).verdict_bytes) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(packet_verdict_opt_s__bindgen_ty_1), "::", stringify!(verdict_bytes) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).verdict_linux_ebpf_tc) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(packet_verdict_opt_s__bindgen_ty_1), "::", stringify!(verdict_linux_ebpf_tc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).verdict_linux_ebpf_xdp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(packet_verdict_opt_s__bindgen_ty_1), "::", stringify!(verdict_linux_ebpf_xdp) ) ); } #[test] fn bindgen_test_layout_packet_verdict_opt_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(packet_verdict_opt_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(packet_verdict_opt_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(packet_verdict_opt_s), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(packet_verdict_opt_s), "::", stringify!(data) ) ); } pub type packet_verdict_opt_t = packet_verdict_opt_s; #[repr(C)] #[derive(Copy, Clone)] pub union wtap_optval_t { pub uint8val: guint8, pub uint32val: guint32, pub uint64val: guint64, pub ipv4val: ws_in4_addr, pub ipv6val: ws_in6_addr, pub stringval: *mut ::std::os::raw::c_char, pub byteval: *mut GBytes, pub custom_opt: custom_opt_t, pub if_filterval: if_filter_opt_t, pub packet_verdictval: packet_verdict_opt_t, } #[test] fn bindgen_test_layout_wtap_optval_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(wtap_optval_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_optval_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uint8val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(uint8val) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uint32val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(uint32val) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uint64val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(uint64val) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv4val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(ipv4val) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv6val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(ipv6val) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).stringval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(stringval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).byteval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(byteval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_opt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(custom_opt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).if_filterval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(if_filterval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).packet_verdictval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_optval_t), "::", stringify!(packet_verdictval) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct wtap_option_t { pub option_id: guint, pub value: wtap_optval_t, } #[test] fn bindgen_test_layout_wtap_option_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(wtap_option_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_option_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).option_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_option_t), "::", stringify!(option_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_option_t), "::", stringify!(value) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nflx_dumpinfo { pub tlh_version: guint32, pub tlh_type: guint32, pub tlh_length: guint64, pub tlh_ie_fport: guint16, pub tlh_ie_lport: guint16, pub tlh_ie_faddr_addr32: [guint32; 4usize], pub tlh_ie_laddr_addr32: [guint32; 4usize], pub tlh_ie_zoneid: guint32, pub tlh_offset_tv_sec: guint64, pub tlh_offset_tv_usec: guint64, pub tlh_id: [::std::os::raw::c_char; 64usize], pub tlh_reason: [::std::os::raw::c_char; 32usize], pub tlh_tag: [::std::os::raw::c_char; 32usize], pub tlh_af: guint8, pub _pad: [guint8; 7usize], } #[test] fn bindgen_test_layout_nflx_dumpinfo() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 208usize, concat!("Size of: ", stringify!(nflx_dumpinfo)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(nflx_dumpinfo)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_version) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_type) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_ie_fport) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_ie_fport) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_ie_lport) as usize - ptr as usize }, 18usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_ie_lport) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_ie_faddr_addr32) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_ie_faddr_addr32) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_ie_laddr_addr32) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_ie_laddr_addr32) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_ie_zoneid) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_ie_zoneid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_offset_tv_sec) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_offset_tv_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_offset_tv_usec) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_offset_tv_usec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_id) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_reason) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_reason) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_tag) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_tag) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlh_af) as usize - ptr as usize }, 200usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(tlh_af) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 201usize, concat!( "Offset of field: ", stringify!(nflx_dumpinfo), "::", stringify!(_pad) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nflx_tcpinfo { pub tlb_tv_sec: guint64, pub tlb_tv_usec: guint64, pub tlb_ticks: guint32, pub tlb_sn: guint32, pub tlb_stackid: guint8, pub tlb_eventid: guint8, pub tlb_eventflags: guint16, pub tlb_errno: gint32, pub tlb_rxbuf_tls_sb_acc: guint32, pub tlb_rxbuf_tls_sb_ccc: guint32, pub tlb_rxbuf_tls_sb_spare: guint32, pub tlb_txbuf_tls_sb_acc: guint32, pub tlb_txbuf_tls_sb_ccc: guint32, pub tlb_txbuf_tls_sb_spare: guint32, pub tlb_state: gint32, pub tlb_starttime: guint32, pub tlb_iss: guint32, pub tlb_flags: guint32, pub tlb_snd_una: guint32, pub tlb_snd_max: guint32, pub tlb_snd_cwnd: guint32, pub tlb_snd_nxt: guint32, pub tlb_snd_recover: guint32, pub tlb_snd_wnd: guint32, pub tlb_snd_ssthresh: guint32, pub tlb_srtt: guint32, pub tlb_rttvar: guint32, pub tlb_rcv_up: guint32, pub tlb_rcv_adv: guint32, pub tlb_flags2: guint32, pub tlb_rcv_nxt: guint32, pub tlb_rcv_wnd: guint32, pub tlb_dupacks: guint32, pub tlb_segqlen: gint32, pub tlb_snd_numholes: gint32, pub tlb_flex1: guint32, pub tlb_flex2: guint32, pub tlb_fbyte_in: guint32, pub tlb_fbyte_out: guint32, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub _pad: [guint8; 3usize], pub tlb_stackinfo_bbr_cur_del_rate: guint64, pub tlb_stackinfo_bbr_delRate: guint64, pub tlb_stackinfo_bbr_rttProp: guint64, pub tlb_stackinfo_bbr_bw_inuse: guint64, pub tlb_stackinfo_bbr_inflight: guint32, pub tlb_stackinfo_bbr_applimited: guint32, pub tlb_stackinfo_bbr_delivered: guint32, pub tlb_stackinfo_bbr_timeStamp: guint32, pub tlb_stackinfo_bbr_epoch: guint32, pub tlb_stackinfo_bbr_lt_epoch: guint32, pub tlb_stackinfo_bbr_pkts_out: guint32, pub tlb_stackinfo_bbr_flex1: guint32, pub tlb_stackinfo_bbr_flex2: guint32, pub tlb_stackinfo_bbr_flex3: guint32, pub tlb_stackinfo_bbr_flex4: guint32, pub tlb_stackinfo_bbr_flex5: guint32, pub tlb_stackinfo_bbr_flex6: guint32, pub tlb_stackinfo_bbr_lost: guint32, pub tlb_stackinfo_bbr_pacing_gain: guint16, pub tlb_stackinfo_bbr_cwnd_gain: guint16, pub tlb_stackinfo_bbr_flex7: guint16, pub tlb_stackinfo_bbr_bbr_state: guint8, pub tlb_stackinfo_bbr_bbr_substate: guint8, pub tlb_stackinfo_bbr_inhpts: guint8, pub tlb_stackinfo_bbr_ininput: guint8, pub tlb_stackinfo_bbr_use_lt_bw: guint8, pub tlb_stackinfo_bbr_flex8: guint8, pub tlb_stackinfo_bbr_pkt_epoch: guint32, pub tlb_len: guint32, } #[test] fn bindgen_test_layout_nflx_tcpinfo() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 272usize, concat!("Size of: ", stringify!(nflx_tcpinfo)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(nflx_tcpinfo)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_tv_sec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_tv_usec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_ticks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_ticks) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_sn) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_sn) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_eventid) as usize - ptr as usize }, 25usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_eventid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_eventflags) as usize - ptr as usize }, 26usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_eventflags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_errno) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_errno) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rxbuf_tls_sb_acc) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rxbuf_tls_sb_acc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rxbuf_tls_sb_ccc) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rxbuf_tls_sb_ccc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rxbuf_tls_sb_spare) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rxbuf_tls_sb_spare) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_txbuf_tls_sb_acc) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_txbuf_tls_sb_acc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_txbuf_tls_sb_ccc) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_txbuf_tls_sb_ccc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_txbuf_tls_sb_spare) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_txbuf_tls_sb_spare) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_state) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_state) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_starttime) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_starttime) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_iss) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_iss) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_flags) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_una) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_una) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_max) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_max) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_cwnd) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_cwnd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_nxt) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_recover) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_recover) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_wnd) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_wnd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_ssthresh) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_ssthresh) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_srtt) as usize - ptr as usize }, 100usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_srtt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rttvar) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rttvar) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rcv_up) as usize - ptr as usize }, 108usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rcv_up) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rcv_adv) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rcv_adv) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_flags2) as usize - ptr as usize }, 116usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_flags2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rcv_nxt) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rcv_nxt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_rcv_wnd) as usize - ptr as usize }, 124usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_rcv_wnd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_dupacks) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_dupacks) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_segqlen) as usize - ptr as usize }, 132usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_segqlen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_snd_numholes) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_snd_numholes) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_flex1) as usize - ptr as usize }, 140usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_flex1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_flex2) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_flex2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_fbyte_in) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_fbyte_in) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_fbyte_out) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_fbyte_out) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 157usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(_pad) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_cur_del_rate) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_cur_del_rate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_delRate) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_delRate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_rttProp) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_rttProp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_bw_inuse) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_bw_inuse) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_inflight) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_inflight) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_applimited) as usize - ptr as usize }, 196usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_applimited) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_delivered) as usize - ptr as usize }, 200usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_delivered) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_timeStamp) as usize - ptr as usize }, 204usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_timeStamp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_epoch) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_epoch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_lt_epoch) as usize - ptr as usize }, 212usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_lt_epoch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_pkts_out) as usize - ptr as usize }, 216usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_pkts_out) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex1) as usize - ptr as usize }, 220usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex2) as usize - ptr as usize }, 224usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex3) as usize - ptr as usize }, 228usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex4) as usize - ptr as usize }, 232usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex4) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex5) as usize - ptr as usize }, 236usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex5) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex6) as usize - ptr as usize }, 240usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex6) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_lost) as usize - ptr as usize }, 244usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_lost) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_pacing_gain) as usize - ptr as usize }, 248usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_pacing_gain) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_cwnd_gain) as usize - ptr as usize }, 250usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_cwnd_gain) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex7) as usize - ptr as usize }, 252usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex7) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_bbr_state) as usize - ptr as usize }, 254usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_bbr_state) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_bbr_substate) as usize - ptr as usize }, 255usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_bbr_substate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_inhpts) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_inhpts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_ininput) as usize - ptr as usize }, 257usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_ininput) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_use_lt_bw) as usize - ptr as usize }, 258usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_use_lt_bw) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_flex8) as usize - ptr as usize }, 259usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_flex8) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_stackinfo_bbr_pkt_epoch) as usize - ptr as usize }, 260usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_stackinfo_bbr_pkt_epoch) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tlb_len) as usize - ptr as usize }, 264usize, concat!( "Offset of field: ", stringify!(nflx_tcpinfo), "::", stringify!(tlb_len) ) ); } impl nflx_tcpinfo { #[inline] pub fn tlb_snd_scale(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } } #[inline] pub fn set_tlb_snd_scale(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 4u8, val as u64) } } #[inline] pub fn tlb_rcv_scale(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } } #[inline] pub fn set_tlb_rcv_scale(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 4u8, val as u64) } } #[inline] pub fn new_bitfield_1( tlb_snd_scale: guint8, tlb_rcv_scale: guint8, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 4u8, { let tlb_snd_scale: u8 = unsafe { ::std::mem::transmute(tlb_snd_scale) }; tlb_snd_scale as u64 }); __bindgen_bitfield_unit.set(4usize, 4u8, { let tlb_rcv_scale: u8 = unsafe { ::std::mem::transmute(tlb_rcv_scale) }; tlb_rcv_scale as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_dumper { _unused: [u8; 0], } pub type wtap_block_create_func = ::std::option::Option; pub type wtap_mand_free_func = ::std::option::Option; pub type wtap_mand_copy_func = ::std::option::Option; extern "C" { pub fn wtap_opttypes_initialize(); } extern "C" { pub fn wtap_block_create(block_type: wtap_block_type_t) -> wtap_block_t; } extern "C" { pub fn wtap_block_ref(block: wtap_block_t) -> wtap_block_t; } extern "C" { pub fn wtap_block_unref(block: wtap_block_t); } extern "C" { pub fn wtap_block_array_free(block_array: *mut GArray); } extern "C" { pub fn wtap_block_get_type(block: wtap_block_t) -> wtap_block_type_t; } extern "C" { pub fn wtap_block_get_mandatory_data(block: wtap_block_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn wtap_block_count_option(block: wtap_block_t, option_id: guint) -> guint; } extern "C" { pub fn wtap_block_add_uint8_option( block: wtap_block_t, option_id: guint, value: guint8, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_uint8_option_value( block: wtap_block_t, option_id: guint, value: guint8, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_uint8_option_value( block: wtap_block_t, option_id: guint, value: *mut guint8, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_uint32_option( block: wtap_block_t, option_id: guint, value: guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_uint32_option_value( block: wtap_block_t, option_id: guint, value: guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_uint32_option_value( block: wtap_block_t, option_id: guint, value: *mut guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_uint64_option( block: wtap_block_t, option_id: guint, value: guint64, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_uint64_option_value( block: wtap_block_t, option_id: guint, value: guint64, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_uint64_option_value( block: wtap_block_t, option_id: guint, value: *mut guint64, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_ipv4_option( block: wtap_block_t, option_id: guint, value: guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_ipv4_option_value( block: wtap_block_t, option_id: guint, value: guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_ipv4_option_value( block: wtap_block_t, option_id: guint, value: *mut guint32, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_ipv6_option( block: wtap_block_t, option_id: guint, value: *mut ws_in6_addr, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_ipv6_option_value( block: wtap_block_t, option_id: guint, value: *mut ws_in6_addr, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_ipv6_option_value( block: wtap_block_t, option_id: guint, value: *mut ws_in6_addr, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_string_option( block: wtap_block_t, option_id: guint, value: *const ::std::os::raw::c_char, value_length: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_string_option_format( block: wtap_block_t, option_id: guint, format: *const ::std::os::raw::c_char, ... ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_string_option_value( block: wtap_block_t, option_id: guint, value: *const ::std::os::raw::c_char, value_length: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_nth_string_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *const ::std::os::raw::c_char, value_length: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_string_option_value_format( block: wtap_block_t, option_id: guint, format: *const ::std::os::raw::c_char, ... ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_nth_string_option_value_format( block: wtap_block_t, option_id: guint, idx: guint, format: *const ::std::os::raw::c_char, ... ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_string_option_value( block: wtap_block_t, option_id: guint, value: *mut *mut ::std::os::raw::c_char, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_nth_string_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *mut *mut ::std::os::raw::c_char, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_bytes_option( block: wtap_block_t, option_id: guint, value: *const guint8, value_length: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_bytes_option_borrow( block: wtap_block_t, option_id: guint, value: *mut GBytes, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_bytes_option_value( block: wtap_block_t, option_id: guint, value: *const guint8, value_length: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_nth_bytes_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *mut GBytes, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_bytes_option_value( block: wtap_block_t, option_id: guint, value: *mut *mut GBytes, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_nth_bytes_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *mut *mut GBytes, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_nflx_custom_option( block: wtap_block_t, nflx_type: guint32, nflx_custom_data: *const ::std::os::raw::c_char, nflx_custom_data_len: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_nflx_custom_option( block: wtap_block_t, nflx_type: guint32, nflx_custom_data: *mut ::std::os::raw::c_char, nflx_custom_data_len: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_custom_option( block: wtap_block_t, option_id: guint, pen: guint32, custom_data: *const ::std::os::raw::c_char, custom_data_len: gsize, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_if_filter_option( block: wtap_block_t, option_id: guint, value: *mut if_filter_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_if_filter_option_value( block: wtap_block_t, option_id: guint, value: *mut if_filter_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_if_filter_option_value( block: wtap_block_t, option_id: guint, value: *mut if_filter_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_add_packet_verdict_option( block: wtap_block_t, option_id: guint, value: *mut packet_verdict_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_set_nth_packet_verdict_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *mut packet_verdict_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_get_nth_packet_verdict_option_value( block: wtap_block_t, option_id: guint, idx: guint, value: *mut packet_verdict_opt_t, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_packet_verdict_free(verdict: *mut packet_verdict_opt_t); } extern "C" { pub fn wtap_block_remove_option( block: wtap_block_t, option_id: guint, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_remove_nth_option_instance( block: wtap_block_t, option_id: guint, idx: guint, ) -> wtap_opttype_return_val; } extern "C" { pub fn wtap_block_copy(dest_block: wtap_block_t, src_block: wtap_block_t); } extern "C" { pub fn wtap_block_make_copy(block: wtap_block_t) -> wtap_block_t; } pub type wtap_block_foreach_func = ::std::option::Option< unsafe extern "C" fn( block: wtap_block_t, option_id: guint, option_type: wtap_opttype_e, option: *mut wtap_optval_t, user_data: *mut ::std::os::raw::c_void, ) -> gboolean, >; extern "C" { pub fn wtap_block_foreach_option( block: wtap_block_t, func: wtap_block_foreach_func, user_data: *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn wtap_opttypes_cleanup(); } extern "C" { pub fn wmem_epan_scope() -> *mut wmem_allocator_t; } extern "C" { pub fn wmem_packet_scope() -> *mut wmem_allocator_t; } extern "C" { pub fn wmem_file_scope() -> *mut wmem_allocator_t; } extern "C" { pub fn wmem_init_scopes(); } extern "C" { pub fn wmem_cleanup_scopes(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ipv4_addr_and_mask { pub addr: guint32, pub nmask: guint32, } #[test] fn bindgen_test_layout_ipv4_addr_and_mask() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(ipv4_addr_and_mask)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ipv4_addr_and_mask)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ipv4_addr_and_mask), "::", stringify!(addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nmask) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ipv4_addr_and_mask), "::", stringify!(nmask) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nstime_t { pub secs: time_t, pub nsecs: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_nstime_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(nstime_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(nstime_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).secs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nstime_t), "::", stringify!(secs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nsecs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nstime_t), "::", stringify!(nsecs) ) ); } extern "C" { pub fn nstime_set_zero(nstime: *mut nstime_t); } extern "C" { pub fn nstime_is_zero(nstime: *const nstime_t) -> gboolean; } extern "C" { pub fn nstime_set_unset(nstime: *mut nstime_t); } extern "C" { pub fn nstime_is_unset(nstime: *const nstime_t) -> gboolean; } extern "C" { pub fn nstime_copy(a: *mut nstime_t, b: *const nstime_t); } extern "C" { pub fn nstime_delta(delta: *mut nstime_t, b: *const nstime_t, a: *const nstime_t); } extern "C" { pub fn nstime_sum(sum: *mut nstime_t, a: *const nstime_t, b: *const nstime_t); } extern "C" { pub fn nstime_cmp(a: *const nstime_t, b: *const nstime_t) -> ::std::os::raw::c_int; } extern "C" { pub fn nstime_to_msec(nstime: *const nstime_t) -> f64; } extern "C" { pub fn nstime_to_sec(nstime: *const nstime_t) -> f64; } extern "C" { pub fn filetime_to_nstime(nstime: *mut nstime_t, filetime: guint64) -> gboolean; } extern "C" { pub fn nsfiletime_to_nstime(nstime: *mut nstime_t, nsfiletime: guint64) -> gboolean; } pub const iso8601_fmt_e_ISO8601_DATETIME: iso8601_fmt_e = 0; pub const iso8601_fmt_e_ISO8601_DATETIME_BASIC: iso8601_fmt_e = 1; pub const iso8601_fmt_e_ISO8601_DATETIME_AUTO: iso8601_fmt_e = 2; pub type iso8601_fmt_e = ::std::os::raw::c_uint; extern "C" { pub fn iso8601_to_nstime( nstime: *mut nstime_t, ptr: *const ::std::os::raw::c_char, format: iso8601_fmt_e, ) -> guint8; } extern "C" { pub fn unix_epoch_to_nstime( nstime: *mut nstime_t, ptr: *const ::std::os::raw::c_char, ) -> guint8; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _e_guid_t { pub data1: guint32, pub data2: guint16, pub data3: guint16, pub data4: [guint8; 8usize], } #[test] fn bindgen_test_layout__e_guid_t() { const UNINIT: ::std::mem::MaybeUninit<_e_guid_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_e_guid_t>(), 16usize, concat!("Size of: ", stringify!(_e_guid_t)) ); assert_eq!( ::std::mem::align_of::<_e_guid_t>(), 4usize, concat!("Alignment of ", stringify!(_e_guid_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_e_guid_t), "::", stringify!(data1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data2) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_e_guid_t), "::", stringify!(data2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data3) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(_e_guid_t), "::", stringify!(data3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data4) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_e_guid_t), "::", stringify!(data4) ) ); } pub type e_guid_t = _e_guid_t; extern "C" { pub fn guids_init(); } extern "C" { pub fn guids_add_guid(guid: *const e_guid_t, name: *const gchar); } extern "C" { pub fn guids_get_guid_name(guid: *const e_guid_t, scope: *mut wmem_allocator_t) -> *const gchar; } extern "C" { pub fn guids_resolve_guid_to_str( guid: *const e_guid_t, scope: *mut wmem_allocator_t, ) -> *const gchar; } extern "C" { pub fn guid_cmp(g1: *const e_guid_t, g2: *const e_guid_t) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ipv6_addr_and_prefix { pub addr: ws_in6_addr, pub prefix: guint32, } #[test] fn bindgen_test_layout_ipv6_addr_and_prefix() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, concat!("Size of: ", stringify!(ipv6_addr_and_prefix)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ipv6_addr_and_prefix)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ipv6_addr_and_prefix), "::", stringify!(addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prefix) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(ipv6_addr_and_prefix), "::", stringify!(prefix) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ws_mempbrk_pattern { pub patt: [gchar; 256usize], } #[test] fn bindgen_test_layout_ws_mempbrk_pattern() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, concat!("Size of: ", stringify!(ws_mempbrk_pattern)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(ws_mempbrk_pattern)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).patt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ws_mempbrk_pattern), "::", stringify!(patt) ) ); } extern "C" { pub fn ws_mempbrk_compile(pattern: *mut ws_mempbrk_pattern, needles: *const gchar); } extern "C" { pub fn ws_mempbrk_exec( haystack: *const guint8, haystacklen: usize, pattern: *const ws_mempbrk_pattern, found_needle: *mut guchar, ) -> *const guint8; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tvbuff { _unused: [u8; 0], } pub type tvbuff_t = tvbuff; pub type tvbuff_free_cb_t = ::std::option::Option; extern "C" { pub fn tvb_new_octet_aligned( tvb: *mut tvbuff_t, bit_offset: guint32, no_of_bits: gint32, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_octet_right_aligned( tvb: *mut tvbuff_t, bit_offset: guint32, no_of_bits: gint32, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_chain(parent: *mut tvbuff_t, backing: *mut tvbuff_t) -> *mut tvbuff_t; } extern "C" { pub fn tvb_clone(tvb: *mut tvbuff_t) -> *mut tvbuff_t; } extern "C" { pub fn tvb_clone_offset_len(tvb: *mut tvbuff_t, offset: guint, len: guint) -> *mut tvbuff_t; } extern "C" { pub fn tvb_free(tvb: *mut tvbuff_t); } extern "C" { pub fn tvb_free_chain(tvb: *mut tvbuff_t); } extern "C" { pub fn tvb_set_free_cb(tvb: *mut tvbuff_t, func: tvbuff_free_cb_t); } extern "C" { pub fn tvb_set_child_real_data_tvbuff(parent: *mut tvbuff_t, child: *mut tvbuff_t); } extern "C" { pub fn tvb_new_child_real_data( parent: *mut tvbuff_t, data: *const guint8, length: guint, reported_length: gint, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_real_data( data: *const guint8, length: guint, reported_length: gint, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_subset_length_caplen( backing: *mut tvbuff_t, backing_offset: gint, backing_length: gint, reported_length: gint, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_subset_length( backing: *mut tvbuff_t, backing_offset: gint, reported_length: gint, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_new_subset_remaining(backing: *mut tvbuff_t, backing_offset: gint) -> *mut tvbuff_t; } extern "C" { pub fn tvb_composite_append(tvb: *mut tvbuff_t, member: *mut tvbuff_t); } extern "C" { pub fn tvb_composite_prepend(tvb: *mut tvbuff_t, member: *mut tvbuff_t); } extern "C" { pub fn tvb_new_composite() -> *mut tvbuff_t; } extern "C" { pub fn tvb_composite_finalize(tvb: *mut tvbuff_t); } extern "C" { pub fn tvb_captured_length(tvb: *const tvbuff_t) -> guint; } extern "C" { pub fn tvb_captured_length_remaining(tvb: *const tvbuff_t, offset: gint) -> gint; } extern "C" { pub fn tvb_ensure_captured_length_remaining(tvb: *const tvbuff_t, offset: gint) -> guint; } extern "C" { pub fn tvb_bytes_exist(tvb: *const tvbuff_t, offset: gint, length: gint) -> gboolean; } extern "C" { pub fn tvb_ensure_bytes_exist64(tvb: *const tvbuff_t, offset: gint, length: guint64); } extern "C" { pub fn tvb_ensure_bytes_exist(tvb: *const tvbuff_t, offset: gint, length: gint); } extern "C" { pub fn tvb_offset_exists(tvb: *const tvbuff_t, offset: gint) -> gboolean; } extern "C" { pub fn tvb_reported_length(tvb: *const tvbuff_t) -> guint; } extern "C" { pub fn tvb_reported_length_remaining(tvb: *const tvbuff_t, offset: gint) -> gint; } extern "C" { pub fn tvb_ensure_reported_length_remaining(tvb: *const tvbuff_t, offset: gint) -> guint; } extern "C" { pub fn tvb_set_reported_length(tvb: *mut tvbuff_t, arg1: guint); } extern "C" { pub fn tvb_fix_reported_length(tvb: *mut tvbuff_t); } extern "C" { pub fn tvb_offset_from_real_beginning(tvb: *const tvbuff_t) -> guint; } extern "C" { pub fn tvb_raw_offset(tvb: *mut tvbuff_t) -> gint; } extern "C" { pub fn tvb_set_fragment(tvb: *mut tvbuff_t); } extern "C" { pub fn tvb_get_ds_tvb(tvb: *mut tvbuff_t) -> *mut tvbuff; } extern "C" { pub fn tvb_get_guint8(tvb: *mut tvbuff_t, offset: gint) -> guint8; } extern "C" { pub fn tvb_get_gint8(tvb: *mut tvbuff_t, offset: gint) -> gint8; } extern "C" { pub fn tvb_get_ntohs(tvb: *mut tvbuff_t, offset: gint) -> guint16; } extern "C" { pub fn tvb_get_ntohis(tvb: *mut tvbuff_t, offset: gint) -> gint16; } extern "C" { pub fn tvb_get_ntoh24(tvb: *mut tvbuff_t, offset: gint) -> guint32; } extern "C" { pub fn tvb_get_ntohi24(tvb: *mut tvbuff_t, offset: gint) -> gint32; } extern "C" { pub fn tvb_get_ntohl(tvb: *mut tvbuff_t, offset: gint) -> guint32; } extern "C" { pub fn tvb_get_ntohil(tvb: *mut tvbuff_t, offset: gint) -> gint32; } extern "C" { pub fn tvb_get_ntoh40(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_ntohi40(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_ntoh48(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_ntohi48(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_ntoh56(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_ntohi56(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_ntoh64(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_ntohi64(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_ntohieee_float(tvb: *mut tvbuff_t, offset: gint) -> gfloat; } extern "C" { pub fn tvb_get_ntohieee_double(tvb: *mut tvbuff_t, offset: gint) -> gdouble; } extern "C" { pub fn tvb_get_letohs(tvb: *mut tvbuff_t, offset: gint) -> guint16; } extern "C" { pub fn tvb_get_letohis(tvb: *mut tvbuff_t, offset: gint) -> gint16; } extern "C" { pub fn tvb_get_letoh24(tvb: *mut tvbuff_t, offset: gint) -> guint32; } extern "C" { pub fn tvb_get_letohi24(tvb: *mut tvbuff_t, offset: gint) -> gint32; } extern "C" { pub fn tvb_get_letohl(tvb: *mut tvbuff_t, offset: gint) -> guint32; } extern "C" { pub fn tvb_get_letohil(tvb: *mut tvbuff_t, offset: gint) -> gint32; } extern "C" { pub fn tvb_get_letoh40(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_letohi40(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_letoh48(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_letohi48(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_letoh56(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_letohi56(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_letoh64(tvb: *mut tvbuff_t, offset: gint) -> guint64; } extern "C" { pub fn tvb_get_letohi64(tvb: *mut tvbuff_t, offset: gint) -> gint64; } extern "C" { pub fn tvb_get_letohieee_float(tvb: *mut tvbuff_t, offset: gint) -> gfloat; } extern "C" { pub fn tvb_get_letohieee_double(tvb: *mut tvbuff_t, offset: gint) -> gdouble; } extern "C" { pub fn tvb_get_guint16(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint16; } extern "C" { pub fn tvb_get_gint16(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint16; } extern "C" { pub fn tvb_get_guint24(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint32; } extern "C" { pub fn tvb_get_gint24(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint32; } extern "C" { pub fn tvb_get_guint32(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint32; } extern "C" { pub fn tvb_get_gint32(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint32; } extern "C" { pub fn tvb_get_guint40(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint64; } extern "C" { pub fn tvb_get_gint40(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint64; } extern "C" { pub fn tvb_get_guint48(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint64; } extern "C" { pub fn tvb_get_gint48(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint64; } extern "C" { pub fn tvb_get_guint56(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint64; } extern "C" { pub fn tvb_get_gint56(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint64; } extern "C" { pub fn tvb_get_guint64(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> guint64; } extern "C" { pub fn tvb_get_gint64(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gint64; } extern "C" { pub fn tvb_get_ieee_float(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gfloat; } extern "C" { pub fn tvb_get_ieee_double(tvb: *mut tvbuff_t, offset: gint, encoding: guint) -> gdouble; } extern "C" { pub fn tvb_get_string_time( tvb: *mut tvbuff_t, offset: gint, length: gint, encoding: guint, ns: *mut nstime_t, endoff: *mut gint, ) -> *mut nstime_t; } extern "C" { pub fn tvb_get_string_bytes( tvb: *mut tvbuff_t, offset: gint, length: gint, encoding: guint, bytes: *mut GByteArray, endoff: *mut gint, ) -> *mut GByteArray; } extern "C" { pub fn tvb_get_ipv4(tvb: *mut tvbuff_t, offset: gint) -> guint32; } extern "C" { pub fn tvb_get_ipv6(tvb: *mut tvbuff_t, offset: gint, addr: *mut ws_in6_addr); } extern "C" { pub fn tvb_get_ntohguid(tvb: *mut tvbuff_t, offset: gint, guid: *mut e_guid_t); } extern "C" { pub fn tvb_get_letohguid(tvb: *mut tvbuff_t, offset: gint, guid: *mut e_guid_t); } extern "C" { pub fn tvb_get_guid(tvb: *mut tvbuff_t, offset: gint, guid: *mut e_guid_t, encoding: guint); } extern "C" { pub fn tvb_get_bits_array( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: usize, data_length: *mut usize, encoding: guint, ) -> *mut guint8; } extern "C" { pub fn tvb_get_bits8(tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint) -> guint8; } extern "C" { pub fn tvb_get_bits16( tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, encoding: guint, ) -> guint16; } extern "C" { pub fn tvb_get_bits32( tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, encoding: guint, ) -> guint32; } extern "C" { pub fn tvb_get_bits64( tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, encoding: guint, ) -> guint64; } extern "C" { pub fn tvb_get_bits( tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, encoding: guint, ) -> guint32; } extern "C" { pub fn tvb_memcpy( tvb: *mut tvbuff_t, target: *mut ::std::os::raw::c_void, offset: gint, length: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn tvb_memdup( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn tvb_get_ptr(tvb: *mut tvbuff_t, offset: gint, length: gint) -> *const guint8; } extern "C" { pub fn tvb_find_guint8( tvb: *mut tvbuff_t, offset: gint, maxlength: gint, needle: guint8, ) -> gint; } extern "C" { pub fn tvb_find_guint16( tvb: *mut tvbuff_t, offset: gint, maxlength: gint, needle: guint16, ) -> gint; } extern "C" { pub fn tvb_ws_mempbrk_pattern_guint8( tvb: *mut tvbuff_t, offset: gint, maxlength: gint, pattern: *const ws_mempbrk_pattern, found_needle: *mut guchar, ) -> gint; } extern "C" { pub fn tvb_strsize(tvb: *mut tvbuff_t, offset: gint) -> guint; } extern "C" { pub fn tvb_unicode_strsize(tvb: *mut tvbuff_t, offset: gint) -> guint; } extern "C" { pub fn tvb_strnlen(tvb: *mut tvbuff_t, offset: gint, maxlength: guint) -> gint; } extern "C" { pub fn tvb_format_text( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, size: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_format_text_wsp( allocator: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, size: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_format_stringzpad( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, size: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_format_stringzpad_wsp( allocator: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, size: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_get_string_enc( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: gint, encoding: guint, ) -> *mut guint8; } extern "C" { pub fn tvb_get_ts_23_038_7bits_string_packed( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, bit_offset: gint, no_of_chars: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_get_ts_23_038_7bits_string_unpacked( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_get_etsi_ts_102_221_annex_a_string( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_get_ascii_7bits_string( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, bit_offset: gint, no_of_chars: gint, ) -> *mut gchar; } extern "C" { pub fn tvb_get_stringzpad( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, length: gint, encoding: guint, ) -> *mut guint8; } extern "C" { pub fn tvb_get_stringz_enc( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, lengthp: *mut gint, encoding: guint, ) -> *mut guint8; } extern "C" { pub fn tvb_get_const_stringz( tvb: *mut tvbuff_t, offset: gint, lengthp: *mut gint, ) -> *const guint8; } extern "C" { pub fn tvb_get_nstringz( tvb: *mut tvbuff_t, offset: gint, bufsize: guint, buffer: *mut guint8, ) -> gint; } extern "C" { pub fn tvb_get_nstringz0( tvb: *mut tvbuff_t, offset: gint, bufsize: guint, buffer: *mut guint8, ) -> gint; } extern "C" { pub fn tvb_get_raw_bytes_as_string( tvb: *mut tvbuff_t, offset: gint, buffer: *mut ::std::os::raw::c_char, bufsize: usize, ) -> gint; } extern "C" { pub fn tvb_ascii_isprint(tvb: *mut tvbuff_t, offset: gint, length: gint) -> gboolean; } extern "C" { pub fn tvb_utf_8_isprint(tvb: *mut tvbuff_t, offset: gint, length: gint) -> gboolean; } extern "C" { pub fn tvb_find_line_end( tvb: *mut tvbuff_t, offset: gint, len: ::std::os::raw::c_int, next_offset: *mut gint, desegment: gboolean, ) -> gint; } extern "C" { pub fn tvb_find_line_end_unquoted( tvb: *mut tvbuff_t, offset: gint, len: ::std::os::raw::c_int, next_offset: *mut gint, ) -> gint; } extern "C" { pub fn tvb_skip_wsp(tvb: *mut tvbuff_t, offset: gint, maxlength: gint) -> gint; } extern "C" { pub fn tvb_skip_wsp_return(tvb: *mut tvbuff_t, offset: gint) -> gint; } extern "C" { pub fn tvb_skip_guint8( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, maxlength: ::std::os::raw::c_int, ch: guint8, ) -> ::std::os::raw::c_int; } extern "C" { pub fn tvb_get_token_len( tvb: *mut tvbuff_t, offset: gint, len: ::std::os::raw::c_int, next_offset: *mut gint, desegment: gboolean, ) -> ::std::os::raw::c_int; } extern "C" { pub fn tvb_strneql(tvb: *mut tvbuff_t, offset: gint, str_: *const gchar, size: usize) -> gint; } extern "C" { pub fn tvb_strncaseeql( tvb: *mut tvbuff_t, offset: gint, str_: *const gchar, size: usize, ) -> gint; } extern "C" { pub fn tvb_memeql(tvb: *mut tvbuff_t, offset: gint, str_: *const guint8, size: usize) -> gint; } extern "C" { pub fn tvb_bytes_to_str_punct( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, len: gint, punct: gchar, ) -> *mut gchar; } extern "C" { pub fn tvb_bytes_to_str( allocator: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, len: gint, ) -> *mut gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dgt_set_t { pub out: [::std::os::raw::c_uchar; 16usize], } #[test] fn bindgen_test_layout_dgt_set_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(dgt_set_t)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(dgt_set_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).out) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(dgt_set_t), "::", stringify!(out) ) ); } extern "C" { pub fn tvb_bcd_dig_to_str( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, len: gint, dgt: *const dgt_set_t, skip_first: gboolean, ) -> *const gchar; } extern "C" { pub fn tvb_bcd_dig_to_str_be( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, len: gint, dgt: *const dgt_set_t, skip_first: gboolean, ) -> *const gchar; } extern "C" { pub fn tvb_get_bcd_string( scope: *mut wmem_allocator_t, tvb: *mut tvbuff_t, offset: gint, len: gint, dgt: *const dgt_set_t, skip_first: gboolean, odd: gboolean, bigendian: gboolean, ) -> *mut gchar; } extern "C" { pub fn tvb_find_tvb( haystack_tvb: *mut tvbuff_t, needle_tvb: *mut tvbuff_t, haystack_offset: gint, ) -> gint; } extern "C" { pub fn tvb_uncompress( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_child_uncompress( parent: *mut tvbuff_t, tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_uncompress_brotli( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_child_uncompress_brotli( parent: *mut tvbuff_t, tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_uncompress_lz77( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_child_uncompress_lz77( parent: *mut tvbuff_t, tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_uncompress_lz77huff( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_child_uncompress_lz77huff( parent: *mut tvbuff_t, tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_uncompress_lznt1( tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_child_uncompress_lznt1( parent: *mut tvbuff_t, tvb: *mut tvbuff_t, offset: ::std::os::raw::c_int, comprlen: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn base64_to_tvb( parent: *mut tvbuff_t, base64: *const ::std::os::raw::c_char, ) -> *mut tvbuff_t; } extern "C" { pub fn base64_tvb_to_new_tvb( parent: *mut tvbuff_t, offset: ::std::os::raw::c_int, length: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn base64uri_tvb_to_new_tvb( parent: *mut tvbuff_t, offset: ::std::os::raw::c_int, length: ::std::os::raw::c_int, ) -> *mut tvbuff_t; } extern "C" { pub fn tvb_get_varint( tvb: *mut tvbuff_t, offset: guint, maxlen: guint, value: *mut guint64, encoding: guint, ) -> guint; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _value_string { pub value: guint32, pub strptr: *const gchar, } #[test] fn bindgen_test_layout__value_string() { const UNINIT: ::std::mem::MaybeUninit<_value_string> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_value_string>(), 16usize, concat!("Size of: ", stringify!(_value_string)) ); assert_eq!( ::std::mem::align_of::<_value_string>(), 8usize, concat!("Alignment of ", stringify!(_value_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_value_string), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strptr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_value_string), "::", stringify!(strptr) ) ); } pub type value_string = _value_string; extern "C" { pub fn val_to_str( val: guint32, vs: *const value_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn val_to_str_wmem( scope: *mut wmem_allocator_t, val: guint32, vs: *const value_string, fmt: *const ::std::os::raw::c_char, ) -> *mut gchar; } extern "C" { pub fn val_to_str_const( val: guint32, vs: *const value_string, unknown_str: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_val_to_str(val: guint32, vs: *const value_string) -> *const gchar; } extern "C" { pub fn try_val_to_str_idx( val: guint32, vs: *const value_string, idx: *mut gint, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _val64_string { pub value: guint64, pub strptr: *const gchar, } #[test] fn bindgen_test_layout__val64_string() { const UNINIT: ::std::mem::MaybeUninit<_val64_string> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_val64_string>(), 16usize, concat!("Size of: ", stringify!(_val64_string)) ); assert_eq!( ::std::mem::align_of::<_val64_string>(), 8usize, concat!("Alignment of ", stringify!(_val64_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_val64_string), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strptr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_val64_string), "::", stringify!(strptr) ) ); } pub type val64_string = _val64_string; extern "C" { pub fn val64_to_str( val: guint64, vs: *const val64_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn val64_to_str_const( val: guint64, vs: *const val64_string, unknown_str: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_val64_to_str(val: guint64, vs: *const val64_string) -> *const gchar; } extern "C" { pub fn try_val64_to_str_idx( val: guint64, vs: *const val64_string, idx: *mut gint, ) -> *const gchar; } extern "C" { pub fn str_to_val(val: *const gchar, vs: *const value_string, err_val: guint32) -> guint32; } extern "C" { pub fn str_to_val_idx(val: *const gchar, vs: *const value_string) -> gint; } pub type value_string_ext = _value_string_ext; pub type _value_string_match2_t = ::std::option::Option< unsafe extern "C" fn(arg1: guint32, arg2: *mut value_string_ext) -> *const value_string, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _value_string_ext { pub _vs_match2: _value_string_match2_t, pub _vs_first_value: guint32, pub _vs_num_entries: guint, pub _vs_p: *const value_string, pub _vs_name: *const gchar, } #[test] fn bindgen_test_layout__value_string_ext() { const UNINIT: ::std::mem::MaybeUninit<_value_string_ext> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_value_string_ext>(), 32usize, concat!("Size of: ", stringify!(_value_string_ext)) ); assert_eq!( ::std::mem::align_of::<_value_string_ext>(), 8usize, concat!("Alignment of ", stringify!(_value_string_ext)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_match2) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_value_string_ext), "::", stringify!(_vs_match2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_first_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_value_string_ext), "::", stringify!(_vs_first_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_num_entries) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_value_string_ext), "::", stringify!(_vs_num_entries) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_p) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_value_string_ext), "::", stringify!(_vs_p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_name) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_value_string_ext), "::", stringify!(_vs_name) ) ); } extern "C" { pub fn _try_val_to_str_ext_init( val: guint32, vse: *mut value_string_ext, ) -> *const value_string; } extern "C" { pub fn value_string_ext_new( vs: *const value_string, vs_tot_num_entries: guint, vs_name: *const gchar, ) -> *mut value_string_ext; } extern "C" { pub fn value_string_ext_free(vse: *mut value_string_ext); } extern "C" { pub fn val_to_str_ext( val: guint32, vse: *mut value_string_ext, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn val_to_str_ext_wmem( scope: *mut wmem_allocator_t, val: guint32, vse: *mut value_string_ext, fmt: *const ::std::os::raw::c_char, ) -> *mut gchar; } extern "C" { pub fn val_to_str_ext_const( val: guint32, vs: *mut value_string_ext, unknown_str: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_val_to_str_ext(val: guint32, vse: *mut value_string_ext) -> *const gchar; } extern "C" { pub fn try_val_to_str_idx_ext( val: guint32, vse: *mut value_string_ext, idx: *mut gint, ) -> *const gchar; } pub type val64_string_ext = _val64_string_ext; pub type _val64_string_match2_t = ::std::option::Option< unsafe extern "C" fn(arg1: guint64, arg2: *mut val64_string_ext) -> *const val64_string, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _val64_string_ext { pub _vs_match2: _val64_string_match2_t, pub _vs_first_value: guint64, pub _vs_num_entries: guint, pub _vs_p: *const val64_string, pub _vs_name: *const gchar, } #[test] fn bindgen_test_layout__val64_string_ext() { const UNINIT: ::std::mem::MaybeUninit<_val64_string_ext> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_val64_string_ext>(), 40usize, concat!("Size of: ", stringify!(_val64_string_ext)) ); assert_eq!( ::std::mem::align_of::<_val64_string_ext>(), 8usize, concat!("Alignment of ", stringify!(_val64_string_ext)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_match2) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_val64_string_ext), "::", stringify!(_vs_match2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_first_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_val64_string_ext), "::", stringify!(_vs_first_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_num_entries) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_val64_string_ext), "::", stringify!(_vs_num_entries) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_p) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_val64_string_ext), "::", stringify!(_vs_p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr)._vs_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_val64_string_ext), "::", stringify!(_vs_name) ) ); } extern "C" { pub fn _try_val64_to_str_ext_init( val: guint64, vse: *mut val64_string_ext, ) -> *const val64_string; } extern "C" { pub fn val64_string_ext_new( vs: *const val64_string, vs_tot_num_entries: guint, vs_name: *const gchar, ) -> *mut val64_string_ext; } extern "C" { pub fn val64_string_ext_free(vse: *mut val64_string_ext); } extern "C" { pub fn val64_to_str_ext( val: guint64, vse: *mut val64_string_ext, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn val64_to_str_ext_wmem( scope: *mut wmem_allocator_t, val: guint64, vse: *mut val64_string_ext, fmt: *const ::std::os::raw::c_char, ) -> *mut gchar; } extern "C" { pub fn val64_to_str_ext_const( val: guint64, vs: *mut val64_string_ext, unknown_str: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_val64_to_str_ext(val: guint64, vse: *mut val64_string_ext) -> *const gchar; } extern "C" { pub fn try_val64_to_str_idx_ext( val: guint64, vse: *mut val64_string_ext, idx: *mut gint, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _string_string { pub value: *const gchar, pub strptr: *const gchar, } #[test] fn bindgen_test_layout__string_string() { const UNINIT: ::std::mem::MaybeUninit<_string_string> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_string_string>(), 16usize, concat!("Size of: ", stringify!(_string_string)) ); assert_eq!( ::std::mem::align_of::<_string_string>(), 8usize, concat!("Alignment of ", stringify!(_string_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_string_string), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strptr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_string_string), "::", stringify!(strptr) ) ); } pub type string_string = _string_string; extern "C" { pub fn str_to_str( val: *const gchar, vs: *const string_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_str_to_str(val: *const gchar, vs: *const string_string) -> *const gchar; } extern "C" { pub fn try_str_to_str_idx( val: *const gchar, vs: *const string_string, idx: *mut gint, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _range_string { pub value_min: u64, pub value_max: u64, pub strptr: *const gchar, } #[test] fn bindgen_test_layout__range_string() { const UNINIT: ::std::mem::MaybeUninit<_range_string> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_range_string>(), 24usize, concat!("Size of: ", stringify!(_range_string)) ); assert_eq!( ::std::mem::align_of::<_range_string>(), 8usize, concat!("Alignment of ", stringify!(_range_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value_min) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_range_string), "::", stringify!(value_min) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value_max) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_range_string), "::", stringify!(value_max) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strptr) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_range_string), "::", stringify!(strptr) ) ); } pub type range_string = _range_string; extern "C" { pub fn rval_to_str( val: guint32, rs: *const range_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn rval_to_str_const( val: guint32, rs: *const range_string, unknown_str: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_rval_to_str(val: guint32, rs: *const range_string) -> *const gchar; } extern "C" { pub fn try_rval_to_str_idx( val: guint32, rs: *const range_string, idx: *mut gint, ) -> *const gchar; } extern "C" { pub fn try_rval64_to_str(val: guint64, rs: *const range_string) -> *const gchar; } extern "C" { pub fn try_rval64_to_str_idx( val: guint64, rs: *const range_string, idx: *mut gint, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _bytes_string { pub value: *const guint8, pub value_length: usize, pub strptr: *const gchar, } #[test] fn bindgen_test_layout__bytes_string() { const UNINIT: ::std::mem::MaybeUninit<_bytes_string> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_bytes_string>(), 24usize, concat!("Size of: ", stringify!(_bytes_string)) ); assert_eq!( ::std::mem::align_of::<_bytes_string>(), 8usize, concat!("Alignment of ", stringify!(_bytes_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_bytes_string), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value_length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_bytes_string), "::", stringify!(value_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strptr) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_bytes_string), "::", stringify!(strptr) ) ); } pub type bytes_string = _bytes_string; extern "C" { pub fn bytesval_to_str( val: *const guint8, val_len: usize, bs: *const bytes_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_bytesval_to_str( val: *const guint8, val_len: usize, bs: *const bytes_string, ) -> *const gchar; } extern "C" { pub fn bytesprefix_to_str( haystack: *const guint8, haystack_len: usize, bs: *const bytes_string, fmt: *const ::std::os::raw::c_char, ) -> *const gchar; } extern "C" { pub fn try_bytesprefix_to_str( haystack: *const guint8, haystack_len: usize, bs: *const bytes_string, ) -> *const gchar; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct true_false_string { pub true_string: *const ::std::os::raw::c_char, pub false_string: *const ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_true_false_string() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(true_false_string)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(true_false_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).true_string) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(true_false_string), "::", stringify!(true_string) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).false_string) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(true_false_string), "::", stringify!(false_string) ) ); } extern "C" { pub fn tfs_get_string( value: gboolean, tfs: *const true_false_string, ) -> *const ::std::os::raw::c_char; } extern "C" { pub static tfs_true_false: true_false_string; } extern "C" { pub static tfs_yes_no: true_false_string; } extern "C" { pub static tfs_no_yes: true_false_string; } extern "C" { pub static tfs_set_notset: true_false_string; } extern "C" { pub static tfs_enabled_disabled: true_false_string; } extern "C" { pub static tfs_disabled_enabled: true_false_string; } extern "C" { pub static tfs_ok_error: true_false_string; } extern "C" { pub static tfs_error_ok: true_false_string; } extern "C" { pub static tfs_success_fail: true_false_string; } extern "C" { pub static tfs_fail_success: true_false_string; } extern "C" { pub static tfs_on_off: true_false_string; } extern "C" { pub static tfs_ack_nack: true_false_string; } extern "C" { pub static tfs_odd_even: true_false_string; } extern "C" { pub static tfs_allow_block: true_false_string; } extern "C" { pub static tfs_restricted_allowed: true_false_string; } extern "C" { pub static tfs_restricted_not_restricted: true_false_string; } extern "C" { pub static tfs_accept_reject: true_false_string; } extern "C" { pub static tfs_more_nomore: true_false_string; } extern "C" { pub static tfs_present_absent: true_false_string; } extern "C" { pub static tfs_present_not_present: true_false_string; } extern "C" { pub static tfs_active_inactive: true_false_string; } extern "C" { pub static tfs_activated_deactivated: true_false_string; } extern "C" { pub static tfs_found_not_found: true_false_string; } extern "C" { pub static tfs_command_response: true_false_string; } extern "C" { pub static tfs_response_command: true_false_string; } extern "C" { pub static tfs_capable_not_capable: true_false_string; } extern "C" { pub static tfs_supported_not_supported: true_false_string; } extern "C" { pub static tfs_not_supported_supported: true_false_string; } extern "C" { pub static tfs_used_notused: true_false_string; } extern "C" { pub static tfs_high_low: true_false_string; } extern "C" { pub static tfs_high_normal: true_false_string; } extern "C" { pub static tfs_low_normal: true_false_string; } extern "C" { pub static tfs_pressed_not_pressed: true_false_string; } extern "C" { pub static tfs_implemented_not_implemented: true_false_string; } extern "C" { pub static tfs_requested_not_requested: true_false_string; } extern "C" { pub static tfs_reliable_not_reliable: true_false_string; } extern "C" { pub static tfs_allowed_not_allowed: true_false_string; } extern "C" { pub static tfs_not_allowed_allowed: true_false_string; } extern "C" { pub static tfs_accepted_not_accepted: true_false_string; } extern "C" { pub static tfs_detected_not_detected: true_false_string; } extern "C" { pub static tfs_available_not_available: true_false_string; } extern "C" { pub static tfs_shared_independent: true_false_string; } extern "C" { pub static tfs_valid_invalid: true_false_string; } extern "C" { pub static tfs_invalid_valid: true_false_string; } extern "C" { pub static tfs_group_unique_name: true_false_string; } extern "C" { pub static tfs_inuse_not_inuse: true_false_string; } extern "C" { pub static tfs_critical_not_critical: true_false_string; } extern "C" { pub static tfs_complete_incomplete: true_false_string; } extern "C" { pub static tfs_valid_not_valid: true_false_string; } extern "C" { pub static tfs_do_not_clear_clear: true_false_string; } extern "C" { pub static tfs_confirmed_unconfirmed: true_false_string; } extern "C" { pub static tfs_enforced_not_enforced: true_false_string; } extern "C" { pub static tfs_possible_not_possible: true_false_string; } extern "C" { pub static tfs_required_not_required: true_false_string; } extern "C" { pub static tfs_registered_not_registered: true_false_string; } extern "C" { pub static tfs_provisioned_not_provisioned: true_false_string; } extern "C" { pub static tfs_included_not_included: true_false_string; } extern "C" { pub static tfs_allocated_by_receiver_sender: true_false_string; } extern "C" { pub static tfs_asynchronous_synchronous: true_false_string; } extern "C" { pub static tfs_protocol_sensative_bit_transparent: true_false_string; } extern "C" { pub static tfs_full_half: true_false_string; } extern "C" { pub static tfs_acknowledged_not_acknowledged: true_false_string; } extern "C" { pub static tfs_segmentation_no_segmentation: true_false_string; } extern "C" { pub static tfs_response_request: true_false_string; } extern "C" { pub static tfs_defined_not_defined: true_false_string; } extern "C" { pub static tfs_constructed_primitive: true_false_string; } extern "C" { pub static tfs_client_server: true_false_string; } extern "C" { pub static tfs_server_client: true_false_string; } extern "C" { pub static tfs_preferred_no_preference: true_false_string; } extern "C" { pub static tfs_encrypt_do_not_encrypt: true_false_string; } extern "C" { pub static tfs_down_up: true_false_string; } extern "C" { pub static tfs_up_down: true_false_string; } extern "C" { pub static tfs_downlink_uplink: true_false_string; } extern "C" { pub static tfs_uplink_downlink: true_false_string; } extern "C" { pub static tfs_s2c_c2s: true_false_string; } extern "C" { pub static tfs_c2s_s2c: true_false_string; } extern "C" { pub static tfs_open_closed: true_false_string; } extern "C" { pub static tfs_external_internal: true_false_string; } extern "C" { pub static tfs_changed_not_changed: true_false_string; } extern "C" { pub static tfs_needed_not_needed: true_false_string; } extern "C" { pub static tfs_selected_not_selected: true_false_string; } extern "C" { pub static tfs_add_drop: true_false_string; } extern "C" { pub static tfs_no_extension_extension: true_false_string; } extern "C" { pub static tfs_user_provider: true_false_string; } extern "C" { pub static tfs_applicable_not_applicable: true_false_string; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Buffer { pub data: *mut guint8, pub allocated: gsize, pub start: gsize, pub first_free: gsize, } #[test] fn bindgen_test_layout_Buffer() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(Buffer)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(Buffer)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(Buffer), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).allocated) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(Buffer), "::", stringify!(allocated) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(Buffer), "::", stringify!(start) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).first_free) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(Buffer), "::", stringify!(first_free) ) ); } extern "C" { pub fn ws_buffer_init(buffer: *mut Buffer, space: gsize); } extern "C" { pub fn ws_buffer_free(buffer: *mut Buffer); } extern "C" { pub fn ws_buffer_assure_space(buffer: *mut Buffer, space: gsize); } extern "C" { pub fn ws_buffer_append(buffer: *mut Buffer, from: *mut guint8, bytes: gsize); } extern "C" { pub fn ws_buffer_remove_start(buffer: *mut Buffer, bytes: gsize); } extern "C" { pub fn ws_buffer_cleanup(); } extern "C" { pub fn ws_inet_ntop4( src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_char, dst_size: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ws_inet_ntop6( src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_char, dst_size: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ws_inet_pton4(src: *const ::std::os::raw::c_char, dst: *mut ws_in4_addr) -> bool; } extern "C" { pub fn ws_inet_pton6(src: *const ::std::os::raw::c_char, dst: *mut ws_in6_addr) -> bool; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct eth_phdr { pub fcs_len: gint, } #[test] fn bindgen_test_layout_eth_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(eth_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(eth_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fcs_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(eth_phdr), "::", stringify!(fcs_len) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dte_dce_phdr { pub flags: guint8, } #[test] fn bindgen_test_layout_dte_dce_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 1usize, concat!("Size of: ", stringify!(dte_dce_phdr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(dte_dce_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(dte_dce_phdr), "::", stringify!(flags) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct isdn_phdr { pub uton: gboolean, pub channel: guint8, } #[test] fn bindgen_test_layout_isdn_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(isdn_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(isdn_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uton) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(isdn_phdr), "::", stringify!(uton) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).channel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(isdn_phdr), "::", stringify!(channel) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct atm_phdr { pub flags: guint32, pub aal: guint8, pub type_: guint8, pub subtype: guint8, pub vpi: guint16, pub vci: guint16, pub aal2_cid: guint8, pub channel: guint16, pub cells: guint16, pub aal5t_u2u: guint16, pub aal5t_len: guint16, pub aal5t_chksum: guint32, } #[test] fn bindgen_test_layout_atm_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, concat!("Size of: ", stringify!(atm_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(atm_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(aal) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 5usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).subtype) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(subtype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vpi) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(vpi) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vci) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(vci) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal2_cid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(aal2_cid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).channel) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(channel) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cells) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(cells) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal5t_u2u) as usize - ptr as usize }, 18usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(aal5t_u2u) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal5t_len) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(aal5t_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal5t_chksum) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(atm_phdr), "::", stringify!(aal5t_chksum) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ascend_phdr { pub type_: guint16, pub user: [::std::os::raw::c_char; 64usize], pub sess: guint32, pub call_num: [::std::os::raw::c_char; 64usize], pub chunk: guint32, pub task: guint32, } #[test] fn bindgen_test_layout_ascend_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 144usize, concat!("Size of: ", stringify!(ascend_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ascend_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).user) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(user) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sess) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(sess) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).call_num) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(call_num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).chunk) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(chunk) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).task) as usize - ptr as usize }, 140usize, concat!( "Offset of field: ", stringify!(ascend_phdr), "::", stringify!(task) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct p2p_phdr { pub sent: gboolean, } #[test] fn bindgen_test_layout_p2p_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(p2p_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(p2p_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sent) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(p2p_phdr), "::", stringify!(sent) ) ); } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11_fhss { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub hop_set: guint8, pub hop_pattern: guint8, pub hop_index: guint8, } #[test] fn bindgen_test_layout_ieee_802_11_fhss() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(ieee_802_11_fhss)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11_fhss)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hop_set) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ieee_802_11_fhss), "::", stringify!(hop_set) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hop_pattern) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ieee_802_11_fhss), "::", stringify!(hop_pattern) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hop_index) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(ieee_802_11_fhss), "::", stringify!(hop_index) ) ); } impl ieee_802_11_fhss { #[inline] pub fn has_hop_set(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_hop_set(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_hop_pattern(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_hop_pattern(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn has_hop_index(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_has_hop_index(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( has_hop_set: guint, has_hop_pattern: guint, has_hop_index: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_hop_set: u32 = unsafe { ::std::mem::transmute(has_hop_set) }; has_hop_set as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_hop_pattern: u32 = unsafe { ::std::mem::transmute(has_hop_pattern) }; has_hop_pattern as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let has_hop_index: u32 = unsafe { ::std::mem::transmute(has_hop_index) }; has_hop_index as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11b { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub short_preamble: gboolean, } #[test] fn bindgen_test_layout_ieee_802_11b() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(ieee_802_11b)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11b)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).short_preamble) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ieee_802_11b), "::", stringify!(short_preamble) ) ); } impl ieee_802_11b { #[inline] pub fn has_short_preamble(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_short_preamble(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1(has_short_preamble: guint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_short_preamble: u32 = unsafe { ::std::mem::transmute(has_short_preamble) }; has_short_preamble as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11a { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } #[test] fn bindgen_test_layout_ieee_802_11a() { assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(ieee_802_11a)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11a)) ); } impl ieee_802_11a { #[inline] pub fn has_channel_type(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_channel_type(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_turbo_type(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_turbo_type(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn channel_type(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) } } #[inline] pub fn set_channel_type(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 2u8, val as u64) } } #[inline] pub fn turbo_type(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) } } #[inline] pub fn set_turbo_type(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 2u8, val as u64) } } #[inline] pub fn new_bitfield_1( has_channel_type: guint, has_turbo_type: guint, channel_type: guint, turbo_type: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_channel_type: u32 = unsafe { ::std::mem::transmute(has_channel_type) }; has_channel_type as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_turbo_type: u32 = unsafe { ::std::mem::transmute(has_turbo_type) }; has_turbo_type as u64 }); __bindgen_bitfield_unit.set(2usize, 2u8, { let channel_type: u32 = unsafe { ::std::mem::transmute(channel_type) }; channel_type as u64 }); __bindgen_bitfield_unit.set(4usize, 2u8, { let turbo_type: u32 = unsafe { ::std::mem::transmute(turbo_type) }; turbo_type as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11g { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub mode: guint32, } #[test] fn bindgen_test_layout_ieee_802_11g() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(ieee_802_11g)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11g)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mode) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ieee_802_11g), "::", stringify!(mode) ) ); } impl ieee_802_11g { #[inline] pub fn has_mode(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_mode(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1(has_mode: guint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_mode: u32 = unsafe { ::std::mem::transmute(has_mode) }; has_mode as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11n { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub mcs_index: guint16, pub bandwidth: guint, pub _bitfield_align_2: [u8; 0], pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, pub ness: guint, } #[test] fn bindgen_test_layout_ieee_802_11n() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(ieee_802_11n)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11n)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mcs_index) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ieee_802_11n), "::", stringify!(mcs_index) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bandwidth) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ieee_802_11n), "::", stringify!(bandwidth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ness) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(ieee_802_11n), "::", stringify!(ness) ) ); } impl ieee_802_11n { #[inline] pub fn has_mcs_index(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_mcs_index(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_bandwidth(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_bandwidth(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn has_short_gi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_has_short_gi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn has_greenfield(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } #[inline] pub fn set_has_greenfield(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 1u8, val as u64) } } #[inline] pub fn has_fec(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } #[inline] pub fn set_has_fec(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 1u8, val as u64) } } #[inline] pub fn has_stbc_streams(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } } #[inline] pub fn set_has_stbc_streams(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(5usize, 1u8, val as u64) } } #[inline] pub fn has_ness(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } } #[inline] pub fn set_has_ness(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(6usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( has_mcs_index: guint, has_bandwidth: guint, has_short_gi: guint, has_greenfield: guint, has_fec: guint, has_stbc_streams: guint, has_ness: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_mcs_index: u32 = unsafe { ::std::mem::transmute(has_mcs_index) }; has_mcs_index as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_bandwidth: u32 = unsafe { ::std::mem::transmute(has_bandwidth) }; has_bandwidth as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let has_short_gi: u32 = unsafe { ::std::mem::transmute(has_short_gi) }; has_short_gi as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let has_greenfield: u32 = unsafe { ::std::mem::transmute(has_greenfield) }; has_greenfield as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let has_fec: u32 = unsafe { ::std::mem::transmute(has_fec) }; has_fec as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let has_stbc_streams: u32 = unsafe { ::std::mem::transmute(has_stbc_streams) }; has_stbc_streams as u64 }); __bindgen_bitfield_unit.set(6usize, 1u8, { let has_ness: u32 = unsafe { ::std::mem::transmute(has_ness) }; has_ness as u64 }); __bindgen_bitfield_unit } #[inline] pub fn short_gi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 1u8) as u32) } } #[inline] pub fn set_short_gi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(0usize, 1u8, val as u64) } } #[inline] pub fn greenfield(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(1usize, 1u8) as u32) } } #[inline] pub fn set_greenfield(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(1usize, 1u8, val as u64) } } #[inline] pub fn fec(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(2usize, 1u8) as u32) } } #[inline] pub fn set_fec(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(2usize, 1u8, val as u64) } } #[inline] pub fn stbc_streams(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(3usize, 2u8) as u32) } } #[inline] pub fn set_stbc_streams(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(3usize, 2u8, val as u64) } } #[inline] pub fn new_bitfield_2( short_gi: guint, greenfield: guint, fec: guint, stbc_streams: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let short_gi: u32 = unsafe { ::std::mem::transmute(short_gi) }; short_gi as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let greenfield: u32 = unsafe { ::std::mem::transmute(greenfield) }; greenfield as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let fec: u32 = unsafe { ::std::mem::transmute(fec) }; fec as u64 }); __bindgen_bitfield_unit.set(3usize, 2u8, { let stbc_streams: u32 = unsafe { ::std::mem::transmute(stbc_streams) }; stbc_streams as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11ac { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub bandwidth: guint8, pub mcs: [guint8; 4usize], pub nss: [guint8; 4usize], pub fec: guint8, pub group_id: guint8, pub partial_aid: guint16, } #[test] fn bindgen_test_layout_ieee_802_11ac() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(ieee_802_11ac)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11ac)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bandwidth) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(bandwidth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mcs) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(mcs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nss) as usize - ptr as usize }, 7usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(nss) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fec) as usize - ptr as usize }, 11usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(fec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).group_id) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(group_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).partial_aid) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(ieee_802_11ac), "::", stringify!(partial_aid) ) ); } impl ieee_802_11ac { #[inline] pub fn has_stbc(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_stbc(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_txop_ps_not_allowed(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_txop_ps_not_allowed(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn has_short_gi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_has_short_gi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn has_short_gi_nsym_disambig(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } #[inline] pub fn set_has_short_gi_nsym_disambig(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 1u8, val as u64) } } #[inline] pub fn has_ldpc_extra_ofdm_symbol(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } #[inline] pub fn set_has_ldpc_extra_ofdm_symbol(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 1u8, val as u64) } } #[inline] pub fn has_beamformed(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } } #[inline] pub fn set_has_beamformed(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(5usize, 1u8, val as u64) } } #[inline] pub fn has_bandwidth(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } } #[inline] pub fn set_has_bandwidth(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(6usize, 1u8, val as u64) } } #[inline] pub fn has_fec(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } } #[inline] pub fn set_has_fec(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(7usize, 1u8, val as u64) } } #[inline] pub fn has_group_id(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } } #[inline] pub fn set_has_group_id(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(8usize, 1u8, val as u64) } } #[inline] pub fn has_partial_aid(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } } #[inline] pub fn set_has_partial_aid(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(9usize, 1u8, val as u64) } } #[inline] pub fn stbc(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } } #[inline] pub fn set_stbc(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(10usize, 1u8, val as u64) } } #[inline] pub fn txop_ps_not_allowed(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } } #[inline] pub fn set_txop_ps_not_allowed(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(11usize, 1u8, val as u64) } } #[inline] pub fn short_gi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } } #[inline] pub fn set_short_gi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(12usize, 1u8, val as u64) } } #[inline] pub fn short_gi_nsym_disambig(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) } } #[inline] pub fn set_short_gi_nsym_disambig(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(13usize, 1u8, val as u64) } } #[inline] pub fn ldpc_extra_ofdm_symbol(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) } } #[inline] pub fn set_ldpc_extra_ofdm_symbol(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(14usize, 1u8, val as u64) } } #[inline] pub fn beamformed(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } } #[inline] pub fn set_beamformed(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(15usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( has_stbc: guint, has_txop_ps_not_allowed: guint, has_short_gi: guint, has_short_gi_nsym_disambig: guint, has_ldpc_extra_ofdm_symbol: guint, has_beamformed: guint, has_bandwidth: guint, has_fec: guint, has_group_id: guint, has_partial_aid: guint, stbc: guint, txop_ps_not_allowed: guint, short_gi: guint, short_gi_nsym_disambig: guint, ldpc_extra_ofdm_symbol: guint, beamformed: guint, ) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_stbc: u32 = unsafe { ::std::mem::transmute(has_stbc) }; has_stbc as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_txop_ps_not_allowed: u32 = unsafe { ::std::mem::transmute(has_txop_ps_not_allowed) }; has_txop_ps_not_allowed as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let has_short_gi: u32 = unsafe { ::std::mem::transmute(has_short_gi) }; has_short_gi as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let has_short_gi_nsym_disambig: u32 = unsafe { ::std::mem::transmute(has_short_gi_nsym_disambig) }; has_short_gi_nsym_disambig as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let has_ldpc_extra_ofdm_symbol: u32 = unsafe { ::std::mem::transmute(has_ldpc_extra_ofdm_symbol) }; has_ldpc_extra_ofdm_symbol as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let has_beamformed: u32 = unsafe { ::std::mem::transmute(has_beamformed) }; has_beamformed as u64 }); __bindgen_bitfield_unit.set(6usize, 1u8, { let has_bandwidth: u32 = unsafe { ::std::mem::transmute(has_bandwidth) }; has_bandwidth as u64 }); __bindgen_bitfield_unit.set(7usize, 1u8, { let has_fec: u32 = unsafe { ::std::mem::transmute(has_fec) }; has_fec as u64 }); __bindgen_bitfield_unit.set(8usize, 1u8, { let has_group_id: u32 = unsafe { ::std::mem::transmute(has_group_id) }; has_group_id as u64 }); __bindgen_bitfield_unit.set(9usize, 1u8, { let has_partial_aid: u32 = unsafe { ::std::mem::transmute(has_partial_aid) }; has_partial_aid as u64 }); __bindgen_bitfield_unit.set(10usize, 1u8, { let stbc: u32 = unsafe { ::std::mem::transmute(stbc) }; stbc as u64 }); __bindgen_bitfield_unit.set(11usize, 1u8, { let txop_ps_not_allowed: u32 = unsafe { ::std::mem::transmute(txop_ps_not_allowed) }; txop_ps_not_allowed as u64 }); __bindgen_bitfield_unit.set(12usize, 1u8, { let short_gi: u32 = unsafe { ::std::mem::transmute(short_gi) }; short_gi as u64 }); __bindgen_bitfield_unit.set(13usize, 1u8, { let short_gi_nsym_disambig: u32 = unsafe { ::std::mem::transmute(short_gi_nsym_disambig) }; short_gi_nsym_disambig as u64 }); __bindgen_bitfield_unit.set(14usize, 1u8, { let ldpc_extra_ofdm_symbol: u32 = unsafe { ::std::mem::transmute(ldpc_extra_ofdm_symbol) }; ldpc_extra_ofdm_symbol as u64 }); __bindgen_bitfield_unit.set(15usize, 1u8, { let beamformed: u32 = unsafe { ::std::mem::transmute(beamformed) }; beamformed as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11ad { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub mcs: guint8, } #[test] fn bindgen_test_layout_ieee_802_11ad() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(ieee_802_11ad)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11ad)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mcs) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(ieee_802_11ad), "::", stringify!(mcs) ) ); } impl ieee_802_11ad { #[inline] pub fn has_mcs_index(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_mcs_index(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1(has_mcs_index: guint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_mcs_index: u32 = unsafe { ::std::mem::transmute(has_mcs_index) }; has_mcs_index as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct ieee_802_11ax { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>, pub __bindgen_padding_0: u8, } #[test] fn bindgen_test_layout_ieee_802_11ax() { assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(ieee_802_11ax)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11ax)) ); } impl ieee_802_11ax { #[inline] pub fn has_mcs_index(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_mcs_index(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_bwru(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_bwru(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn has_gi(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_has_gi(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn nsts(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 4u8) as u8) } } #[inline] pub fn set_nsts(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 4u8, val as u64) } } #[inline] pub fn mcs(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u8) } } #[inline] pub fn set_mcs(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(8usize, 4u8, val as u64) } } #[inline] pub fn bwru(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u8) } } #[inline] pub fn set_bwru(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(12usize, 4u8, val as u64) } } #[inline] pub fn gi(&self) -> guint8 { unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 2u8) as u8) } } #[inline] pub fn set_gi(&mut self, val: guint8) { unsafe { let val: u8 = ::std::mem::transmute(val); self._bitfield_1.set(16usize, 2u8, val as u64) } } #[inline] pub fn new_bitfield_1( has_mcs_index: guint, has_bwru: guint, has_gi: guint, nsts: guint8, mcs: guint8, bwru: guint8, gi: guint8, ) -> __BindgenBitfieldUnit<[u8; 3usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_mcs_index: u32 = unsafe { ::std::mem::transmute(has_mcs_index) }; has_mcs_index as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_bwru: u32 = unsafe { ::std::mem::transmute(has_bwru) }; has_bwru as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let has_gi: u32 = unsafe { ::std::mem::transmute(has_gi) }; has_gi as u64 }); __bindgen_bitfield_unit.set(3usize, 4u8, { let nsts: u8 = unsafe { ::std::mem::transmute(nsts) }; nsts as u64 }); __bindgen_bitfield_unit.set(8usize, 4u8, { let mcs: u8 = unsafe { ::std::mem::transmute(mcs) }; mcs as u64 }); __bindgen_bitfield_unit.set(12usize, 4u8, { let bwru: u8 = unsafe { ::std::mem::transmute(bwru) }; bwru as u64 }); __bindgen_bitfield_unit.set(16usize, 2u8, { let gi: u8 = unsafe { ::std::mem::transmute(gi) }; gi as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Copy, Clone)] pub union ieee_802_11_phy_info { pub info_11_fhss: ieee_802_11_fhss, pub info_11b: ieee_802_11b, pub info_11a: ieee_802_11a, pub info_11g: ieee_802_11g, pub info_11n: ieee_802_11n, pub info_11ac: ieee_802_11ac, pub info_11ad: ieee_802_11ad, pub info_11ax: ieee_802_11ax, } #[test] fn bindgen_test_layout_ieee_802_11_phy_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(ieee_802_11_phy_info)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(ieee_802_11_phy_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11_fhss) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11_fhss) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11b) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11b) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11a) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11a) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11g) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11g) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11n) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11n) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11ac) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11ac) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11ad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11ad) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).info_11ax) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phy_info), "::", stringify!(info_11ax) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct ieee_802_11_phdr { pub fcs_len: gint, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub phy: guint, pub phy_info: ieee_802_11_phy_info, pub _bitfield_align_2: [u8; 0], pub _bitfield_2: __BindgenBitfieldUnit<[u8; 2usize]>, pub channel: guint16, pub frequency: guint32, pub data_rate: guint16, pub signal_percent: guint8, pub noise_percent: guint8, pub signal_dbm: gint8, pub noise_dbm: gint8, pub signal_db: guint8, pub noise_db: guint8, pub tsf_timestamp: guint64, pub aggregate_flags: guint32, pub aggregate_id: guint32, pub zero_length_psdu_type: guint8, } #[test] fn bindgen_test_layout_ieee_802_11_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 72usize, concat!("Size of: ", stringify!(ieee_802_11_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(ieee_802_11_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fcs_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(fcs_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).phy) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(phy) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).phy_info) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(phy_info) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).channel) as usize - ptr as usize }, 30usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(channel) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).frequency) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(frequency) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data_rate) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(data_rate) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).signal_percent) as usize - ptr as usize }, 38usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(signal_percent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).noise_percent) as usize - ptr as usize }, 39usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(noise_percent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).signal_dbm) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(signal_dbm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).noise_dbm) as usize - ptr as usize }, 41usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(noise_dbm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).signal_db) as usize - ptr as usize }, 42usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(signal_db) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).noise_db) as usize - ptr as usize }, 43usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(noise_db) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tsf_timestamp) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(tsf_timestamp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aggregate_flags) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(aggregate_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aggregate_id) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(aggregate_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).zero_length_psdu_type) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(ieee_802_11_phdr), "::", stringify!(zero_length_psdu_type) ) ); } impl ieee_802_11_phdr { #[inline] pub fn decrypted(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_decrypted(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn datapad(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_datapad(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn no_a_msdus(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_no_a_msdus(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( decrypted: guint, datapad: guint, no_a_msdus: guint, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let decrypted: u32 = unsafe { ::std::mem::transmute(decrypted) }; decrypted as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let datapad: u32 = unsafe { ::std::mem::transmute(datapad) }; datapad as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let no_a_msdus: u32 = unsafe { ::std::mem::transmute(no_a_msdus) }; no_a_msdus as u64 }); __bindgen_bitfield_unit } #[inline] pub fn has_channel(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 1u8) as u32) } } #[inline] pub fn set_has_channel(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(0usize, 1u8, val as u64) } } #[inline] pub fn has_frequency(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(1usize, 1u8) as u32) } } #[inline] pub fn set_has_frequency(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(1usize, 1u8, val as u64) } } #[inline] pub fn has_data_rate(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(2usize, 1u8) as u32) } } #[inline] pub fn set_has_data_rate(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(2usize, 1u8, val as u64) } } #[inline] pub fn has_signal_percent(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(3usize, 1u8) as u32) } } #[inline] pub fn set_has_signal_percent(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(3usize, 1u8, val as u64) } } #[inline] pub fn has_noise_percent(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(4usize, 1u8) as u32) } } #[inline] pub fn set_has_noise_percent(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(4usize, 1u8, val as u64) } } #[inline] pub fn has_signal_dbm(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(5usize, 1u8) as u32) } } #[inline] pub fn set_has_signal_dbm(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(5usize, 1u8, val as u64) } } #[inline] pub fn has_noise_dbm(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(6usize, 1u8) as u32) } } #[inline] pub fn set_has_noise_dbm(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(6usize, 1u8, val as u64) } } #[inline] pub fn has_signal_db(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(7usize, 1u8) as u32) } } #[inline] pub fn set_has_signal_db(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(7usize, 1u8, val as u64) } } #[inline] pub fn has_noise_db(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(8usize, 1u8) as u32) } } #[inline] pub fn set_has_noise_db(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(8usize, 1u8, val as u64) } } #[inline] pub fn has_tsf_timestamp(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(9usize, 1u8) as u32) } } #[inline] pub fn set_has_tsf_timestamp(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(9usize, 1u8, val as u64) } } #[inline] pub fn has_aggregate_info(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(10usize, 1u8) as u32) } } #[inline] pub fn set_has_aggregate_info(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(10usize, 1u8, val as u64) } } #[inline] pub fn has_zero_length_psdu_type(&self) -> guint { unsafe { ::std::mem::transmute(self._bitfield_2.get(11usize, 1u8) as u32) } } #[inline] pub fn set_has_zero_length_psdu_type(&mut self, val: guint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_2.set(11usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_2( has_channel: guint, has_frequency: guint, has_data_rate: guint, has_signal_percent: guint, has_noise_percent: guint, has_signal_dbm: guint, has_noise_dbm: guint, has_signal_db: guint, has_noise_db: guint, has_tsf_timestamp: guint, has_aggregate_info: guint, has_zero_length_psdu_type: guint, ) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let has_channel: u32 = unsafe { ::std::mem::transmute(has_channel) }; has_channel as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let has_frequency: u32 = unsafe { ::std::mem::transmute(has_frequency) }; has_frequency as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let has_data_rate: u32 = unsafe { ::std::mem::transmute(has_data_rate) }; has_data_rate as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let has_signal_percent: u32 = unsafe { ::std::mem::transmute(has_signal_percent) }; has_signal_percent as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let has_noise_percent: u32 = unsafe { ::std::mem::transmute(has_noise_percent) }; has_noise_percent as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let has_signal_dbm: u32 = unsafe { ::std::mem::transmute(has_signal_dbm) }; has_signal_dbm as u64 }); __bindgen_bitfield_unit.set(6usize, 1u8, { let has_noise_dbm: u32 = unsafe { ::std::mem::transmute(has_noise_dbm) }; has_noise_dbm as u64 }); __bindgen_bitfield_unit.set(7usize, 1u8, { let has_signal_db: u32 = unsafe { ::std::mem::transmute(has_signal_db) }; has_signal_db as u64 }); __bindgen_bitfield_unit.set(8usize, 1u8, { let has_noise_db: u32 = unsafe { ::std::mem::transmute(has_noise_db) }; has_noise_db as u64 }); __bindgen_bitfield_unit.set(9usize, 1u8, { let has_tsf_timestamp: u32 = unsafe { ::std::mem::transmute(has_tsf_timestamp) }; has_tsf_timestamp as u64 }); __bindgen_bitfield_unit.set(10usize, 1u8, { let has_aggregate_info: u32 = unsafe { ::std::mem::transmute(has_aggregate_info) }; has_aggregate_info as u64 }); __bindgen_bitfield_unit.set(11usize, 1u8, { let has_zero_length_psdu_type: u32 = unsafe { ::std::mem::transmute(has_zero_length_psdu_type) }; has_zero_length_psdu_type as u64 }); __bindgen_bitfield_unit } } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct cosine_phdr { pub encap: guint8, pub direction: guint8, pub if_name: [::std::os::raw::c_char; 128usize], pub pro: guint16, pub off: guint16, pub pri: guint16, pub rm: guint16, pub err: guint16, } #[test] fn bindgen_test_layout_cosine_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 140usize, concat!("Size of: ", stringify!(cosine_phdr)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(cosine_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).encap) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).direction) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(direction) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).if_name) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(if_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pro) as usize - ptr as usize }, 130usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(pro) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).off) as usize - ptr as usize }, 132usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(off) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pri) as usize - ptr as usize }, 134usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(pri) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rm) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(rm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 138usize, concat!( "Offset of field: ", stringify!(cosine_phdr), "::", stringify!(err) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct irda_phdr { pub pkttype: guint16, } #[test] fn bindgen_test_layout_irda_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 2usize, concat!("Size of: ", stringify!(irda_phdr)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(irda_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkttype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(irda_phdr), "::", stringify!(pkttype) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nettl_phdr { pub subsys: guint16, pub devid: guint32, pub kind: guint32, pub pid: gint32, pub uid: guint32, } #[test] fn bindgen_test_layout_nettl_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, concat!("Size of: ", stringify!(nettl_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(nettl_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).subsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nettl_phdr), "::", stringify!(subsys) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).devid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(nettl_phdr), "::", stringify!(devid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).kind) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nettl_phdr), "::", stringify!(kind) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(nettl_phdr), "::", stringify!(pid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(nettl_phdr), "::", stringify!(uid) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct mtp2_phdr { pub sent: guint8, pub annex_a_used: guint8, pub link_number: guint16, } #[test] fn bindgen_test_layout_mtp2_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(mtp2_phdr)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(mtp2_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sent) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(mtp2_phdr), "::", stringify!(sent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).annex_a_used) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(mtp2_phdr), "::", stringify!(annex_a_used) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).link_number) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(mtp2_phdr), "::", stringify!(link_number) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union k12_input_info_t { pub atm: k12_input_info_t__bindgen_ty_1, pub ds0mask: guint32, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct k12_input_info_t__bindgen_ty_1 { pub vp: guint16, pub vc: guint16, pub cid: guint16, } #[test] fn bindgen_test_layout_k12_input_info_t__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 6usize, concat!("Size of: ", stringify!(k12_input_info_t__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(k12_input_info_t__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(k12_input_info_t__bindgen_ty_1), "::", stringify!(vp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vc) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(k12_input_info_t__bindgen_ty_1), "::", stringify!(vc) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(k12_input_info_t__bindgen_ty_1), "::", stringify!(cid) ) ); } #[test] fn bindgen_test_layout_k12_input_info_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(k12_input_info_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(k12_input_info_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).atm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(k12_input_info_t), "::", stringify!(atm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ds0mask) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(k12_input_info_t), "::", stringify!(ds0mask) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct k12_phdr { pub input: guint32, pub input_name: *const gchar, pub stack_file: *const gchar, pub input_type: guint32, pub input_info: k12_input_info_t, pub extra_info: *mut guint8, pub extra_length: guint32, pub stuff: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_k12_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, concat!("Size of: ", stringify!(k12_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(k12_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(input) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input_name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(input_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).stack_file) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(stack_file) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input_type) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(input_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).input_info) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(input_info) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extra_info) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(extra_info) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extra_length) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(extra_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).stuff) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(k12_phdr), "::", stringify!(stuff) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct lapd_phdr { pub pkttype: guint16, pub we_network: guint8, } #[test] fn bindgen_test_layout_lapd_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(lapd_phdr)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(lapd_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkttype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(lapd_phdr), "::", stringify!(pkttype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).we_network) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(lapd_phdr), "::", stringify!(we_network) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap { _unused: [u8; 0], } #[repr(C)] #[derive(Copy, Clone)] pub struct catapult_dct2000_phdr { pub inner_pseudo_header: catapult_dct2000_phdr__bindgen_ty_1, pub seek_off: gint64, pub wth: *mut wtap, } #[repr(C)] #[derive(Copy, Clone)] pub union catapult_dct2000_phdr__bindgen_ty_1 { pub isdn: isdn_phdr, pub atm: atm_phdr, pub p2p: p2p_phdr, } #[test] fn bindgen_test_layout_catapult_dct2000_phdr__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, concat!("Size of: ", stringify!(catapult_dct2000_phdr__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!( "Alignment of ", stringify!(catapult_dct2000_phdr__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).isdn) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr__bindgen_ty_1), "::", stringify!(isdn) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).atm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr__bindgen_ty_1), "::", stringify!(atm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p2p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr__bindgen_ty_1), "::", stringify!(p2p) ) ); } #[test] fn bindgen_test_layout_catapult_dct2000_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(catapult_dct2000_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(catapult_dct2000_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).inner_pseudo_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr), "::", stringify!(inner_pseudo_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seek_off) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr), "::", stringify!(seek_off) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wth) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(catapult_dct2000_phdr), "::", stringify!(wth) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct erf_phdr { pub ts: guint64, pub type_: guint8, pub flags: guint8, pub rlen: guint16, pub lctr: guint16, pub wlen: guint16, } #[test] fn bindgen_test_layout_erf_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(erf_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(erf_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ts) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 9usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rlen) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(rlen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).lctr) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(lctr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wlen) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(erf_phdr), "::", stringify!(wlen) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct erf_ehdr { pub ehdr: guint64, } #[test] fn bindgen_test_layout_erf_ehdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(erf_ehdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(erf_ehdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ehdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_ehdr), "::", stringify!(ehdr) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_erf_eth_hdr { pub offset: guint8, pub pad: guint8, } #[test] fn bindgen_test_layout_wtap_erf_eth_hdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 2usize, concat!("Size of: ", stringify!(wtap_erf_eth_hdr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(wtap_erf_eth_hdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_erf_eth_hdr), "::", stringify!(offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(wtap_erf_eth_hdr), "::", stringify!(pad) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct erf_mc_phdr { pub phdr: erf_phdr, pub ehdr_list: [erf_ehdr; 16usize], pub subhdr: erf_mc_phdr__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union erf_mc_phdr__bindgen_ty_1 { pub eth_hdr: wtap_erf_eth_hdr, pub mc_hdr: guint32, pub aal2_hdr: guint32, } #[test] fn bindgen_test_layout_erf_mc_phdr__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(erf_mc_phdr__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(erf_mc_phdr__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eth_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr__bindgen_ty_1), "::", stringify!(eth_hdr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mc_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr__bindgen_ty_1), "::", stringify!(mc_hdr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).aal2_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr__bindgen_ty_1), "::", stringify!(aal2_hdr) ) ); } #[test] fn bindgen_test_layout_erf_mc_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 152usize, concat!("Size of: ", stringify!(erf_mc_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(erf_mc_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).phdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr), "::", stringify!(phdr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ehdr_list) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr), "::", stringify!(ehdr_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).subhdr) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(erf_mc_phdr), "::", stringify!(subhdr) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sita_phdr { pub sita_flags: guint8, pub sita_signals: guint8, pub sita_errors1: guint8, pub sita_errors2: guint8, pub sita_proto: guint8, } #[test] fn bindgen_test_layout_sita_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 5usize, concat!("Size of: ", stringify!(sita_phdr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(sita_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(sita_phdr), "::", stringify!(sita_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita_signals) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(sita_phdr), "::", stringify!(sita_signals) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita_errors1) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(sita_phdr), "::", stringify!(sita_errors1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita_errors2) as usize - ptr as usize }, 3usize, concat!( "Offset of field: ", stringify!(sita_phdr), "::", stringify!(sita_errors2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita_proto) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(sita_phdr), "::", stringify!(sita_proto) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct bthci_phdr { pub sent: gboolean, pub channel: guint32, } #[test] fn bindgen_test_layout_bthci_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(bthci_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(bthci_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sent) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(bthci_phdr), "::", stringify!(sent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).channel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(bthci_phdr), "::", stringify!(channel) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct btmon_phdr { pub adapter_id: guint16, pub opcode: guint16, } #[test] fn bindgen_test_layout_btmon_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(btmon_phdr)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(btmon_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).adapter_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(btmon_phdr), "::", stringify!(adapter_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).opcode) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(btmon_phdr), "::", stringify!(opcode) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct l1event_phdr { pub uton: gboolean, } #[test] fn bindgen_test_layout_l1event_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(l1event_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(l1event_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uton) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(l1event_phdr), "::", stringify!(uton) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct i2c_phdr { pub is_event: guint8, pub bus: guint8, pub flags: guint32, } #[test] fn bindgen_test_layout_i2c_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(i2c_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(i2c_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_event) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(i2c_phdr), "::", stringify!(is_event) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bus) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(i2c_phdr), "::", stringify!(bus) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(i2c_phdr), "::", stringify!(flags) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct gsm_um_phdr { pub uplink: gboolean, pub channel: guint8, pub bsic: guint8, pub arfcn: guint16, pub tdma_frame: guint32, pub error: guint8, pub timeshift: guint16, } #[test] fn bindgen_test_layout_gsm_um_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(gsm_um_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(gsm_um_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uplink) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(uplink) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).channel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(channel) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bsic) as usize - ptr as usize }, 5usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(bsic) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).arfcn) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(arfcn) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tdma_frame) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(tdma_frame) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).error) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(error) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).timeshift) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(gsm_um_phdr), "::", stringify!(timeshift) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nstr_phdr { pub rec_offset: gint64, pub rec_len: gint32, pub nicno_offset: guint8, pub nicno_len: guint8, pub dir_offset: guint8, pub dir_len: guint8, pub eth_offset: guint16, pub pcb_offset: guint8, pub l_pcb_offset: guint8, pub rec_type: guint8, pub vlantag_offset: guint8, pub coreid_offset: guint8, pub srcnodeid_offset: guint8, pub destnodeid_offset: guint8, pub clflags_offset: guint8, pub src_vmname_len_offset: guint8, pub dst_vmname_len_offset: guint8, pub ns_activity_offset: guint8, pub data_offset: guint8, } #[test] fn bindgen_test_layout_nstr_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(nstr_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(nstr_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec_offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(rec_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(rec_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nicno_offset) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(nicno_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nicno_len) as usize - ptr as usize }, 13usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(nicno_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dir_offset) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(dir_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dir_len) as usize - ptr as usize }, 15usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(dir_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eth_offset) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(eth_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pcb_offset) as usize - ptr as usize }, 18usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(pcb_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).l_pcb_offset) as usize - ptr as usize }, 19usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(l_pcb_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec_type) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(rec_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vlantag_offset) as usize - ptr as usize }, 21usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(vlantag_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).coreid_offset) as usize - ptr as usize }, 22usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(coreid_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).srcnodeid_offset) as usize - ptr as usize }, 23usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(srcnodeid_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).destnodeid_offset) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(destnodeid_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).clflags_offset) as usize - ptr as usize }, 25usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(clflags_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).src_vmname_len_offset) as usize - ptr as usize }, 26usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(src_vmname_len_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dst_vmname_len_offset) as usize - ptr as usize }, 27usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(dst_vmname_len_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ns_activity_offset) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(ns_activity_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data_offset) as usize - ptr as usize }, 29usize, concat!( "Offset of field: ", stringify!(nstr_phdr), "::", stringify!(data_offset) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct nokia_phdr { pub eth: eth_phdr, pub stuff: [guint8; 4usize], } #[test] fn bindgen_test_layout_nokia_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(nokia_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(nokia_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(nokia_phdr), "::", stringify!(eth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).stuff) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(nokia_phdr), "::", stringify!(stuff) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct llcp_phdr { pub adapter: guint8, pub flags: guint8, } #[test] fn bindgen_test_layout_llcp_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 2usize, concat!("Size of: ", stringify!(llcp_phdr)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(llcp_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).adapter) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(llcp_phdr), "::", stringify!(adapter) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 1usize, concat!( "Offset of field: ", stringify!(llcp_phdr), "::", stringify!(flags) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct logcat_phdr { pub version: gint, } #[test] fn bindgen_test_layout_logcat_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(logcat_phdr)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(logcat_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(logcat_phdr), "::", stringify!(version) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct netmon_phdr { pub title: *mut guint8, pub descLength: guint32, pub description: *mut guint8, pub sub_encap: guint, pub subheader: netmon_phdr_sub_wtap_pseudo_header, } #[repr(C)] #[derive(Copy, Clone)] pub union netmon_phdr_sub_wtap_pseudo_header { pub eth: eth_phdr, pub atm: atm_phdr, pub ieee_802_11: ieee_802_11_phdr, } #[test] fn bindgen_test_layout_netmon_phdr_sub_wtap_pseudo_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 72usize, concat!("Size of: ", stringify!(netmon_phdr_sub_wtap_pseudo_header)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!( "Alignment of ", stringify!(netmon_phdr_sub_wtap_pseudo_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(netmon_phdr_sub_wtap_pseudo_header), "::", stringify!(eth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).atm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(netmon_phdr_sub_wtap_pseudo_header), "::", stringify!(atm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ieee_802_11) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(netmon_phdr_sub_wtap_pseudo_header), "::", stringify!(ieee_802_11) ) ); } #[test] fn bindgen_test_layout_netmon_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 104usize, concat!("Size of: ", stringify!(netmon_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(netmon_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).title) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(netmon_phdr), "::", stringify!(title) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).descLength) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(netmon_phdr), "::", stringify!(descLength) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).description) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(netmon_phdr), "::", stringify!(description) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sub_encap) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(netmon_phdr), "::", stringify!(sub_encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).subheader) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(netmon_phdr), "::", stringify!(subheader) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ber_phdr { pub pathname: *const ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_ber_phdr() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(ber_phdr)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(ber_phdr)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pathname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ber_phdr), "::", stringify!(pathname) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub union wtap_pseudo_header { pub eth: eth_phdr, pub dte_dce: dte_dce_phdr, pub isdn: isdn_phdr, pub atm: atm_phdr, pub ascend: ascend_phdr, pub p2p: p2p_phdr, pub ieee_802_11: ieee_802_11_phdr, pub cosine: cosine_phdr, pub irda: irda_phdr, pub nettl: nettl_phdr, pub mtp2: mtp2_phdr, pub k12: k12_phdr, pub lapd: lapd_phdr, pub dct2000: catapult_dct2000_phdr, pub erf: erf_mc_phdr, pub sita: sita_phdr, pub bthci: bthci_phdr, pub btmon: btmon_phdr, pub l1event: l1event_phdr, pub i2c: i2c_phdr, pub gsm_um: gsm_um_phdr, pub nstr: nstr_phdr, pub nokia: nokia_phdr, pub llcp: llcp_phdr, pub logcat: logcat_phdr, pub netmon: netmon_phdr, pub ber: ber_phdr, } #[test] fn bindgen_test_layout_wtap_pseudo_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 152usize, concat!("Size of: ", stringify!(wtap_pseudo_header)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_pseudo_header)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).eth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(eth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dte_dce) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(dte_dce) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).isdn) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(isdn) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).atm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(atm) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ascend) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(ascend) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p2p) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(p2p) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ieee_802_11) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(ieee_802_11) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cosine) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(cosine) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).irda) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(irda) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nettl) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(nettl) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).mtp2) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(mtp2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).k12) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(k12) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).lapd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(lapd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dct2000) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(dct2000) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).erf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(erf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sita) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(sita) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bthci) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(bthci) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).btmon) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(btmon) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).l1event) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(l1event) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).i2c) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(i2c) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gsm_um) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(gsm_um) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nstr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(nstr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nokia) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(nokia) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).llcp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(llcp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).logcat) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(logcat) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).netmon) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(netmon) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ber) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_pseudo_header), "::", stringify!(ber) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct wtap_packet_header { pub caplen: guint32, pub len: guint32, pub pkt_encap: ::std::os::raw::c_int, pub interface_id: guint32, pub pseudo_header: wtap_pseudo_header, } #[test] fn bindgen_test_layout_wtap_packet_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 168usize, concat!("Size of: ", stringify!(wtap_packet_header)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_packet_header)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).caplen) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_packet_header), "::", stringify!(caplen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_packet_header), "::", stringify!(len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkt_encap) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_packet_header), "::", stringify!(pkt_encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).interface_id) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(wtap_packet_header), "::", stringify!(interface_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pseudo_header) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(wtap_packet_header), "::", stringify!(pseudo_header) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_ft_specific_header { pub record_type: guint, pub record_len: guint32, } #[test] fn bindgen_test_layout_wtap_ft_specific_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(wtap_ft_specific_header)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(wtap_ft_specific_header)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).record_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_ft_specific_header), "::", stringify!(record_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).record_len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_ft_specific_header), "::", stringify!(record_len) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_syscall_header { pub record_type: guint, pub byte_order: ::std::os::raw::c_int, pub timestamp: guint64, pub thread_id: guint64, pub event_len: guint32, pub event_filelen: guint32, pub event_type: guint16, pub nparams: guint32, pub cpu_id: guint16, } #[test] fn bindgen_test_layout_wtap_syscall_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(wtap_syscall_header)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_syscall_header)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).record_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(record_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).byte_order) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(byte_order) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(timestamp) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).thread_id) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(thread_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).event_len) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(event_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).event_filelen) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(event_filelen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).event_type) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(event_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nparams) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(nparams) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cpu_id) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(wtap_syscall_header), "::", stringify!(cpu_id) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_systemd_journal_export_header { pub record_len: guint32, } #[test] fn bindgen_test_layout_wtap_systemd_journal_export_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, concat!("Size of: ", stringify!(wtap_systemd_journal_export_header)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!( "Alignment of ", stringify!(wtap_systemd_journal_export_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).record_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_systemd_journal_export_header), "::", stringify!(record_len) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct wtap_custom_block_header { pub length: guint32, pub pen: guint32, pub copy_allowed: gboolean, pub custom_data_header: wtap_custom_block_header__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union wtap_custom_block_header__bindgen_ty_1 { pub nflx_custom_data_header: wtap_custom_block_header__bindgen_ty_1_nflx, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_custom_block_header__bindgen_ty_1_nflx { pub type_: guint32, pub skipped: guint32, } #[test] fn bindgen_test_layout_wtap_custom_block_header__bindgen_ty_1_nflx() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!( "Size of: ", stringify!(wtap_custom_block_header__bindgen_ty_1_nflx) ) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!( "Alignment of ", stringify!(wtap_custom_block_header__bindgen_ty_1_nflx) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header__bindgen_ty_1_nflx), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).skipped) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header__bindgen_ty_1_nflx), "::", stringify!(skipped) ) ); } #[test] fn bindgen_test_layout_wtap_custom_block_header__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!( "Size of: ", stringify!(wtap_custom_block_header__bindgen_ty_1) ) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!( "Alignment of ", stringify!(wtap_custom_block_header__bindgen_ty_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nflx_custom_data_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header__bindgen_ty_1), "::", stringify!(nflx_custom_data_header) ) ); } #[test] fn bindgen_test_layout_wtap_custom_block_header() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, concat!("Size of: ", stringify!(wtap_custom_block_header)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(wtap_custom_block_header)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header), "::", stringify!(length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pen) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header), "::", stringify!(pen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).copy_allowed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header), "::", stringify!(copy_allowed) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_data_header) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(wtap_custom_block_header), "::", stringify!(custom_data_header) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct wtap_rec { pub rec_type: guint, pub presence_flags: guint32, pub section_number: guint, pub ts: nstime_t, pub tsprec: ::std::os::raw::c_int, pub rec_header: wtap_rec__bindgen_ty_1, pub block: wtap_block_t, pub block_was_modified: gboolean, pub options_buf: Buffer, } #[repr(C)] #[derive(Copy, Clone)] pub union wtap_rec__bindgen_ty_1 { pub packet_header: wtap_packet_header, pub ft_specific_header: wtap_ft_specific_header, pub syscall_header: wtap_syscall_header, pub systemd_journal_export_header: wtap_systemd_journal_export_header, pub custom_block_header: wtap_custom_block_header, } #[test] fn bindgen_test_layout_wtap_rec__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 168usize, concat!("Size of: ", stringify!(wtap_rec__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_rec__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).packet_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec__bindgen_ty_1), "::", stringify!(packet_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ft_specific_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec__bindgen_ty_1), "::", stringify!(ft_specific_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).syscall_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec__bindgen_ty_1), "::", stringify!(syscall_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).systemd_journal_export_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec__bindgen_ty_1), "::", stringify!(systemd_journal_export_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).custom_block_header) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec__bindgen_ty_1), "::", stringify!(custom_block_header) ) ); } #[test] fn bindgen_test_layout_wtap_rec() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, concat!("Size of: ", stringify!(wtap_rec)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_rec)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(rec_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).presence_flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(presence_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).section_number) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(section_number) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ts) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tsprec) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(tsprec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec_header) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(rec_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(block) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).block_was_modified) as usize - ptr as usize }, 216usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(block_was_modified) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).options_buf) as usize - ptr as usize }, 224usize, concat!( "Offset of field: ", stringify!(wtap_rec), "::", stringify!(options_buf) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hashipv4 { pub addr: guint, pub flags: guint8, pub ip: [gchar; 16usize], pub name: [gchar; 64usize], } #[test] fn bindgen_test_layout_hashipv4() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 88usize, concat!("Size of: ", stringify!(hashipv4)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(hashipv4)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(hashipv4), "::", stringify!(addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(hashipv4), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, 5usize, concat!( "Offset of field: ", stringify!(hashipv4), "::", stringify!(ip) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 21usize, concat!( "Offset of field: ", stringify!(hashipv4), "::", stringify!(name) ) ); } pub type hashipv4_t = hashipv4; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hashipv6 { pub addr: [guint8; 16usize], pub flags: guint8, pub ip6: [gchar; 46usize], pub name: [gchar; 64usize], } #[test] fn bindgen_test_layout_hashipv6() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 127usize, concat!("Size of: ", stringify!(hashipv6)) ); assert_eq!( ::std::mem::align_of::(), 1usize, concat!("Alignment of ", stringify!(hashipv6)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(hashipv6), "::", stringify!(addr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(hashipv6), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ip6) as usize - ptr as usize }, 17usize, concat!( "Offset of field: ", stringify!(hashipv6), "::", stringify!(ip6) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 63usize, concat!( "Offset of field: ", stringify!(hashipv6), "::", stringify!(name) ) ); } pub type hashipv6_t = hashipv6; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct addrinfo_lists { pub ipv4_addr_list: *mut GList, pub ipv6_addr_list: *mut GList, } #[test] fn bindgen_test_layout_addrinfo_lists() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(addrinfo_lists)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(addrinfo_lists)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv4_addr_list) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(addrinfo_lists), "::", stringify!(ipv4_addr_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv6_addr_list) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(addrinfo_lists), "::", stringify!(ipv6_addr_list) ) ); } pub type addrinfo_lists_t = addrinfo_lists; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_dump_params { pub encap: ::std::os::raw::c_int, pub snaplen: ::std::os::raw::c_int, pub tsprec: ::std::os::raw::c_int, pub shb_hdrs: *mut GArray, pub idb_inf: *mut wtapng_iface_descriptions_t, pub nrb_hdrs: *mut GArray, pub dsbs_initial: *mut GArray, pub dsbs_growing: *const GArray, pub dont_copy_idbs: gboolean, } #[test] fn bindgen_test_layout_wtap_dump_params() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, concat!("Size of: ", stringify!(wtap_dump_params)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_dump_params)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).encap) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).snaplen) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(snaplen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tsprec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(tsprec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).shb_hdrs) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(shb_hdrs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).idb_inf) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(idb_inf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nrb_hdrs) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(nrb_hdrs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dsbs_initial) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(dsbs_initial) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dsbs_growing) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(dsbs_growing) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dont_copy_idbs) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(wtap_dump_params), "::", stringify!(dont_copy_idbs) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_reader { _unused: [u8; 0], } pub type FILE_T = *mut wtap_reader; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_wslua_file_info { pub wslua_can_write_encap: ::std::option::Option< unsafe extern "C" fn( arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >, pub wslua_data: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_wtap_wslua_file_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(wtap_wslua_file_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_wslua_file_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wslua_can_write_encap) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_wslua_file_info), "::", stringify!(wslua_can_write_encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wslua_data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(wtap_wslua_file_info), "::", stringify!(wslua_data) ) ); } pub type wtap_wslua_file_info_t = wtap_wslua_file_info; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct file_extension_info { pub name: *const ::std::os::raw::c_char, pub is_capture_file: gboolean, pub extensions: *const ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_file_extension_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(file_extension_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(file_extension_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(file_extension_info), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_capture_file) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(file_extension_info), "::", stringify!(is_capture_file) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extensions) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(file_extension_info), "::", stringify!(extensions) ) ); } pub const wtap_open_return_val_WTAP_OPEN_NOT_MINE: wtap_open_return_val = 0; pub const wtap_open_return_val_WTAP_OPEN_MINE: wtap_open_return_val = 1; pub const wtap_open_return_val_WTAP_OPEN_ERROR: wtap_open_return_val = -1; pub type wtap_open_return_val = ::std::os::raw::c_int; pub type wtap_open_routine_t = ::std::option::Option< unsafe extern "C" fn( arg1: *mut wtap, arg2: *mut ::std::os::raw::c_int, arg3: *mut *mut ::std::os::raw::c_char, ) -> wtap_open_return_val, >; pub const wtap_open_type_OPEN_INFO_MAGIC: wtap_open_type = 0; pub const wtap_open_type_OPEN_INFO_HEURISTIC: wtap_open_type = 1; pub type wtap_open_type = ::std::os::raw::c_uint; extern "C" { pub fn init_open_routines(); } extern "C" { pub fn cleanup_open_routines(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct open_info { pub name: *const ::std::os::raw::c_char, pub type_: wtap_open_type, pub open_routine: wtap_open_routine_t, pub extensions: *const ::std::os::raw::c_char, pub extensions_set: *mut *mut gchar, pub wslua_data: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_open_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(open_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(open_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).open_routine) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(open_routine) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extensions) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(extensions) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extensions_set) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(extensions_set) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wslua_data) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(open_info), "::", stringify!(wslua_data) ) ); } extern "C" { pub static mut open_routines: *mut open_info; } pub const option_support_t_OPTION_NOT_SUPPORTED: option_support_t = 0; pub const option_support_t_ONE_OPTION_SUPPORTED: option_support_t = 1; pub const option_support_t_MULTIPLE_OPTIONS_SUPPORTED: option_support_t = 2; pub type option_support_t = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct supported_option_type { pub opt: guint, pub support: option_support_t, } #[test] fn bindgen_test_layout_supported_option_type() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(supported_option_type)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(supported_option_type)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).opt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(supported_option_type), "::", stringify!(opt) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).support) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(supported_option_type), "::", stringify!(support) ) ); } pub const block_support_t_BLOCK_NOT_SUPPORTED: block_support_t = 0; pub const block_support_t_ONE_BLOCK_SUPPORTED: block_support_t = 1; pub const block_support_t_MULTIPLE_BLOCKS_SUPPORTED: block_support_t = 2; pub type block_support_t = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct supported_block_type { pub type_: wtap_block_type_t, pub support: block_support_t, pub num_supported_options: usize, pub supported_options: *const supported_option_type, } #[test] fn bindgen_test_layout_supported_block_type() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(supported_block_type)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(supported_block_type)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(supported_block_type), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).support) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(supported_block_type), "::", stringify!(support) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_supported_options) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(supported_block_type), "::", stringify!(num_supported_options) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).supported_options) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(supported_block_type), "::", stringify!(supported_options) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct file_type_subtype_info { pub description: *const ::std::os::raw::c_char, pub name: *const ::std::os::raw::c_char, pub default_file_extension: *const ::std::os::raw::c_char, pub additional_file_extensions: *const ::std::os::raw::c_char, pub writing_must_seek: gboolean, pub num_supported_blocks: usize, pub supported_blocks: *const supported_block_type, pub can_write_encap: ::std::option::Option< unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int, >, pub dump_open: ::std::option::Option< unsafe extern "C" fn( arg1: *mut wtap_dumper, arg2: *mut ::std::os::raw::c_int, arg3: *mut *mut gchar, ) -> ::std::os::raw::c_int, >, pub wslua_info: *mut wtap_wslua_file_info_t, } #[test] fn bindgen_test_layout_file_type_subtype_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, concat!("Size of: ", stringify!(file_type_subtype_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(file_type_subtype_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).description) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(description) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).default_file_extension) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(default_file_extension) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).additional_file_extensions) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(additional_file_extensions) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).writing_must_seek) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(writing_must_seek) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_supported_blocks) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(num_supported_blocks) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).supported_blocks) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(supported_blocks) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).can_write_encap) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(can_write_encap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dump_open) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(dump_open) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).wslua_info) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(file_type_subtype_info), "::", stringify!(wslua_info) ) ); } extern "C" { pub fn wtap_init(load_wiretap_plugins: gboolean); } extern "C" { pub fn wtap_open_offline( filename: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_uint, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, do_random: gboolean, ) -> *mut wtap; } extern "C" { pub fn wtap_cleareof(wth: *mut wtap); } pub type wtap_new_ipv4_callback_t = ::std::option::Option; extern "C" { pub fn wtap_set_cb_new_ipv4(wth: *mut wtap, add_new_ipv4: wtap_new_ipv4_callback_t); } pub type wtap_new_ipv6_callback_t = ::std::option::Option< unsafe extern "C" fn(addrp: *const ::std::os::raw::c_void, name: *const gchar), >; extern "C" { pub fn wtap_set_cb_new_ipv6(wth: *mut wtap, add_new_ipv6: wtap_new_ipv6_callback_t); } pub type wtap_new_secrets_callback_t = ::std::option::Option< unsafe extern "C" fn( secrets_type: guint32, secrets: *const ::std::os::raw::c_void, size: guint, ), >; extern "C" { pub fn wtap_set_cb_new_secrets(wth: *mut wtap, add_new_secrets: wtap_new_secrets_callback_t); } extern "C" { pub fn wtap_read( wth: *mut wtap, rec: *mut wtap_rec, buf: *mut Buffer, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, offset: *mut gint64, ) -> gboolean; } extern "C" { pub fn wtap_seek_read( wth: *mut wtap, seek_off: gint64, rec: *mut wtap_rec, buf: *mut Buffer, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> gboolean; } extern "C" { pub fn wtap_rec_init(rec: *mut wtap_rec); } extern "C" { pub fn wtap_rec_reset(rec: *mut wtap_rec); } extern "C" { pub fn wtap_rec_cleanup(rec: *mut wtap_rec); } pub const wtap_compression_type_WTAP_UNCOMPRESSED: wtap_compression_type = 0; pub const wtap_compression_type_WTAP_GZIP_COMPRESSED: wtap_compression_type = 1; pub const wtap_compression_type_WTAP_ZSTD_COMPRESSED: wtap_compression_type = 2; pub const wtap_compression_type_WTAP_LZ4_COMPRESSED: wtap_compression_type = 3; pub type wtap_compression_type = ::std::os::raw::c_uint; extern "C" { pub fn wtap_get_compression_type(wth: *mut wtap) -> wtap_compression_type; } extern "C" { pub fn wtap_compression_type_description( compression_type: wtap_compression_type, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_compression_type_extension( compression_type: wtap_compression_type, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_get_all_compression_type_extensions_list() -> *mut GSList; } extern "C" { pub fn wtap_read_so_far(wth: *mut wtap) -> gint64; } extern "C" { pub fn wtap_file_size(wth: *mut wtap, err: *mut ::std::os::raw::c_int) -> gint64; } extern "C" { pub fn wtap_snapshot_length(wth: *mut wtap) -> guint; } extern "C" { pub fn wtap_file_type_subtype(wth: *mut wtap) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_file_encap(wth: *mut wtap) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_file_tsprec(wth: *mut wtap) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_file_get_num_shbs(wth: *mut wtap) -> guint; } extern "C" { pub fn wtap_file_get_shb(wth: *mut wtap, shb_num: guint) -> wtap_block_t; } extern "C" { pub fn wtap_write_shb_comment(wth: *mut wtap, comment: *mut gchar); } extern "C" { pub fn wtap_file_get_idb_info(wth: *mut wtap) -> *mut wtapng_iface_descriptions_t; } extern "C" { pub fn wtap_get_next_interface_description(wth: *mut wtap) -> wtap_block_t; } extern "C" { pub fn wtap_free_idb_info(idb_info: *mut wtapng_iface_descriptions_t); } extern "C" { pub fn wtap_get_debug_if_descr( if_descr: wtap_block_t, indent: ::std::os::raw::c_int, line_end: *const ::std::os::raw::c_char, ) -> *mut gchar; } extern "C" { pub fn wtap_file_get_nrb(wth: *mut wtap) -> wtap_block_t; } extern "C" { pub fn wtap_fdclose(wth: *mut wtap); } extern "C" { pub fn wtap_fdreopen( wth: *mut wtap, filename: *const ::std::os::raw::c_char, err: *mut ::std::os::raw::c_int, ) -> gboolean; } extern "C" { pub fn wtap_sequential_close(wth: *mut wtap); } extern "C" { pub fn wtap_close(wth: *mut wtap); } extern "C" { pub fn wtap_dump_can_open(filetype: ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn wtap_dump_file_encap_type(file_encaps: *const GArray) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_dump_can_write_encap( file_type_subtype: ::std::os::raw::c_int, encap: ::std::os::raw::c_int, ) -> gboolean; } extern "C" { pub fn wtap_dump_can_compress(file_type_subtype: ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn wtap_dump_params_init(params: *mut wtap_dump_params, wth: *mut wtap); } extern "C" { pub fn wtap_dump_params_init_no_idbs(params: *mut wtap_dump_params, wth: *mut wtap); } extern "C" { pub fn wtap_dump_params_discard_decryption_secrets(params: *mut wtap_dump_params); } extern "C" { pub fn wtap_dump_params_cleanup(params: *mut wtap_dump_params); } extern "C" { pub fn wtap_dump_open( filename: *const ::std::os::raw::c_char, file_type_subtype: ::std::os::raw::c_int, compression_type: wtap_compression_type, params: *const wtap_dump_params, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> *mut wtap_dumper; } extern "C" { pub fn wtap_dump_open_tempfile( tmpdir: *const ::std::os::raw::c_char, filenamep: *mut *mut ::std::os::raw::c_char, pfx: *const ::std::os::raw::c_char, file_type_subtype: ::std::os::raw::c_int, compression_type: wtap_compression_type, params: *const wtap_dump_params, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> *mut wtap_dumper; } extern "C" { pub fn wtap_dump_fdopen( fd: ::std::os::raw::c_int, file_type_subtype: ::std::os::raw::c_int, compression_type: wtap_compression_type, params: *const wtap_dump_params, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> *mut wtap_dumper; } extern "C" { pub fn wtap_dump_open_stdout( file_type_subtype: ::std::os::raw::c_int, compression_type: wtap_compression_type, params: *const wtap_dump_params, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> *mut wtap_dumper; } extern "C" { pub fn wtap_dump_add_idb( wdh: *mut wtap_dumper, idb: wtap_block_t, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> gboolean; } extern "C" { pub fn wtap_dump( arg1: *mut wtap_dumper, arg2: *const wtap_rec, arg3: *const guint8, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> gboolean; } extern "C" { pub fn wtap_dump_flush(arg1: *mut wtap_dumper, arg2: *mut ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn wtap_dump_file_type_subtype(wdh: *mut wtap_dumper) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_get_bytes_dumped(arg1: *mut wtap_dumper) -> gint64; } extern "C" { pub fn wtap_set_bytes_dumped(wdh: *mut wtap_dumper, bytes_dumped: gint64); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct addrinfo { _unused: [u8; 0], } extern "C" { pub fn wtap_addrinfo_list_empty(addrinfo_lists: *mut addrinfo_lists_t) -> gboolean; } extern "C" { pub fn wtap_dump_set_addrinfo_list( wdh: *mut wtap_dumper, addrinfo_lists: *mut addrinfo_lists_t, ) -> gboolean; } extern "C" { pub fn wtap_dump_discard_decryption_secrets(wdh: *mut wtap_dumper); } extern "C" { pub fn wtap_dump_close( wdh: *mut wtap_dumper, needs_reload: *mut gboolean, err: *mut ::std::os::raw::c_int, err_info: *mut *mut gchar, ) -> gboolean; } extern "C" { pub fn wtap_dump_can_write( file_encaps: *const GArray, required_comment_types: guint32, ) -> gboolean; } pub const ft_sort_order_FT_SORT_BY_NAME: ft_sort_order = 0; pub const ft_sort_order_FT_SORT_BY_DESCRIPTION: ft_sort_order = 1; pub type ft_sort_order = ::std::os::raw::c_uint; extern "C" { pub fn wtap_get_savable_file_types_subtypes_for_file( file_type: ::std::os::raw::c_int, file_encaps: *const GArray, required_comment_types: guint32, sort_order: ft_sort_order, ) -> *mut GArray; } extern "C" { pub fn wtap_get_writable_file_types_subtypes(sort_order: ft_sort_order) -> *mut GArray; } extern "C" { pub fn wtap_file_type_subtype_description( file_type_subtype: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_file_type_subtype_name( file_type_subtype: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_name_to_file_type_subtype( name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_pcap_file_type_subtype() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_pcap_nsec_file_type_subtype() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_pcapng_file_type_subtype() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_file_type_subtype_supports_block( filetype: ::std::os::raw::c_int, type_: wtap_block_type_t, ) -> block_support_t; } extern "C" { pub fn wtap_file_type_subtype_supports_option( filetype: ::std::os::raw::c_int, type_: wtap_block_type_t, opttype: guint, ) -> option_support_t; } extern "C" { pub fn wtap_get_all_capture_file_extensions_list() -> *mut GSList; } extern "C" { pub fn wtap_default_file_extension( filetype: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_get_file_extensions_list( filetype: ::std::os::raw::c_int, include_compressed: gboolean, ) -> *mut GSList; } extern "C" { pub fn wtap_get_all_file_extensions_list() -> *mut GSList; } extern "C" { pub fn wtap_free_extensions_list(extensions: *mut GSList); } extern "C" { pub fn wtap_encap_name(encap: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_encap_description(encap: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_name_to_encap(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_tsprec_string(tsprec: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_strerror(err: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_get_num_file_type_extensions() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_get_num_encap_types() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_get_file_extension_type_name( extension_type: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn wtap_get_file_extension_type_extensions(extension_type: guint) -> *mut GSList; } extern "C" { pub fn wtap_register_file_type_extension(ei: *const file_extension_info); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct wtap_plugin { pub register_wtap_module: ::std::option::Option, } #[test] fn bindgen_test_layout_wtap_plugin() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(wtap_plugin)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(wtap_plugin)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_wtap_module) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(wtap_plugin), "::", stringify!(register_wtap_module) ) ); } extern "C" { pub fn wtap_register_plugin(plug: *const wtap_plugin); } extern "C" { pub fn wtap_plugins_supported() -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_register_open_info(oi: *mut open_info, first_routine: gboolean); } extern "C" { pub fn wtap_has_open_info(name: *const gchar) -> gboolean; } extern "C" { pub fn wtap_uses_lua_filehandler(wth: *const wtap) -> gboolean; } extern "C" { pub fn wtap_deregister_open_info(name: *const gchar); } extern "C" { pub fn open_info_name_to_type(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_uint; } extern "C" { pub fn wtap_register_file_type_subtype( fi: *const file_type_subtype_info, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_deregister_file_type_subtype(file_type_subtype: ::std::os::raw::c_int); } extern "C" { pub fn wtap_register_encap_type( description: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn wtap_cleanup(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_session { _unused: [u8; 0], } pub const packet_char_enc_PACKET_CHAR_ENC_CHAR_ASCII: packet_char_enc = 0; pub const packet_char_enc_PACKET_CHAR_ENC_CHAR_EBCDIC: packet_char_enc = 1; pub type packet_char_enc = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _color_filter { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _frame_data { pub num: guint32, pub pkt_len: guint32, pub cap_len: guint32, pub cum_bytes: guint32, pub file_off: gint64, pub pfd: *mut GSList, pub color_filter: *const _color_filter, pub subnum: guint16, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub abs_ts: nstime_t, pub shift_offset: nstime_t, pub frame_ref_num: guint32, pub prev_dis_num: guint32, } #[test] fn bindgen_test_layout__frame_data() { const UNINIT: ::std::mem::MaybeUninit<_frame_data> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_frame_data>(), 88usize, concat!("Size of: ", stringify!(_frame_data)) ); assert_eq!( ::std::mem::align_of::<_frame_data>(), 8usize, concat!("Alignment of ", stringify!(_frame_data)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkt_len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(pkt_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cap_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(cap_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cum_bytes) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(cum_bytes) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).file_off) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(file_off) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pfd) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(pfd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).color_filter) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(color_filter) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).subnum) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(subnum) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).abs_ts) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(abs_ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).shift_offset) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(shift_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).frame_ref_num) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(frame_ref_num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).prev_dis_num) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", stringify!(_frame_data), "::", stringify!(prev_dis_num) ) ); } impl _frame_data { #[inline] pub fn passed_dfilter(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_passed_dfilter(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn dependent_of_displayed(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_dependent_of_displayed(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn encoding(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } #[inline] pub fn set_encoding(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(2usize, 1u8, val as u64) } } #[inline] pub fn visited(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } #[inline] pub fn set_visited(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(3usize, 1u8, val as u64) } } #[inline] pub fn marked(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } #[inline] pub fn set_marked(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(4usize, 1u8, val as u64) } } #[inline] pub fn ref_time(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } } #[inline] pub fn set_ref_time(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(5usize, 1u8, val as u64) } } #[inline] pub fn ignored(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } } #[inline] pub fn set_ignored(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(6usize, 1u8, val as u64) } } #[inline] pub fn has_ts(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } } #[inline] pub fn set_has_ts(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(7usize, 1u8, val as u64) } } #[inline] pub fn has_modified_block(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } } #[inline] pub fn set_has_modified_block(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(8usize, 1u8, val as u64) } } #[inline] pub fn need_colorize(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } } #[inline] pub fn set_need_colorize(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(9usize, 1u8, val as u64) } } #[inline] pub fn tsprec(&self) -> ::std::os::raw::c_uint { unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 4u8) as u32) } } #[inline] pub fn set_tsprec(&mut self, val: ::std::os::raw::c_uint) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(10usize, 4u8, val as u64) } } #[inline] pub fn new_bitfield_1( passed_dfilter: ::std::os::raw::c_uint, dependent_of_displayed: ::std::os::raw::c_uint, encoding: ::std::os::raw::c_uint, visited: ::std::os::raw::c_uint, marked: ::std::os::raw::c_uint, ref_time: ::std::os::raw::c_uint, ignored: ::std::os::raw::c_uint, has_ts: ::std::os::raw::c_uint, has_modified_block: ::std::os::raw::c_uint, need_colorize: ::std::os::raw::c_uint, tsprec: ::std::os::raw::c_uint, ) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let passed_dfilter: u32 = unsafe { ::std::mem::transmute(passed_dfilter) }; passed_dfilter as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let dependent_of_displayed: u32 = unsafe { ::std::mem::transmute(dependent_of_displayed) }; dependent_of_displayed as u64 }); __bindgen_bitfield_unit.set(2usize, 1u8, { let encoding: u32 = unsafe { ::std::mem::transmute(encoding) }; encoding as u64 }); __bindgen_bitfield_unit.set(3usize, 1u8, { let visited: u32 = unsafe { ::std::mem::transmute(visited) }; visited as u64 }); __bindgen_bitfield_unit.set(4usize, 1u8, { let marked: u32 = unsafe { ::std::mem::transmute(marked) }; marked as u64 }); __bindgen_bitfield_unit.set(5usize, 1u8, { let ref_time: u32 = unsafe { ::std::mem::transmute(ref_time) }; ref_time as u64 }); __bindgen_bitfield_unit.set(6usize, 1u8, { let ignored: u32 = unsafe { ::std::mem::transmute(ignored) }; ignored as u64 }); __bindgen_bitfield_unit.set(7usize, 1u8, { let has_ts: u32 = unsafe { ::std::mem::transmute(has_ts) }; has_ts as u64 }); __bindgen_bitfield_unit.set(8usize, 1u8, { let has_modified_block: u32 = unsafe { ::std::mem::transmute(has_modified_block) }; has_modified_block as u64 }); __bindgen_bitfield_unit.set(9usize, 1u8, { let need_colorize: u32 = unsafe { ::std::mem::transmute(need_colorize) }; need_colorize as u64 }); __bindgen_bitfield_unit.set(10usize, 4u8, { let tsprec: u32 = unsafe { ::std::mem::transmute(tsprec) }; tsprec as u64 }); __bindgen_bitfield_unit } } pub type frame_data = _frame_data; extern "C" { pub fn frame_data_compare( epan: *const epan_session, fdata1: *const frame_data, fdata2: *const frame_data, field: ::std::os::raw::c_int, ) -> gint; } extern "C" { pub fn frame_data_reset(fdata: *mut frame_data); } extern "C" { pub fn frame_data_destroy(fdata: *mut frame_data); } extern "C" { pub fn frame_data_init( fdata: *mut frame_data, num: guint32, rec: *const wtap_rec, offset: gint64, cum_bytes: guint32, ); } extern "C" { pub fn frame_delta_abs_time( epan: *const epan_session, fdata: *const frame_data, prev_num: guint32, delta: *mut nstime_t, ); } extern "C" { pub fn frame_data_set_before_dissect( fdata: *mut frame_data, elapsed_time: *mut nstime_t, frame_ref: *mut *const frame_data, prev_dis: *const frame_data, ); } extern "C" { pub fn frame_data_set_after_dissect(fdata: *mut frame_data, cum_bytes: *mut guint32); } pub const address_type_AT_NONE: address_type = 0; pub const address_type_AT_ETHER: address_type = 1; pub const address_type_AT_IPv4: address_type = 2; pub const address_type_AT_IPv6: address_type = 3; pub const address_type_AT_IPX: address_type = 4; pub const address_type_AT_FC: address_type = 5; pub const address_type_AT_FCWWN: address_type = 6; pub const address_type_AT_STRINGZ: address_type = 7; pub const address_type_AT_EUI64: address_type = 8; pub const address_type_AT_IB: address_type = 9; pub const address_type_AT_AX25: address_type = 10; pub const address_type_AT_VINES: address_type = 11; pub const address_type_AT_NUMERIC: address_type = 12; pub const address_type_AT_END_OF_LIST: address_type = 13; pub type address_type = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _address { pub type_: ::std::os::raw::c_int, pub len: ::std::os::raw::c_int, pub data: *const ::std::os::raw::c_void, pub priv_: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout__address() { const UNINIT: ::std::mem::MaybeUninit<_address> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_address>(), 24usize, concat!("Size of: ", stringify!(_address)) ); assert_eq!( ::std::mem::align_of::<_address>(), 8usize, concat!("Alignment of ", stringify!(_address)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_address), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_address), "::", stringify!(len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_address), "::", stringify!(data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).priv_) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_address), "::", stringify!(priv_) ) ); } pub type address = _address; extern "C" { pub fn address_to_bytes(addr: *const address, buf: *mut guint8, buf_len: guint) -> guint; } pub const port_type_PT_NONE: port_type = 0; pub const port_type_PT_SCTP: port_type = 1; pub const port_type_PT_TCP: port_type = 2; pub const port_type_PT_UDP: port_type = 3; pub const port_type_PT_DCCP: port_type = 4; pub const port_type_PT_IPX: port_type = 5; pub const port_type_PT_DDP: port_type = 6; pub const port_type_PT_IDP: port_type = 7; pub const port_type_PT_USB: port_type = 8; pub const port_type_PT_I2C: port_type = 9; pub const port_type_PT_IBQP: port_type = 10; pub const port_type_PT_BLUETOOTH: port_type = 11; pub const port_type_PT_IWARP_MPA: port_type = 12; pub type port_type = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct conversation_element { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _packet_info { pub current_proto: *const ::std::os::raw::c_char, pub cinfo: *mut epan_column_info, pub presence_flags: guint32, pub num: guint32, pub abs_ts: nstime_t, pub rel_ts: nstime_t, pub fd: *mut frame_data, pub pseudo_header: *mut wtap_pseudo_header, pub rec: *mut wtap_rec, pub data_src: *mut GSList, pub dl_src: address, pub dl_dst: address, pub net_src: address, pub net_dst: address, pub src: address, pub dst: address, pub vlan_id: guint32, pub noreassembly_reason: *const ::std::os::raw::c_char, pub fragmented: gboolean, pub flags: _packet_info__bindgen_ty_1, pub ptype: port_type, pub srcport: guint32, pub destport: guint32, pub match_uint: guint32, pub match_string: *const ::std::os::raw::c_char, pub use_conv_addr_port_endpoints: gboolean, pub conv_addr_port_endpoints: *mut conversation_addr_port_endpoints, pub conv_elements: *mut conversation_element, pub can_desegment: guint16, pub saved_can_desegment: guint16, pub desegment_offset: ::std::os::raw::c_int, pub desegment_len: guint32, pub want_pdu_tracking: guint16, pub bytes_until_next_pdu: guint32, pub p2p_dir: ::std::os::raw::c_int, pub private_table: *mut GHashTable, pub layers: *mut wmem_list_t, pub proto_layers: *mut wmem_map_t, pub curr_layer_num: guint8, pub curr_proto_layer_num: guint8, pub link_number: guint16, pub clnp_srcref: guint16, pub clnp_dstref: guint16, pub link_dir: ::std::os::raw::c_int, pub src_win_scale: gint16, pub dst_win_scale: gint16, pub proto_data: *mut GSList, pub dependent_frames: *mut GSList, pub frame_end_routines: *mut GSList, pub pool: *mut wmem_allocator_t, pub epan: *mut epan_session, pub heur_list_name: *const gchar, } #[repr(C)] #[repr(align(4))] #[derive(Debug, Copy, Clone)] pub struct _packet_info__bindgen_ty_1 { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } #[test] fn bindgen_test_layout__packet_info__bindgen_ty_1() { assert_eq!( ::std::mem::size_of::<_packet_info__bindgen_ty_1>(), 4usize, concat!("Size of: ", stringify!(_packet_info__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_packet_info__bindgen_ty_1>(), 4usize, concat!("Alignment of ", stringify!(_packet_info__bindgen_ty_1)) ); } impl _packet_info__bindgen_ty_1 { #[inline] pub fn in_error_pkt(&self) -> guint32 { unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] pub fn set_in_error_pkt(&mut self, val: guint32) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] pub fn in_gre_pkt(&self) -> guint32 { unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] pub fn set_in_gre_pkt(&mut self, val: guint32) { unsafe { let val: u32 = ::std::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] pub fn new_bitfield_1( in_error_pkt: guint32, in_gre_pkt: guint32, ) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { let in_error_pkt: u32 = unsafe { ::std::mem::transmute(in_error_pkt) }; in_error_pkt as u64 }); __bindgen_bitfield_unit.set(1usize, 1u8, { let in_gre_pkt: u32 = unsafe { ::std::mem::transmute(in_gre_pkt) }; in_gre_pkt as u64 }); __bindgen_bitfield_unit } } #[test] fn bindgen_test_layout__packet_info() { const UNINIT: ::std::mem::MaybeUninit<_packet_info> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_packet_info>(), 416usize, concat!("Size of: ", stringify!(_packet_info)) ); assert_eq!( ::std::mem::align_of::<_packet_info>(), 8usize, concat!("Alignment of ", stringify!(_packet_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).current_proto) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(current_proto) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cinfo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(cinfo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).presence_flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(presence_flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).abs_ts) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(abs_ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rel_ts) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(rel_ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fd) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(fd) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pseudo_header) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(pseudo_header) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rec) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(rec) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).data_src) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(data_src) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dl_src) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(dl_src) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dl_dst) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(dl_dst) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).net_src) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(net_src) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).net_dst) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(net_dst) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).src) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(src) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dst) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(dst) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).vlan_id) as usize - ptr as usize }, 232usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(vlan_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).noreassembly_reason) as usize - ptr as usize }, 240usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(noreassembly_reason) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fragmented) as usize - ptr as usize }, 248usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(fragmented) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 252usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ptype) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(ptype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).srcport) as usize - ptr as usize }, 260usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(srcport) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).destport) as usize - ptr as usize }, 264usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(destport) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).match_uint) as usize - ptr as usize }, 268usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(match_uint) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).match_string) as usize - ptr as usize }, 272usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(match_string) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).use_conv_addr_port_endpoints) as usize - ptr as usize }, 280usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(use_conv_addr_port_endpoints) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).conv_addr_port_endpoints) as usize - ptr as usize }, 288usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(conv_addr_port_endpoints) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).conv_elements) as usize - ptr as usize }, 296usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(conv_elements) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).can_desegment) as usize - ptr as usize }, 304usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(can_desegment) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).saved_can_desegment) as usize - ptr as usize }, 306usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(saved_can_desegment) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).desegment_offset) as usize - ptr as usize }, 308usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(desegment_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).desegment_len) as usize - ptr as usize }, 312usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(desegment_len) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).want_pdu_tracking) as usize - ptr as usize }, 316usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(want_pdu_tracking) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bytes_until_next_pdu) as usize - ptr as usize }, 320usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(bytes_until_next_pdu) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p2p_dir) as usize - ptr as usize }, 324usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(p2p_dir) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).private_table) as usize - ptr as usize }, 328usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(private_table) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize }, 336usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(layers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).proto_layers) as usize - ptr as usize }, 344usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(proto_layers) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).curr_layer_num) as usize - ptr as usize }, 352usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(curr_layer_num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).curr_proto_layer_num) as usize - ptr as usize }, 353usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(curr_proto_layer_num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).link_number) as usize - ptr as usize }, 354usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(link_number) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).clnp_srcref) as usize - ptr as usize }, 356usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(clnp_srcref) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).clnp_dstref) as usize - ptr as usize }, 358usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(clnp_dstref) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).link_dir) as usize - ptr as usize }, 360usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(link_dir) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).src_win_scale) as usize - ptr as usize }, 364usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(src_win_scale) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dst_win_scale) as usize - ptr as usize }, 366usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(dst_win_scale) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).proto_data) as usize - ptr as usize }, 368usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(proto_data) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dependent_frames) as usize - ptr as usize }, 376usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(dependent_frames) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).frame_end_routines) as usize - ptr as usize }, 384usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(frame_end_routines) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pool) as usize - ptr as usize }, 392usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(pool) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).epan) as usize - ptr as usize }, 400usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(epan) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).heur_list_name) as usize - ptr as usize }, 408usize, concat!( "Offset of field: ", stringify!(_packet_info), "::", stringify!(heur_list_name) ) ); } pub type packet_info = _packet_info; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _ws_regex { _unused: [u8; 0], } pub type ws_regex_t = _ws_regex; extern "C" { pub fn ws_regex_compile( patt: *const ::std::os::raw::c_char, errmsg: *mut *mut ::std::os::raw::c_char, ) -> *mut ws_regex_t; } extern "C" { pub fn ws_regex_compile_ex( patt: *const ::std::os::raw::c_char, size: isize, errmsg: *mut *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_uint, ) -> *mut ws_regex_t; } extern "C" { pub fn ws_regex_matches(re: *const ws_regex_t, subj: *const ::std::os::raw::c_char) -> bool; } extern "C" { pub fn ws_regex_matches_length( re: *const ws_regex_t, subj: *const ::std::os::raw::c_char, subj_length: isize, ) -> bool; } extern "C" { pub fn ws_regex_matches_pos( re: *const ws_regex_t, subj: *const ::std::os::raw::c_char, subj_length: isize, pos_vect: *mut usize, ) -> bool; } extern "C" { pub fn ws_regex_free(re: *mut ws_regex_t); } extern "C" { pub fn ws_regex_pattern(re: *const ws_regex_t) -> *const ::std::os::raw::c_char; } pub const ftenum_FT_NONE: ftenum = 0; pub const ftenum_FT_PROTOCOL: ftenum = 1; pub const ftenum_FT_BOOLEAN: ftenum = 2; pub const ftenum_FT_CHAR: ftenum = 3; pub const ftenum_FT_UINT8: ftenum = 4; pub const ftenum_FT_UINT16: ftenum = 5; pub const ftenum_FT_UINT24: ftenum = 6; pub const ftenum_FT_UINT32: ftenum = 7; pub const ftenum_FT_UINT40: ftenum = 8; pub const ftenum_FT_UINT48: ftenum = 9; pub const ftenum_FT_UINT56: ftenum = 10; pub const ftenum_FT_UINT64: ftenum = 11; pub const ftenum_FT_INT8: ftenum = 12; pub const ftenum_FT_INT16: ftenum = 13; pub const ftenum_FT_INT24: ftenum = 14; pub const ftenum_FT_INT32: ftenum = 15; pub const ftenum_FT_INT40: ftenum = 16; pub const ftenum_FT_INT48: ftenum = 17; pub const ftenum_FT_INT56: ftenum = 18; pub const ftenum_FT_INT64: ftenum = 19; pub const ftenum_FT_IEEE_11073_SFLOAT: ftenum = 20; pub const ftenum_FT_IEEE_11073_FLOAT: ftenum = 21; pub const ftenum_FT_FLOAT: ftenum = 22; pub const ftenum_FT_DOUBLE: ftenum = 23; pub const ftenum_FT_ABSOLUTE_TIME: ftenum = 24; pub const ftenum_FT_RELATIVE_TIME: ftenum = 25; pub const ftenum_FT_STRING: ftenum = 26; pub const ftenum_FT_STRINGZ: ftenum = 27; pub const ftenum_FT_UINT_STRING: ftenum = 28; pub const ftenum_FT_ETHER: ftenum = 29; pub const ftenum_FT_BYTES: ftenum = 30; pub const ftenum_FT_UINT_BYTES: ftenum = 31; pub const ftenum_FT_IPv4: ftenum = 32; pub const ftenum_FT_IPv6: ftenum = 33; pub const ftenum_FT_IPXNET: ftenum = 34; pub const ftenum_FT_FRAMENUM: ftenum = 35; pub const ftenum_FT_GUID: ftenum = 36; pub const ftenum_FT_OID: ftenum = 37; pub const ftenum_FT_EUI64: ftenum = 38; pub const ftenum_FT_AX25: ftenum = 39; pub const ftenum_FT_VINES: ftenum = 40; pub const ftenum_FT_REL_OID: ftenum = 41; pub const ftenum_FT_SYSTEM_ID: ftenum = 42; pub const ftenum_FT_STRINGZPAD: ftenum = 43; pub const ftenum_FT_FCWWN: ftenum = 44; pub const ftenum_FT_STRINGZTRUNC: ftenum = 45; pub const ftenum_FT_NUM_TYPES: ftenum = 46; pub type ftenum = ::std::os::raw::c_uint; pub use self::ftenum as ftenum_t; pub const ft_framenum_type_FT_FRAMENUM_NONE: ft_framenum_type = 0; pub const ft_framenum_type_FT_FRAMENUM_REQUEST: ft_framenum_type = 1; pub const ft_framenum_type_FT_FRAMENUM_RESPONSE: ft_framenum_type = 2; pub const ft_framenum_type_FT_FRAMENUM_ACK: ft_framenum_type = 3; pub const ft_framenum_type_FT_FRAMENUM_DUP_ACK: ft_framenum_type = 4; pub const ft_framenum_type_FT_FRAMENUM_RETRANS_PREV: ft_framenum_type = 5; pub const ft_framenum_type_FT_FRAMENUM_RETRANS_NEXT: ft_framenum_type = 6; pub const ft_framenum_type_FT_FRAMENUM_NUM_TYPES: ft_framenum_type = 7; pub type ft_framenum_type = ::std::os::raw::c_uint; pub use self::ft_framenum_type as ft_framenum_type_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _ftype_t { _unused: [u8; 0], } pub type ftype_t = _ftype_t; pub const ft_result_FT_OK: ft_result = 0; pub const ft_result_FT_OVERFLOW: ft_result = 1; pub const ft_result_FT_BADARG: ft_result = 2; pub const ft_result_FT_ERROR: ft_result = 3; pub type ft_result = ::std::os::raw::c_uint; pub type ft_bool_t = ::std::os::raw::c_int; pub const ftrepr_FTREPR_DISPLAY: ftrepr = 0; pub const ftrepr_FTREPR_DFILTER: ftrepr = 1; pub type ftrepr = ::std::os::raw::c_uint; pub use self::ftrepr as ftrepr_t; extern "C" { pub fn ftypes_initialize(); } extern "C" { pub fn ftypes_register_pseudofields(); } extern "C" { pub fn ftype_similar_types(ftype_a: ftenum, ftype_b: ftenum) -> gboolean; } extern "C" { pub fn ftype_name(ftype: ftenum_t) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ftype_pretty_name(ftype: ftenum_t) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ftype_length(ftype: ftenum_t) -> ::std::os::raw::c_int; } extern "C" { pub fn ftype_can_slice(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_eq(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_cmp(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_bitwise_and(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_unary_minus(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_add(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_subtract(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_multiply(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_divide(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_modulo(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_contains(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_matches(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_is_zero(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_is_negative(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_val_to_sinteger(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_val_to_uinteger(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_val_to_sinteger64(ftype: ftenum) -> gboolean; } extern "C" { pub fn ftype_can_val_to_uinteger64(ftype: ftenum) -> gboolean; } pub const drange_node_end_t_DRANGE_NODE_END_T_UNINITIALIZED: drange_node_end_t = 0; pub const drange_node_end_t_DRANGE_NODE_END_T_LENGTH: drange_node_end_t = 1; pub const drange_node_end_t_DRANGE_NODE_END_T_OFFSET: drange_node_end_t = 2; pub const drange_node_end_t_DRANGE_NODE_END_T_TO_THE_END: drange_node_end_t = 3; pub type drange_node_end_t = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _drange_node { pub start_offset: gint, pub length: gint, pub end_offset: gint, pub ending: drange_node_end_t, } #[test] fn bindgen_test_layout__drange_node() { const UNINIT: ::std::mem::MaybeUninit<_drange_node> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_drange_node>(), 16usize, concat!("Size of: ", stringify!(_drange_node)) ); assert_eq!( ::std::mem::align_of::<_drange_node>(), 4usize, concat!("Alignment of ", stringify!(_drange_node)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).start_offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_drange_node), "::", stringify!(start_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(_drange_node), "::", stringify!(length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).end_offset) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_drange_node), "::", stringify!(end_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ending) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_drange_node), "::", stringify!(ending) ) ); } pub type drange_node = _drange_node; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _drange { pub range_list: *mut GSList, pub has_total_length: gboolean, pub total_length: gint, pub min_start_offset: gint, pub max_start_offset: gint, } #[test] fn bindgen_test_layout__drange() { const UNINIT: ::std::mem::MaybeUninit<_drange> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_drange>(), 24usize, concat!("Size of: ", stringify!(_drange)) ); assert_eq!( ::std::mem::align_of::<_drange>(), 8usize, concat!("Alignment of ", stringify!(_drange)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).range_list) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_drange), "::", stringify!(range_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).has_total_length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_drange), "::", stringify!(has_total_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).total_length) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_drange), "::", stringify!(total_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).min_start_offset) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_drange), "::", stringify!(min_start_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).max_start_offset) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(_drange), "::", stringify!(max_start_offset) ) ); } pub type drange_t = _drange; extern "C" { pub fn drange_node_new() -> *mut drange_node; } extern "C" { pub fn drange_node_from_str( range_str: *const ::std::os::raw::c_char, err_ptr: *mut *mut ::std::os::raw::c_char, ) -> *mut drange_node; } extern "C" { pub fn drange_node_free(drnode: *mut drange_node); } extern "C" { pub fn drange_node_free_list(list: *mut GSList); } extern "C" { pub fn drange_node_get_start_offset(drnode: *mut drange_node) -> gint; } extern "C" { pub fn drange_node_get_length(drnode: *mut drange_node) -> gint; } extern "C" { pub fn drange_node_get_end_offset(drnode: *mut drange_node) -> gint; } extern "C" { pub fn drange_node_get_ending(drnode: *mut drange_node) -> drange_node_end_t; } extern "C" { pub fn drange_node_set_start_offset(drnode: *mut drange_node, offset: gint); } extern "C" { pub fn drange_node_set_length(drnode: *mut drange_node, length: gint); } extern "C" { pub fn drange_node_set_end_offset(drnode: *mut drange_node, offset: gint); } extern "C" { pub fn drange_node_set_to_the_end(drnode: *mut drange_node); } extern "C" { pub fn drange_new(drnode: *mut drange_node) -> *mut drange_t; } extern "C" { pub fn drange_new_from_list(list: *mut GSList) -> *mut drange_t; } extern "C" { pub fn drange_dup(org: *mut drange_t) -> *mut drange_t; } extern "C" { pub fn drange_free(dr: *mut drange_t); } extern "C" { pub fn drange_has_total_length(dr: *mut drange_t) -> gboolean; } extern "C" { pub fn drange_get_total_length(dr: *mut drange_t) -> gint; } extern "C" { pub fn drange_get_min_start_offset(dr: *mut drange_t) -> gint; } extern "C" { pub fn drange_get_max_start_offset(dr: *mut drange_t) -> gint; } extern "C" { pub fn drange_append_drange_node(dr: *mut drange_t, drnode: *mut drange_node); } extern "C" { pub fn drange_prepend_drange_node(dr: *mut drange_t, drnode: *mut drange_node); } extern "C" { pub fn drange_foreach_drange_node(dr: *mut drange_t, func: GFunc, funcdata: gpointer); } extern "C" { pub fn drange_node_tostr(rn: *const drange_node) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn drange_tostr(dr: *const drange_t) -> *mut ::std::os::raw::c_char; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _protocol_value_t { pub tvb: *mut tvbuff_t, pub length: ::std::os::raw::c_int, pub proto_string: *mut gchar, pub tvb_is_private: gboolean, } #[test] fn bindgen_test_layout__protocol_value_t() { const UNINIT: ::std::mem::MaybeUninit<_protocol_value_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_protocol_value_t>(), 32usize, concat!("Size of: ", stringify!(_protocol_value_t)) ); assert_eq!( ::std::mem::align_of::<_protocol_value_t>(), 8usize, concat!("Alignment of ", stringify!(_protocol_value_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tvb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_protocol_value_t), "::", stringify!(tvb) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_protocol_value_t), "::", stringify!(length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).proto_string) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_protocol_value_t), "::", stringify!(proto_string) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tvb_is_private) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_protocol_value_t), "::", stringify!(tvb_is_private) ) ); } pub type protocol_value_t = _protocol_value_t; #[repr(C)] #[derive(Copy, Clone)] pub struct _fvalue_t { pub ftype: *mut ftype_t, pub value: _fvalue_t__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] pub union _fvalue_t__bindgen_ty_1 { pub uinteger: guint32, pub sinteger: gint32, pub uinteger64: guint64, pub sinteger64: gint64, pub floating: gdouble, pub strbuf: *mut wmem_strbuf_t, pub bytes: *mut GByteArray, pub ipv4: ipv4_addr_and_mask, pub ipv6: ipv6_addr_and_prefix, pub guid: e_guid_t, pub time: nstime_t, pub protocol: protocol_value_t, pub sfloat_ieee_11073: guint16, pub float_ieee_11073: guint32, } #[test] fn bindgen_test_layout__fvalue_t__bindgen_ty_1() { const UNINIT: ::std::mem::MaybeUninit<_fvalue_t__bindgen_ty_1> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fvalue_t__bindgen_ty_1>(), 32usize, concat!("Size of: ", stringify!(_fvalue_t__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::<_fvalue_t__bindgen_ty_1>(), 8usize, concat!("Alignment of ", stringify!(_fvalue_t__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uinteger) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(uinteger) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sinteger) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(sinteger) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).uinteger64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(uinteger64) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sinteger64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(sinteger64) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).floating) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(floating) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strbuf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(strbuf) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(bytes) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv4) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(ipv4) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ipv6) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(ipv6) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).guid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(guid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).time) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(time) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).protocol) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(protocol) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).sfloat_ieee_11073) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(sfloat_ieee_11073) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).float_ieee_11073) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t__bindgen_ty_1), "::", stringify!(float_ieee_11073) ) ); } #[test] fn bindgen_test_layout__fvalue_t() { const UNINIT: ::std::mem::MaybeUninit<_fvalue_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fvalue_t>(), 40usize, concat!("Size of: ", stringify!(_fvalue_t)) ); assert_eq!( ::std::mem::align_of::<_fvalue_t>(), 8usize, concat!("Alignment of ", stringify!(_fvalue_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ftype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_fvalue_t), "::", stringify!(ftype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_fvalue_t), "::", stringify!(value) ) ); } pub type fvalue_t = _fvalue_t; extern "C" { pub fn fvalue_new(ftype: ftenum_t) -> *mut fvalue_t; } extern "C" { pub fn fvalue_dup(fv: *const fvalue_t) -> *mut fvalue_t; } extern "C" { pub fn fvalue_init(fv: *mut fvalue_t, ftype: ftenum_t); } extern "C" { pub fn fvalue_cleanup(fv: *mut fvalue_t); } extern "C" { pub fn fvalue_free(fv: *mut fvalue_t); } extern "C" { pub fn fvalue_from_literal( ftype: ftenum_t, s: *const ::std::os::raw::c_char, allow_partial_value: gboolean, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_from_string( ftype: ftenum_t, s: *const ::std::os::raw::c_char, len: usize, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_from_charconst( ftype: ftenum_t, number: ::std::os::raw::c_ulong, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_to_string_repr( scope: *mut wmem_allocator_t, fv: *const fvalue_t, rtype: ftrepr_t, field_display: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn fvalue_to_uinteger(fv: *const fvalue_t, repr: *mut guint32) -> ft_result; } extern "C" { pub fn fvalue_to_sinteger(fv: *const fvalue_t, repr: *mut gint32) -> ft_result; } extern "C" { pub fn fvalue_to_uinteger64(fv: *const fvalue_t, repr: *mut guint64) -> ft_result; } extern "C" { pub fn fvalue_to_sinteger64(fv: *const fvalue_t, repr: *mut gint64) -> ft_result; } extern "C" { pub fn fvalue_type_ftenum(fv: *mut fvalue_t) -> ftenum_t; } extern "C" { pub fn fvalue_type_name(fv: *const fvalue_t) -> *const ::std::os::raw::c_char; } extern "C" { pub fn fvalue_set_byte_array(fv: *mut fvalue_t, value: *mut GByteArray); } extern "C" { pub fn fvalue_set_bytes(fv: *mut fvalue_t, value: *const guint8); } extern "C" { pub fn fvalue_set_guid(fv: *mut fvalue_t, value: *const e_guid_t); } extern "C" { pub fn fvalue_set_time(fv: *mut fvalue_t, value: *const nstime_t); } extern "C" { pub fn fvalue_set_string(fv: *mut fvalue_t, value: *const gchar); } extern "C" { pub fn fvalue_set_strbuf(fv: *mut fvalue_t, value: *mut wmem_strbuf_t); } extern "C" { pub fn fvalue_set_protocol( fv: *mut fvalue_t, value: *mut tvbuff_t, name: *const gchar, length: ::std::os::raw::c_int, ); } extern "C" { pub fn fvalue_set_uinteger(fv: *mut fvalue_t, value: guint32); } extern "C" { pub fn fvalue_set_sinteger(fv: *mut fvalue_t, value: gint32); } extern "C" { pub fn fvalue_set_uinteger64(fv: *mut fvalue_t, value: guint64); } extern "C" { pub fn fvalue_set_sinteger64(fv: *mut fvalue_t, value: gint64); } extern "C" { pub fn fvalue_set_floating(fv: *mut fvalue_t, value: gdouble); } extern "C" { pub fn fvalue_get_bytes(fv: *mut fvalue_t) -> *const guint8; } extern "C" { pub fn fvalue_get_guid(fv: *mut fvalue_t) -> *const e_guid_t; } extern "C" { pub fn fvalue_get_time(fv: *mut fvalue_t) -> *const nstime_t; } extern "C" { pub fn fvalue_get_string(fv: *mut fvalue_t) -> *const ::std::os::raw::c_char; } extern "C" { pub fn fvalue_get_strbuf(fv: *mut fvalue_t) -> *const wmem_strbuf_t; } extern "C" { pub fn fvalue_get_protocol(fv: *mut fvalue_t) -> *mut tvbuff_t; } extern "C" { pub fn fvalue_get_uinteger(fv: *mut fvalue_t) -> guint32; } extern "C" { pub fn fvalue_get_sinteger(fv: *mut fvalue_t) -> gint32; } extern "C" { pub fn fvalue_get_uinteger64(fv: *mut fvalue_t) -> guint64; } extern "C" { pub fn fvalue_get_sinteger64(fv: *mut fvalue_t) -> gint64; } extern "C" { pub fn fvalue_get_floating(fv: *mut fvalue_t) -> f64; } extern "C" { pub fn fvalue_eq(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_ne(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_gt(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_ge(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_lt(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_le(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_contains(a: *const fvalue_t, b: *const fvalue_t) -> ft_bool_t; } extern "C" { pub fn fvalue_matches(a: *const fvalue_t, re: *const ws_regex_t) -> ft_bool_t; } extern "C" { pub fn fvalue_is_zero(a: *const fvalue_t) -> gboolean; } extern "C" { pub fn fvalue_is_negative(a: *const fvalue_t) -> gboolean; } extern "C" { pub fn fvalue_length(fv: *mut fvalue_t) -> guint; } extern "C" { pub fn fvalue_slice(fv: *mut fvalue_t, dr: *mut drange_t) -> *mut fvalue_t; } extern "C" { pub fn fvalue_bitwise_and( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut ::std::os::raw::c_char, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_unary_minus( fv: *const fvalue_t, err_msg: *mut *mut ::std::os::raw::c_char, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_add( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_subtract( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_multiply( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_divide( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } extern "C" { pub fn fvalue_modulo( a: *const fvalue_t, b: *const fvalue_t, err_msg: *mut *mut gchar, ) -> *mut fvalue_t; } pub const register_action_e_RA_NONE: register_action_e = 0; pub const register_action_e_RA_DISSECTORS: register_action_e = 1; pub const register_action_e_RA_LISTENERS: register_action_e = 2; pub const register_action_e_RA_EXTCAP: register_action_e = 3; pub const register_action_e_RA_REGISTER: register_action_e = 4; pub const register_action_e_RA_PLUGIN_REGISTER: register_action_e = 5; pub const register_action_e_RA_HANDOFF: register_action_e = 6; pub const register_action_e_RA_PLUGIN_HANDOFF: register_action_e = 7; pub const register_action_e_RA_LUA_PLUGINS: register_action_e = 8; pub const register_action_e_RA_LUA_DEREGISTER: register_action_e = 9; pub const register_action_e_RA_PREFERENCES: register_action_e = 10; pub const register_action_e_RA_INTERFACES: register_action_e = 11; pub type register_action_e = ::std::os::raw::c_uint; pub type register_cb = ::std::option::Option< unsafe extern "C" fn( action: register_action_e, message: *const ::std::os::raw::c_char, client_data: gpointer, ), >; extern "C" { pub static mut hf_text_only: ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct expert_field { _unused: [u8; 0], } pub type custom_fmt_func_t = ::std::option::Option; pub type custom_fmt_func_64_t = ::std::option::Option; pub type custom_fmt_func_double_t = ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _protocol { _unused: [u8; 0], } pub type protocol_t = _protocol; extern "C" { pub fn proto_report_dissector_bug(format: *const ::std::os::raw::c_char, ...); } pub const field_display_e_BASE_NONE: field_display_e = 0; pub const field_display_e_BASE_DEC: field_display_e = 1; pub const field_display_e_BASE_HEX: field_display_e = 2; pub const field_display_e_BASE_OCT: field_display_e = 3; pub const field_display_e_BASE_DEC_HEX: field_display_e = 4; pub const field_display_e_BASE_HEX_DEC: field_display_e = 5; pub const field_display_e_BASE_CUSTOM: field_display_e = 6; pub const field_display_e_BASE_EXP: field_display_e = 7; pub const field_display_e_SEP_DOT: field_display_e = 8; pub const field_display_e_SEP_DASH: field_display_e = 9; pub const field_display_e_SEP_COLON: field_display_e = 10; pub const field_display_e_SEP_SPACE: field_display_e = 11; pub const field_display_e_BASE_NETMASK: field_display_e = 12; pub const field_display_e_BASE_PT_UDP: field_display_e = 13; pub const field_display_e_BASE_PT_TCP: field_display_e = 14; pub const field_display_e_BASE_PT_DCCP: field_display_e = 15; pub const field_display_e_BASE_PT_SCTP: field_display_e = 16; pub const field_display_e_BASE_OUI: field_display_e = 17; pub const field_display_e_ABSOLUTE_TIME_LOCAL: field_display_e = 18; pub const field_display_e_ABSOLUTE_TIME_UTC: field_display_e = 19; pub const field_display_e_ABSOLUTE_TIME_DOY_UTC: field_display_e = 20; pub const field_display_e_ABSOLUTE_TIME_NTP_UTC: field_display_e = 21; pub type field_display_e = ::std::os::raw::c_uint; pub const hf_ref_type_HF_REF_TYPE_NONE: hf_ref_type = 0; pub const hf_ref_type_HF_REF_TYPE_INDIRECT: hf_ref_type = 1; pub const hf_ref_type_HF_REF_TYPE_DIRECT: hf_ref_type = 2; pub type hf_ref_type = ::std::os::raw::c_uint; pub type header_field_info = _header_field_info; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _header_field_info { pub name: *const ::std::os::raw::c_char, pub abbrev: *const ::std::os::raw::c_char, pub type_: ftenum, pub display: ::std::os::raw::c_int, pub strings: *const ::std::os::raw::c_void, pub bitmask: guint64, pub blurb: *const ::std::os::raw::c_char, pub id: ::std::os::raw::c_int, pub parent: ::std::os::raw::c_int, pub ref_type: hf_ref_type, pub same_name_prev_id: ::std::os::raw::c_int, pub same_name_next: *mut header_field_info, } #[test] fn bindgen_test_layout__header_field_info() { const UNINIT: ::std::mem::MaybeUninit<_header_field_info> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_header_field_info>(), 72usize, concat!("Size of: ", stringify!(_header_field_info)) ); assert_eq!( ::std::mem::align_of::<_header_field_info>(), 8usize, concat!("Alignment of ", stringify!(_header_field_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).abbrev) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(abbrev) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).display) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(display) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strings) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(strings) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).bitmask) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(bitmask) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).blurb) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(blurb) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).id) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).parent) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(parent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ref_type) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(ref_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).same_name_prev_id) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(same_name_prev_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).same_name_next) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_header_field_info), "::", stringify!(same_name_next) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hf_register_info { pub p_id: *mut ::std::os::raw::c_int, pub hfinfo: header_field_info, } #[test] fn bindgen_test_layout_hf_register_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, concat!("Size of: ", stringify!(hf_register_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(hf_register_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).p_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(hf_register_info), "::", stringify!(p_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hfinfo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(hf_register_info), "::", stringify!(hfinfo) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _item_label_t { pub representation: [::std::os::raw::c_char; 240usize], } #[test] fn bindgen_test_layout__item_label_t() { const UNINIT: ::std::mem::MaybeUninit<_item_label_t> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_item_label_t>(), 240usize, concat!("Size of: ", stringify!(_item_label_t)) ); assert_eq!( ::std::mem::align_of::<_item_label_t>(), 1usize, concat!("Alignment of ", stringify!(_item_label_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).representation) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_item_label_t), "::", stringify!(representation) ) ); } pub type item_label_t = _item_label_t; #[repr(C)] #[derive(Copy, Clone)] pub struct field_info { pub hfinfo: *mut header_field_info, pub start: gint, pub length: gint, pub appendix_start: gint, pub appendix_length: gint, pub tree_type: gint, pub flags: guint32, pub rep: *mut item_label_t, pub ds_tvb: *mut tvbuff_t, pub value: fvalue_t, pub total_layer_num: ::std::os::raw::c_int, pub proto_layer_num: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_field_info() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 96usize, concat!("Size of: ", stringify!(field_info)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(field_info)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).hfinfo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(hfinfo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(start) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).appendix_start) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(appendix_start) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).appendix_length) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(appendix_length) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tree_type) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(tree_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(flags) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).rep) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(rep) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ds_tvb) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(ds_tvb) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).total_layer_num) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(total_layer_num) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).proto_layer_num) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", stringify!(field_info), "::", stringify!(proto_layer_num) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct crumb_spec_t { pub crumb_bit_offset: guint, pub crumb_bit_length: guint8, } #[test] fn bindgen_test_layout_crumb_spec_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(crumb_spec_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(crumb_spec_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).crumb_bit_offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(crumb_spec_t), "::", stringify!(crumb_bit_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).crumb_bit_length) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(crumb_spec_t), "::", stringify!(crumb_bit_length) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tree_data_t { pub interesting_hfids: *mut GHashTable, pub visible: gboolean, pub fake_protocols: gboolean, pub count: guint, pub pinfo: *mut _packet_info, } #[test] fn bindgen_test_layout_tree_data_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(tree_data_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(tree_data_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).interesting_hfids) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(tree_data_t), "::", stringify!(interesting_hfids) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).visible) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(tree_data_t), "::", stringify!(visible) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fake_protocols) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(tree_data_t), "::", stringify!(fake_protocols) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(tree_data_t), "::", stringify!(count) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pinfo) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(tree_data_t), "::", stringify!(pinfo) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _proto_node { pub first_child: *mut _proto_node, pub last_child: *mut _proto_node, pub next: *mut _proto_node, pub parent: *mut _proto_node, pub finfo: *mut field_info, pub tree_data: *mut tree_data_t, } #[test] fn bindgen_test_layout__proto_node() { const UNINIT: ::std::mem::MaybeUninit<_proto_node> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_proto_node>(), 48usize, concat!("Size of: ", stringify!(_proto_node)) ); assert_eq!( ::std::mem::align_of::<_proto_node>(), 8usize, concat!("Alignment of ", stringify!(_proto_node)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).first_child) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(first_child) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).last_child) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(last_child) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(next) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).parent) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(parent) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).finfo) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(finfo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tree_data) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(_proto_node), "::", stringify!(tree_data) ) ); } pub type proto_node = _proto_node; pub type proto_tree = proto_node; pub type proto_item = proto_node; pub type proto_tree_foreach_func = ::std::option::Option; pub type proto_tree_traverse_func = ::std::option::Option gboolean>; extern "C" { pub fn proto_tree_children_foreach( tree: *mut proto_tree, func: proto_tree_foreach_func, data: gpointer, ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct proto_plugin { pub register_protoinfo: ::std::option::Option, pub register_handoff: ::std::option::Option, } #[test] fn bindgen_test_layout_proto_plugin() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(proto_plugin)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(proto_plugin)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_protoinfo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(proto_plugin), "::", stringify!(register_protoinfo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_handoff) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(proto_plugin), "::", stringify!(register_handoff) ) ); } extern "C" { pub fn proto_register_plugin(plugin: *const proto_plugin); } extern "C" { pub fn proto_init( register_all_plugin_protocols_list: *mut GSList, register_all_plugin_handoffs_list: *mut GSList, cb: register_cb, client_data: *mut ::std::os::raw::c_void, ); } extern "C" { pub fn proto_cleanup(); } extern "C" { pub fn proto_field_is_referenced( tree: *mut proto_tree, proto_id: ::std::os::raw::c_int, ) -> gboolean; } extern "C" { pub fn proto_item_add_subtree(pi: *mut proto_item, idx: gint) -> *mut proto_tree; } extern "C" { pub fn proto_item_get_subtree(pi: *mut proto_item) -> *mut proto_tree; } extern "C" { pub fn proto_item_get_parent(pi: *const proto_item) -> *mut proto_item; } extern "C" { pub fn proto_item_get_parent_nth( pi: *mut proto_item, gen: ::std::os::raw::c_int, ) -> *mut proto_item; } extern "C" { pub fn proto_item_set_text(pi: *mut proto_item, format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn proto_item_append_text(pi: *mut proto_item, format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn proto_item_prepend_text(pi: *mut proto_item, format: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn proto_item_set_len(pi: *mut proto_item, length: gint); } extern "C" { pub fn proto_item_set_end(pi: *mut proto_item, tvb: *mut tvbuff_t, end: gint); } extern "C" { pub fn proto_item_get_len(pi: *const proto_item) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_item_set_bits_offset_len( ti: *mut proto_item, bits_offset: ::std::os::raw::c_int, bits_len: ::std::os::raw::c_int, ); } extern "C" { pub fn proto_item_get_display_repr( scope: *mut wmem_allocator_t, pi: *mut proto_item, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn proto_tree_create_root(pinfo: *mut _packet_info) -> *mut proto_tree; } extern "C" { pub fn proto_tree_reset(tree: *mut proto_tree); } extern "C" { pub fn proto_tree_free(tree: *mut proto_tree); } extern "C" { pub fn proto_tree_set_visible(tree: *mut proto_tree, visible: gboolean) -> gboolean; } extern "C" { pub fn proto_tree_set_fake_protocols(tree: *mut proto_tree, fake_protocols: gboolean); } extern "C" { pub fn proto_tree_prime_with_hfid(tree: *mut proto_tree, hfid: ::std::os::raw::c_int); } extern "C" { pub fn proto_tree_get_parent(tree: *mut proto_tree) -> *mut proto_item; } extern "C" { pub fn proto_tree_get_parent_tree(tree: *mut proto_tree) -> *mut proto_tree; } extern "C" { pub fn proto_tree_get_root(tree: *mut proto_tree) -> *mut proto_tree; } extern "C" { pub fn proto_tree_move_item( tree: *mut proto_tree, fixed_item: *mut proto_item, item_to_move: *mut proto_item, ); } extern "C" { pub fn proto_tree_set_appendix( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, ); } extern "C" { pub fn proto_tree_add_item_new( tree: *mut proto_tree, hfinfo: *mut header_field_info, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_new_ret_length( tree: *mut proto_tree, hfinfo: *mut header_field_info, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, lenretval: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_length( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, lenretval: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_int( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut gint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_int64( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut gint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_uint( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut guint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_uint64( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_varint( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut guint64, lenretval: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_boolean( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut gboolean, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_ipv4( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut ws_in4_addr, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_string_and_length( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, scope: *mut wmem_allocator_t, retval: *mut *const guint8, lenretval: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_string( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, scope: *mut wmem_allocator_t, retval: *mut *const guint8, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_display_string_and_length( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, scope: *mut wmem_allocator_t, retval: *mut *mut ::std::os::raw::c_char, lenretval: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_display_string( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, scope: *mut wmem_allocator_t, retval: *mut *mut ::std::os::raw::c_char, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_item_ret_time_string( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, scope: *mut wmem_allocator_t, retval: *mut *mut ::std::os::raw::c_char, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_text_internal( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_text_valist_internal( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, format: *const ::std::os::raw::c_char, ap: *mut __va_list_tag, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_subtree( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, idx: gint, tree_item: *mut *mut proto_item, text: *const ::std::os::raw::c_char, ) -> *mut proto_tree; } extern "C" { pub fn proto_tree_add_subtree_format( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, idx: gint, tree_item: *mut *mut proto_item, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_tree; } extern "C" { pub fn proto_tree_add_format_text( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_format_wsp_text( tree: *mut proto_tree, tvb: *mut tvbuff_t, start: gint, length: gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_none_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_protocol_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bytes( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, start_ptr: *const guint8, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bytes_with_length( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, start_ptr: *const guint8, ptr_length: gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bytes_item( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut GByteArray, endoff: *mut gint, err: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bytes_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, start_ptr: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bytes_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, start_ptr: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_time( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const nstime_t, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_time_item( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, encoding: guint, retval: *mut nstime_t, endoff: *mut gint, err: *mut gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_time_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *mut nstime_t, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_time_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *mut nstime_t, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipxnet( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipxnet_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipxnet_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv4( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: ws_in4_addr, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv4_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: ws_in4_addr, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv4_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: ws_in4_addr, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv6( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const ws_in6_addr, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv6_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const ws_in6_addr, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ipv6_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const ws_in6_addr, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ether( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const guint8, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ether_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ether_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_guid( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const e_guid_t, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_guid_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const e_guid_t, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_guid_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const e_guid_t, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_oid( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const guint8, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_oid_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_oid_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value_ptr: *const guint8, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_string( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const ::std::os::raw::c_char, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_string_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_string_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: *const ::std::os::raw::c_char, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_boolean( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_boolean_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_boolean_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_float( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_float_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_float_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_double( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_double_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_double_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: f64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint64( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint64_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint64_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint32, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint32, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int64( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int64_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int64_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: gint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_eui64( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_eui64_format_value( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_eui64_format( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, start: gint, length: gint, value: guint64, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_debug_text( tree: *mut proto_tree, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_item_fill_label(finfo: *mut field_info, label_str: *mut gchar); } extern "C" { pub fn proto_item_fill_display_label( fi: *mut field_info, display_label_str: *mut gchar, label_str_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_register_protocol( name: *const ::std::os::raw::c_char, short_name: *const ::std::os::raw::c_char, filter_name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_register_protocol_in_name_only( name: *const ::std::os::raw::c_char, short_name: *const ::std::os::raw::c_char, filter_name: *const ::std::os::raw::c_char, parent_proto: ::std::os::raw::c_int, field_type: ftenum, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_deregister_protocol(short_name: *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn proto_register_alias( proto_id: ::std::os::raw::c_int, alias_name: *const ::std::os::raw::c_char, ); } pub type prefix_initializer_t = ::std::option::Option; extern "C" { pub fn proto_register_prefix( prefix: *const ::std::os::raw::c_char, initializer: prefix_initializer_t, ); } extern "C" { pub fn proto_initialize_all_prefixes(); } extern "C" { pub fn proto_register_field_array( parent: ::std::os::raw::c_int, hf: *mut hf_register_info, num_records: ::std::os::raw::c_int, ); } extern "C" { pub fn proto_deregister_field(parent: ::std::os::raw::c_int, hf_id: gint); } extern "C" { pub fn proto_add_deregistered_data(data: *mut ::std::os::raw::c_void); } extern "C" { pub fn proto_add_deregistered_slice(block_size: gsize, mem_block: gpointer); } extern "C" { pub fn proto_free_field_strings( field_type: ftenum_t, field_display: ::std::os::raw::c_uint, field_strings: *const ::std::os::raw::c_void, ); } extern "C" { pub fn proto_free_deregistered_fields(); } extern "C" { pub fn proto_register_subtree_array( indices: *const *mut gint, num_indices: ::std::os::raw::c_int, ); } extern "C" { pub fn proto_registrar_get_name(n: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_registrar_get_abbrev(n: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_registrar_get_nth(hfindex: guint) -> *mut header_field_info; } extern "C" { pub fn proto_registrar_get_byname( field_name: *const ::std::os::raw::c_char, ) -> *mut header_field_info; } extern "C" { pub fn proto_registrar_get_byalias( alias_name: *const ::std::os::raw::c_char, ) -> *mut header_field_info; } extern "C" { pub fn proto_registrar_get_id_byname( field_name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_registrar_get_ftype(n: ::std::os::raw::c_int) -> ftenum; } extern "C" { pub fn proto_registrar_get_parent(n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_registrar_is_protocol(n: ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn proto_registrar_get_length(n: ::std::os::raw::c_int) -> gint; } extern "C" { pub fn proto_get_first_protocol( cookie: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_data_protocol(cookie: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_next_protocol( cookie: *mut *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_first_protocol_field( proto_id: ::std::os::raw::c_int, cookie: *mut *mut ::std::os::raw::c_void, ) -> *mut header_field_info; } extern "C" { pub fn proto_get_next_protocol_field( proto_id: ::std::os::raw::c_int, cookie: *mut *mut ::std::os::raw::c_void, ) -> *mut header_field_info; } extern "C" { pub fn proto_name_already_registered(name: *const gchar) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_id_by_filter_name(filter_name: *const gchar) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_id_by_short_name(short_name: *const gchar) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_can_toggle_protocol(proto_id: ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn find_protocol_by_id(proto_id: ::std::os::raw::c_int) -> *mut protocol_t; } extern "C" { pub fn proto_get_protocol_name( proto_id: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_get_id(protocol: *const protocol_t) -> ::std::os::raw::c_int; } extern "C" { pub fn proto_get_protocol_short_name( protocol: *const protocol_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_get_protocol_long_name( protocol: *const protocol_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_is_protocol_enabled(protocol: *const protocol_t) -> gboolean; } extern "C" { pub fn proto_is_protocol_enabled_by_default(protocol: *const protocol_t) -> gboolean; } extern "C" { pub fn proto_is_pino(protocol: *const protocol_t) -> gboolean; } extern "C" { pub fn proto_get_protocol_filter_name( proto_id: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn proto_add_heuristic_dissector( protocol: *mut protocol_t, short_name: *const ::std::os::raw::c_char, ); } extern "C" { pub fn proto_heuristic_dissector_foreach( protocol: *const protocol_t, func: GFunc, user_data: gpointer, ); } extern "C" { pub fn proto_get_frame_protocols( layers: *const wmem_list_t, is_ip: *mut gboolean, is_tcp: *mut gboolean, is_udp: *mut gboolean, is_sctp: *mut gboolean, is_tls: *mut gboolean, is_rtp: *mut gboolean, is_lte_rlc: *mut gboolean, ); } extern "C" { pub fn proto_is_frame_protocol( layers: *const wmem_list_t, proto_name: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn proto_list_layers(pinfo: *const packet_info) -> *mut gchar; } extern "C" { pub fn proto_disable_by_default(proto_id: ::std::os::raw::c_int); } extern "C" { pub fn proto_set_decoding(proto_id: ::std::os::raw::c_int, enabled: gboolean); } extern "C" { pub fn proto_reenable_all(); } extern "C" { pub fn proto_set_cant_toggle(proto_id: ::std::os::raw::c_int); } extern "C" { pub fn proto_check_for_protocol_or_field( tree: *const proto_tree, id: ::std::os::raw::c_int, ) -> gboolean; } extern "C" { pub fn proto_get_finfo_ptr_array( tree: *const proto_tree, hfindex: ::std::os::raw::c_int, ) -> *mut GPtrArray; } extern "C" { pub fn proto_tracking_interesting_fields(tree: *const proto_tree) -> gboolean; } extern "C" { pub fn proto_find_finfo( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, ) -> *mut GPtrArray; } extern "C" { pub fn proto_find_first_finfo( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, ) -> *mut GPtrArray; } extern "C" { pub fn proto_all_finfos(tree: *mut proto_tree) -> *mut GPtrArray; } extern "C" { pub fn proto_registrar_dump_protocols(); } extern "C" { pub fn proto_registrar_dump_values(); } extern "C" { pub fn proto_registrar_dump_elastic(filter: *const gchar); } extern "C" { pub fn proto_registrar_dump_fieldcount() -> gboolean; } extern "C" { pub fn proto_registrar_dump_fields(); } extern "C" { pub fn proto_registrar_dump_ftypes(); } extern "C" { pub fn proto_field_display_to_string( field_display: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; } extern "C" { pub static mut num_tree_types: ::std::os::raw::c_int; } extern "C" { pub fn tree_expanded(tree_type: ::std::os::raw::c_int) -> gboolean; } extern "C" { pub fn tree_expanded_set(tree_type: ::std::os::raw::c_int, value: gboolean); } extern "C" { pub fn hfinfo_bitshift(hfinfo: *const header_field_info) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_dissect { _unused: [u8; 0], } extern "C" { pub fn proto_can_match_selected(finfo: *mut field_info, edt: *mut epan_dissect) -> gboolean; } extern "C" { pub fn proto_construct_match_selected_string( finfo: *mut field_info, edt: *mut epan_dissect, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn proto_find_field_from_offset( tree: *mut proto_tree, offset: guint, tvb: *mut tvbuff_t, ) -> *mut field_info; } extern "C" { pub fn proto_find_undecoded_data(tree: *mut proto_tree, length: guint) -> *mut gchar; } extern "C" { pub fn proto_tree_add_bitmask( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_ret_uint64( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, encoding: guint, retval: *mut guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_with_flags( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, encoding: guint, flags: ::std::os::raw::c_int, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_with_flags_ret_uint64( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, encoding: guint, flags: ::std::os::raw::c_int, retval: *mut guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_value( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, value: guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_value_with_flags( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, value: guint64, flags: ::std::os::raw::c_int, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_list( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, len: ::std::os::raw::c_int, fields: *const *mut ::std::os::raw::c_int, encoding: guint, ); } extern "C" { pub fn proto_tree_add_bitmask_list_ret_uint64( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, len: ::std::os::raw::c_int, fields: *const *mut ::std::os::raw::c_int, encoding: guint, retval: *mut guint64, ); } extern "C" { pub fn proto_tree_add_bitmask_list_value( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, len: ::std::os::raw::c_int, fields: *const *mut ::std::os::raw::c_int, value: guint64, ); } extern "C" { pub fn proto_tree_add_bitmask_len( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, len: guint, hf_hdr: ::std::os::raw::c_int, ett: gint, fields: *const *mut ::std::os::raw::c_int, exp: *mut expert_field, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bitmask_text( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, len: guint, name: *const ::std::os::raw::c_char, fallback: *const ::std::os::raw::c_char, ett: gint, fields: *const *mut ::std::os::raw::c_int, encoding: guint, flags: ::std::os::raw::c_int, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_bits_item( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_split_bits_item_ret_val( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, crumb_spec: *const crumb_spec_t, return_value: *mut guint64, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_split_bits_crumb( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, crumb_spec: *const crumb_spec_t, crumb_index: guint16, ); } extern "C" { pub fn proto_tree_add_bits_ret_val( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, return_value: *mut guint64, encoding: guint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: guint32, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_uint64_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: guint64, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_boolean_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: guint32, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_boolean_bits_format_value64( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: guint64, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: gint32, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_int64_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: gint64, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_float_bits_format_value( tree: *mut proto_tree, hf_index: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_bits: gint, value: f32, encoding: guint, format: *const ::std::os::raw::c_char, ... ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ts_23_038_7bits_packed_item( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_chars: gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_ascii_7bits_item( tree: *mut proto_tree, hfindex: ::std::os::raw::c_int, tvb: *mut tvbuff_t, bit_offset: guint, no_of_chars: gint, ) -> *mut proto_item; } extern "C" { pub fn proto_tree_add_checksum( tree: *mut proto_tree, tvb: *mut tvbuff_t, offset: guint, hf_checksum: ::std::os::raw::c_int, hf_checksum_status: ::std::os::raw::c_int, bad_checksum_expert: *mut expert_field, pinfo: *mut packet_info, computed_checksum: guint32, encoding: guint, flags: guint, ) -> *mut proto_item; } pub const proto_checksum_enum_e_PROTO_CHECKSUM_E_BAD: proto_checksum_enum_e = 0; pub const proto_checksum_enum_e_PROTO_CHECKSUM_E_GOOD: proto_checksum_enum_e = 1; pub const proto_checksum_enum_e_PROTO_CHECKSUM_E_UNVERIFIED: proto_checksum_enum_e = 2; pub const proto_checksum_enum_e_PROTO_CHECKSUM_E_NOT_PRESENT: proto_checksum_enum_e = 3; pub const proto_checksum_enum_e_PROTO_CHECKSUM_E_ILLEGAL: proto_checksum_enum_e = 4; pub type proto_checksum_enum_e = ::std::os::raw::c_uint; extern "C" { pub static proto_checksum_vals: [value_string; 0usize]; } extern "C" { pub fn proto_check_field_name(field_name: *const gchar) -> guchar; } extern "C" { pub fn proto_check_field_name_lower(field_name: *const gchar) -> guchar; } extern "C" { pub fn proto_custom_set( tree: *mut proto_tree, field_id: *mut GSList, occurrence: gint, result: *mut gchar, expr: *mut gchar, size: ::std::os::raw::c_int, ) -> *const gchar; } pub type feature_list = *mut *mut GList; pub type gather_feature_func = ::std::option::Option; extern "C" { pub fn with_feature(l: feature_list, fmt: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn without_feature(l: feature_list, fmt: *const ::std::os::raw::c_char, ...); } extern "C" { pub fn sort_features(l: feature_list); } extern "C" { pub fn free_features(l: feature_list); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct enum_val_t { pub name: *const ::std::os::raw::c_char, pub description: *const ::std::os::raw::c_char, pub value: gint, } #[test] fn bindgen_test_layout_enum_val_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(enum_val_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(enum_val_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(enum_val_t), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).description) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(enum_val_t), "::", stringify!(description) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(enum_val_t), "::", stringify!(value) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct range_admin_tag { pub low: guint32, pub high: guint32, } #[test] fn bindgen_test_layout_range_admin_tag() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, concat!("Size of: ", stringify!(range_admin_tag)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(range_admin_tag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).low) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(range_admin_tag), "::", stringify!(low) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).high) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(range_admin_tag), "::", stringify!(high) ) ); } pub type range_admin_t = range_admin_tag; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_range { pub nranges: guint, pub ranges: [range_admin_t; 1usize], } #[test] fn bindgen_test_layout_epan_range() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, concat!("Size of: ", stringify!(epan_range)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(epan_range)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).nranges) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(epan_range), "::", stringify!(nranges) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ranges) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(epan_range), "::", stringify!(ranges) ) ); } pub type range_t = epan_range; pub const convert_ret_t_CVT_NO_ERROR: convert_ret_t = 0; pub const convert_ret_t_CVT_SYNTAX_ERROR: convert_ret_t = 1; pub const convert_ret_t_CVT_NUMBER_TOO_BIG: convert_ret_t = 2; pub type convert_ret_t = ::std::os::raw::c_uint; extern "C" { pub fn range_empty(scope: *mut wmem_allocator_t) -> *mut range_t; } extern "C" { pub fn range_convert_str( scope: *mut wmem_allocator_t, range: *mut *mut range_t, es: *const gchar, max_value: guint32, ) -> convert_ret_t; } extern "C" { pub fn range_convert_str_work( scope: *mut wmem_allocator_t, range: *mut *mut range_t, es: *const gchar, max_value: guint32, err_on_max: gboolean, ) -> convert_ret_t; } extern "C" { pub fn value_is_in_range(range: *const range_t, val: guint32) -> gboolean; } extern "C" { pub fn range_add_value( scope: *mut wmem_allocator_t, range: *mut *mut range_t, val: guint32, ) -> gboolean; } extern "C" { pub fn range_remove_value( scope: *mut wmem_allocator_t, range: *mut *mut range_t, val: guint32, ) -> gboolean; } extern "C" { pub fn ranges_are_equal(a: *const range_t, b: *const range_t) -> gboolean; } extern "C" { pub fn range_foreach( range: *mut range_t, callback: ::std::option::Option, ptr: gpointer, ); } extern "C" { pub fn range_convert_range( scope: *mut wmem_allocator_t, range: *const range_t, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn range_copy(scope: *mut wmem_allocator_t, src: *const range_t) -> *mut range_t; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct color_t { pub red: guint16, pub green: guint16, pub blue: guint16, } #[test] fn bindgen_test_layout_color_t() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 6usize, concat!("Size of: ", stringify!(color_t)) ); assert_eq!( ::std::mem::align_of::(), 2usize, concat!("Alignment of ", stringify!(color_t)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).red) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(color_t), "::", stringify!(red) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).green) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", stringify!(color_t), "::", stringify!(green) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).blue) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(color_t), "::", stringify!(blue) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_uat { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _e_addr_resolve { _unused: [u8; 0], } extern "C" { pub fn string_to_name_resolve( string: *const ::std::os::raw::c_char, name_resolve: *mut _e_addr_resolve, ) -> ::std::os::raw::c_char; } pub const layout_type_e_layout_unused: layout_type_e = 0; pub const layout_type_e_layout_type_5: layout_type_e = 1; pub const layout_type_e_layout_type_2: layout_type_e = 2; pub const layout_type_e_layout_type_1: layout_type_e = 3; pub const layout_type_e_layout_type_4: layout_type_e = 4; pub const layout_type_e_layout_type_3: layout_type_e = 5; pub const layout_type_e_layout_type_6: layout_type_e = 6; pub const layout_type_e_layout_type_max: layout_type_e = 7; pub type layout_type_e = ::std::os::raw::c_uint; pub const layout_pane_content_e_layout_pane_content_none: layout_pane_content_e = 0; pub const layout_pane_content_e_layout_pane_content_plist: layout_pane_content_e = 1; pub const layout_pane_content_e_layout_pane_content_pdetails: layout_pane_content_e = 2; pub const layout_pane_content_e_layout_pane_content_pbytes: layout_pane_content_e = 3; pub const layout_pane_content_e_layout_pane_content_pdiagram: layout_pane_content_e = 4; pub type layout_pane_content_e = ::std::os::raw::c_uint; pub const console_open_e_console_open_never: console_open_e = 0; pub const console_open_e_console_open_auto: console_open_e = 1; pub const console_open_e_console_open_always: console_open_e = 2; pub type console_open_e = ::std::os::raw::c_uint; pub const version_info_e_version_welcome_only: version_info_e = 0; pub const version_info_e_version_title_only: version_info_e = 1; pub const version_info_e_version_both: version_info_e = 2; pub const version_info_e_version_neither: version_info_e = 3; pub type version_info_e = ::std::os::raw::c_uint; pub const pref_source_t_pref_default: pref_source_t = 0; pub const pref_source_t_pref_stashed: pref_source_t = 1; pub const pref_source_t_pref_current: pref_source_t = 2; pub type pref_source_t = ::std::os::raw::c_uint; pub const elide_mode_e_ELIDE_LEFT: elide_mode_e = 0; pub const elide_mode_e_ELIDE_RIGHT: elide_mode_e = 1; pub const elide_mode_e_ELIDE_MIDDLE: elide_mode_e = 2; pub const elide_mode_e_ELIDE_NONE: elide_mode_e = 3; pub type elide_mode_e = ::std::os::raw::c_uint; pub const software_update_channel_e_UPDATE_CHANNEL_DEVELOPMENT: software_update_channel_e = 0; pub const software_update_channel_e_UPDATE_CHANNEL_STABLE: software_update_channel_e = 1; pub type software_update_channel_e = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _e_prefs { pub col_list: *mut GList, pub num_cols: gint, pub st_client_fg: color_t, pub st_client_bg: color_t, pub st_server_fg: color_t, pub st_server_bg: color_t, pub gui_text_valid: color_t, pub gui_text_invalid: color_t, pub gui_text_deprecated: color_t, pub restore_filter_after_following_stream: gboolean, pub gui_toolbar_main_style: gint, pub gui_qt_font_name: *mut gchar, pub gui_active_fg: color_t, pub gui_active_bg: color_t, pub gui_active_style: gint, pub gui_inactive_fg: color_t, pub gui_inactive_bg: color_t, pub gui_inactive_style: gint, pub gui_marked_fg: color_t, pub gui_marked_bg: color_t, pub gui_ignored_fg: color_t, pub gui_ignored_bg: color_t, pub gui_colorized_fg: *mut gchar, pub gui_colorized_bg: *mut gchar, pub gui_geometry_save_position: gboolean, pub gui_geometry_save_size: gboolean, pub gui_geometry_save_maximized: gboolean, pub gui_console_open: console_open_e, pub gui_recent_df_entries_max: guint, pub gui_recent_files_count_max: guint, pub gui_fileopen_style: guint, pub gui_fileopen_dir: *mut gchar, pub gui_fileopen_preview: guint, pub gui_ask_unsaved: gboolean, pub gui_autocomplete_filter: gboolean, pub gui_find_wrap: gboolean, pub gui_window_title: *mut gchar, pub gui_prepend_window_title: *mut gchar, pub gui_start_title: *mut gchar, pub gui_version_placement: version_info_e, pub gui_max_export_objects: guint, pub gui_max_tree_items: guint, pub gui_max_tree_depth: guint, pub gui_layout_type: layout_type_e, pub gui_layout_content_1: layout_pane_content_e, pub gui_layout_content_2: layout_pane_content_e, pub gui_layout_content_3: layout_pane_content_e, pub gui_interfaces_hide_types: *mut gchar, pub gui_interfaces_show_hidden: gboolean, pub gui_interfaces_remote_display: gboolean, pub gui_io_graph_automatic_update: gboolean, pub gui_packet_details_show_byteview: gboolean, pub capture_device: *mut gchar, pub capture_devices_linktypes: *mut gchar, pub capture_devices_descr: *mut gchar, pub capture_devices_hide: *mut gchar, pub capture_devices_monitor_mode: *mut gchar, pub capture_devices_buffersize: *mut gchar, pub capture_devices_snaplen: *mut gchar, pub capture_devices_pmode: *mut gchar, pub capture_devices_filter: *mut gchar, pub capture_prom_mode: gboolean, pub capture_pcap_ng: gboolean, pub capture_real_time: gboolean, pub capture_auto_scroll: gboolean, pub capture_no_interface_load: gboolean, pub capture_no_extcap: gboolean, pub capture_show_info: gboolean, pub capture_columns: *mut GList, pub tap_update_interval: guint, pub display_hidden_proto_items: gboolean, pub display_byte_fields_with_spaces: gboolean, pub enable_incomplete_dissectors_check: gboolean, pub incomplete_dissectors_check_debug: gboolean, pub strict_conversation_tracking_heuristics: gboolean, pub filter_expressions_old: gboolean, pub gui_update_enabled: gboolean, pub gui_update_channel: software_update_channel_e, pub gui_update_interval: gint, pub saved_at_version: *mut gchar, pub unknown_prefs: gboolean, pub unknown_colorfilters: gboolean, pub gui_qt_packet_list_separator: gboolean, pub gui_qt_packet_header_column_definition: gboolean, pub gui_qt_packet_list_hover_style: gboolean, pub gui_qt_show_selected_packet: gboolean, pub gui_qt_show_file_load_time: gboolean, pub gui_packet_list_elide_mode: elide_mode_e, pub gui_packet_list_show_related: gboolean, pub gui_packet_list_show_minimap: gboolean, pub gui_packet_list_sortable: gboolean, pub gui_decimal_places1: gint, pub gui_decimal_places2: gint, pub gui_decimal_places3: gint, pub gui_rtp_player_use_disk1: gboolean, pub gui_rtp_player_use_disk2: gboolean, pub st_enable_burstinfo: gboolean, pub st_burst_showcount: gboolean, pub st_burst_resolution: gint, pub st_burst_windowlen: gint, pub st_sort_casesensitve: gboolean, pub st_sort_rng_fixorder: gboolean, pub st_sort_rng_nameonly: gboolean, pub st_sort_defcolflag: gint, pub st_sort_defdescending: gboolean, pub st_sort_showfullname: gboolean, pub extcap_save_on_start: gboolean, } #[test] fn bindgen_test_layout__e_prefs() { const UNINIT: ::std::mem::MaybeUninit<_e_prefs> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_e_prefs>(), 552usize, concat!("Size of: ", stringify!(_e_prefs)) ); assert_eq!( ::std::mem::align_of::<_e_prefs>(), 8usize, concat!("Alignment of ", stringify!(_e_prefs)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).col_list) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(col_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_cols) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(num_cols) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_client_fg) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_client_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_client_bg) as usize - ptr as usize }, 18usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_client_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_server_fg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_server_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_server_bg) as usize - ptr as usize }, 30usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_server_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_text_valid) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_text_valid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_text_invalid) as usize - ptr as usize }, 42usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_text_invalid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_text_deprecated) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_text_deprecated) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).restore_filter_after_following_stream) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(restore_filter_after_following_stream) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_toolbar_main_style) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_toolbar_main_style) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_font_name) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_font_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_active_fg) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_active_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_active_bg) as usize - ptr as usize }, 78usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_active_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_active_style) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_active_style) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_inactive_fg) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_inactive_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_inactive_bg) as usize - ptr as usize }, 94usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_inactive_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_inactive_style) as usize - ptr as usize }, 100usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_inactive_style) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_marked_fg) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_marked_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_marked_bg) as usize - ptr as usize }, 110usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_marked_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_ignored_fg) as usize - ptr as usize }, 116usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_ignored_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_ignored_bg) as usize - ptr as usize }, 122usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_ignored_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_colorized_fg) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_colorized_fg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_colorized_bg) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_colorized_bg) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_geometry_save_position) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_geometry_save_position) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_geometry_save_size) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_geometry_save_size) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_geometry_save_maximized) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_geometry_save_maximized) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_console_open) as usize - ptr as usize }, 156usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_console_open) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_recent_df_entries_max) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_recent_df_entries_max) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_recent_files_count_max) as usize - ptr as usize }, 164usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_recent_files_count_max) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_fileopen_style) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_fileopen_style) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_fileopen_dir) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_fileopen_dir) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_fileopen_preview) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_fileopen_preview) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_ask_unsaved) as usize - ptr as usize }, 188usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_ask_unsaved) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_autocomplete_filter) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_autocomplete_filter) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_find_wrap) as usize - ptr as usize }, 196usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_find_wrap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_window_title) as usize - ptr as usize }, 200usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_window_title) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_prepend_window_title) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_prepend_window_title) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_start_title) as usize - ptr as usize }, 216usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_start_title) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_version_placement) as usize - ptr as usize }, 224usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_version_placement) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_max_export_objects) as usize - ptr as usize }, 228usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_max_export_objects) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_max_tree_items) as usize - ptr as usize }, 232usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_max_tree_items) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_max_tree_depth) as usize - ptr as usize }, 236usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_max_tree_depth) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_layout_type) as usize - ptr as usize }, 240usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_layout_type) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_layout_content_1) as usize - ptr as usize }, 244usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_layout_content_1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_layout_content_2) as usize - ptr as usize }, 248usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_layout_content_2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_layout_content_3) as usize - ptr as usize }, 252usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_layout_content_3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_interfaces_hide_types) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_interfaces_hide_types) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_interfaces_show_hidden) as usize - ptr as usize }, 264usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_interfaces_show_hidden) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_interfaces_remote_display) as usize - ptr as usize }, 268usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_interfaces_remote_display) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_io_graph_automatic_update) as usize - ptr as usize }, 272usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_io_graph_automatic_update) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_packet_details_show_byteview) as usize - ptr as usize }, 276usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_packet_details_show_byteview) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_device) as usize - ptr as usize }, 280usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_device) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_linktypes) as usize - ptr as usize }, 288usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_linktypes) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_descr) as usize - ptr as usize }, 296usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_descr) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_hide) as usize - ptr as usize }, 304usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_hide) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_monitor_mode) as usize - ptr as usize }, 312usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_monitor_mode) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_buffersize) as usize - ptr as usize }, 320usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_buffersize) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_snaplen) as usize - ptr as usize }, 328usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_snaplen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_pmode) as usize - ptr as usize }, 336usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_pmode) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_devices_filter) as usize - ptr as usize }, 344usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_devices_filter) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_prom_mode) as usize - ptr as usize }, 352usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_prom_mode) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_pcap_ng) as usize - ptr as usize }, 356usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_pcap_ng) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_real_time) as usize - ptr as usize }, 360usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_real_time) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_auto_scroll) as usize - ptr as usize }, 364usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_auto_scroll) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_no_interface_load) as usize - ptr as usize }, 368usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_no_interface_load) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_no_extcap) as usize - ptr as usize }, 372usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_no_extcap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_show_info) as usize - ptr as usize }, 376usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_show_info) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).capture_columns) as usize - ptr as usize }, 384usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(capture_columns) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tap_update_interval) as usize - ptr as usize }, 392usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(tap_update_interval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).display_hidden_proto_items) as usize - ptr as usize }, 396usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(display_hidden_proto_items) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).display_byte_fields_with_spaces) as usize - ptr as usize }, 400usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(display_byte_fields_with_spaces) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).enable_incomplete_dissectors_check) as usize - ptr as usize }, 404usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(enable_incomplete_dissectors_check) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).incomplete_dissectors_check_debug) as usize - ptr as usize }, 408usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(incomplete_dissectors_check_debug) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).strict_conversation_tracking_heuristics) as usize - ptr as usize }, 412usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(strict_conversation_tracking_heuristics) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).filter_expressions_old) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(filter_expressions_old) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_update_enabled) as usize - ptr as usize }, 420usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_update_enabled) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_update_channel) as usize - ptr as usize }, 424usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_update_channel) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_update_interval) as usize - ptr as usize }, 428usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_update_interval) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).saved_at_version) as usize - ptr as usize }, 432usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(saved_at_version) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).unknown_prefs) as usize - ptr as usize }, 440usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(unknown_prefs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).unknown_colorfilters) as usize - ptr as usize }, 444usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(unknown_colorfilters) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_packet_list_separator) as usize - ptr as usize }, 448usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_packet_list_separator) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_packet_header_column_definition) as usize - ptr as usize }, 452usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_packet_header_column_definition) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_packet_list_hover_style) as usize - ptr as usize }, 456usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_packet_list_hover_style) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_show_selected_packet) as usize - ptr as usize }, 460usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_show_selected_packet) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_qt_show_file_load_time) as usize - ptr as usize }, 464usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_qt_show_file_load_time) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_packet_list_elide_mode) as usize - ptr as usize }, 468usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_packet_list_elide_mode) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_packet_list_show_related) as usize - ptr as usize }, 472usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_packet_list_show_related) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_packet_list_show_minimap) as usize - ptr as usize }, 476usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_packet_list_show_minimap) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_packet_list_sortable) as usize - ptr as usize }, 480usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_packet_list_sortable) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_decimal_places1) as usize - ptr as usize }, 484usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_decimal_places1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_decimal_places2) as usize - ptr as usize }, 488usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_decimal_places2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_decimal_places3) as usize - ptr as usize }, 492usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_decimal_places3) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_rtp_player_use_disk1) as usize - ptr as usize }, 496usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_rtp_player_use_disk1) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gui_rtp_player_use_disk2) as usize - ptr as usize }, 500usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(gui_rtp_player_use_disk2) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_enable_burstinfo) as usize - ptr as usize }, 504usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_enable_burstinfo) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_burst_showcount) as usize - ptr as usize }, 508usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_burst_showcount) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_burst_resolution) as usize - ptr as usize }, 512usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_burst_resolution) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_burst_windowlen) as usize - ptr as usize }, 516usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_burst_windowlen) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_casesensitve) as usize - ptr as usize }, 520usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_casesensitve) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_rng_fixorder) as usize - ptr as usize }, 524usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_rng_fixorder) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_rng_nameonly) as usize - ptr as usize }, 528usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_rng_nameonly) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_defcolflag) as usize - ptr as usize }, 532usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_defcolflag) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_defdescending) as usize - ptr as usize }, 536usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_defdescending) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).st_sort_showfullname) as usize - ptr as usize }, 540usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(st_sort_showfullname) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).extcap_save_on_start) as usize - ptr as usize }, 544usize, concat!( "Offset of field: ", stringify!(_e_prefs), "::", stringify!(extcap_save_on_start) ) ); } pub type e_prefs = _e_prefs; extern "C" { pub static mut prefs: e_prefs; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pref_module { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pref_custom_cbs { _unused: [u8; 0], } pub type module_t = pref_module; extern "C" { pub fn prefs_init(); } extern "C" { pub fn prefs_reset(); } extern "C" { pub fn prefs_cleanup(); } extern "C" { pub fn prefs_set_gui_theme_is_dark(is_dark: gboolean); } extern "C" { pub fn prefs_register_protocol( id: ::std::os::raw::c_int, apply_cb: ::std::option::Option, ) -> *mut module_t; } extern "C" { pub fn prefs_register_module_alias(name: *const ::std::os::raw::c_char, module: *mut module_t); } extern "C" { pub fn prefs_deregister_protocol(id: ::std::os::raw::c_int); } extern "C" { pub fn prefs_register_stat( name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, apply_cb: ::std::option::Option, ) -> *mut module_t; } extern "C" { pub fn prefs_register_codec( name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, apply_cb: ::std::option::Option, ) -> *mut module_t; } extern "C" { pub fn prefs_register_protocol_subtree( subtree: *const ::std::os::raw::c_char, id: ::std::os::raw::c_int, apply_cb: ::std::option::Option, ) -> *mut module_t; } extern "C" { pub fn prefs_register_protocol_obsolete(id: ::std::os::raw::c_int) -> *mut module_t; } pub type module_cb = ::std::option::Option< unsafe extern "C" fn(module: *mut module_t, user_data: gpointer) -> guint, >; extern "C" { pub fn prefs_module_has_submodules(module: *mut module_t) -> gboolean; } extern "C" { pub fn prefs_modules_foreach(callback: module_cb, user_data: gpointer) -> guint; } extern "C" { pub fn prefs_modules_foreach_submodules( module: *mut module_t, callback: module_cb, user_data: gpointer, ) -> guint; } extern "C" { pub fn prefs_apply_all(); } extern "C" { pub fn prefs_apply(module: *mut module_t); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct preference { _unused: [u8; 0], } pub type pref_t = preference; extern "C" { pub fn prefs_is_registered_protocol(name: *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn prefs_get_title_by_name( name: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn prefs_find_module(name: *const ::std::os::raw::c_char) -> *mut module_t; } extern "C" { pub fn prefs_find_preference( module: *mut module_t, pref: *const ::std::os::raw::c_char, ) -> *mut pref_t; } extern "C" { pub fn prefs_register_uint_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, base: guint, var: *mut guint, ); } extern "C" { pub fn prefs_register_bool_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut gboolean, ); } extern "C" { pub fn prefs_register_enum_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut gint, enumvals: *const enum_val_t, radio_buttons: gboolean, ); } extern "C" { pub fn prefs_register_string_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *const ::std::os::raw::c_char, ); } extern "C" { pub fn prefs_register_filename_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *const ::std::os::raw::c_char, for_writing: gboolean, ); } extern "C" { pub fn prefs_register_directory_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *const ::std::os::raw::c_char, ); } extern "C" { pub fn prefs_register_range_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *mut range_t, max_value: guint32, ); } extern "C" { pub fn prefs_register_static_text_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, ); } extern "C" { pub fn prefs_register_uat_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, uat: *mut epan_uat, ); } extern "C" { pub fn prefs_register_uat_preference_qt( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, uat: *mut epan_uat, ); } extern "C" { pub fn prefs_register_color_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, color: *mut color_t, ); } extern "C" { pub fn prefs_register_custom_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, custom_cbs: *mut pref_custom_cbs, custom_data: *mut *mut ::std::os::raw::c_void, ); } extern "C" { pub fn prefs_register_decode_as_range_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *mut range_t, max_value: guint32, ); } extern "C" { pub fn prefs_register_password_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, title: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, var: *mut *const ::std::os::raw::c_char, ); } extern "C" { pub fn prefs_register_obsolete_preference( module: *mut module_t, name: *const ::std::os::raw::c_char, ); } extern "C" { pub fn prefs_set_preference_effect_fields( module: *mut module_t, name: *const ::std::os::raw::c_char, ); } pub type pref_cb = ::std::option::Option guint>; extern "C" { pub fn prefs_pref_foreach( module: *mut module_t, callback: pref_cb, user_data: gpointer, ) -> guint; } extern "C" { pub fn prefs_get_string_list(str_: *const gchar) -> *mut GList; } extern "C" { pub fn prefs_clear_string_list(sl: *mut GList); } extern "C" { pub fn prefs_pref_type_name(pref: *mut pref_t) -> *const ::std::os::raw::c_char; } extern "C" { pub fn prefs_pref_type_description(pref: *mut pref_t) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn prefs_pref_to_str( pref: *mut pref_t, source: pref_source_t, ) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn read_prefs() -> *mut e_prefs; } extern "C" { pub fn write_prefs(pf_path_return: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; } pub const prefs_set_pref_e_PREFS_SET_OK: prefs_set_pref_e = 0; pub const prefs_set_pref_e_PREFS_SET_SYNTAX_ERR: prefs_set_pref_e = 1; pub const prefs_set_pref_e_PREFS_SET_NO_SUCH_PREF: prefs_set_pref_e = 2; pub const prefs_set_pref_e_PREFS_SET_OBSOLETE: prefs_set_pref_e = 3; pub type prefs_set_pref_e = ::std::os::raw::c_uint; extern "C" { pub fn prefs_set_pref( prefarg: *mut ::std::os::raw::c_char, errmsg: *mut *mut ::std::os::raw::c_char, ) -> prefs_set_pref_e; } extern "C" { pub fn prefs_get_preference_obsolete(pref: *mut pref_t) -> gboolean; } extern "C" { pub fn prefs_set_preference_obsolete(pref: *mut pref_t) -> prefs_set_pref_e; } extern "C" { pub fn prefs_get_uint_value( module_name: *const ::std::os::raw::c_char, pref_name: *const ::std::os::raw::c_char, ) -> guint; } extern "C" { pub fn prefs_get_range_value( module_name: *const ::std::os::raw::c_char, pref_name: *const ::std::os::raw::c_char, ) -> *mut range_t; } extern "C" { pub fn prefs_is_capture_device_hidden(name: *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn prefs_capture_device_monitor_mode(name: *const ::std::os::raw::c_char) -> gboolean; } extern "C" { pub fn prefs_capture_options_dialog_column_is_visible(column: *const gchar) -> gboolean; } extern "C" { pub fn prefs_has_layout_pane_content(layout_pane_content: layout_pane_content_e) -> gboolean; } extern "C" { pub static mut wireshark_abort_on_dissector_bug: gboolean; } extern "C" { pub static mut wireshark_abort_on_too_many_items: gboolean; } pub type epan_dissect_t = epan_dissect; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_dfilter { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_column_info { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct packet_provider_data { _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct packet_provider_funcs { pub get_frame_ts: ::std::option::Option< unsafe extern "C" fn( prov: *mut packet_provider_data, frame_num: guint32, ) -> *const nstime_t, >, pub get_interface_name: ::std::option::Option< unsafe extern "C" fn( prov: *mut packet_provider_data, interface_id: guint32, ) -> *const ::std::os::raw::c_char, >, pub get_interface_description: ::std::option::Option< unsafe extern "C" fn( prov: *mut packet_provider_data, interface_id: guint32, ) -> *const ::std::os::raw::c_char, >, pub get_modified_block: ::std::option::Option< unsafe extern "C" fn( prov: *mut packet_provider_data, fd: *const frame_data, ) -> wtap_block_t, >, } #[test] fn bindgen_test_layout_packet_provider_funcs() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(packet_provider_funcs)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(packet_provider_funcs)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).get_frame_ts) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(packet_provider_funcs), "::", stringify!(get_frame_ts) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).get_interface_name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(packet_provider_funcs), "::", stringify!(get_interface_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).get_interface_description) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(packet_provider_funcs), "::", stringify!(get_interface_description) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).get_modified_block) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(packet_provider_funcs), "::", stringify!(get_modified_block) ) ); } extern "C" { pub fn epan_init( cb: register_cb, client_data: *mut ::std::os::raw::c_void, load_plugins: gboolean, ) -> gboolean; } extern "C" { pub fn epan_load_settings() -> *mut e_prefs; } extern "C" { pub fn epan_cleanup(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct epan_plugin { pub init: ::std::option::Option, pub post_init: ::std::option::Option, pub dissect_init: ::std::option::Option, pub dissect_cleanup: ::std::option::Option, pub cleanup: ::std::option::Option, pub register_all_protocols: ::std::option::Option, pub register_all_handoffs: ::std::option::Option, pub register_all_tap_listeners: ::std::option::Option, } #[test] fn bindgen_test_layout_epan_plugin() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, concat!("Size of: ", stringify!(epan_plugin)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(epan_plugin)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(init) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).post_init) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(post_init) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dissect_init) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(dissect_init) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dissect_cleanup) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(dissect_cleanup) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).cleanup) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(cleanup) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_all_protocols) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(register_all_protocols) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_all_handoffs) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(register_all_handoffs) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).register_all_tap_listeners) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(epan_plugin), "::", stringify!(register_all_tap_listeners) ) ); } extern "C" { pub fn epan_register_plugin(plugin: *const epan_plugin); } extern "C" { pub fn epan_plugins_supported() -> ::std::os::raw::c_int; } extern "C" { pub fn epan_conversation_init(); } pub type epan_t = epan_session; extern "C" { pub fn epan_new( prov: *mut packet_provider_data, funcs: *const packet_provider_funcs, ) -> *mut epan_t; } extern "C" { pub fn epan_get_modified_block(session: *const epan_t, fd: *const frame_data) -> wtap_block_t; } extern "C" { pub fn epan_get_interface_name( session: *const epan_t, interface_id: guint32, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn epan_get_interface_description( session: *const epan_t, interface_id: guint32, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn epan_get_frame_ts(session: *const epan_t, frame_num: guint32) -> *const nstime_t; } extern "C" { pub fn epan_free(session: *mut epan_t); } extern "C" { pub fn epan_get_version() -> *const gchar; } extern "C" { pub fn epan_get_version_number( major: *mut ::std::os::raw::c_int, minor: *mut ::std::os::raw::c_int, micro: *mut ::std::os::raw::c_int, ); } extern "C" { pub fn epan_set_always_visible(force: gboolean); } extern "C" { pub fn epan_dissect_init( edt: *mut epan_dissect_t, session: *mut epan_t, create_proto_tree: gboolean, proto_tree_visible: gboolean, ); } extern "C" { pub fn epan_dissect_new( session: *mut epan_t, create_proto_tree: gboolean, proto_tree_visible: gboolean, ) -> *mut epan_dissect_t; } extern "C" { pub fn epan_dissect_reset(edt: *mut epan_dissect_t); } extern "C" { pub fn epan_dissect_fake_protocols(edt: *mut epan_dissect_t, fake_protocols: gboolean); } extern "C" { pub fn epan_dissect_run( edt: *mut epan_dissect_t, file_type_subtype: ::std::os::raw::c_int, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut epan_column_info, ); } extern "C" { pub fn epan_dissect_run_with_taps( edt: *mut epan_dissect_t, file_type_subtype: ::std::os::raw::c_int, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut epan_column_info, ); } extern "C" { pub fn epan_dissect_file_run( edt: *mut epan_dissect_t, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut epan_column_info, ); } extern "C" { pub fn epan_dissect_file_run_with_taps( edt: *mut epan_dissect_t, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut epan_column_info, ); } extern "C" { pub fn epan_dissect_prime_with_dfilter(edt: *mut epan_dissect_t, dfcode: *const epan_dfilter); } extern "C" { pub fn epan_dissect_prime_with_hfid(edt: *mut epan_dissect_t, hfid: ::std::os::raw::c_int); } extern "C" { pub fn epan_dissect_prime_with_hfid_array(edt: *mut epan_dissect_t, hfids: *mut GArray); } extern "C" { pub fn epan_dissect_fill_in_columns( edt: *mut epan_dissect_t, fill_col_exprs: gboolean, fill_fd_colums: gboolean, ); } extern "C" { pub fn epan_dissect_packet_contains_field( edt: *mut epan_dissect_t, field_name: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn epan_dissect_cleanup(edt: *mut epan_dissect_t); } extern "C" { pub fn epan_dissect_free(edt: *mut epan_dissect_t); } extern "C" { pub fn epan_custom_set( edt: *mut epan_dissect_t, ids: *mut GSList, occurrence: gint, result: *mut gchar, expr: *mut gchar, size: ::std::os::raw::c_int, ) -> *const gchar; } extern "C" { pub fn epan_gather_compile_info(l: feature_list); } extern "C" { pub fn epan_gather_runtime_info(l: feature_list); } pub type column_info = epan_column_info; pub const COL_8021Q_VLAN_ID: _bindgen_ty_21 = 0; pub const COL_ABS_YMD_TIME: _bindgen_ty_21 = 1; pub const COL_ABS_YDOY_TIME: _bindgen_ty_21 = 2; pub const COL_ABS_TIME: _bindgen_ty_21 = 3; pub const COL_VSAN: _bindgen_ty_21 = 4; pub const COL_CUMULATIVE_BYTES: _bindgen_ty_21 = 5; pub const COL_CUSTOM: _bindgen_ty_21 = 6; pub const COL_DCE_CALL: _bindgen_ty_21 = 7; pub const COL_DELTA_TIME: _bindgen_ty_21 = 8; pub const COL_DELTA_TIME_DIS: _bindgen_ty_21 = 9; pub const COL_RES_DST: _bindgen_ty_21 = 10; pub const COL_UNRES_DST: _bindgen_ty_21 = 11; pub const COL_RES_DST_PORT: _bindgen_ty_21 = 12; pub const COL_UNRES_DST_PORT: _bindgen_ty_21 = 13; pub const COL_DEF_DST: _bindgen_ty_21 = 14; pub const COL_DEF_DST_PORT: _bindgen_ty_21 = 15; pub const COL_EXPERT: _bindgen_ty_21 = 16; pub const COL_IF_DIR: _bindgen_ty_21 = 17; pub const COL_FREQ_CHAN: _bindgen_ty_21 = 18; pub const COL_DEF_DL_DST: _bindgen_ty_21 = 19; pub const COL_DEF_DL_SRC: _bindgen_ty_21 = 20; pub const COL_RES_DL_DST: _bindgen_ty_21 = 21; pub const COL_UNRES_DL_DST: _bindgen_ty_21 = 22; pub const COL_RES_DL_SRC: _bindgen_ty_21 = 23; pub const COL_UNRES_DL_SRC: _bindgen_ty_21 = 24; pub const COL_RSSI: _bindgen_ty_21 = 25; pub const COL_TX_RATE: _bindgen_ty_21 = 26; pub const COL_DSCP_VALUE: _bindgen_ty_21 = 27; pub const COL_INFO: _bindgen_ty_21 = 28; pub const COL_RES_NET_DST: _bindgen_ty_21 = 29; pub const COL_UNRES_NET_DST: _bindgen_ty_21 = 30; pub const COL_RES_NET_SRC: _bindgen_ty_21 = 31; pub const COL_UNRES_NET_SRC: _bindgen_ty_21 = 32; pub const COL_DEF_NET_DST: _bindgen_ty_21 = 33; pub const COL_DEF_NET_SRC: _bindgen_ty_21 = 34; pub const COL_NUMBER: _bindgen_ty_21 = 35; pub const COL_PACKET_LENGTH: _bindgen_ty_21 = 36; pub const COL_PROTOCOL: _bindgen_ty_21 = 37; pub const COL_REL_TIME: _bindgen_ty_21 = 38; pub const COL_DEF_SRC: _bindgen_ty_21 = 39; pub const COL_DEF_SRC_PORT: _bindgen_ty_21 = 40; pub const COL_RES_SRC: _bindgen_ty_21 = 41; pub const COL_UNRES_SRC: _bindgen_ty_21 = 42; pub const COL_RES_SRC_PORT: _bindgen_ty_21 = 43; pub const COL_UNRES_SRC_PORT: _bindgen_ty_21 = 44; pub const COL_TEI: _bindgen_ty_21 = 45; pub const COL_UTC_YMD_TIME: _bindgen_ty_21 = 46; pub const COL_UTC_YDOY_TIME: _bindgen_ty_21 = 47; pub const COL_UTC_TIME: _bindgen_ty_21 = 48; pub const COL_CLS_TIME: _bindgen_ty_21 = 49; pub const NUM_COL_FMTS: _bindgen_ty_21 = 50; pub type _bindgen_ty_21 = ::std::os::raw::c_uint; extern "C" { pub fn col_get_writable(cinfo: *mut column_info, col: gint) -> gboolean; } extern "C" { pub fn col_set_writable(cinfo: *mut column_info, col: gint, writable: gboolean); } extern "C" { pub fn col_set_fence(cinfo: *mut column_info, col: gint); } extern "C" { pub fn col_clear_fence(cinfo: *mut column_info, col: gint); } extern "C" { pub fn col_get_text(cinfo: *mut column_info, col: gint) -> *const gchar; } extern "C" { pub fn col_clear(cinfo: *mut column_info, col: gint); } extern "C" { pub fn col_set_str(cinfo: *mut column_info, col: gint, str_: *const gchar); } extern "C" { pub fn col_add_str(cinfo: *mut column_info, col: gint, str_: *const gchar); } extern "C" { pub fn col_add_lstr(cinfo: *mut column_info, el: gint, str_: *const gchar, ...); } extern "C" { pub fn col_add_fstr(cinfo: *mut column_info, col: gint, format: *const gchar, ...); } extern "C" { pub fn col_append_str(cinfo: *mut column_info, col: gint, str_: *const gchar); } extern "C" { pub fn col_append_str_uint( cinfo: *mut column_info, col: gint, abbrev: *const gchar, val: guint32, sep: *const gchar, ); } extern "C" { pub fn col_append_ports( cinfo: *mut column_info, col: gint, typ: port_type, src: guint16, dst: guint16, ); } extern "C" { pub fn col_append_frame_number( pinfo: *mut packet_info, col: gint, fmt_str: *const gchar, frame_num: guint, ); } extern "C" { pub fn col_append_lstr(cinfo: *mut column_info, el: gint, str_: *const gchar, ...); } extern "C" { pub fn col_append_fstr(cinfo: *mut column_info, col: gint, format: *const gchar, ...); } extern "C" { pub fn col_prepend_fstr(cinfo: *mut column_info, col: gint, format: *const gchar, ...); } extern "C" { pub fn col_prepend_fence_fstr(cinfo: *mut column_info, col: gint, format: *const gchar, ...); } extern "C" { pub fn col_append_sep_str( cinfo: *mut column_info, col: gint, sep: *const gchar, str_: *const gchar, ); } extern "C" { pub fn col_append_sep_fstr( cinfo: *mut column_info, col: gint, sep: *const gchar, format: *const gchar, ... ); } extern "C" { pub fn col_set_time( cinfo: *mut column_info, col: ::std::os::raw::c_int, ts: *const nstime_t, fieldname: *const ::std::os::raw::c_char, ); } extern "C" { pub fn set_fd_time(epan: *const epan_session, fd: *mut frame_data, buf: *mut gchar); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct unit_name_string { pub singular: *mut ::std::os::raw::c_char, pub plural: *mut ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_unit_name_string() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(unit_name_string)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(unit_name_string)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).singular) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(unit_name_string), "::", stringify!(singular) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).plural) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(unit_name_string), "::", stringify!(plural) ) ); } extern "C" { pub fn unit_name_string_get_value( value: guint32, units: *const unit_name_string, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn unit_name_string_get_value64( value: guint64, units: *const unit_name_string, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn unit_name_string_get_double( value: f64, units: *const unit_name_string, ) -> *const ::std::os::raw::c_char; } extern "C" { pub static units_foot_feet: unit_name_string; } extern "C" { pub static units_bit_bits: unit_name_string; } extern "C" { pub static units_byte_bytes: unit_name_string; } extern "C" { pub static units_byte_bytespsecond: unit_name_string; } extern "C" { pub static units_octet_octets: unit_name_string; } extern "C" { pub static units_word_words: unit_name_string; } extern "C" { pub static units_tick_ticks: unit_name_string; } extern "C" { pub static units_meters: unit_name_string; } extern "C" { pub static units_meter_meters: unit_name_string; } extern "C" { pub static units_week_weeks: unit_name_string; } extern "C" { pub static units_day_days: unit_name_string; } extern "C" { pub static units_hour_hours: unit_name_string; } extern "C" { pub static units_hours: unit_name_string; } extern "C" { pub static units_minute_minutes: unit_name_string; } extern "C" { pub static units_minutes: unit_name_string; } extern "C" { pub static units_second_seconds: unit_name_string; } extern "C" { pub static units_seconds: unit_name_string; } extern "C" { pub static units_millisecond_milliseconds: unit_name_string; } extern "C" { pub static units_milliseconds: unit_name_string; } extern "C" { pub static units_microsecond_microseconds: unit_name_string; } extern "C" { pub static units_microseconds: unit_name_string; } extern "C" { pub static units_nanosecond_nanoseconds: unit_name_string; } extern "C" { pub static units_nanoseconds: unit_name_string; } extern "C" { pub static units_nanometers: unit_name_string; } extern "C" { pub static units_degree_degrees: unit_name_string; } extern "C" { pub static units_degree_celsius: unit_name_string; } extern "C" { pub static units_degree_bearing: unit_name_string; } extern "C" { pub static units_centibels: unit_name_string; } extern "C" { pub static units_decibels: unit_name_string; } extern "C" { pub static units_dbm: unit_name_string; } extern "C" { pub static units_dbi: unit_name_string; } extern "C" { pub static units_mbm: unit_name_string; } extern "C" { pub static units_percent: unit_name_string; } extern "C" { pub static units_khz: unit_name_string; } extern "C" { pub static units_ghz: unit_name_string; } extern "C" { pub static units_mhz: unit_name_string; } extern "C" { pub static units_hz: unit_name_string; } extern "C" { pub static units_hz_s: unit_name_string; } extern "C" { pub static units_kbit: unit_name_string; } extern "C" { pub static units_kbps: unit_name_string; } extern "C" { pub static units_kibps: unit_name_string; } extern "C" { pub static units_pkts: unit_name_string; } extern "C" { pub static units_pkts_per_sec: unit_name_string; } extern "C" { pub static units_km: unit_name_string; } extern "C" { pub static units_kmh: unit_name_string; } extern "C" { pub static units_milliamps: unit_name_string; } extern "C" { pub static units_microwatts: unit_name_string; } extern "C" { pub static units_volt: unit_name_string; } extern "C" { pub static units_grams_per_second: unit_name_string; } extern "C" { pub static units_meter_sec: unit_name_string; } extern "C" { pub static units_meter_sec_squared: unit_name_string; } extern "C" { pub static units_bit_sec: unit_name_string; } extern "C" { pub static units_segment_remaining: unit_name_string; } extern "C" { pub static units_frame_frames: unit_name_string; } extern "C" { pub static units_revolutions_per_minute: unit_name_string; } extern "C" { pub static units_kilopascal: unit_name_string; } extern "C" { pub static units_newton_metre: unit_name_string; } extern "C" { pub static units_liter_per_hour: unit_name_string; } extern "C" { pub static units_amp: unit_name_string; } extern "C" { pub static units_watthour: unit_name_string; } extern "C" { pub static units_watt: unit_name_string; } extern "C" { pub static units_bpm: unit_name_string; } extern "C" { pub static units_calorie: unit_name_string; } extern "C" { pub fn packet_init(); } extern "C" { pub fn packet_cache_proto_handles(); } extern "C" { pub fn packet_cleanup(); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dissector_handle { _unused: [u8; 0], } pub type dissector_handle_t = *mut dissector_handle; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dissector_table { _unused: [u8; 0], } pub type dissector_table_t = *mut dissector_table; pub type dissector_t = ::std::option::Option< unsafe extern "C" fn( arg1: *mut tvbuff_t, arg2: *mut packet_info, arg3: *mut proto_tree, arg4: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; pub type dissector_cb_t = ::std::option::Option< unsafe extern "C" fn( arg1: *mut tvbuff_t, arg2: *mut packet_info, arg3: *mut proto_tree, arg4: *mut ::std::os::raw::c_void, arg5: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; pub type heur_dissector_t = ::std::option::Option< unsafe extern "C" fn( tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, arg1: *mut ::std::os::raw::c_void, ) -> gboolean, >; pub const heuristic_enable_e_HEURISTIC_DISABLE: heuristic_enable_e = 0; pub const heuristic_enable_e_HEURISTIC_ENABLE: heuristic_enable_e = 1; pub type heuristic_enable_e = ::std::os::raw::c_uint; pub type DATFunc = ::std::option::Option< unsafe extern "C" fn( table_name: *const gchar, selector_type: ftenum_t, key: gpointer, value: gpointer, user_data: gpointer, ), >; pub type DATFunc_handle = ::std::option::Option< unsafe extern "C" fn(table_name: *const gchar, value: gpointer, user_data: gpointer), >; pub type DATFunc_table = ::std::option::Option< unsafe extern "C" fn(table_name: *const gchar, ui_name: *const gchar, user_data: gpointer), >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dtbl_entry { _unused: [u8; 0], } pub type dtbl_entry_t = dtbl_entry; extern "C" { pub fn dtbl_entry_get_handle(dtbl_entry: *mut dtbl_entry_t) -> dissector_handle_t; } extern "C" { pub fn dtbl_entry_get_initial_handle(entry: *mut dtbl_entry_t) -> dissector_handle_t; } extern "C" { pub fn dissector_table_foreach_changed( table_name: *const ::std::os::raw::c_char, func: DATFunc, user_data: gpointer, ); } extern "C" { pub fn dissector_table_foreach( table_name: *const ::std::os::raw::c_char, func: DATFunc, user_data: gpointer, ); } extern "C" { pub fn dissector_all_tables_foreach_changed(func: DATFunc, user_data: gpointer); } extern "C" { pub fn dissector_table_foreach_handle( table_name: *const ::std::os::raw::c_char, func: DATFunc_handle, user_data: gpointer, ); } extern "C" { pub fn dissector_all_tables_foreach_table( func: DATFunc_table, user_data: gpointer, compare_key_func: GCompareFunc, ); } extern "C" { pub fn register_dissector_table( name: *const ::std::os::raw::c_char, ui_name: *const ::std::os::raw::c_char, proto: ::std::os::raw::c_int, type_: ftenum_t, param: ::std::os::raw::c_int, ) -> dissector_table_t; } extern "C" { pub fn register_custom_dissector_table( name: *const ::std::os::raw::c_char, ui_name: *const ::std::os::raw::c_char, proto: ::std::os::raw::c_int, hash_func: GHashFunc, key_equal_func: GEqualFunc, ) -> dissector_table_t; } extern "C" { pub fn register_dissector_table_alias( dissector_table: dissector_table_t, alias_name: *const ::std::os::raw::c_char, ); } extern "C" { pub fn deregister_dissector_table(name: *const ::std::os::raw::c_char); } extern "C" { pub fn find_dissector_table(name: *const ::std::os::raw::c_char) -> dissector_table_t; } extern "C" { pub fn get_dissector_table_ui_name( name: *const ::std::os::raw::c_char, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn get_dissector_table_selector_type(name: *const ::std::os::raw::c_char) -> ftenum_t; } extern "C" { pub fn get_dissector_table_param(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_dump_dissector_tables(); } extern "C" { pub fn dissector_add_uint( name: *const ::std::os::raw::c_char, pattern: guint32, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_add_uint_with_preference( name: *const ::std::os::raw::c_char, pattern: guint32, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_add_uint_range( abbrev: *const ::std::os::raw::c_char, range: *mut epan_range, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_add_uint_range_with_preference( abbrev: *const ::std::os::raw::c_char, range_str: *const ::std::os::raw::c_char, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_delete_uint( name: *const ::std::os::raw::c_char, pattern: guint32, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_delete_uint_range( abbrev: *const ::std::os::raw::c_char, range: *mut epan_range, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_delete_all(name: *const ::std::os::raw::c_char, handle: dissector_handle_t); } extern "C" { pub fn dissector_change_uint( abbrev: *const ::std::os::raw::c_char, pattern: guint32, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_reset_uint(name: *const ::std::os::raw::c_char, pattern: guint32); } extern "C" { pub fn dissector_is_uint_changed( sub_dissectors: dissector_table_t, uint_val: guint32, ) -> gboolean; } extern "C" { pub fn dissector_try_uint( sub_dissectors: dissector_table_t, uint_val: guint32, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_try_uint_new( sub_dissectors: dissector_table_t, uint_val: guint32, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, add_proto_name: gboolean, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_get_uint_handle( sub_dissectors: dissector_table_t, uint_val: guint32, ) -> dissector_handle_t; } extern "C" { pub fn dissector_get_default_uint_handle( name: *const ::std::os::raw::c_char, uint_val: guint32, ) -> dissector_handle_t; } extern "C" { pub fn dissector_add_string( name: *const ::std::os::raw::c_char, pattern: *const gchar, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_delete_string( name: *const ::std::os::raw::c_char, pattern: *const gchar, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_change_string( name: *const ::std::os::raw::c_char, pattern: *const gchar, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_reset_string(name: *const ::std::os::raw::c_char, pattern: *const gchar); } extern "C" { pub fn dissector_is_string_changed( subdissectors: dissector_table_t, string: *const gchar, ) -> gboolean; } extern "C" { pub fn dissector_try_string( sub_dissectors: dissector_table_t, string: *const gchar, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_try_string_new( sub_dissectors: dissector_table_t, string: *const gchar, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, add_proto_name: gboolean, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_get_string_handle( sub_dissectors: dissector_table_t, string: *const gchar, ) -> dissector_handle_t; } extern "C" { pub fn dissector_get_default_string_handle( name: *const ::std::os::raw::c_char, string: *const gchar, ) -> dissector_handle_t; } extern "C" { pub fn dissector_add_custom_table_handle( name: *const ::std::os::raw::c_char, pattern: *mut ::std::os::raw::c_void, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_get_custom_table_handle( sub_dissectors: dissector_table_t, key: *mut ::std::os::raw::c_void, ) -> dissector_handle_t; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _guid_key { pub guid: e_guid_t, pub ver: guint16, } #[test] fn bindgen_test_layout__guid_key() { const UNINIT: ::std::mem::MaybeUninit<_guid_key> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_guid_key>(), 20usize, concat!("Size of: ", stringify!(_guid_key)) ); assert_eq!( ::std::mem::align_of::<_guid_key>(), 4usize, concat!("Alignment of ", stringify!(_guid_key)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).guid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(_guid_key), "::", stringify!(guid) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ver) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(_guid_key), "::", stringify!(ver) ) ); } pub type guid_key = _guid_key; extern "C" { pub fn dissector_add_guid( name: *const ::std::os::raw::c_char, guid_val: *mut guid_key, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_try_guid( sub_dissectors: dissector_table_t, guid_val: *mut guid_key, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_try_guid_new( sub_dissectors: dissector_table_t, guid_val: *mut guid_key, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, add_proto_name: gboolean, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_get_guid_handle( sub_dissectors: dissector_table_t, guid_val: *mut guid_key, ) -> dissector_handle_t; } extern "C" { pub fn dissector_try_payload( sub_dissectors: dissector_table_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_try_payload_new( sub_dissectors: dissector_table_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, add_proto_name: gboolean, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn dissector_change_payload( abbrev: *const ::std::os::raw::c_char, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_reset_payload(name: *const ::std::os::raw::c_char); } extern "C" { pub fn dissector_get_payload_handle(dissector_table: dissector_table_t) -> dissector_handle_t; } extern "C" { pub fn dissector_add_for_decode_as( name: *const ::std::os::raw::c_char, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_add_for_decode_as_with_preference( name: *const ::std::os::raw::c_char, handle: dissector_handle_t, ); } extern "C" { pub fn dissector_table_get_dissector_handles(dissector_table: dissector_table_t) -> *mut GSList; } extern "C" { pub fn dissector_table_get_dissector_handle( dissector_table: dissector_table_t, description: *const gchar, ) -> dissector_handle_t; } extern "C" { pub fn dissector_table_get_type(dissector_table: dissector_table_t) -> ftenum_t; } extern "C" { pub fn dissector_table_allow_decode_as(dissector_table: dissector_table_t); } extern "C" { pub fn dissector_table_supports_decode_as(dissector_table: dissector_table_t) -> gboolean; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct heur_dissector_list { _unused: [u8; 0], } pub type heur_dissector_list_t = *mut heur_dissector_list; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct heur_dtbl_entry { pub dissector: heur_dissector_t, pub protocol: *mut protocol_t, pub list_name: *mut gchar, pub display_name: *const gchar, pub short_name: *mut gchar, pub enabled: gboolean, } #[test] fn bindgen_test_layout_heur_dtbl_entry() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, concat!("Size of: ", stringify!(heur_dtbl_entry)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(heur_dtbl_entry)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).dissector) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(dissector) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).protocol) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(protocol) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).list_name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(list_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).display_name) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(display_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).short_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(short_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).enabled) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(heur_dtbl_entry), "::", stringify!(enabled) ) ); } pub type heur_dtbl_entry_t = heur_dtbl_entry; extern "C" { pub fn register_heur_dissector_list( name: *const ::std::os::raw::c_char, proto: ::std::os::raw::c_int, ) -> heur_dissector_list_t; } pub type DATFunc_heur = ::std::option::Option< unsafe extern "C" fn( table_name: *const gchar, entry: *mut heur_dtbl_entry, user_data: gpointer, ), >; pub type DATFunc_heur_table = ::std::option::Option< unsafe extern "C" fn( table_name: *const ::std::os::raw::c_char, table: *mut heur_dissector_list, user_data: gpointer, ), >; extern "C" { pub fn heur_dissector_table_foreach( table_name: *const ::std::os::raw::c_char, func: DATFunc_heur, user_data: gpointer, ); } extern "C" { pub fn dissector_all_heur_tables_foreach_table( func: DATFunc_heur_table, user_data: gpointer, compare_key_func: GCompareFunc, ); } extern "C" { pub fn has_heur_dissector_list(name: *const gchar) -> gboolean; } extern "C" { pub fn dissector_try_heuristic( sub_dissectors: heur_dissector_list_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, hdtbl_entry: *mut *mut heur_dtbl_entry_t, data: *mut ::std::os::raw::c_void, ) -> gboolean; } extern "C" { pub fn find_heur_dissector_list(name: *const ::std::os::raw::c_char) -> heur_dissector_list_t; } extern "C" { pub fn find_heur_dissector_by_unique_short_name( short_name: *const ::std::os::raw::c_char, ) -> *mut heur_dtbl_entry_t; } extern "C" { pub fn heur_dissector_add( name: *const ::std::os::raw::c_char, dissector: heur_dissector_t, display_name: *const ::std::os::raw::c_char, internal_name: *const ::std::os::raw::c_char, proto: ::std::os::raw::c_int, enable: heuristic_enable_e, ); } extern "C" { pub fn heur_dissector_delete( name: *const ::std::os::raw::c_char, dissector: heur_dissector_t, proto: ::std::os::raw::c_int, ); } extern "C" { pub fn register_dissector( name: *const ::std::os::raw::c_char, dissector: dissector_t, proto: ::std::os::raw::c_int, ) -> dissector_handle_t; } extern "C" { pub fn register_dissector_with_description( name: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, dissector: dissector_t, proto: ::std::os::raw::c_int, ) -> dissector_handle_t; } extern "C" { pub fn register_dissector_with_data( name: *const ::std::os::raw::c_char, dissector: dissector_cb_t, proto: ::std::os::raw::c_int, cb_data: *mut ::std::os::raw::c_void, ) -> dissector_handle_t; } extern "C" { pub fn deregister_dissector(name: *const ::std::os::raw::c_char); } extern "C" { pub fn dissector_handle_get_protocol_long_name( handle: dissector_handle_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn dissector_handle_get_protocol_short_name( handle: dissector_handle_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn dissector_handle_get_short_name( handle: dissector_handle_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn dissector_handle_get_description( handle: dissector_handle_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn dissector_handle_get_protocol_index(handle: dissector_handle_t) -> ::std::os::raw::c_int; } extern "C" { pub fn get_dissector_names() -> *mut GList; } extern "C" { pub fn find_dissector(name: *const ::std::os::raw::c_char) -> dissector_handle_t; } extern "C" { pub fn find_dissector_add_dependency( name: *const ::std::os::raw::c_char, parent_proto: ::std::os::raw::c_int, ) -> dissector_handle_t; } extern "C" { pub fn dissector_handle_get_dissector_name( handle: dissector_handle_t, ) -> *const ::std::os::raw::c_char; } extern "C" { pub fn create_dissector_handle( dissector: dissector_t, proto: ::std::os::raw::c_int, ) -> dissector_handle_t; } extern "C" { pub fn create_dissector_handle_with_name( dissector: dissector_t, proto: ::std::os::raw::c_int, name: *const ::std::os::raw::c_char, ) -> dissector_handle_t; } extern "C" { pub fn create_dissector_handle_with_name_and_description( dissector: dissector_t, proto: ::std::os::raw::c_int, name: *const ::std::os::raw::c_char, description: *const ::std::os::raw::c_char, ) -> dissector_handle_t; } extern "C" { pub fn call_dissector_with_data( handle: dissector_handle_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn call_dissector( handle: dissector_handle_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ) -> ::std::os::raw::c_int; } extern "C" { pub fn call_data_dissector( tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ) -> ::std::os::raw::c_int; } extern "C" { pub fn call_dissector_only( handle: dissector_handle_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { pub fn call_heur_dissector_direct( heur_dtbl_entry: *mut heur_dtbl_entry_t, tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, data: *mut ::std::os::raw::c_void, ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct depend_dissector_list { _unused: [u8; 0], } pub type depend_dissector_list_t = *mut depend_dissector_list; extern "C" { pub fn register_depend_dissector( parent: *const ::std::os::raw::c_char, dependent: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn deregister_depend_dissector( parent: *const ::std::os::raw::c_char, dependent: *const ::std::os::raw::c_char, ) -> gboolean; } extern "C" { pub fn find_depend_dissector_list( name: *const ::std::os::raw::c_char, ) -> depend_dissector_list_t; } extern "C" { pub fn dissect_init(); } extern "C" { pub fn dissect_cleanup(); } extern "C" { pub fn set_actual_length(tvb: *mut tvbuff_t, specified_len: guint); } extern "C" { pub fn register_init_routine(func: ::std::option::Option); } extern "C" { pub fn register_cleanup_routine(func: ::std::option::Option); } extern "C" { pub fn register_shutdown_routine(func: ::std::option::Option); } extern "C" { pub fn init_dissection(); } extern "C" { pub fn cleanup_dissection(); } extern "C" { pub fn register_postseq_cleanup_routine(func: ::std::option::Option); } extern "C" { pub fn postseq_cleanup_all_protocols(); } extern "C" { pub fn register_final_registration_routine(func: ::std::option::Option); } extern "C" { pub fn final_registration_all_protocols(); } extern "C" { pub fn add_new_data_source( pinfo: *mut packet_info, tvb: *mut tvbuff_t, name: *const ::std::os::raw::c_char, ); } extern "C" { pub fn remove_last_data_source(pinfo: *mut packet_info); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct data_source { _unused: [u8; 0], } extern "C" { pub fn get_data_source_name(src: *const data_source) -> *mut ::std::os::raw::c_char; } extern "C" { pub fn get_data_source_tvb(src: *const data_source) -> *mut tvbuff_t; } extern "C" { pub fn get_data_source_tvb_by_name( pinfo: *mut packet_info, name: *const ::std::os::raw::c_char, ) -> *mut tvbuff_t; } extern "C" { pub fn free_data_sources(pinfo: *mut packet_info); } extern "C" { pub fn mark_frame_as_depended_upon(pinfo: *mut packet_info, frame_num: guint32); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct frame_data_s { pub file_type_subtype: ::std::os::raw::c_int, pub pkt_block: wtap_block_t, pub color_edt: *mut epan_dissect, } #[test] fn bindgen_test_layout_frame_data_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(frame_data_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(frame_data_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).file_type_subtype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(frame_data_s), "::", stringify!(file_type_subtype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkt_block) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(frame_data_s), "::", stringify!(pkt_block) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).color_edt) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(frame_data_s), "::", stringify!(color_edt) ) ); } pub type frame_data_t = frame_data_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct file_data_s { pub pkt_block: wtap_block_t, pub color_edt: *mut epan_dissect, } #[test] fn bindgen_test_layout_file_data_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(file_data_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(file_data_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pkt_block) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(file_data_s), "::", stringify!(pkt_block) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).color_edt) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(file_data_s), "::", stringify!(color_edt) ) ); } pub type file_data_t = file_data_s; extern "C" { pub fn dissect_record( edt: *mut epan_dissect, file_type_subtype: ::std::os::raw::c_int, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut column_info, ); } extern "C" { pub fn dissect_file( edt: *mut epan_dissect, rec: *mut wtap_rec, tvb: *mut tvbuff_t, fd: *mut frame_data, cinfo: *mut column_info, ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ethertype_data_s { pub etype: guint16, pub payload_offset: ::std::os::raw::c_int, pub fh_tree: *mut proto_tree, pub trailer_id: ::std::os::raw::c_int, pub fcs_len: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_ethertype_data_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(ethertype_data_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(ethertype_data_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).etype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(ethertype_data_s), "::", stringify!(etype) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).payload_offset) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(ethertype_data_s), "::", stringify!(payload_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fh_tree) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(ethertype_data_s), "::", stringify!(fh_tree) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).trailer_id) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(ethertype_data_s), "::", stringify!(trailer_id) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fcs_len) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(ethertype_data_s), "::", stringify!(fcs_len) ) ); } pub type ethertype_data_t = ethertype_data_s; extern "C" { pub fn dissector_dump_decodes(); } extern "C" { pub fn dissector_dump_heur_decodes(); } extern "C" { pub fn register_postdissector(handle: dissector_handle_t); } extern "C" { pub fn set_postdissector_wanted_hfids(handle: dissector_handle_t, wanted_hfids: *mut GArray); } extern "C" { pub fn deregister_postdissector(handle: dissector_handle_t); } extern "C" { pub fn have_postdissector() -> gboolean; } extern "C" { pub fn call_all_postdissectors( tvb: *mut tvbuff_t, pinfo: *mut packet_info, tree: *mut proto_tree, ); } extern "C" { pub fn postdissectors_want_hfids() -> gboolean; } extern "C" { pub fn prime_epan_dissect_with_postdissector_wanted_hfids(edt: *mut epan_dissect_t); } pub type build_label_func = ::std::option::Option; pub type build_valid_func = ::std::option::Option gpointer>; pub type decode_as_add_to_list_func = ::std::option::Option< unsafe extern "C" fn( table_name: *const gchar, proto_name: *const gchar, value: gpointer, user_data: gpointer, ), >; pub type decode_as_populate_list_func = ::std::option::Option< unsafe extern "C" fn( table_name: *const gchar, add_to_list: decode_as_add_to_list_func, ui_element: gpointer, ), >; pub type decode_as_free_func = ::std::option::Option; pub type decode_as_reset_func = ::std::option::Option< unsafe extern "C" fn(name: *const gchar, pattern: gconstpointer) -> gboolean, >; pub type decode_as_change_func = ::std::option::Option< unsafe extern "C" fn( name: *const gchar, pattern: gconstpointer, handle: gconstpointer, list_name: *const gchar, ) -> gboolean, >; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct decode_as_value_s { pub label_func: build_label_func, pub num_values: guint, pub build_values: *mut build_valid_func, } #[test] fn bindgen_test_layout_decode_as_value_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(decode_as_value_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(decode_as_value_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).label_func) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(decode_as_value_s), "::", stringify!(label_func) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_values) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(decode_as_value_s), "::", stringify!(num_values) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).build_values) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(decode_as_value_s), "::", stringify!(build_values) ) ); } pub type decode_as_value_t = decode_as_value_s; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct decode_as_s { pub name: *const ::std::os::raw::c_char, pub table_name: *const gchar, pub num_items: guint, pub default_index_value: guint, pub values: *mut decode_as_value_t, pub pre_value_str: *const ::std::os::raw::c_char, pub post_value_str: *const ::std::os::raw::c_char, pub populate_list: decode_as_populate_list_func, pub reset_value: decode_as_reset_func, pub change_value: decode_as_change_func, pub free_func: decode_as_free_func, } #[test] fn bindgen_test_layout_decode_as_s() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, concat!("Size of: ", stringify!(decode_as_s)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(decode_as_s)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).table_name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(table_name) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).num_items) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(num_items) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).default_index_value) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(default_index_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).values) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(values) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).pre_value_str) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(pre_value_str) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).post_value_str) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(post_value_str) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).populate_list) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(populate_list) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).reset_value) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(reset_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).change_value) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(change_value) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).free_func) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", stringify!(decode_as_s), "::", stringify!(free_func) ) ); } pub type decode_as_t = decode_as_s; extern "C" { pub fn register_decode_as(reg: *mut decode_as_t); } extern "C" { pub fn register_decode_as_next_proto( proto: ::std::os::raw::c_int, table_name: *const gchar, ui_name: *const gchar, label_func: build_label_func, ) -> *mut dissector_table; } extern "C" { pub fn decode_as_default_populate_list( table_name: *const gchar, add_to_list: decode_as_add_to_list_func, ui_element: gpointer, ); } extern "C" { pub fn decode_as_default_reset(name: *const gchar, pattern: gconstpointer) -> gboolean; } extern "C" { pub fn decode_as_default_change( name: *const gchar, pattern: gconstpointer, handle: gconstpointer, list_name: *const gchar, ) -> gboolean; } extern "C" { pub static mut decode_as_list: *mut GList; } extern "C" { pub fn load_decode_as_entries(); } extern "C" { pub fn save_decode_as_entries(err: *mut *mut gchar) -> ::std::os::raw::c_int; } extern "C" { pub fn decode_clear_all(); } extern "C" { pub fn decode_cleanup(); } extern "C" { pub fn decode_build_reset_list( table_name: *const gchar, selector_type: ftenum_t, key: gpointer, value: gpointer, user_data: gpointer, ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __locale_data { pub _address: u8, } pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __va_list_tag { pub gp_offset: ::std::os::raw::c_uint, pub fp_offset: ::std::os::raw::c_uint, pub overflow_arg_area: *mut ::std::os::raw::c_void, pub reg_save_area: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout___va_list_tag() { const UNINIT: ::std::mem::MaybeUninit<__va_list_tag> = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__va_list_tag>(), 24usize, concat!("Size of: ", stringify!(__va_list_tag)) ); assert_eq!( ::std::mem::align_of::<__va_list_tag>(), 8usize, concat!("Alignment of ", stringify!(__va_list_tag)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(gp_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(fp_offset) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(overflow_arg_area) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(reg_save_area) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct conversation_addr_port_endpoints { pub _address: u8, }