From 65468f3702f7cfb63d7e293e83b4622eb1cdfed6 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 12:15:52 +0900 Subject: [PATCH 01/50] Detect OS from `generate_bindings.sh` --- ndk-sys/CHANGELOG.md | 1 + ndk-sys/generate_bindings.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ndk-sys/CHANGELOG.md b/ndk-sys/CHANGELOG.md index fb21f98a..c8130259 100644 --- a/ndk-sys/CHANGELOG.md +++ b/ndk-sys/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- Detect OS from `generate_bindings.sh` and use proper NDK Host Tag - Regenerate against NDK 25.0.8775105 with `rust-bindgen 0.59.2`. (#324) # 0.4.1 (2022-11-23) diff --git a/ndk-sys/generate_bindings.sh b/ndk-sys/generate_bindings.sh index 9f81e760..880bc45b 100755 --- a/ndk-sys/generate_bindings.sh +++ b/ndk-sys/generate_bindings.sh @@ -1,6 +1,16 @@ #!/bin/sh -sysroot="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/linux-x86_64/sysroot/ +os=$(uname -s) + +if [[ "$os" == "Darwin" ]]; then + host_tag="darwin-x86_64" +elif [[ "$os" == "CYGWIN"* ]]; then + host_tag="windows-x86_64" +else + host_tag="linux-x86_64" +fi + +sysroot="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/${host_tag}/sysroot/ [ ! -d "$sysroot" ] && echo "Android sysroot $sysroot does not exist!" && exit 1 while read ARCH && read TARGET ; do From ac6aafeb658668ca1c67230e83dbe6e04007bdf9 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 12:17:07 +0900 Subject: [PATCH 02/50] Use --no-size_t-is-usize to ensure size_t is generated --- ndk-sys/CHANGELOG.md | 1 + ndk-sys/generate_bindings.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ndk-sys/CHANGELOG.md b/ndk-sys/CHANGELOG.md index c8130259..5942d519 100644 --- a/ndk-sys/CHANGELOG.md +++ b/ndk-sys/CHANGELOG.md @@ -1,6 +1,7 @@ # Unreleased - Detect OS from `generate_bindings.sh` and use proper NDK Host Tag +- Use `--no-size_t-is-usize` with `bindgen` to ensure `size_t` is generated - Regenerate against NDK 25.0.8775105 with `rust-bindgen 0.59.2`. (#324) # 0.4.1 (2022-11-23) diff --git a/ndk-sys/generate_bindings.sh b/ndk-sys/generate_bindings.sh index 880bc45b..54de6b67 100755 --- a/ndk-sys/generate_bindings.sh +++ b/ndk-sys/generate_bindings.sh @@ -15,6 +15,7 @@ sysroot="${ANDROID_NDK_ROOT}"/toolchains/llvm/prebuilt/${host_tag}/sysroot/ while read ARCH && read TARGET ; do bindgen wrapper.h -o src/ffi_$ARCH.rs \ + --no-size_t-is-usize \ --blocklist-item 'JNI\w+' \ --blocklist-item 'C?_?JNIEnv' \ --blocklist-item '_?JavaVM' \ From 6177f610dd1933153f0bbff8c69a2087ce64cc6f Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 12:18:56 +0900 Subject: [PATCH 03/50] Prevent AFont bindgen errors by adding `typedef struct` to wrapper.h --- ndk-sys/CHANGELOG.md | 1 + ndk-sys/wrapper.h | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ndk-sys/CHANGELOG.md b/ndk-sys/CHANGELOG.md index 5942d519..cad6b2a2 100644 --- a/ndk-sys/CHANGELOG.md +++ b/ndk-sys/CHANGELOG.md @@ -2,6 +2,7 @@ - Detect OS from `generate_bindings.sh` and use proper NDK Host Tag - Use `--no-size_t-is-usize` with `bindgen` to ensure `size_t` is generated +- Prevent AFont bindgen errors by adding `typedef struct` to wrapper.h - Regenerate against NDK 25.0.8775105 with `rust-bindgen 0.59.2`. (#324) # 0.4.1 (2022-11-23) diff --git a/ndk-sys/wrapper.h b/ndk-sys/wrapper.h index dbb50ffd..7a6665d7 100644 --- a/ndk-sys/wrapper.h +++ b/ndk-sys/wrapper.h @@ -20,8 +20,10 @@ #include #include #include -// #include -// #include +typedef struct AFont AFont; +#include +typedef struct AFontMatcher AFontMatcher; +#include #include #include #include @@ -49,7 +51,8 @@ #include #include #include -// #include +typedef struct ASystemFontIterator ASystemFontIterator; +#include // #include #include #include From 564e2ec1806e53f500c7d3693197c41ae9f9a29b Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 12:19:45 +0900 Subject: [PATCH 04/50] ndk-sys: Add AFont-related bindings --- ndk-sys/CHANGELOG.md | 4 +- ndk-sys/src/ffi_aarch64.rs | 6139 +++++++++++++++++---------------- ndk-sys/src/ffi_arm.rs | 6099 ++++++++++++++++----------------- ndk-sys/src/ffi_i686.rs | 6466 ++++++++++++++++++----------------- ndk-sys/src/ffi_x86_64.rs | 6557 ++++++++++++++++++------------------ 5 files changed, 12450 insertions(+), 12815 deletions(-) diff --git a/ndk-sys/CHANGELOG.md b/ndk-sys/CHANGELOG.md index cad6b2a2..3b2610c6 100644 --- a/ndk-sys/CHANGELOG.md +++ b/ndk-sys/CHANGELOG.md @@ -1,8 +1,8 @@ # Unreleased - Detect OS from `generate_bindings.sh` and use proper NDK Host Tag -- Use `--no-size_t-is-usize` with `bindgen` to ensure `size_t` is generated -- Prevent AFont bindgen errors by adding `typedef struct` to wrapper.h +- Regenerate against NDK 25.1.8937393 with `rust-bindgen 0.66.0`. +- Add `font`, `font_matcher`, `system_fonts` bindings - Regenerate against NDK 25.0.8775105 with `rust-bindgen 0.59.2`. (#324) # 0.4.1 (2022-11-23) diff --git a/ndk-sys/src/ffi_aarch64.rs b/ndk-sys/src/ffi_aarch64.rs index f7a08003..b5c70da4 100644 --- a/ndk-sys/src/ffi_aarch64.rs +++ b/ndk-sys/src/ffi_aarch64.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.66.0 */ #[repr(C)] #[derive(Default)] @@ -35,9 +35,9 @@ pub const __WORDSIZE: u32 = 64; pub const __bos_level: u32 = 0; pub const __ANDROID_NDK__: u32 = 1; pub const __NDK_MAJOR__: u32 = 25; -pub const __NDK_MINOR__: u32 = 0; +pub const __NDK_MINOR__: u32 = 1; pub const __NDK_BETA__: u32 = 0; -pub const __NDK_BUILD__: u32 = 8775105; +pub const __NDK_BUILD__: u32 = 8937393; pub const __NDK_CANARY__: u32 = 0; pub const __ANDROID_API_FUTURE__: u32 = 10000; pub const __ANDROID_API__: u32 = 10000; @@ -59,6 +59,7 @@ pub const __ANDROID_API_Q__: u32 = 29; pub const __ANDROID_API_R__: u32 = 30; pub const __ANDROID_API_S__: u32 = 31; pub const __ANDROID_API_T__: u32 = 33; +pub const __ANDROID_API_U__: u32 = 34; pub const WCHAR_MIN: u8 = 0u8; pub const INT8_MIN: i32 = -128; pub const INT8_MAX: u32 = 127; @@ -90,1069 +91,166 @@ pub const WINT_MAX: u32 = 4294967295; pub const WINT_MIN: u32 = 0; pub const __BITS_PER_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; -pub const __GNUC_VA_LIST: u32 = 1; +pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; -pub const __bool_true_false_are_defined: u32 = 1; -pub const __PRI_64_prefix: &[u8; 2usize] = b"l\0"; -pub const __PRI_PTR_prefix: &[u8; 2usize] = b"l\0"; -pub const __PRI_FAST_prefix: &[u8; 2usize] = b"l\0"; -pub const PRId8: &[u8; 2usize] = b"d\0"; -pub const PRId16: &[u8; 2usize] = b"d\0"; -pub const PRId32: &[u8; 2usize] = b"d\0"; -pub const PRId64: &[u8; 3usize] = b"ld\0"; -pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST64: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdFAST16: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST32: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST64: &[u8; 3usize] = b"ld\0"; -pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; -pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; -pub const PRIi8: &[u8; 2usize] = b"i\0"; -pub const PRIi16: &[u8; 2usize] = b"i\0"; -pub const PRIi32: &[u8; 2usize] = b"i\0"; -pub const PRIi64: &[u8; 3usize] = b"li\0"; -pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST64: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiFAST16: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST32: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST64: &[u8; 3usize] = b"li\0"; -pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; -pub const PRIiPTR: &[u8; 3usize] = b"li\0"; -pub const PRIo8: &[u8; 2usize] = b"o\0"; -pub const PRIo16: &[u8; 2usize] = b"o\0"; -pub const PRIo32: &[u8; 2usize] = b"o\0"; -pub const PRIo64: &[u8; 3usize] = b"lo\0"; -pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST64: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoFAST16: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST32: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST64: &[u8; 3usize] = b"lo\0"; -pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; -pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; -pub const PRIu8: &[u8; 2usize] = b"u\0"; -pub const PRIu16: &[u8; 2usize] = b"u\0"; -pub const PRIu32: &[u8; 2usize] = b"u\0"; -pub const PRIu64: &[u8; 3usize] = b"lu\0"; -pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST64: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuFAST16: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST32: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST64: &[u8; 3usize] = b"lu\0"; -pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; -pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; -pub const PRIx8: &[u8; 2usize] = b"x\0"; -pub const PRIx16: &[u8; 2usize] = b"x\0"; -pub const PRIx32: &[u8; 2usize] = b"x\0"; -pub const PRIx64: &[u8; 3usize] = b"lx\0"; -pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST64: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxFAST16: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST32: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST64: &[u8; 3usize] = b"lx\0"; -pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; -pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; -pub const PRIX8: &[u8; 2usize] = b"X\0"; -pub const PRIX16: &[u8; 2usize] = b"X\0"; -pub const PRIX32: &[u8; 2usize] = b"X\0"; -pub const PRIX64: &[u8; 3usize] = b"lX\0"; -pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST64: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXFAST16: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST32: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST64: &[u8; 3usize] = b"lX\0"; -pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; -pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; -pub const SCNd8: &[u8; 4usize] = b"hhd\0"; -pub const SCNd16: &[u8; 3usize] = b"hd\0"; -pub const SCNd32: &[u8; 2usize] = b"d\0"; -pub const SCNd64: &[u8; 3usize] = b"ld\0"; -pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; -pub const SCNdLEAST64: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdFAST16: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST32: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST64: &[u8; 3usize] = b"ld\0"; -pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; -pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; -pub const SCNi8: &[u8; 4usize] = b"hhi\0"; -pub const SCNi16: &[u8; 3usize] = b"hi\0"; -pub const SCNi32: &[u8; 2usize] = b"i\0"; -pub const SCNi64: &[u8; 3usize] = b"li\0"; -pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; -pub const SCNiLEAST64: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiFAST16: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST32: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST64: &[u8; 3usize] = b"li\0"; -pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; -pub const SCNiPTR: &[u8; 3usize] = b"li\0"; -pub const SCNo8: &[u8; 4usize] = b"hho\0"; -pub const SCNo16: &[u8; 3usize] = b"ho\0"; -pub const SCNo32: &[u8; 2usize] = b"o\0"; -pub const SCNo64: &[u8; 3usize] = b"lo\0"; -pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; -pub const SCNoLEAST64: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoFAST16: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST32: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST64: &[u8; 3usize] = b"lo\0"; -pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; -pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; -pub const SCNu8: &[u8; 4usize] = b"hhu\0"; -pub const SCNu16: &[u8; 3usize] = b"hu\0"; -pub const SCNu32: &[u8; 2usize] = b"u\0"; -pub const SCNu64: &[u8; 3usize] = b"lu\0"; -pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; -pub const SCNuLEAST64: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuFAST16: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST32: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST64: &[u8; 3usize] = b"lu\0"; -pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; -pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; -pub const SCNx8: &[u8; 4usize] = b"hhx\0"; -pub const SCNx16: &[u8; 3usize] = b"hx\0"; -pub const SCNx32: &[u8; 2usize] = b"x\0"; -pub const SCNx64: &[u8; 3usize] = b"lx\0"; -pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; -pub const SCNxLEAST64: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxFAST16: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST32: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST64: &[u8; 3usize] = b"lx\0"; -pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; -pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_DIRECT: u32 = 65536; -pub const O_LARGEFILE: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SOCK_IOC_TYPE: u32 = 137; -pub const SIOCGSTAMP: u32 = 35078; -pub const SIOCGSTAMPNS: u32 = 35079; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCETHTOOL: u32 = 35142; -pub const SIOCGMIIPHY: u32 = 35143; -pub const SIOCGMIIREG: u32 = 35144; -pub const SIOCSMIIREG: u32 = 35145; -pub const SIOCWANDEV: u32 = 35146; -pub const SIOCOUTQNSD: u32 = 35147; -pub const SIOCGSKNS: u32 = 35148; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCGIFVLAN: u32 = 35202; -pub const SIOCSIFVLAN: u32 = 35203; -pub const SIOCBONDENSLAVE: u32 = 35216; -pub const SIOCBONDRELEASE: u32 = 35217; -pub const SIOCBONDSETHWADDR: u32 = 35218; -pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; -pub const SIOCBONDINFOQUERY: u32 = 35220; -pub const SIOCBONDCHANGEACTIVE: u32 = 35221; -pub const SIOCBRADDBR: u32 = 35232; -pub const SIOCBRDELBR: u32 = 35233; -pub const SIOCBRADDIF: u32 = 35234; -pub const SIOCBRDELIF: u32 = 35235; -pub const SIOCSHWTSTAMP: u32 = 35248; -pub const SIOCGHWTSTAMP: u32 = 35249; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const SOCK_DCCP: u32 = 6; -pub const SOCK_PACKET: u32 = 10; -pub const SOCK_CLOEXEC: u32 = 524288; -pub const SOCK_NONBLOCK: u32 = 2048; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_LOCAL: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_MAX: u32 = 43; -pub const PF_UNSPEC: u32 = 0; -pub const PF_UNIX: u32 = 1; -pub const PF_LOCAL: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_MAX: u32 = 43; -pub const SOMAXCONN: u32 = 128; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_TRYHARD: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_DONTWAIT: u32 = 64; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_WAITFORONE: u32 = 65536; -pub const MSG_BATCH: u32 = 262144; -pub const MSG_FASTOPEN: u32 = 536870912; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const MSG_EOF: u32 = 512; -pub const MSG_CMSG_COMPAT: u32 = 0; -pub const SOL_IP: u32 = 0; -pub const SOL_TCP: u32 = 6; -pub const SOL_UDP: u32 = 17; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const SOL_SCTP: u32 = 132; -pub const SOL_RAW: u32 = 255; -pub const SOL_IPX: u32 = 256; -pub const SOL_AX25: u32 = 257; -pub const SOL_ATALK: u32 = 258; -pub const SOL_NETROM: u32 = 259; -pub const SOL_ROSE: u32 = 260; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const IPX_TYPE: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 24usize] = b"/system/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 18usize] = b"/system/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 21usize] = b"/system/etc/networks\0"; -pub const _PATH_PROTOCOLS: &[u8; 22usize] = b"/system/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 21usize] = b"/system/etc/services\0"; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NO_ADDRESS: u32 = 4; -pub const EAI_ADDRFAMILY: u32 = 1; -pub const EAI_AGAIN: u32 = 2; -pub const EAI_BADFLAGS: u32 = 3; -pub const EAI_FAIL: u32 = 4; -pub const EAI_FAMILY: u32 = 5; -pub const EAI_MEMORY: u32 = 6; -pub const EAI_NODATA: u32 = 7; -pub const EAI_NONAME: u32 = 8; -pub const EAI_SERVICE: u32 = 9; -pub const EAI_SOCKTYPE: u32 = 10; -pub const EAI_SYSTEM: u32 = 11; -pub const EAI_BADHINTS: u32 = 12; -pub const EAI_PROTOCOL: u32 = 13; -pub const EAI_OVERFLOW: u32 = 14; -pub const EAI_MAX: u32 = 15; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_NUMERICSERV: u32 = 8; -pub const AI_ALL: u32 = 256; -pub const AI_V4MAPPED_CFG: u32 = 512; -pub const AI_ADDRCONFIG: u32 = 1024; -pub const AI_V4MAPPED: u32 = 2048; -pub const AI_DEFAULT: u32 = 1536; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NOFQDN: u32 = 1; -pub const NI_NUMERICHOST: u32 = 2; -pub const NI_NAMEREQD: u32 = 4; -pub const NI_NUMERICSERV: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const SCOPE_DELIMITER: u8 = 37u8; -pub const IPPORT_RESERVED: u32 = 1024; -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 P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 1024; -pub const EOF: i32 = -1; -pub const FOPEN_MAX: u32 = 20; -pub const FILENAME_MAX: u32 = 4096; -pub const L_tmpnam: u32 = 4096; -pub const TMP_MAX: u32 = 308915776; -pub const P_tmpdir: &[u8; 6usize] = b"/tmp/\0"; -pub const L_ctermid: u32 = 1024; -pub const STRUCT_MALLINFO_DECLARED: u32 = 1; -pub const M_DECAY_TIME: i32 = -100; -pub const M_PURGE: i32 = -101; -pub const M_MEMTAG_TUNING: i32 = -102; -pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; -pub const M_MEMTAG_TUNING_UAF: u32 = 1; -pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; -pub const M_CACHE_COUNT_MAX: i32 = -200; -pub const M_CACHE_SIZE_MAX: i32 = -201; -pub const M_TSDS_COUNT_MAX: i32 = -202; -pub const M_BIONIC_ZERO_INIT: i32 = -203; -pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; -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 PASS_MAX: u32 = 128; -pub const NL_ARGMAX: u32 = 9; -pub const NL_LANGMAX: u32 = 14; -pub const NL_MSGMAX: u32 = 32767; -pub const NL_NMAX: u32 = 1; -pub const NL_SETMAX: u32 = 255; -pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; -pub const LONG_BIT: u32 = 64; -pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MIN: u32 = 0; -pub const CHAR_MAX: u32 = 255; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: i32 = -1; -pub const LONG_MAX: u64 = 9223372036854775807; -pub const LONG_MIN: i64 = -9223372036854775808; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: i32 = -1; -pub const SSIZE_MAX: u64 = 9223372036854775807; -pub const MB_LEN_MAX: u32 = 4; -pub const NZERO: u32 = 20; -pub const IOV_MAX: u32 = 1024; -pub const SEM_VALUE_MAX: u32 = 1073741823; -pub const _POSIX_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; -pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; -pub const _POSIX_CPUTIME: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: i32 = -1; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: i32 = -1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_CPUTIME: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: i32 = -1; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX2_FORT_DEV: i32 = -1; -pub const _POSIX2_FORT_RUN: i32 = -1; -pub const _POSIX2_LOCALEDEF: i32 = -1; -pub const _POSIX2_SW_DEV: i32 = -1; -pub const _POSIX2_UPE: i32 = -1; -pub const _POSIX_V7_ILP32_OFF32: i32 = -1; -pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: u32 = 1; -pub const _POSIX_V7_LPBIG_OFFBIG: u32 = 1; -pub const _XOPEN_CRYPT: i32 = -1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: i32 = -1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _XOPEN_STREAMS: i32 = -1; -pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; -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_SS_REPL_MAX: u32 = 4; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; -pub const _POSIX_TRACE_NAME_MAX: u32 = 8; -pub const _POSIX_TRACE_SYS_MAX: u32 = 8; -pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -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_CHARCLASS_NAME_MAX: u32 = 14; -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 _XOPEN_IOV_MAX: u32 = 16; -pub const _XOPEN_NAME_MAX: u32 = 255; -pub const _XOPEN_PATH_MAX: u32 = 1024; -pub const HOST_NAME_MAX: u32 = 255; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const TTY_NAME_MAX: u32 = 32; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_KEYS_MAX: u32 = 128; -pub const FP_INFINITE: u32 = 1; -pub const FP_NAN: u32 = 2; -pub const FP_NORMAL: u32 = 4; -pub const FP_SUBNORMAL: u32 = 8; -pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 2; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; -pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; -pub const ASENSOR_INVALID: i32 = -1; -pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SYNC_IOC_MAGIC: u8 = 62u8; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -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_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const FPSIMD_MAGIC: u32 = 1179680769; -pub const ESR_MAGIC: u32 = 1163088385; -pub const EXTRA_MAGIC: u32 = 1163416577; -pub const SVE_MAGIC: u32 = 1398162689; -pub const __SVE_VQ_BYTES: u32 = 16; -pub const __SVE_VQ_MIN: u32 = 1; -pub const __SVE_VQ_MAX: u32 = 512; -pub const __SVE_VL_MIN: u32 = 16; -pub const __SVE_VL_MAX: u32 = 8192; -pub const __SVE_NUM_ZREGS: u32 = 32; -pub const __SVE_NUM_PREGS: u32 = 16; -pub const __SVE_ZREGS_OFFSET: u32 = 0; -pub const SVE_VQ_BYTES: u32 = 16; -pub const SVE_VQ_MIN: u32 = 1; -pub const SVE_VQ_MAX: u32 = 512; -pub const SVE_VL_MIN: u32 = 16; -pub const SVE_VL_MAX: u32 = 8192; -pub const SVE_NUM_ZREGS: u32 = 32; -pub const SVE_NUM_PREGS: u32 = 16; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 5120; -pub const SIGSTKSZ: u32 = 16384; -pub const _KERNEL__NSIG: u32 = 64; -pub const _NSIG_BPW: u32 = 64; -pub const _NSIG_WORDS: u32 = 1; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -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_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const _NSIG: u32 = 65; -pub const NSIG: u32 = 65; -pub const PAGE_SIZE: u32 = 4096; -pub const PAGE_MASK: i32 = -4096; -pub const NGREG: u32 = 34; -pub const FD_SETSIZE: u32 = 1024; -pub const CLOCKS_PER_SEC: u32 = 1000000; -pub const TIME_UTC: u32 = 1; -pub const AAUDIO_UNSPECIFIED: u32 = 0; -pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; -pub const PROPERTY_VENDOR: &[u8; 7usize] = b"vendor\0"; -pub const PROPERTY_VERSION: &[u8; 8usize] = b"version\0"; -pub const PROPERTY_DESCRIPTION: &[u8; 12usize] = b"description\0"; -pub const PROPERTY_ALGORITHMS: &[u8; 11usize] = b"algorithms\0"; -pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15usize] = b"deviceUniqueId\0"; +pub const __PRI_64_prefix: &[u8; 2] = b"l\0"; +pub const __PRI_PTR_prefix: &[u8; 2] = b"l\0"; +pub const __PRI_FAST_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 PRIdMAX: &[u8; 3] = b"jd\0"; +pub const PRIdPTR: &[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 PRIiMAX: &[u8; 3] = b"ji\0"; +pub const PRIiPTR: &[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 PRIoMAX: &[u8; 3] = b"jo\0"; +pub const PRIoPTR: &[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 PRIuMAX: &[u8; 3] = b"ju\0"; +pub const PRIuPTR: &[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 PRIxMAX: &[u8; 3] = b"jx\0"; +pub const PRIxPTR: &[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 PRIXMAX: &[u8; 3] = b"jX\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 SCNdMAX: &[u8; 3] = b"jd\0"; +pub const SCNdPTR: &[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 SCNiMAX: &[u8; 3] = b"ji\0"; +pub const SCNiPTR: &[u8; 3] = b"li\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 SCNoMAX: &[u8; 3] = b"jo\0"; +pub const SCNoPTR: &[u8; 3] = b"lo\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 SCNuMAX: &[u8; 3] = b"ju\0"; +pub const SCNuPTR: &[u8; 3] = b"lu\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 SCNxMAX: &[u8; 3] = b"jx\0"; +pub const SCNxPTR: &[u8; 3] = b"lx\0"; extern "C" { pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; } @@ -1171,6 +269,8 @@ pub struct max_align_t { } #[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, @@ -1182,9 +282,7 @@ fn bindgen_test_layout_max_align_t() { concat!("Alignment of ", stringify!(max_align_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1194,9 +292,7 @@ fn bindgen_test_layout_max_align_t() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce2 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1249,6 +345,8 @@ pub struct __kernel_fd_set { } #[test] fn bindgen_test_layout___kernel_fd_set() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fd_set> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fd_set>(), 128usize, @@ -1260,7 +358,7 @@ fn bindgen_test_layout___kernel_fd_set() { concat!("Alignment of ", stringify!(__kernel_fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1299,6 +397,8 @@ pub struct __kernel_fsid_t { } #[test] fn bindgen_test_layout___kernel_fsid_t() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fsid_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fsid_t>(), 8usize, @@ -1310,7 +410,7 @@ fn bindgen_test_layout___kernel_fsid_t() { concat!("Alignment of ", stringify!(__kernel_fsid_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1353,6 +453,8 @@ pub struct pthread_attr_t { } #[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, @@ -1364,7 +466,7 @@ fn bindgen_test_layout_pthread_attr_t() { concat!("Alignment of ", stringify!(pthread_attr_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1374,7 +476,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_base) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1384,7 +486,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1394,7 +496,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).guard_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).guard_size) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -1404,7 +506,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_policy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_policy) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -1414,7 +516,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -1424,7 +526,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -1441,6 +543,8 @@ pub struct pthread_barrier_t { } #[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, @@ -1452,7 +556,7 @@ fn bindgen_test_layout_pthread_barrier_t() { concat!("Alignment of ", stringify!(pthread_barrier_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1470,6 +574,8 @@ pub struct pthread_cond_t { } #[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, @@ -1481,7 +587,7 @@ fn bindgen_test_layout_pthread_cond_t() { concat!("Alignment of ", stringify!(pthread_cond_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1500,6 +606,8 @@ pub struct pthread_mutex_t { } #[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, @@ -1511,7 +619,7 @@ fn bindgen_test_layout_pthread_mutex_t() { concat!("Alignment of ", stringify!(pthread_mutex_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1530,6 +638,8 @@ pub struct pthread_rwlock_t { } #[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, @@ -1541,7 +651,7 @@ fn bindgen_test_layout_pthread_rwlock_t() { concat!("Alignment of ", stringify!(pthread_rwlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1559,6 +669,8 @@ pub struct pthread_spinlock_t { } #[test] fn bindgen_test_layout_pthread_spinlock_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1570,7 +682,7 @@ fn bindgen_test_layout_pthread_spinlock_t() { concat!("Alignment of ", stringify!(pthread_spinlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1648,10 +760,10 @@ pub struct AAssetDir { pub struct AAsset { _unused: [u8; 0], } -pub const AASSET_MODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AASSET_MODE_RANDOM: ::std::os::raw::c_uint = 1; -pub const AASSET_MODE_STREAMING: ::std::os::raw::c_uint = 2; -pub const AASSET_MODE_BUFFER: ::std::os::raw::c_uint = 3; +pub const AASSET_MODE_UNKNOWN: _bindgen_ty_1 = 0; +pub const AASSET_MODE_RANDOM: _bindgen_ty_1 = 1; +pub const AASSET_MODE_STREAMING: _bindgen_ty_1 = 2; +pub const AASSET_MODE_BUFFER: _bindgen_ty_1 = 3; pub type _bindgen_ty_1 = ::std::os::raw::c_uint; extern "C" { pub fn AAssetManager_openDir( @@ -1727,8 +839,8 @@ extern "C" { extern "C" { pub fn AAsset_isAllocated(asset: *mut AAsset) -> ::std::os::raw::c_int; } -pub type va_list = [u64; 4usize]; pub type __gnuc_va_list = [u64; 4usize]; +pub type va_list = [u64; 4usize]; #[repr(C)] pub struct JavaVMAttachArgs { pub version: jint, @@ -1737,6 +849,8 @@ pub struct JavaVMAttachArgs { } #[test] fn bindgen_test_layout_JavaVMAttachArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -1748,7 +862,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { concat!("Alignment of ", stringify!(JavaVMAttachArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1758,7 +872,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1768,7 +882,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).group as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).group) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1786,6 +900,8 @@ pub struct JavaVMOption { } #[test] fn bindgen_test_layout_JavaVMOption() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -1797,7 +913,7 @@ fn bindgen_test_layout_JavaVMOption() { concat!("Alignment of ", stringify!(JavaVMOption)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).optionString as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).optionString) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1807,7 +923,7 @@ fn bindgen_test_layout_JavaVMOption() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).extraInfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extraInfo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1826,6 +942,8 @@ pub struct JavaVMInitArgs { } #[test] fn bindgen_test_layout_JavaVMInitArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -1837,7 +955,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { concat!("Alignment of ", stringify!(JavaVMInitArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1847,7 +965,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).nOptions as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nOptions) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1857,7 +975,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).options as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).options) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1867,9 +985,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ignoreUnrecognized as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ignoreUnrecognized) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1882,10 +998,10 @@ fn bindgen_test_layout_JavaVMInitArgs() { extern "C" { pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager; } -pub const ANDROID_BITMAP_RESULT_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: ::std::os::raw::c_int = -1; -pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: ::std::os::raw::c_int = -2; -pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: ::std::os::raw::c_int = -3; +pub const ANDROID_BITMAP_RESULT_SUCCESS: _bindgen_ty_2 = 0; +pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: _bindgen_ty_2 = -1; +pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: _bindgen_ty_2 = -2; +pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: _bindgen_ty_2 = -3; pub type _bindgen_ty_2 = ::std::os::raw::c_int; impl AndroidBitmapFormat { pub const ANDROID_BITMAP_FORMAT_NONE: AndroidBitmapFormat = AndroidBitmapFormat(0); @@ -1911,13 +1027,13 @@ impl AndroidBitmapFormat { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AndroidBitmapFormat(pub ::std::os::raw::c_uint); -pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: ::std::os::raw::c_uint = 0; -pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: ::std::os::raw::c_uint = 1; -pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: ::std::os::raw::c_uint = 2; -pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: ::std::os::raw::c_uint = 3; -pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: ::std::os::raw::c_uint = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: _bindgen_ty_3 = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: _bindgen_ty_3 = 1; +pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: _bindgen_ty_3 = 2; +pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: _bindgen_ty_3 = 3; +pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: _bindgen_ty_3 = 0; pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: ::std::os::raw::c_int = -2147483648; +pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: _bindgen_ty_4 = -2147483648; pub type _bindgen_ty_4 = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1930,6 +1046,8 @@ pub struct AndroidBitmapInfo { } #[test] fn bindgen_test_layout_AndroidBitmapInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -1941,7 +1059,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { concat!("Alignment of ", stringify!(AndroidBitmapInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1951,7 +1069,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1961,7 +1079,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1971,7 +1089,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1981,7 +1099,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2178,92 +1296,92 @@ extern "C" { pub struct AConfiguration { _unused: [u8; 0], } -pub const ACONFIGURATION_ORIENTATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_ORIENTATION_PORT: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_ORIENTATION_LAND: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_ORIENTATION_SQUARE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_TOUCHSCREEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_TOUCHSCREEN_FINGER: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_DENSITY_DEFAULT: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_DENSITY_LOW: ::std::os::raw::c_uint = 120; -pub const ACONFIGURATION_DENSITY_MEDIUM: ::std::os::raw::c_uint = 160; -pub const ACONFIGURATION_DENSITY_TV: ::std::os::raw::c_uint = 213; -pub const ACONFIGURATION_DENSITY_HIGH: ::std::os::raw::c_uint = 240; -pub const ACONFIGURATION_DENSITY_XHIGH: ::std::os::raw::c_uint = 320; -pub const ACONFIGURATION_DENSITY_XXHIGH: ::std::os::raw::c_uint = 480; -pub const ACONFIGURATION_DENSITY_XXXHIGH: ::std::os::raw::c_uint = 640; -pub const ACONFIGURATION_DENSITY_ANY: ::std::os::raw::c_uint = 65534; -pub const ACONFIGURATION_DENSITY_NONE: ::std::os::raw::c_uint = 65535; -pub const ACONFIGURATION_KEYBOARD_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYBOARD_NOKEYS: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYBOARD_QWERTY: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYBOARD_12KEY: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVIGATION_NONAV: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVIGATION_DPAD: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_NAVIGATION_TRACKBALL: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_WHEEL: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_KEYSHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYSHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYSHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYSHIDDEN_SOFT: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENSIZE_SMALL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENSIZE_NORMAL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_LARGE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_SCREENSIZE_XLARGE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_SCREENLONG_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENLONG_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENLONG_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENROUND_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENROUND_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENROUND_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_HDR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_HDR_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_HDR_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_TYPE_DESK: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_CAR: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: ::std::os::raw::c_uint = 5; -pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: ::std::os::raw::c_uint = 6; -pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: ::std::os::raw::c_uint = 7; -pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_NIGHT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_NIGHT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_LTR: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_LAYOUTDIR_RTL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_MCC: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_MNC: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_LOCALE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_TOUCHSCREEN: ::std::os::raw::c_uint = 8; -pub const ACONFIGURATION_KEYBOARD: ::std::os::raw::c_uint = 16; -pub const ACONFIGURATION_KEYBOARD_HIDDEN: ::std::os::raw::c_uint = 32; -pub const ACONFIGURATION_NAVIGATION: ::std::os::raw::c_uint = 64; -pub const ACONFIGURATION_ORIENTATION: ::std::os::raw::c_uint = 128; -pub const ACONFIGURATION_DENSITY: ::std::os::raw::c_uint = 256; -pub const ACONFIGURATION_SCREEN_SIZE: ::std::os::raw::c_uint = 512; -pub const ACONFIGURATION_VERSION: ::std::os::raw::c_uint = 1024; -pub const ACONFIGURATION_SCREEN_LAYOUT: ::std::os::raw::c_uint = 2048; -pub const ACONFIGURATION_UI_MODE: ::std::os::raw::c_uint = 4096; -pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: ::std::os::raw::c_uint = 8192; -pub const ACONFIGURATION_LAYOUTDIR: ::std::os::raw::c_uint = 16384; -pub const ACONFIGURATION_SCREEN_ROUND: ::std::os::raw::c_uint = 32768; -pub const ACONFIGURATION_COLOR_MODE: ::std::os::raw::c_uint = 65536; -pub const ACONFIGURATION_MNC_ZERO: ::std::os::raw::c_uint = 65535; +pub const ACONFIGURATION_ORIENTATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_ORIENTATION_PORT: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_ORIENTATION_LAND: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_ORIENTATION_SQUARE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_TOUCHSCREEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_TOUCHSCREEN_FINGER: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_DENSITY_DEFAULT: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_DENSITY_LOW: _bindgen_ty_5 = 120; +pub const ACONFIGURATION_DENSITY_MEDIUM: _bindgen_ty_5 = 160; +pub const ACONFIGURATION_DENSITY_TV: _bindgen_ty_5 = 213; +pub const ACONFIGURATION_DENSITY_HIGH: _bindgen_ty_5 = 240; +pub const ACONFIGURATION_DENSITY_XHIGH: _bindgen_ty_5 = 320; +pub const ACONFIGURATION_DENSITY_XXHIGH: _bindgen_ty_5 = 480; +pub const ACONFIGURATION_DENSITY_XXXHIGH: _bindgen_ty_5 = 640; +pub const ACONFIGURATION_DENSITY_ANY: _bindgen_ty_5 = 65534; +pub const ACONFIGURATION_DENSITY_NONE: _bindgen_ty_5 = 65535; +pub const ACONFIGURATION_KEYBOARD_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYBOARD_NOKEYS: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYBOARD_QWERTY: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYBOARD_12KEY: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVIGATION_NONAV: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVIGATION_DPAD: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_NAVIGATION_TRACKBALL: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_WHEEL: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_KEYSHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYSHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYSHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYSHIDDEN_SOFT: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENSIZE_SMALL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENSIZE_NORMAL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_LARGE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_SCREENSIZE_XLARGE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_SCREENLONG_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENLONG_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENLONG_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENROUND_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENROUND_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENROUND_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_HDR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_HDR_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_HDR_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_TYPE_DESK: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_CAR: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: _bindgen_ty_5 = 5; +pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: _bindgen_ty_5 = 6; +pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: _bindgen_ty_5 = 7; +pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_NIGHT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_NIGHT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_LTR: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_LAYOUTDIR_RTL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_MCC: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_MNC: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_LOCALE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_TOUCHSCREEN: _bindgen_ty_5 = 8; +pub const ACONFIGURATION_KEYBOARD: _bindgen_ty_5 = 16; +pub const ACONFIGURATION_KEYBOARD_HIDDEN: _bindgen_ty_5 = 32; +pub const ACONFIGURATION_NAVIGATION: _bindgen_ty_5 = 64; +pub const ACONFIGURATION_ORIENTATION: _bindgen_ty_5 = 128; +pub const ACONFIGURATION_DENSITY: _bindgen_ty_5 = 256; +pub const ACONFIGURATION_SCREEN_SIZE: _bindgen_ty_5 = 512; +pub const ACONFIGURATION_VERSION: _bindgen_ty_5 = 1024; +pub const ACONFIGURATION_SCREEN_LAYOUT: _bindgen_ty_5 = 2048; +pub const ACONFIGURATION_UI_MODE: _bindgen_ty_5 = 4096; +pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: _bindgen_ty_5 = 8192; +pub const ACONFIGURATION_LAYOUTDIR: _bindgen_ty_5 = 16384; +pub const ACONFIGURATION_SCREEN_ROUND: _bindgen_ty_5 = 32768; +pub const ACONFIGURATION_COLOR_MODE: _bindgen_ty_5 = 65536; +pub const ACONFIGURATION_MNC_ZERO: _bindgen_ty_5 = 65535; pub type _bindgen_ty_5 = ::std::os::raw::c_uint; extern "C" { pub fn AConfiguration_new() -> *mut AConfiguration; @@ -2436,6 +1554,8 @@ pub struct imaxdiv_t { } #[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, @@ -2447,7 +1567,7 @@ fn bindgen_test_layout_imaxdiv_t() { concat!("Alignment of ", stringify!(imaxdiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2457,7 +1577,7 @@ fn bindgen_test_layout_imaxdiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2645,16 +1765,16 @@ impl ADataSpace { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ADataSpace(pub ::std::os::raw::c_uint); -pub const ANDROID_DLEXT_RESERVED_ADDRESS: ::std::os::raw::c_uint = 1; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: ::std::os::raw::c_uint = 2; -pub const ANDROID_DLEXT_WRITE_RELRO: ::std::os::raw::c_uint = 4; -pub const ANDROID_DLEXT_USE_RELRO: ::std::os::raw::c_uint = 8; -pub const ANDROID_DLEXT_USE_LIBRARY_FD: ::std::os::raw::c_uint = 16; -pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: ::std::os::raw::c_uint = 32; -pub const ANDROID_DLEXT_FORCE_LOAD: ::std::os::raw::c_uint = 64; -pub const ANDROID_DLEXT_USE_NAMESPACE: ::std::os::raw::c_uint = 512; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: ::std::os::raw::c_uint = 1024; -pub const ANDROID_DLEXT_VALID_FLAG_BITS: ::std::os::raw::c_uint = 1663; +pub const ANDROID_DLEXT_RESERVED_ADDRESS: _bindgen_ty_6 = 1; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: _bindgen_ty_6 = 2; +pub const ANDROID_DLEXT_WRITE_RELRO: _bindgen_ty_6 = 4; +pub const ANDROID_DLEXT_USE_RELRO: _bindgen_ty_6 = 8; +pub const ANDROID_DLEXT_USE_LIBRARY_FD: _bindgen_ty_6 = 16; +pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: _bindgen_ty_6 = 32; +pub const ANDROID_DLEXT_FORCE_LOAD: _bindgen_ty_6 = 64; +pub const ANDROID_DLEXT_USE_NAMESPACE: _bindgen_ty_6 = 512; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: _bindgen_ty_6 = 1024; +pub const ANDROID_DLEXT_VALID_FLAG_BITS: _bindgen_ty_6 = 1663; pub type _bindgen_ty_6 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2674,6 +1794,8 @@ pub struct android_dlextinfo { } #[test] fn bindgen_test_layout_android_dlextinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -2685,7 +1807,7 @@ fn bindgen_test_layout_android_dlextinfo() { concat!("Alignment of ", stringify!(android_dlextinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2695,7 +1817,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_addr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2705,7 +1827,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2715,7 +1837,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).relro_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).relro_fd) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2725,7 +1847,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).library_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -2735,9 +1857,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_fd_offset as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd_offset) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2747,9 +1867,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_namespace as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_namespace) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -2868,33 +1986,818 @@ impl android_fdsan_error_level { #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; + pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level( + new_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level_from_property( + default_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; +} +extern "C" { + pub fn AFileDescriptor_getFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AFileDescriptor_setFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + fd: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFont { + _unused: [u8; 0], +} +pub const AFONT_WEIGHT_MIN: _bindgen_ty_7 = 0; +pub const AFONT_WEIGHT_THIN: _bindgen_ty_7 = 100; +pub const AFONT_WEIGHT_EXTRA_LIGHT: _bindgen_ty_7 = 200; +pub const AFONT_WEIGHT_LIGHT: _bindgen_ty_7 = 300; +pub const AFONT_WEIGHT_NORMAL: _bindgen_ty_7 = 400; +pub const AFONT_WEIGHT_MEDIUM: _bindgen_ty_7 = 500; +pub const AFONT_WEIGHT_SEMI_BOLD: _bindgen_ty_7 = 600; +pub const AFONT_WEIGHT_BOLD: _bindgen_ty_7 = 700; +pub const AFONT_WEIGHT_EXTRA_BOLD: _bindgen_ty_7 = 800; +pub const AFONT_WEIGHT_BLACK: _bindgen_ty_7 = 900; +pub const AFONT_WEIGHT_MAX: _bindgen_ty_7 = 1000; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFont_close(font: *mut AFont); +} +extern "C" { + pub fn AFont_getFontFilePath(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getWeight(font: *const AFont) -> u16; +} +extern "C" { + pub fn AFont_isItalic(font: *const AFont) -> bool; +} +extern "C" { + pub fn AFont_getLocale(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getCollectionIndex(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisCount(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisTag(font: *const AFont, axisIndex: u32) -> u32; +} +extern "C" { + pub fn AFont_getAxisValue(font: *const AFont, axisIndex: u32) -> f32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFontMatcher { + _unused: [u8; 0], +} +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; +pub const O_DIRECTORY: u32 = 16384; +pub const O_NOFOLLOW: u32 = 32768; +pub const O_DIRECT: u32 = 65536; +pub const O_LARGEFILE: u32 = 131072; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4210688; +pub const O_TMPFILE_MASK: u32 = 4210752; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SOCK_IOC_TYPE: u32 = 137; +pub const SIOCGSTAMP: u32 = 35078; +pub const SIOCGSTAMPNS: u32 = 35079; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCETHTOOL: u32 = 35142; +pub const SIOCGMIIPHY: u32 = 35143; +pub const SIOCGMIIREG: u32 = 35144; +pub const SIOCSMIIREG: u32 = 35145; +pub const SIOCWANDEV: u32 = 35146; +pub const SIOCOUTQNSD: u32 = 35147; +pub const SIOCGSKNS: u32 = 35148; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCGIFVLAN: u32 = 35202; +pub const SIOCSIFVLAN: u32 = 35203; +pub const SIOCBONDENSLAVE: u32 = 35216; +pub const SIOCBONDRELEASE: u32 = 35217; +pub const SIOCBONDSETHWADDR: u32 = 35218; +pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; +pub const SIOCBONDINFOQUERY: u32 = 35220; +pub const SIOCBONDCHANGEACTIVE: u32 = 35221; +pub const SIOCBRADDBR: u32 = 35232; +pub const SIOCBRDELBR: u32 = 35233; +pub const SIOCBRADDIF: u32 = 35234; +pub const SIOCBRDELIF: u32 = 35235; +pub const SIOCSHWTSTAMP: u32 = 35248; +pub const SIOCGHWTSTAMP: u32 = 35249; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const SOCK_DCCP: u32 = 6; +pub const SOCK_PACKET: u32 = 10; +pub const SOCK_CLOEXEC: u32 = 524288; +pub const SOCK_NONBLOCK: u32 = 2048; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_LOCAL: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_ROUTE: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_MAX: u32 = 43; +pub const PF_UNSPEC: u32 = 0; +pub const PF_UNIX: u32 = 1; +pub const PF_LOCAL: u32 = 1; +pub const PF_INET: u32 = 2; +pub const PF_AX25: u32 = 3; +pub const PF_IPX: u32 = 4; +pub const PF_APPLETALK: u32 = 5; +pub const PF_NETROM: u32 = 6; +pub const PF_BRIDGE: u32 = 7; +pub const PF_ATMPVC: u32 = 8; +pub const PF_X25: u32 = 9; +pub const PF_INET6: u32 = 10; +pub const PF_ROSE: u32 = 11; +pub const PF_DECnet: u32 = 12; +pub const PF_NETBEUI: u32 = 13; +pub const PF_SECURITY: u32 = 14; +pub const PF_KEY: u32 = 15; +pub const PF_NETLINK: u32 = 16; +pub const PF_ROUTE: u32 = 16; +pub const PF_PACKET: u32 = 17; +pub const PF_ASH: u32 = 18; +pub const PF_ECONET: u32 = 19; +pub const PF_ATMSVC: u32 = 20; +pub const PF_RDS: u32 = 21; +pub const PF_SNA: u32 = 22; +pub const PF_IRDA: u32 = 23; +pub const PF_PPPOX: u32 = 24; +pub const PF_WANPIPE: u32 = 25; +pub const PF_LLC: u32 = 26; +pub const PF_CAN: u32 = 29; +pub const PF_TIPC: u32 = 30; +pub const PF_BLUETOOTH: u32 = 31; +pub const PF_IUCV: u32 = 32; +pub const PF_RXRPC: u32 = 33; +pub const PF_ISDN: u32 = 34; +pub const PF_PHONET: u32 = 35; +pub const PF_IEEE802154: u32 = 36; +pub const PF_CAIF: u32 = 37; +pub const PF_ALG: u32 = 38; +pub const PF_NFC: u32 = 39; +pub const PF_VSOCK: u32 = 40; +pub const PF_KCM: u32 = 41; +pub const PF_QIPCRTR: u32 = 42; +pub const PF_MAX: u32 = 43; +pub const SOMAXCONN: u32 = 128; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_TRYHARD: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_DONTWAIT: u32 = 64; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_WAITFORONE: u32 = 65536; +pub const MSG_BATCH: u32 = 262144; +pub const MSG_FASTOPEN: u32 = 536870912; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const MSG_EOF: u32 = 512; +pub const MSG_CMSG_COMPAT: u32 = 0; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const IPX_TYPE: u32 = 1; +pub const _PATH_HEQUIV: &[u8; 24] = b"/system/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 18] = b"/system/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 21] = b"/system/etc/networks\0"; +pub const _PATH_PROTOCOLS: &[u8; 22] = b"/system/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 21] = b"/system/etc/services\0"; +pub const NETDB_INTERNAL: i32 = -1; +pub const NETDB_SUCCESS: u32 = 0; +pub const HOST_NOT_FOUND: u32 = 1; +pub const TRY_AGAIN: u32 = 2; +pub const NO_RECOVERY: u32 = 3; +pub const NO_DATA: u32 = 4; +pub const NO_ADDRESS: u32 = 4; +pub const EAI_ADDRFAMILY: u32 = 1; +pub const EAI_AGAIN: u32 = 2; +pub const EAI_BADFLAGS: u32 = 3; +pub const EAI_FAIL: u32 = 4; +pub const EAI_FAMILY: u32 = 5; +pub const EAI_MEMORY: u32 = 6; +pub const EAI_NODATA: u32 = 7; +pub const EAI_NONAME: u32 = 8; +pub const EAI_SERVICE: u32 = 9; +pub const EAI_SOCKTYPE: u32 = 10; +pub const EAI_SYSTEM: u32 = 11; +pub const EAI_BADHINTS: u32 = 12; +pub const EAI_PROTOCOL: u32 = 13; +pub const EAI_OVERFLOW: u32 = 14; +pub const EAI_MAX: u32 = 15; +pub const AI_PASSIVE: u32 = 1; +pub const AI_CANONNAME: u32 = 2; +pub const AI_NUMERICHOST: u32 = 4; +pub const AI_NUMERICSERV: u32 = 8; +pub const AI_ALL: u32 = 256; +pub const AI_V4MAPPED_CFG: u32 = 512; +pub const AI_ADDRCONFIG: u32 = 1024; +pub const AI_V4MAPPED: u32 = 2048; +pub const AI_DEFAULT: u32 = 1536; +pub const NI_MAXHOST: u32 = 1025; +pub const NI_MAXSERV: u32 = 32; +pub const NI_NOFQDN: u32 = 1; +pub const NI_NUMERICHOST: u32 = 2; +pub const NI_NAMEREQD: u32 = 4; +pub const NI_NUMERICSERV: u32 = 8; +pub const NI_DGRAM: u32 = 16; +pub const SCOPE_DELIMITER: u8 = 37u8; +pub const IPPORT_RESERVED: u32 = 1024; +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 P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 1024; +pub const EOF: i32 = -1; +pub const FOPEN_MAX: u32 = 20; +pub const FILENAME_MAX: u32 = 4096; +pub const L_tmpnam: u32 = 4096; +pub const TMP_MAX: u32 = 308915776; +pub const P_tmpdir: &[u8; 6] = b"/tmp/\0"; +pub const L_ctermid: u32 = 1024; +pub const STRUCT_MALLINFO_DECLARED: u32 = 1; +pub const M_DECAY_TIME: i32 = -100; +pub const M_PURGE: i32 = -101; +pub const M_MEMTAG_TUNING: i32 = -102; +pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; +pub const M_MEMTAG_TUNING_UAF: u32 = 1; +pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; +pub const M_CACHE_COUNT_MAX: i32 = -200; +pub const M_CACHE_SIZE_MAX: i32 = -201; +pub const M_TSDS_COUNT_MAX: i32 = -202; +pub const M_BIONIC_ZERO_INIT: i32 = -203; +pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; +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 PASS_MAX: u32 = 128; +pub const NL_ARGMAX: u32 = 9; +pub const NL_LANGMAX: u32 = 14; +pub const NL_MSGMAX: u32 = 32767; +pub const NL_NMAX: u32 = 1; +pub const NL_SETMAX: u32 = 255; +pub const NL_TEXTMAX: u32 = 255; +pub const CHAR_BIT: u32 = 8; +pub const LONG_BIT: u32 = 64; +pub const WORD_BIT: u32 = 32; +pub const SCHAR_MAX: u32 = 127; +pub const SCHAR_MIN: i32 = -128; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MIN: u32 = 0; +pub const CHAR_MAX: u32 = 255; +pub const USHRT_MAX: u32 = 65535; +pub const SHRT_MAX: u32 = 32767; +pub const SHRT_MIN: i32 = -32768; +pub const UINT_MAX: u32 = 4294967295; +pub const INT_MAX: u32 = 2147483647; +pub const INT_MIN: i32 = -2147483648; +pub const ULONG_MAX: i32 = -1; +pub const LONG_MAX: u64 = 9223372036854775807; +pub const LONG_MIN: i64 = -9223372036854775808; +pub const ULLONG_MAX: i32 = -1; +pub const LLONG_MAX: u64 = 9223372036854775807; +pub const LLONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MAX: u64 = 9223372036854775807; +pub const ULONG_LONG_MAX: i32 = -1; +pub const UID_MAX: u32 = 4294967295; +pub const GID_MAX: u32 = 4294967295; +pub const SIZE_T_MAX: i32 = -1; +pub const SSIZE_MAX: u64 = 9223372036854775807; +pub const MB_LEN_MAX: u32 = 4; +pub const NZERO: u32 = 20; +pub const IOV_MAX: u32 = 1024; +pub const SEM_VALUE_MAX: u32 = 1073741823; +pub const _POSIX_VERSION: u32 = 200809; +pub const _POSIX2_VERSION: u32 = 200809; +pub const _XOPEN_VERSION: u32 = 700; +pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; +pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; +pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; +pub const _POSIX_CPUTIME: u32 = 200809; +pub const _POSIX_FSYNC: u32 = 200809; +pub const _POSIX_IPV6: u32 = 200809; +pub const _POSIX_MAPPED_FILES: u32 = 200809; +pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; +pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; +pub const _POSIX_MESSAGE_PASSING: i32 = -1; +pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; +pub const _POSIX_NO_TRUNC: u32 = 1; +pub const _POSIX_PRIORITIZED_IO: i32 = -1; +pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_RAW_SOCKETS: u32 = 200809; +pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; +pub const _POSIX_REGEXP: u32 = 1; +pub const _POSIX_SAVED_IDS: u32 = 1; +pub const _POSIX_SEMAPHORES: u32 = 200809; +pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_SHELL: u32 = 1; +pub const _POSIX_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; +pub const _POSIX_THREAD_CPUTIME: u32 = 200809; +pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; +pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; +pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_THREADS: u32 = 200809; +pub const _POSIX_TIMERS: u32 = 200809; +pub const _POSIX_TRACE: i32 = -1; +pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; +pub const _POSIX_TRACE_INHERIT: i32 = -1; +pub const _POSIX_TRACE_LOG: i32 = -1; +pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_VDISABLE: u8 = 0u8; +pub const _POSIX2_C_BIND: u32 = 200809; +pub const _POSIX2_C_DEV: i32 = -1; +pub const _POSIX2_CHAR_TERM: u32 = 200809; +pub const _POSIX2_FORT_DEV: i32 = -1; +pub const _POSIX2_FORT_RUN: i32 = -1; +pub const _POSIX2_LOCALEDEF: i32 = -1; +pub const _POSIX2_SW_DEV: i32 = -1; +pub const _POSIX2_UPE: i32 = -1; +pub const _POSIX_V7_ILP32_OFF32: i32 = -1; +pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; +pub const _POSIX_V7_LP64_OFF64: u32 = 1; +pub const _POSIX_V7_LPBIG_OFFBIG: u32 = 1; +pub const _XOPEN_CRYPT: i32 = -1; +pub const _XOPEN_ENH_I18N: u32 = 1; +pub const _XOPEN_LEGACY: i32 = -1; +pub const _XOPEN_REALTIME: u32 = 1; +pub const _XOPEN_REALTIME_THREADS: u32 = 1; +pub const _XOPEN_SHM: u32 = 1; +pub const _XOPEN_STREAMS: i32 = -1; +pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; +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_SS_REPL_MAX: u32 = 4; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; +pub const _POSIX_TRACE_NAME_MAX: u32 = 8; +pub const _POSIX_TRACE_SYS_MAX: u32 = 8; +pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +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_CHARCLASS_NAME_MAX: u32 = 14; +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 _XOPEN_IOV_MAX: u32 = 16; +pub const _XOPEN_NAME_MAX: u32 = 255; +pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const HOST_NAME_MAX: u32 = 255; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const TTY_NAME_MAX: u32 = 32; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const FP_INFINITE: u32 = 1; +pub const FP_NAN: u32 = 2; +pub const FP_NORMAL: u32 = 4; +pub const FP_SUBNORMAL: u32 = 8; +pub const FP_ZERO: u32 = 16; +pub const FP_FAST_FMA: u32 = 1; +pub const FP_FAST_FMAF: u32 = 1; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; +pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; +pub const ASENSOR_INVALID: i32 = -1; +pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const AFAMILY_VARIANT_DEFAULT: _bindgen_ty_8 = 0; +pub const AFAMILY_VARIANT_COMPACT: _bindgen_ty_8 = 1; +pub const AFAMILY_VARIANT_ELEGANT: _bindgen_ty_8 = 2; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFontMatcher_create() -> *mut AFontMatcher; } extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_destroy(matcher: *mut AFontMatcher); } extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_setStyle(matcher: *mut AFontMatcher, weight: u16, italic: bool); } extern "C" { - pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; + pub fn AFontMatcher_setLocales( + matcher: *mut AFontMatcher, + languageTags: *const ::std::os::raw::c_char, + ); } extern "C" { - pub fn AFileDescriptor_getFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - ) -> ::std::os::raw::c_int; + pub fn AFontMatcher_setFamilyVariant(matcher: *mut AFontMatcher, familyVariant: u32); } extern "C" { - pub fn AFileDescriptor_setFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - fd: ::std::os::raw::c_int, - ); + pub fn AFontMatcher_match( + matcher: *const AFontMatcher, + familyName: *const ::std::os::raw::c_char, + text: *const u16, + textLength: u32, + runLengthOut: *mut u32, + ) -> *mut AFont; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2906,6 +2809,8 @@ pub struct ARect { } #[test] fn bindgen_test_layout_ARect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -2917,7 +2822,7 @@ fn bindgen_test_layout_ARect() { concat!("Alignment of ", stringify!(ARect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2927,7 +2832,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2937,7 +2842,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2947,7 +2852,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3187,6 +3092,8 @@ pub struct AHardwareBuffer_Desc { } #[test] fn bindgen_test_layout_AHardwareBuffer_Desc() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3198,7 +3105,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { concat!("Alignment of ", stringify!(AHardwareBuffer_Desc)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3208,7 +3115,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3218,7 +3125,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).layers as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3228,7 +3135,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3238,7 +3145,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usage as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usage) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3248,7 +3155,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3258,7 +3165,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu0) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -3268,7 +3175,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu1) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3287,6 +3194,9 @@ pub struct AHardwareBuffer_Plane { } #[test] fn bindgen_test_layout_AHardwareBuffer_Plane() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -3298,7 +3208,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { concat!("Alignment of ", stringify!(AHardwareBuffer_Plane)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3308,9 +3218,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pixelStride as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pixelStride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3320,7 +3228,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rowStride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rowStride) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3338,6 +3246,9 @@ pub struct AHardwareBuffer_Planes { } #[test] fn bindgen_test_layout_AHardwareBuffer_Planes() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 72usize, @@ -3349,9 +3260,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { concat!("Alignment of ", stringify!(AHardwareBuffer_Planes)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).planeCount as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).planeCount) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3361,7 +3270,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).planes as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).planes) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3477,6 +3386,8 @@ pub struct AColor_xy { } #[test] fn bindgen_test_layout_AColor_xy() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3488,7 +3399,7 @@ fn bindgen_test_layout_AColor_xy() { concat!("Alignment of ", stringify!(AColor_xy)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3498,7 +3409,7 @@ fn bindgen_test_layout_AColor_xy() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3520,6 +3431,9 @@ pub struct AHdrMetadata_smpte2086 { } #[test] fn bindgen_test_layout_AHdrMetadata_smpte2086() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3531,10 +3445,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { concat!("Alignment of ", stringify!(AHdrMetadata_smpte2086)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryRed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryRed) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3544,10 +3455,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryGreen as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryGreen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3557,10 +3465,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryBlue as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryBlue) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3570,9 +3475,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).whitePoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).whitePoint) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3582,9 +3485,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxLuminance) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3594,9 +3495,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).minLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).minLuminance) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -3614,6 +3513,9 @@ pub struct AHdrMetadata_cta861_3 { } #[test] fn bindgen_test_layout_AHdrMetadata_cta861_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3625,10 +3527,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { concat!("Alignment of ", stringify!(AHdrMetadata_cta861_3)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxContentLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxContentLightLevel) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3638,10 +3537,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxFrameAverageLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxFrameAverageLightLevel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3651,19 +3547,19 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); } -pub const ANDROID_IMAGE_DECODER_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_IMAGE_DECODER_INCOMPLETE: ::std::os::raw::c_int = -1; -pub const ANDROID_IMAGE_DECODER_ERROR: ::std::os::raw::c_int = -2; -pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: ::std::os::raw::c_int = -3; -pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: ::std::os::raw::c_int = -4; -pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: ::std::os::raw::c_int = -5; -pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: ::std::os::raw::c_int = -6; -pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: ::std::os::raw::c_int = -7; -pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: ::std::os::raw::c_int = -8; -pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: ::std::os::raw::c_int = -9; -pub const ANDROID_IMAGE_DECODER_FINISHED: ::std::os::raw::c_int = -10; -pub const ANDROID_IMAGE_DECODER_INVALID_STATE: ::std::os::raw::c_int = -11; -pub type _bindgen_ty_7 = ::std::os::raw::c_int; +pub const ANDROID_IMAGE_DECODER_SUCCESS: _bindgen_ty_9 = 0; +pub const ANDROID_IMAGE_DECODER_INCOMPLETE: _bindgen_ty_9 = -1; +pub const ANDROID_IMAGE_DECODER_ERROR: _bindgen_ty_9 = -2; +pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: _bindgen_ty_9 = -3; +pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: _bindgen_ty_9 = -4; +pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: _bindgen_ty_9 = -5; +pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: _bindgen_ty_9 = -6; +pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: _bindgen_ty_9 = -7; +pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: _bindgen_ty_9 = -8; +pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: _bindgen_ty_9 = -9; +pub const ANDROID_IMAGE_DECODER_FINISHED: _bindgen_ty_9 = -10; +pub const ANDROID_IMAGE_DECODER_INVALID_STATE: _bindgen_ty_9 = -11; +pub type _bindgen_ty_9 = ::std::os::raw::c_int; extern "C" { pub fn AImageDecoder_resultToString( arg1: ::std::os::raw::c_int, @@ -3781,8 +3677,8 @@ extern "C" { extern "C" { pub fn AImageDecoder_isAnimated(decoder: *mut AImageDecoder) -> bool; } -pub const ANDROID_IMAGE_DECODER_INFINITE: ::std::os::raw::c_uint = 2147483647; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_INFINITE: _bindgen_ty_10 = 2147483647; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoder_getRepeatCount(decoder: *mut AImageDecoder) -> i32; } @@ -3819,16 +3715,16 @@ extern "C" { pub fn AImageDecoderFrameInfo_hasAlphaWithinBounds(info: *const AImageDecoderFrameInfo) -> bool; } -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: ::std::os::raw::c_uint = 2; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: _bindgen_ty_11 = 1; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: _bindgen_ty_11 = 2; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: _bindgen_ty_11 = 3; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getDisposeOp(info: *const AImageDecoderFrameInfo) -> i32; } -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: _bindgen_ty_12 = 1; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: _bindgen_ty_12 = 2; +pub type _bindgen_ty_12 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getBlendOp(info: *const AImageDecoderFrameInfo) -> i32; } @@ -3838,296 +3734,296 @@ extern "C" { handleInternally: bool, ); } -pub const AKEYCODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AKEYCODE_SOFT_LEFT: ::std::os::raw::c_uint = 1; -pub const AKEYCODE_SOFT_RIGHT: ::std::os::raw::c_uint = 2; -pub const AKEYCODE_HOME: ::std::os::raw::c_uint = 3; -pub const AKEYCODE_BACK: ::std::os::raw::c_uint = 4; -pub const AKEYCODE_CALL: ::std::os::raw::c_uint = 5; -pub const AKEYCODE_ENDCALL: ::std::os::raw::c_uint = 6; -pub const AKEYCODE_0: ::std::os::raw::c_uint = 7; -pub const AKEYCODE_1: ::std::os::raw::c_uint = 8; -pub const AKEYCODE_2: ::std::os::raw::c_uint = 9; -pub const AKEYCODE_3: ::std::os::raw::c_uint = 10; -pub const AKEYCODE_4: ::std::os::raw::c_uint = 11; -pub const AKEYCODE_5: ::std::os::raw::c_uint = 12; -pub const AKEYCODE_6: ::std::os::raw::c_uint = 13; -pub const AKEYCODE_7: ::std::os::raw::c_uint = 14; -pub const AKEYCODE_8: ::std::os::raw::c_uint = 15; -pub const AKEYCODE_9: ::std::os::raw::c_uint = 16; -pub const AKEYCODE_STAR: ::std::os::raw::c_uint = 17; -pub const AKEYCODE_POUND: ::std::os::raw::c_uint = 18; -pub const AKEYCODE_DPAD_UP: ::std::os::raw::c_uint = 19; -pub const AKEYCODE_DPAD_DOWN: ::std::os::raw::c_uint = 20; -pub const AKEYCODE_DPAD_LEFT: ::std::os::raw::c_uint = 21; -pub const AKEYCODE_DPAD_RIGHT: ::std::os::raw::c_uint = 22; -pub const AKEYCODE_DPAD_CENTER: ::std::os::raw::c_uint = 23; -pub const AKEYCODE_VOLUME_UP: ::std::os::raw::c_uint = 24; -pub const AKEYCODE_VOLUME_DOWN: ::std::os::raw::c_uint = 25; -pub const AKEYCODE_POWER: ::std::os::raw::c_uint = 26; -pub const AKEYCODE_CAMERA: ::std::os::raw::c_uint = 27; -pub const AKEYCODE_CLEAR: ::std::os::raw::c_uint = 28; -pub const AKEYCODE_A: ::std::os::raw::c_uint = 29; -pub const AKEYCODE_B: ::std::os::raw::c_uint = 30; -pub const AKEYCODE_C: ::std::os::raw::c_uint = 31; -pub const AKEYCODE_D: ::std::os::raw::c_uint = 32; -pub const AKEYCODE_E: ::std::os::raw::c_uint = 33; -pub const AKEYCODE_F: ::std::os::raw::c_uint = 34; -pub const AKEYCODE_G: ::std::os::raw::c_uint = 35; -pub const AKEYCODE_H: ::std::os::raw::c_uint = 36; -pub const AKEYCODE_I: ::std::os::raw::c_uint = 37; -pub const AKEYCODE_J: ::std::os::raw::c_uint = 38; -pub const AKEYCODE_K: ::std::os::raw::c_uint = 39; -pub const AKEYCODE_L: ::std::os::raw::c_uint = 40; -pub const AKEYCODE_M: ::std::os::raw::c_uint = 41; -pub const AKEYCODE_N: ::std::os::raw::c_uint = 42; -pub const AKEYCODE_O: ::std::os::raw::c_uint = 43; -pub const AKEYCODE_P: ::std::os::raw::c_uint = 44; -pub const AKEYCODE_Q: ::std::os::raw::c_uint = 45; -pub const AKEYCODE_R: ::std::os::raw::c_uint = 46; -pub const AKEYCODE_S: ::std::os::raw::c_uint = 47; -pub const AKEYCODE_T: ::std::os::raw::c_uint = 48; -pub const AKEYCODE_U: ::std::os::raw::c_uint = 49; -pub const AKEYCODE_V: ::std::os::raw::c_uint = 50; -pub const AKEYCODE_W: ::std::os::raw::c_uint = 51; -pub const AKEYCODE_X: ::std::os::raw::c_uint = 52; -pub const AKEYCODE_Y: ::std::os::raw::c_uint = 53; -pub const AKEYCODE_Z: ::std::os::raw::c_uint = 54; -pub const AKEYCODE_COMMA: ::std::os::raw::c_uint = 55; -pub const AKEYCODE_PERIOD: ::std::os::raw::c_uint = 56; -pub const AKEYCODE_ALT_LEFT: ::std::os::raw::c_uint = 57; -pub const AKEYCODE_ALT_RIGHT: ::std::os::raw::c_uint = 58; -pub const AKEYCODE_SHIFT_LEFT: ::std::os::raw::c_uint = 59; -pub const AKEYCODE_SHIFT_RIGHT: ::std::os::raw::c_uint = 60; -pub const AKEYCODE_TAB: ::std::os::raw::c_uint = 61; -pub const AKEYCODE_SPACE: ::std::os::raw::c_uint = 62; -pub const AKEYCODE_SYM: ::std::os::raw::c_uint = 63; -pub const AKEYCODE_EXPLORER: ::std::os::raw::c_uint = 64; -pub const AKEYCODE_ENVELOPE: ::std::os::raw::c_uint = 65; -pub const AKEYCODE_ENTER: ::std::os::raw::c_uint = 66; -pub const AKEYCODE_DEL: ::std::os::raw::c_uint = 67; -pub const AKEYCODE_GRAVE: ::std::os::raw::c_uint = 68; -pub const AKEYCODE_MINUS: ::std::os::raw::c_uint = 69; -pub const AKEYCODE_EQUALS: ::std::os::raw::c_uint = 70; -pub const AKEYCODE_LEFT_BRACKET: ::std::os::raw::c_uint = 71; -pub const AKEYCODE_RIGHT_BRACKET: ::std::os::raw::c_uint = 72; -pub const AKEYCODE_BACKSLASH: ::std::os::raw::c_uint = 73; -pub const AKEYCODE_SEMICOLON: ::std::os::raw::c_uint = 74; -pub const AKEYCODE_APOSTROPHE: ::std::os::raw::c_uint = 75; -pub const AKEYCODE_SLASH: ::std::os::raw::c_uint = 76; -pub const AKEYCODE_AT: ::std::os::raw::c_uint = 77; -pub const AKEYCODE_NUM: ::std::os::raw::c_uint = 78; -pub const AKEYCODE_HEADSETHOOK: ::std::os::raw::c_uint = 79; -pub const AKEYCODE_FOCUS: ::std::os::raw::c_uint = 80; -pub const AKEYCODE_PLUS: ::std::os::raw::c_uint = 81; -pub const AKEYCODE_MENU: ::std::os::raw::c_uint = 82; -pub const AKEYCODE_NOTIFICATION: ::std::os::raw::c_uint = 83; -pub const AKEYCODE_SEARCH: ::std::os::raw::c_uint = 84; -pub const AKEYCODE_MEDIA_PLAY_PAUSE: ::std::os::raw::c_uint = 85; -pub const AKEYCODE_MEDIA_STOP: ::std::os::raw::c_uint = 86; -pub const AKEYCODE_MEDIA_NEXT: ::std::os::raw::c_uint = 87; -pub const AKEYCODE_MEDIA_PREVIOUS: ::std::os::raw::c_uint = 88; -pub const AKEYCODE_MEDIA_REWIND: ::std::os::raw::c_uint = 89; -pub const AKEYCODE_MEDIA_FAST_FORWARD: ::std::os::raw::c_uint = 90; -pub const AKEYCODE_MUTE: ::std::os::raw::c_uint = 91; -pub const AKEYCODE_PAGE_UP: ::std::os::raw::c_uint = 92; -pub const AKEYCODE_PAGE_DOWN: ::std::os::raw::c_uint = 93; -pub const AKEYCODE_PICTSYMBOLS: ::std::os::raw::c_uint = 94; -pub const AKEYCODE_SWITCH_CHARSET: ::std::os::raw::c_uint = 95; -pub const AKEYCODE_BUTTON_A: ::std::os::raw::c_uint = 96; -pub const AKEYCODE_BUTTON_B: ::std::os::raw::c_uint = 97; -pub const AKEYCODE_BUTTON_C: ::std::os::raw::c_uint = 98; -pub const AKEYCODE_BUTTON_X: ::std::os::raw::c_uint = 99; -pub const AKEYCODE_BUTTON_Y: ::std::os::raw::c_uint = 100; -pub const AKEYCODE_BUTTON_Z: ::std::os::raw::c_uint = 101; -pub const AKEYCODE_BUTTON_L1: ::std::os::raw::c_uint = 102; -pub const AKEYCODE_BUTTON_R1: ::std::os::raw::c_uint = 103; -pub const AKEYCODE_BUTTON_L2: ::std::os::raw::c_uint = 104; -pub const AKEYCODE_BUTTON_R2: ::std::os::raw::c_uint = 105; -pub const AKEYCODE_BUTTON_THUMBL: ::std::os::raw::c_uint = 106; -pub const AKEYCODE_BUTTON_THUMBR: ::std::os::raw::c_uint = 107; -pub const AKEYCODE_BUTTON_START: ::std::os::raw::c_uint = 108; -pub const AKEYCODE_BUTTON_SELECT: ::std::os::raw::c_uint = 109; -pub const AKEYCODE_BUTTON_MODE: ::std::os::raw::c_uint = 110; -pub const AKEYCODE_ESCAPE: ::std::os::raw::c_uint = 111; -pub const AKEYCODE_FORWARD_DEL: ::std::os::raw::c_uint = 112; -pub const AKEYCODE_CTRL_LEFT: ::std::os::raw::c_uint = 113; -pub const AKEYCODE_CTRL_RIGHT: ::std::os::raw::c_uint = 114; -pub const AKEYCODE_CAPS_LOCK: ::std::os::raw::c_uint = 115; -pub const AKEYCODE_SCROLL_LOCK: ::std::os::raw::c_uint = 116; -pub const AKEYCODE_META_LEFT: ::std::os::raw::c_uint = 117; -pub const AKEYCODE_META_RIGHT: ::std::os::raw::c_uint = 118; -pub const AKEYCODE_FUNCTION: ::std::os::raw::c_uint = 119; -pub const AKEYCODE_SYSRQ: ::std::os::raw::c_uint = 120; -pub const AKEYCODE_BREAK: ::std::os::raw::c_uint = 121; -pub const AKEYCODE_MOVE_HOME: ::std::os::raw::c_uint = 122; -pub const AKEYCODE_MOVE_END: ::std::os::raw::c_uint = 123; -pub const AKEYCODE_INSERT: ::std::os::raw::c_uint = 124; -pub const AKEYCODE_FORWARD: ::std::os::raw::c_uint = 125; -pub const AKEYCODE_MEDIA_PLAY: ::std::os::raw::c_uint = 126; -pub const AKEYCODE_MEDIA_PAUSE: ::std::os::raw::c_uint = 127; -pub const AKEYCODE_MEDIA_CLOSE: ::std::os::raw::c_uint = 128; -pub const AKEYCODE_MEDIA_EJECT: ::std::os::raw::c_uint = 129; -pub const AKEYCODE_MEDIA_RECORD: ::std::os::raw::c_uint = 130; -pub const AKEYCODE_F1: ::std::os::raw::c_uint = 131; -pub const AKEYCODE_F2: ::std::os::raw::c_uint = 132; -pub const AKEYCODE_F3: ::std::os::raw::c_uint = 133; -pub const AKEYCODE_F4: ::std::os::raw::c_uint = 134; -pub const AKEYCODE_F5: ::std::os::raw::c_uint = 135; -pub const AKEYCODE_F6: ::std::os::raw::c_uint = 136; -pub const AKEYCODE_F7: ::std::os::raw::c_uint = 137; -pub const AKEYCODE_F8: ::std::os::raw::c_uint = 138; -pub const AKEYCODE_F9: ::std::os::raw::c_uint = 139; -pub const AKEYCODE_F10: ::std::os::raw::c_uint = 140; -pub const AKEYCODE_F11: ::std::os::raw::c_uint = 141; -pub const AKEYCODE_F12: ::std::os::raw::c_uint = 142; -pub const AKEYCODE_NUM_LOCK: ::std::os::raw::c_uint = 143; -pub const AKEYCODE_NUMPAD_0: ::std::os::raw::c_uint = 144; -pub const AKEYCODE_NUMPAD_1: ::std::os::raw::c_uint = 145; -pub const AKEYCODE_NUMPAD_2: ::std::os::raw::c_uint = 146; -pub const AKEYCODE_NUMPAD_3: ::std::os::raw::c_uint = 147; -pub const AKEYCODE_NUMPAD_4: ::std::os::raw::c_uint = 148; -pub const AKEYCODE_NUMPAD_5: ::std::os::raw::c_uint = 149; -pub const AKEYCODE_NUMPAD_6: ::std::os::raw::c_uint = 150; -pub const AKEYCODE_NUMPAD_7: ::std::os::raw::c_uint = 151; -pub const AKEYCODE_NUMPAD_8: ::std::os::raw::c_uint = 152; -pub const AKEYCODE_NUMPAD_9: ::std::os::raw::c_uint = 153; -pub const AKEYCODE_NUMPAD_DIVIDE: ::std::os::raw::c_uint = 154; -pub const AKEYCODE_NUMPAD_MULTIPLY: ::std::os::raw::c_uint = 155; -pub const AKEYCODE_NUMPAD_SUBTRACT: ::std::os::raw::c_uint = 156; -pub const AKEYCODE_NUMPAD_ADD: ::std::os::raw::c_uint = 157; -pub const AKEYCODE_NUMPAD_DOT: ::std::os::raw::c_uint = 158; -pub const AKEYCODE_NUMPAD_COMMA: ::std::os::raw::c_uint = 159; -pub const AKEYCODE_NUMPAD_ENTER: ::std::os::raw::c_uint = 160; -pub const AKEYCODE_NUMPAD_EQUALS: ::std::os::raw::c_uint = 161; -pub const AKEYCODE_NUMPAD_LEFT_PAREN: ::std::os::raw::c_uint = 162; -pub const AKEYCODE_NUMPAD_RIGHT_PAREN: ::std::os::raw::c_uint = 163; -pub const AKEYCODE_VOLUME_MUTE: ::std::os::raw::c_uint = 164; -pub const AKEYCODE_INFO: ::std::os::raw::c_uint = 165; -pub const AKEYCODE_CHANNEL_UP: ::std::os::raw::c_uint = 166; -pub const AKEYCODE_CHANNEL_DOWN: ::std::os::raw::c_uint = 167; -pub const AKEYCODE_ZOOM_IN: ::std::os::raw::c_uint = 168; -pub const AKEYCODE_ZOOM_OUT: ::std::os::raw::c_uint = 169; -pub const AKEYCODE_TV: ::std::os::raw::c_uint = 170; -pub const AKEYCODE_WINDOW: ::std::os::raw::c_uint = 171; -pub const AKEYCODE_GUIDE: ::std::os::raw::c_uint = 172; -pub const AKEYCODE_DVR: ::std::os::raw::c_uint = 173; -pub const AKEYCODE_BOOKMARK: ::std::os::raw::c_uint = 174; -pub const AKEYCODE_CAPTIONS: ::std::os::raw::c_uint = 175; -pub const AKEYCODE_SETTINGS: ::std::os::raw::c_uint = 176; -pub const AKEYCODE_TV_POWER: ::std::os::raw::c_uint = 177; -pub const AKEYCODE_TV_INPUT: ::std::os::raw::c_uint = 178; -pub const AKEYCODE_STB_POWER: ::std::os::raw::c_uint = 179; -pub const AKEYCODE_STB_INPUT: ::std::os::raw::c_uint = 180; -pub const AKEYCODE_AVR_POWER: ::std::os::raw::c_uint = 181; -pub const AKEYCODE_AVR_INPUT: ::std::os::raw::c_uint = 182; -pub const AKEYCODE_PROG_RED: ::std::os::raw::c_uint = 183; -pub const AKEYCODE_PROG_GREEN: ::std::os::raw::c_uint = 184; -pub const AKEYCODE_PROG_YELLOW: ::std::os::raw::c_uint = 185; -pub const AKEYCODE_PROG_BLUE: ::std::os::raw::c_uint = 186; -pub const AKEYCODE_APP_SWITCH: ::std::os::raw::c_uint = 187; -pub const AKEYCODE_BUTTON_1: ::std::os::raw::c_uint = 188; -pub const AKEYCODE_BUTTON_2: ::std::os::raw::c_uint = 189; -pub const AKEYCODE_BUTTON_3: ::std::os::raw::c_uint = 190; -pub const AKEYCODE_BUTTON_4: ::std::os::raw::c_uint = 191; -pub const AKEYCODE_BUTTON_5: ::std::os::raw::c_uint = 192; -pub const AKEYCODE_BUTTON_6: ::std::os::raw::c_uint = 193; -pub const AKEYCODE_BUTTON_7: ::std::os::raw::c_uint = 194; -pub const AKEYCODE_BUTTON_8: ::std::os::raw::c_uint = 195; -pub const AKEYCODE_BUTTON_9: ::std::os::raw::c_uint = 196; -pub const AKEYCODE_BUTTON_10: ::std::os::raw::c_uint = 197; -pub const AKEYCODE_BUTTON_11: ::std::os::raw::c_uint = 198; -pub const AKEYCODE_BUTTON_12: ::std::os::raw::c_uint = 199; -pub const AKEYCODE_BUTTON_13: ::std::os::raw::c_uint = 200; -pub const AKEYCODE_BUTTON_14: ::std::os::raw::c_uint = 201; -pub const AKEYCODE_BUTTON_15: ::std::os::raw::c_uint = 202; -pub const AKEYCODE_BUTTON_16: ::std::os::raw::c_uint = 203; -pub const AKEYCODE_LANGUAGE_SWITCH: ::std::os::raw::c_uint = 204; -pub const AKEYCODE_MANNER_MODE: ::std::os::raw::c_uint = 205; -pub const AKEYCODE_3D_MODE: ::std::os::raw::c_uint = 206; -pub const AKEYCODE_CONTACTS: ::std::os::raw::c_uint = 207; -pub const AKEYCODE_CALENDAR: ::std::os::raw::c_uint = 208; -pub const AKEYCODE_MUSIC: ::std::os::raw::c_uint = 209; -pub const AKEYCODE_CALCULATOR: ::std::os::raw::c_uint = 210; -pub const AKEYCODE_ZENKAKU_HANKAKU: ::std::os::raw::c_uint = 211; -pub const AKEYCODE_EISU: ::std::os::raw::c_uint = 212; -pub const AKEYCODE_MUHENKAN: ::std::os::raw::c_uint = 213; -pub const AKEYCODE_HENKAN: ::std::os::raw::c_uint = 214; -pub const AKEYCODE_KATAKANA_HIRAGANA: ::std::os::raw::c_uint = 215; -pub const AKEYCODE_YEN: ::std::os::raw::c_uint = 216; -pub const AKEYCODE_RO: ::std::os::raw::c_uint = 217; -pub const AKEYCODE_KANA: ::std::os::raw::c_uint = 218; -pub const AKEYCODE_ASSIST: ::std::os::raw::c_uint = 219; -pub const AKEYCODE_BRIGHTNESS_DOWN: ::std::os::raw::c_uint = 220; -pub const AKEYCODE_BRIGHTNESS_UP: ::std::os::raw::c_uint = 221; -pub const AKEYCODE_MEDIA_AUDIO_TRACK: ::std::os::raw::c_uint = 222; -pub const AKEYCODE_SLEEP: ::std::os::raw::c_uint = 223; -pub const AKEYCODE_WAKEUP: ::std::os::raw::c_uint = 224; -pub const AKEYCODE_PAIRING: ::std::os::raw::c_uint = 225; -pub const AKEYCODE_MEDIA_TOP_MENU: ::std::os::raw::c_uint = 226; -pub const AKEYCODE_11: ::std::os::raw::c_uint = 227; -pub const AKEYCODE_12: ::std::os::raw::c_uint = 228; -pub const AKEYCODE_LAST_CHANNEL: ::std::os::raw::c_uint = 229; -pub const AKEYCODE_TV_DATA_SERVICE: ::std::os::raw::c_uint = 230; -pub const AKEYCODE_VOICE_ASSIST: ::std::os::raw::c_uint = 231; -pub const AKEYCODE_TV_RADIO_SERVICE: ::std::os::raw::c_uint = 232; -pub const AKEYCODE_TV_TELETEXT: ::std::os::raw::c_uint = 233; -pub const AKEYCODE_TV_NUMBER_ENTRY: ::std::os::raw::c_uint = 234; -pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: ::std::os::raw::c_uint = 235; -pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: ::std::os::raw::c_uint = 236; -pub const AKEYCODE_TV_SATELLITE: ::std::os::raw::c_uint = 237; -pub const AKEYCODE_TV_SATELLITE_BS: ::std::os::raw::c_uint = 238; -pub const AKEYCODE_TV_SATELLITE_CS: ::std::os::raw::c_uint = 239; -pub const AKEYCODE_TV_SATELLITE_SERVICE: ::std::os::raw::c_uint = 240; -pub const AKEYCODE_TV_NETWORK: ::std::os::raw::c_uint = 241; -pub const AKEYCODE_TV_ANTENNA_CABLE: ::std::os::raw::c_uint = 242; -pub const AKEYCODE_TV_INPUT_HDMI_1: ::std::os::raw::c_uint = 243; -pub const AKEYCODE_TV_INPUT_HDMI_2: ::std::os::raw::c_uint = 244; -pub const AKEYCODE_TV_INPUT_HDMI_3: ::std::os::raw::c_uint = 245; -pub const AKEYCODE_TV_INPUT_HDMI_4: ::std::os::raw::c_uint = 246; -pub const AKEYCODE_TV_INPUT_COMPOSITE_1: ::std::os::raw::c_uint = 247; -pub const AKEYCODE_TV_INPUT_COMPOSITE_2: ::std::os::raw::c_uint = 248; -pub const AKEYCODE_TV_INPUT_COMPONENT_1: ::std::os::raw::c_uint = 249; -pub const AKEYCODE_TV_INPUT_COMPONENT_2: ::std::os::raw::c_uint = 250; -pub const AKEYCODE_TV_INPUT_VGA_1: ::std::os::raw::c_uint = 251; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION: ::std::os::raw::c_uint = 252; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: ::std::os::raw::c_uint = 253; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: ::std::os::raw::c_uint = 254; -pub const AKEYCODE_TV_ZOOM_MODE: ::std::os::raw::c_uint = 255; -pub const AKEYCODE_TV_CONTENTS_MENU: ::std::os::raw::c_uint = 256; -pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: ::std::os::raw::c_uint = 257; -pub const AKEYCODE_TV_TIMER_PROGRAMMING: ::std::os::raw::c_uint = 258; -pub const AKEYCODE_HELP: ::std::os::raw::c_uint = 259; -pub const AKEYCODE_NAVIGATE_PREVIOUS: ::std::os::raw::c_uint = 260; -pub const AKEYCODE_NAVIGATE_NEXT: ::std::os::raw::c_uint = 261; -pub const AKEYCODE_NAVIGATE_IN: ::std::os::raw::c_uint = 262; -pub const AKEYCODE_NAVIGATE_OUT: ::std::os::raw::c_uint = 263; -pub const AKEYCODE_STEM_PRIMARY: ::std::os::raw::c_uint = 264; -pub const AKEYCODE_STEM_1: ::std::os::raw::c_uint = 265; -pub const AKEYCODE_STEM_2: ::std::os::raw::c_uint = 266; -pub const AKEYCODE_STEM_3: ::std::os::raw::c_uint = 267; -pub const AKEYCODE_DPAD_UP_LEFT: ::std::os::raw::c_uint = 268; -pub const AKEYCODE_DPAD_DOWN_LEFT: ::std::os::raw::c_uint = 269; -pub const AKEYCODE_DPAD_UP_RIGHT: ::std::os::raw::c_uint = 270; -pub const AKEYCODE_DPAD_DOWN_RIGHT: ::std::os::raw::c_uint = 271; -pub const AKEYCODE_MEDIA_SKIP_FORWARD: ::std::os::raw::c_uint = 272; -pub const AKEYCODE_MEDIA_SKIP_BACKWARD: ::std::os::raw::c_uint = 273; -pub const AKEYCODE_MEDIA_STEP_FORWARD: ::std::os::raw::c_uint = 274; -pub const AKEYCODE_MEDIA_STEP_BACKWARD: ::std::os::raw::c_uint = 275; -pub const AKEYCODE_SOFT_SLEEP: ::std::os::raw::c_uint = 276; -pub const AKEYCODE_CUT: ::std::os::raw::c_uint = 277; -pub const AKEYCODE_COPY: ::std::os::raw::c_uint = 278; -pub const AKEYCODE_PASTE: ::std::os::raw::c_uint = 279; -pub const AKEYCODE_SYSTEM_NAVIGATION_UP: ::std::os::raw::c_uint = 280; -pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: ::std::os::raw::c_uint = 281; -pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: ::std::os::raw::c_uint = 282; -pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: ::std::os::raw::c_uint = 283; -pub const AKEYCODE_ALL_APPS: ::std::os::raw::c_uint = 284; -pub const AKEYCODE_REFRESH: ::std::os::raw::c_uint = 285; -pub const AKEYCODE_THUMBS_UP: ::std::os::raw::c_uint = 286; -pub const AKEYCODE_THUMBS_DOWN: ::std::os::raw::c_uint = 287; -pub const AKEYCODE_PROFILE_SWITCH: ::std::os::raw::c_uint = 288; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +pub const AKEYCODE_UNKNOWN: _bindgen_ty_13 = 0; +pub const AKEYCODE_SOFT_LEFT: _bindgen_ty_13 = 1; +pub const AKEYCODE_SOFT_RIGHT: _bindgen_ty_13 = 2; +pub const AKEYCODE_HOME: _bindgen_ty_13 = 3; +pub const AKEYCODE_BACK: _bindgen_ty_13 = 4; +pub const AKEYCODE_CALL: _bindgen_ty_13 = 5; +pub const AKEYCODE_ENDCALL: _bindgen_ty_13 = 6; +pub const AKEYCODE_0: _bindgen_ty_13 = 7; +pub const AKEYCODE_1: _bindgen_ty_13 = 8; +pub const AKEYCODE_2: _bindgen_ty_13 = 9; +pub const AKEYCODE_3: _bindgen_ty_13 = 10; +pub const AKEYCODE_4: _bindgen_ty_13 = 11; +pub const AKEYCODE_5: _bindgen_ty_13 = 12; +pub const AKEYCODE_6: _bindgen_ty_13 = 13; +pub const AKEYCODE_7: _bindgen_ty_13 = 14; +pub const AKEYCODE_8: _bindgen_ty_13 = 15; +pub const AKEYCODE_9: _bindgen_ty_13 = 16; +pub const AKEYCODE_STAR: _bindgen_ty_13 = 17; +pub const AKEYCODE_POUND: _bindgen_ty_13 = 18; +pub const AKEYCODE_DPAD_UP: _bindgen_ty_13 = 19; +pub const AKEYCODE_DPAD_DOWN: _bindgen_ty_13 = 20; +pub const AKEYCODE_DPAD_LEFT: _bindgen_ty_13 = 21; +pub const AKEYCODE_DPAD_RIGHT: _bindgen_ty_13 = 22; +pub const AKEYCODE_DPAD_CENTER: _bindgen_ty_13 = 23; +pub const AKEYCODE_VOLUME_UP: _bindgen_ty_13 = 24; +pub const AKEYCODE_VOLUME_DOWN: _bindgen_ty_13 = 25; +pub const AKEYCODE_POWER: _bindgen_ty_13 = 26; +pub const AKEYCODE_CAMERA: _bindgen_ty_13 = 27; +pub const AKEYCODE_CLEAR: _bindgen_ty_13 = 28; +pub const AKEYCODE_A: _bindgen_ty_13 = 29; +pub const AKEYCODE_B: _bindgen_ty_13 = 30; +pub const AKEYCODE_C: _bindgen_ty_13 = 31; +pub const AKEYCODE_D: _bindgen_ty_13 = 32; +pub const AKEYCODE_E: _bindgen_ty_13 = 33; +pub const AKEYCODE_F: _bindgen_ty_13 = 34; +pub const AKEYCODE_G: _bindgen_ty_13 = 35; +pub const AKEYCODE_H: _bindgen_ty_13 = 36; +pub const AKEYCODE_I: _bindgen_ty_13 = 37; +pub const AKEYCODE_J: _bindgen_ty_13 = 38; +pub const AKEYCODE_K: _bindgen_ty_13 = 39; +pub const AKEYCODE_L: _bindgen_ty_13 = 40; +pub const AKEYCODE_M: _bindgen_ty_13 = 41; +pub const AKEYCODE_N: _bindgen_ty_13 = 42; +pub const AKEYCODE_O: _bindgen_ty_13 = 43; +pub const AKEYCODE_P: _bindgen_ty_13 = 44; +pub const AKEYCODE_Q: _bindgen_ty_13 = 45; +pub const AKEYCODE_R: _bindgen_ty_13 = 46; +pub const AKEYCODE_S: _bindgen_ty_13 = 47; +pub const AKEYCODE_T: _bindgen_ty_13 = 48; +pub const AKEYCODE_U: _bindgen_ty_13 = 49; +pub const AKEYCODE_V: _bindgen_ty_13 = 50; +pub const AKEYCODE_W: _bindgen_ty_13 = 51; +pub const AKEYCODE_X: _bindgen_ty_13 = 52; +pub const AKEYCODE_Y: _bindgen_ty_13 = 53; +pub const AKEYCODE_Z: _bindgen_ty_13 = 54; +pub const AKEYCODE_COMMA: _bindgen_ty_13 = 55; +pub const AKEYCODE_PERIOD: _bindgen_ty_13 = 56; +pub const AKEYCODE_ALT_LEFT: _bindgen_ty_13 = 57; +pub const AKEYCODE_ALT_RIGHT: _bindgen_ty_13 = 58; +pub const AKEYCODE_SHIFT_LEFT: _bindgen_ty_13 = 59; +pub const AKEYCODE_SHIFT_RIGHT: _bindgen_ty_13 = 60; +pub const AKEYCODE_TAB: _bindgen_ty_13 = 61; +pub const AKEYCODE_SPACE: _bindgen_ty_13 = 62; +pub const AKEYCODE_SYM: _bindgen_ty_13 = 63; +pub const AKEYCODE_EXPLORER: _bindgen_ty_13 = 64; +pub const AKEYCODE_ENVELOPE: _bindgen_ty_13 = 65; +pub const AKEYCODE_ENTER: _bindgen_ty_13 = 66; +pub const AKEYCODE_DEL: _bindgen_ty_13 = 67; +pub const AKEYCODE_GRAVE: _bindgen_ty_13 = 68; +pub const AKEYCODE_MINUS: _bindgen_ty_13 = 69; +pub const AKEYCODE_EQUALS: _bindgen_ty_13 = 70; +pub const AKEYCODE_LEFT_BRACKET: _bindgen_ty_13 = 71; +pub const AKEYCODE_RIGHT_BRACKET: _bindgen_ty_13 = 72; +pub const AKEYCODE_BACKSLASH: _bindgen_ty_13 = 73; +pub const AKEYCODE_SEMICOLON: _bindgen_ty_13 = 74; +pub const AKEYCODE_APOSTROPHE: _bindgen_ty_13 = 75; +pub const AKEYCODE_SLASH: _bindgen_ty_13 = 76; +pub const AKEYCODE_AT: _bindgen_ty_13 = 77; +pub const AKEYCODE_NUM: _bindgen_ty_13 = 78; +pub const AKEYCODE_HEADSETHOOK: _bindgen_ty_13 = 79; +pub const AKEYCODE_FOCUS: _bindgen_ty_13 = 80; +pub const AKEYCODE_PLUS: _bindgen_ty_13 = 81; +pub const AKEYCODE_MENU: _bindgen_ty_13 = 82; +pub const AKEYCODE_NOTIFICATION: _bindgen_ty_13 = 83; +pub const AKEYCODE_SEARCH: _bindgen_ty_13 = 84; +pub const AKEYCODE_MEDIA_PLAY_PAUSE: _bindgen_ty_13 = 85; +pub const AKEYCODE_MEDIA_STOP: _bindgen_ty_13 = 86; +pub const AKEYCODE_MEDIA_NEXT: _bindgen_ty_13 = 87; +pub const AKEYCODE_MEDIA_PREVIOUS: _bindgen_ty_13 = 88; +pub const AKEYCODE_MEDIA_REWIND: _bindgen_ty_13 = 89; +pub const AKEYCODE_MEDIA_FAST_FORWARD: _bindgen_ty_13 = 90; +pub const AKEYCODE_MUTE: _bindgen_ty_13 = 91; +pub const AKEYCODE_PAGE_UP: _bindgen_ty_13 = 92; +pub const AKEYCODE_PAGE_DOWN: _bindgen_ty_13 = 93; +pub const AKEYCODE_PICTSYMBOLS: _bindgen_ty_13 = 94; +pub const AKEYCODE_SWITCH_CHARSET: _bindgen_ty_13 = 95; +pub const AKEYCODE_BUTTON_A: _bindgen_ty_13 = 96; +pub const AKEYCODE_BUTTON_B: _bindgen_ty_13 = 97; +pub const AKEYCODE_BUTTON_C: _bindgen_ty_13 = 98; +pub const AKEYCODE_BUTTON_X: _bindgen_ty_13 = 99; +pub const AKEYCODE_BUTTON_Y: _bindgen_ty_13 = 100; +pub const AKEYCODE_BUTTON_Z: _bindgen_ty_13 = 101; +pub const AKEYCODE_BUTTON_L1: _bindgen_ty_13 = 102; +pub const AKEYCODE_BUTTON_R1: _bindgen_ty_13 = 103; +pub const AKEYCODE_BUTTON_L2: _bindgen_ty_13 = 104; +pub const AKEYCODE_BUTTON_R2: _bindgen_ty_13 = 105; +pub const AKEYCODE_BUTTON_THUMBL: _bindgen_ty_13 = 106; +pub const AKEYCODE_BUTTON_THUMBR: _bindgen_ty_13 = 107; +pub const AKEYCODE_BUTTON_START: _bindgen_ty_13 = 108; +pub const AKEYCODE_BUTTON_SELECT: _bindgen_ty_13 = 109; +pub const AKEYCODE_BUTTON_MODE: _bindgen_ty_13 = 110; +pub const AKEYCODE_ESCAPE: _bindgen_ty_13 = 111; +pub const AKEYCODE_FORWARD_DEL: _bindgen_ty_13 = 112; +pub const AKEYCODE_CTRL_LEFT: _bindgen_ty_13 = 113; +pub const AKEYCODE_CTRL_RIGHT: _bindgen_ty_13 = 114; +pub const AKEYCODE_CAPS_LOCK: _bindgen_ty_13 = 115; +pub const AKEYCODE_SCROLL_LOCK: _bindgen_ty_13 = 116; +pub const AKEYCODE_META_LEFT: _bindgen_ty_13 = 117; +pub const AKEYCODE_META_RIGHT: _bindgen_ty_13 = 118; +pub const AKEYCODE_FUNCTION: _bindgen_ty_13 = 119; +pub const AKEYCODE_SYSRQ: _bindgen_ty_13 = 120; +pub const AKEYCODE_BREAK: _bindgen_ty_13 = 121; +pub const AKEYCODE_MOVE_HOME: _bindgen_ty_13 = 122; +pub const AKEYCODE_MOVE_END: _bindgen_ty_13 = 123; +pub const AKEYCODE_INSERT: _bindgen_ty_13 = 124; +pub const AKEYCODE_FORWARD: _bindgen_ty_13 = 125; +pub const AKEYCODE_MEDIA_PLAY: _bindgen_ty_13 = 126; +pub const AKEYCODE_MEDIA_PAUSE: _bindgen_ty_13 = 127; +pub const AKEYCODE_MEDIA_CLOSE: _bindgen_ty_13 = 128; +pub const AKEYCODE_MEDIA_EJECT: _bindgen_ty_13 = 129; +pub const AKEYCODE_MEDIA_RECORD: _bindgen_ty_13 = 130; +pub const AKEYCODE_F1: _bindgen_ty_13 = 131; +pub const AKEYCODE_F2: _bindgen_ty_13 = 132; +pub const AKEYCODE_F3: _bindgen_ty_13 = 133; +pub const AKEYCODE_F4: _bindgen_ty_13 = 134; +pub const AKEYCODE_F5: _bindgen_ty_13 = 135; +pub const AKEYCODE_F6: _bindgen_ty_13 = 136; +pub const AKEYCODE_F7: _bindgen_ty_13 = 137; +pub const AKEYCODE_F8: _bindgen_ty_13 = 138; +pub const AKEYCODE_F9: _bindgen_ty_13 = 139; +pub const AKEYCODE_F10: _bindgen_ty_13 = 140; +pub const AKEYCODE_F11: _bindgen_ty_13 = 141; +pub const AKEYCODE_F12: _bindgen_ty_13 = 142; +pub const AKEYCODE_NUM_LOCK: _bindgen_ty_13 = 143; +pub const AKEYCODE_NUMPAD_0: _bindgen_ty_13 = 144; +pub const AKEYCODE_NUMPAD_1: _bindgen_ty_13 = 145; +pub const AKEYCODE_NUMPAD_2: _bindgen_ty_13 = 146; +pub const AKEYCODE_NUMPAD_3: _bindgen_ty_13 = 147; +pub const AKEYCODE_NUMPAD_4: _bindgen_ty_13 = 148; +pub const AKEYCODE_NUMPAD_5: _bindgen_ty_13 = 149; +pub const AKEYCODE_NUMPAD_6: _bindgen_ty_13 = 150; +pub const AKEYCODE_NUMPAD_7: _bindgen_ty_13 = 151; +pub const AKEYCODE_NUMPAD_8: _bindgen_ty_13 = 152; +pub const AKEYCODE_NUMPAD_9: _bindgen_ty_13 = 153; +pub const AKEYCODE_NUMPAD_DIVIDE: _bindgen_ty_13 = 154; +pub const AKEYCODE_NUMPAD_MULTIPLY: _bindgen_ty_13 = 155; +pub const AKEYCODE_NUMPAD_SUBTRACT: _bindgen_ty_13 = 156; +pub const AKEYCODE_NUMPAD_ADD: _bindgen_ty_13 = 157; +pub const AKEYCODE_NUMPAD_DOT: _bindgen_ty_13 = 158; +pub const AKEYCODE_NUMPAD_COMMA: _bindgen_ty_13 = 159; +pub const AKEYCODE_NUMPAD_ENTER: _bindgen_ty_13 = 160; +pub const AKEYCODE_NUMPAD_EQUALS: _bindgen_ty_13 = 161; +pub const AKEYCODE_NUMPAD_LEFT_PAREN: _bindgen_ty_13 = 162; +pub const AKEYCODE_NUMPAD_RIGHT_PAREN: _bindgen_ty_13 = 163; +pub const AKEYCODE_VOLUME_MUTE: _bindgen_ty_13 = 164; +pub const AKEYCODE_INFO: _bindgen_ty_13 = 165; +pub const AKEYCODE_CHANNEL_UP: _bindgen_ty_13 = 166; +pub const AKEYCODE_CHANNEL_DOWN: _bindgen_ty_13 = 167; +pub const AKEYCODE_ZOOM_IN: _bindgen_ty_13 = 168; +pub const AKEYCODE_ZOOM_OUT: _bindgen_ty_13 = 169; +pub const AKEYCODE_TV: _bindgen_ty_13 = 170; +pub const AKEYCODE_WINDOW: _bindgen_ty_13 = 171; +pub const AKEYCODE_GUIDE: _bindgen_ty_13 = 172; +pub const AKEYCODE_DVR: _bindgen_ty_13 = 173; +pub const AKEYCODE_BOOKMARK: _bindgen_ty_13 = 174; +pub const AKEYCODE_CAPTIONS: _bindgen_ty_13 = 175; +pub const AKEYCODE_SETTINGS: _bindgen_ty_13 = 176; +pub const AKEYCODE_TV_POWER: _bindgen_ty_13 = 177; +pub const AKEYCODE_TV_INPUT: _bindgen_ty_13 = 178; +pub const AKEYCODE_STB_POWER: _bindgen_ty_13 = 179; +pub const AKEYCODE_STB_INPUT: _bindgen_ty_13 = 180; +pub const AKEYCODE_AVR_POWER: _bindgen_ty_13 = 181; +pub const AKEYCODE_AVR_INPUT: _bindgen_ty_13 = 182; +pub const AKEYCODE_PROG_RED: _bindgen_ty_13 = 183; +pub const AKEYCODE_PROG_GREEN: _bindgen_ty_13 = 184; +pub const AKEYCODE_PROG_YELLOW: _bindgen_ty_13 = 185; +pub const AKEYCODE_PROG_BLUE: _bindgen_ty_13 = 186; +pub const AKEYCODE_APP_SWITCH: _bindgen_ty_13 = 187; +pub const AKEYCODE_BUTTON_1: _bindgen_ty_13 = 188; +pub const AKEYCODE_BUTTON_2: _bindgen_ty_13 = 189; +pub const AKEYCODE_BUTTON_3: _bindgen_ty_13 = 190; +pub const AKEYCODE_BUTTON_4: _bindgen_ty_13 = 191; +pub const AKEYCODE_BUTTON_5: _bindgen_ty_13 = 192; +pub const AKEYCODE_BUTTON_6: _bindgen_ty_13 = 193; +pub const AKEYCODE_BUTTON_7: _bindgen_ty_13 = 194; +pub const AKEYCODE_BUTTON_8: _bindgen_ty_13 = 195; +pub const AKEYCODE_BUTTON_9: _bindgen_ty_13 = 196; +pub const AKEYCODE_BUTTON_10: _bindgen_ty_13 = 197; +pub const AKEYCODE_BUTTON_11: _bindgen_ty_13 = 198; +pub const AKEYCODE_BUTTON_12: _bindgen_ty_13 = 199; +pub const AKEYCODE_BUTTON_13: _bindgen_ty_13 = 200; +pub const AKEYCODE_BUTTON_14: _bindgen_ty_13 = 201; +pub const AKEYCODE_BUTTON_15: _bindgen_ty_13 = 202; +pub const AKEYCODE_BUTTON_16: _bindgen_ty_13 = 203; +pub const AKEYCODE_LANGUAGE_SWITCH: _bindgen_ty_13 = 204; +pub const AKEYCODE_MANNER_MODE: _bindgen_ty_13 = 205; +pub const AKEYCODE_3D_MODE: _bindgen_ty_13 = 206; +pub const AKEYCODE_CONTACTS: _bindgen_ty_13 = 207; +pub const AKEYCODE_CALENDAR: _bindgen_ty_13 = 208; +pub const AKEYCODE_MUSIC: _bindgen_ty_13 = 209; +pub const AKEYCODE_CALCULATOR: _bindgen_ty_13 = 210; +pub const AKEYCODE_ZENKAKU_HANKAKU: _bindgen_ty_13 = 211; +pub const AKEYCODE_EISU: _bindgen_ty_13 = 212; +pub const AKEYCODE_MUHENKAN: _bindgen_ty_13 = 213; +pub const AKEYCODE_HENKAN: _bindgen_ty_13 = 214; +pub const AKEYCODE_KATAKANA_HIRAGANA: _bindgen_ty_13 = 215; +pub const AKEYCODE_YEN: _bindgen_ty_13 = 216; +pub const AKEYCODE_RO: _bindgen_ty_13 = 217; +pub const AKEYCODE_KANA: _bindgen_ty_13 = 218; +pub const AKEYCODE_ASSIST: _bindgen_ty_13 = 219; +pub const AKEYCODE_BRIGHTNESS_DOWN: _bindgen_ty_13 = 220; +pub const AKEYCODE_BRIGHTNESS_UP: _bindgen_ty_13 = 221; +pub const AKEYCODE_MEDIA_AUDIO_TRACK: _bindgen_ty_13 = 222; +pub const AKEYCODE_SLEEP: _bindgen_ty_13 = 223; +pub const AKEYCODE_WAKEUP: _bindgen_ty_13 = 224; +pub const AKEYCODE_PAIRING: _bindgen_ty_13 = 225; +pub const AKEYCODE_MEDIA_TOP_MENU: _bindgen_ty_13 = 226; +pub const AKEYCODE_11: _bindgen_ty_13 = 227; +pub const AKEYCODE_12: _bindgen_ty_13 = 228; +pub const AKEYCODE_LAST_CHANNEL: _bindgen_ty_13 = 229; +pub const AKEYCODE_TV_DATA_SERVICE: _bindgen_ty_13 = 230; +pub const AKEYCODE_VOICE_ASSIST: _bindgen_ty_13 = 231; +pub const AKEYCODE_TV_RADIO_SERVICE: _bindgen_ty_13 = 232; +pub const AKEYCODE_TV_TELETEXT: _bindgen_ty_13 = 233; +pub const AKEYCODE_TV_NUMBER_ENTRY: _bindgen_ty_13 = 234; +pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: _bindgen_ty_13 = 235; +pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: _bindgen_ty_13 = 236; +pub const AKEYCODE_TV_SATELLITE: _bindgen_ty_13 = 237; +pub const AKEYCODE_TV_SATELLITE_BS: _bindgen_ty_13 = 238; +pub const AKEYCODE_TV_SATELLITE_CS: _bindgen_ty_13 = 239; +pub const AKEYCODE_TV_SATELLITE_SERVICE: _bindgen_ty_13 = 240; +pub const AKEYCODE_TV_NETWORK: _bindgen_ty_13 = 241; +pub const AKEYCODE_TV_ANTENNA_CABLE: _bindgen_ty_13 = 242; +pub const AKEYCODE_TV_INPUT_HDMI_1: _bindgen_ty_13 = 243; +pub const AKEYCODE_TV_INPUT_HDMI_2: _bindgen_ty_13 = 244; +pub const AKEYCODE_TV_INPUT_HDMI_3: _bindgen_ty_13 = 245; +pub const AKEYCODE_TV_INPUT_HDMI_4: _bindgen_ty_13 = 246; +pub const AKEYCODE_TV_INPUT_COMPOSITE_1: _bindgen_ty_13 = 247; +pub const AKEYCODE_TV_INPUT_COMPOSITE_2: _bindgen_ty_13 = 248; +pub const AKEYCODE_TV_INPUT_COMPONENT_1: _bindgen_ty_13 = 249; +pub const AKEYCODE_TV_INPUT_COMPONENT_2: _bindgen_ty_13 = 250; +pub const AKEYCODE_TV_INPUT_VGA_1: _bindgen_ty_13 = 251; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION: _bindgen_ty_13 = 252; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: _bindgen_ty_13 = 253; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: _bindgen_ty_13 = 254; +pub const AKEYCODE_TV_ZOOM_MODE: _bindgen_ty_13 = 255; +pub const AKEYCODE_TV_CONTENTS_MENU: _bindgen_ty_13 = 256; +pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: _bindgen_ty_13 = 257; +pub const AKEYCODE_TV_TIMER_PROGRAMMING: _bindgen_ty_13 = 258; +pub const AKEYCODE_HELP: _bindgen_ty_13 = 259; +pub const AKEYCODE_NAVIGATE_PREVIOUS: _bindgen_ty_13 = 260; +pub const AKEYCODE_NAVIGATE_NEXT: _bindgen_ty_13 = 261; +pub const AKEYCODE_NAVIGATE_IN: _bindgen_ty_13 = 262; +pub const AKEYCODE_NAVIGATE_OUT: _bindgen_ty_13 = 263; +pub const AKEYCODE_STEM_PRIMARY: _bindgen_ty_13 = 264; +pub const AKEYCODE_STEM_1: _bindgen_ty_13 = 265; +pub const AKEYCODE_STEM_2: _bindgen_ty_13 = 266; +pub const AKEYCODE_STEM_3: _bindgen_ty_13 = 267; +pub const AKEYCODE_DPAD_UP_LEFT: _bindgen_ty_13 = 268; +pub const AKEYCODE_DPAD_DOWN_LEFT: _bindgen_ty_13 = 269; +pub const AKEYCODE_DPAD_UP_RIGHT: _bindgen_ty_13 = 270; +pub const AKEYCODE_DPAD_DOWN_RIGHT: _bindgen_ty_13 = 271; +pub const AKEYCODE_MEDIA_SKIP_FORWARD: _bindgen_ty_13 = 272; +pub const AKEYCODE_MEDIA_SKIP_BACKWARD: _bindgen_ty_13 = 273; +pub const AKEYCODE_MEDIA_STEP_FORWARD: _bindgen_ty_13 = 274; +pub const AKEYCODE_MEDIA_STEP_BACKWARD: _bindgen_ty_13 = 275; +pub const AKEYCODE_SOFT_SLEEP: _bindgen_ty_13 = 276; +pub const AKEYCODE_CUT: _bindgen_ty_13 = 277; +pub const AKEYCODE_COPY: _bindgen_ty_13 = 278; +pub const AKEYCODE_PASTE: _bindgen_ty_13 = 279; +pub const AKEYCODE_SYSTEM_NAVIGATION_UP: _bindgen_ty_13 = 280; +pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: _bindgen_ty_13 = 281; +pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: _bindgen_ty_13 = 282; +pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: _bindgen_ty_13 = 283; +pub const AKEYCODE_ALL_APPS: _bindgen_ty_13 = 284; +pub const AKEYCODE_REFRESH: _bindgen_ty_13 = 285; +pub const AKEYCODE_THUMBS_UP: _bindgen_ty_13 = 286; +pub const AKEYCODE_THUMBS_DOWN: _bindgen_ty_13 = 287; +pub const AKEYCODE_PROFILE_SWITCH: _bindgen_ty_13 = 288; +pub type _bindgen_ty_13 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ALooper { @@ -4136,28 +4032,28 @@ pub struct ALooper { extern "C" { pub fn ALooper_forThread() -> *mut ALooper; } -pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; +pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: _bindgen_ty_14 = 1; +pub type _bindgen_ty_14 = ::std::os::raw::c_uint; extern "C" { pub fn ALooper_prepare(opts: ::std::os::raw::c_int) -> *mut ALooper; } -pub const ALOOPER_POLL_WAKE: ::std::os::raw::c_int = -1; -pub const ALOOPER_POLL_CALLBACK: ::std::os::raw::c_int = -2; -pub const ALOOPER_POLL_TIMEOUT: ::std::os::raw::c_int = -3; -pub const ALOOPER_POLL_ERROR: ::std::os::raw::c_int = -4; -pub type _bindgen_ty_13 = ::std::os::raw::c_int; +pub const ALOOPER_POLL_WAKE: _bindgen_ty_15 = -1; +pub const ALOOPER_POLL_CALLBACK: _bindgen_ty_15 = -2; +pub const ALOOPER_POLL_TIMEOUT: _bindgen_ty_15 = -3; +pub const ALOOPER_POLL_ERROR: _bindgen_ty_15 = -4; +pub type _bindgen_ty_15 = ::std::os::raw::c_int; extern "C" { pub fn ALooper_acquire(looper: *mut ALooper); } extern "C" { pub fn ALooper_release(looper: *mut ALooper); } -pub const ALOOPER_EVENT_INPUT: ::std::os::raw::c_uint = 1; -pub const ALOOPER_EVENT_OUTPUT: ::std::os::raw::c_uint = 2; -pub const ALOOPER_EVENT_ERROR: ::std::os::raw::c_uint = 4; -pub const ALOOPER_EVENT_HANGUP: ::std::os::raw::c_uint = 8; -pub const ALOOPER_EVENT_INVALID: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; +pub const ALOOPER_EVENT_INPUT: _bindgen_ty_16 = 1; +pub const ALOOPER_EVENT_OUTPUT: _bindgen_ty_16 = 2; +pub const ALOOPER_EVENT_ERROR: _bindgen_ty_16 = 4; +pub const ALOOPER_EVENT_HANGUP: _bindgen_ty_16 = 8; +pub const ALOOPER_EVENT_INVALID: _bindgen_ty_16 = 16; +pub type _bindgen_ty_16 = ::std::os::raw::c_uint; pub type ALooper_callbackFunc = ::std::option::Option< unsafe extern "C" fn( fd: ::std::os::raw::c_int, @@ -4200,143 +4096,143 @@ extern "C" { fd: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AKEY_STATE_UNKNOWN: ::std::os::raw::c_int = -1; -pub const AKEY_STATE_UP: ::std::os::raw::c_int = 0; -pub const AKEY_STATE_DOWN: ::std::os::raw::c_int = 1; -pub const AKEY_STATE_VIRTUAL: ::std::os::raw::c_int = 2; -pub type _bindgen_ty_15 = ::std::os::raw::c_int; -pub const AMETA_NONE: ::std::os::raw::c_uint = 0; -pub const AMETA_ALT_ON: ::std::os::raw::c_uint = 2; -pub const AMETA_ALT_LEFT_ON: ::std::os::raw::c_uint = 16; -pub const AMETA_ALT_RIGHT_ON: ::std::os::raw::c_uint = 32; -pub const AMETA_SHIFT_ON: ::std::os::raw::c_uint = 1; -pub const AMETA_SHIFT_LEFT_ON: ::std::os::raw::c_uint = 64; -pub const AMETA_SHIFT_RIGHT_ON: ::std::os::raw::c_uint = 128; -pub const AMETA_SYM_ON: ::std::os::raw::c_uint = 4; -pub const AMETA_FUNCTION_ON: ::std::os::raw::c_uint = 8; -pub const AMETA_CTRL_ON: ::std::os::raw::c_uint = 4096; -pub const AMETA_CTRL_LEFT_ON: ::std::os::raw::c_uint = 8192; -pub const AMETA_CTRL_RIGHT_ON: ::std::os::raw::c_uint = 16384; -pub const AMETA_META_ON: ::std::os::raw::c_uint = 65536; -pub const AMETA_META_LEFT_ON: ::std::os::raw::c_uint = 131072; -pub const AMETA_META_RIGHT_ON: ::std::os::raw::c_uint = 262144; -pub const AMETA_CAPS_LOCK_ON: ::std::os::raw::c_uint = 1048576; -pub const AMETA_NUM_LOCK_ON: ::std::os::raw::c_uint = 2097152; -pub const AMETA_SCROLL_LOCK_ON: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; +pub const AKEY_STATE_UNKNOWN: _bindgen_ty_17 = -1; +pub const AKEY_STATE_UP: _bindgen_ty_17 = 0; +pub const AKEY_STATE_DOWN: _bindgen_ty_17 = 1; +pub const AKEY_STATE_VIRTUAL: _bindgen_ty_17 = 2; +pub type _bindgen_ty_17 = ::std::os::raw::c_int; +pub const AMETA_NONE: _bindgen_ty_18 = 0; +pub const AMETA_ALT_ON: _bindgen_ty_18 = 2; +pub const AMETA_ALT_LEFT_ON: _bindgen_ty_18 = 16; +pub const AMETA_ALT_RIGHT_ON: _bindgen_ty_18 = 32; +pub const AMETA_SHIFT_ON: _bindgen_ty_18 = 1; +pub const AMETA_SHIFT_LEFT_ON: _bindgen_ty_18 = 64; +pub const AMETA_SHIFT_RIGHT_ON: _bindgen_ty_18 = 128; +pub const AMETA_SYM_ON: _bindgen_ty_18 = 4; +pub const AMETA_FUNCTION_ON: _bindgen_ty_18 = 8; +pub const AMETA_CTRL_ON: _bindgen_ty_18 = 4096; +pub const AMETA_CTRL_LEFT_ON: _bindgen_ty_18 = 8192; +pub const AMETA_CTRL_RIGHT_ON: _bindgen_ty_18 = 16384; +pub const AMETA_META_ON: _bindgen_ty_18 = 65536; +pub const AMETA_META_LEFT_ON: _bindgen_ty_18 = 131072; +pub const AMETA_META_RIGHT_ON: _bindgen_ty_18 = 262144; +pub const AMETA_CAPS_LOCK_ON: _bindgen_ty_18 = 1048576; +pub const AMETA_NUM_LOCK_ON: _bindgen_ty_18 = 2097152; +pub const AMETA_SCROLL_LOCK_ON: _bindgen_ty_18 = 4194304; +pub type _bindgen_ty_18 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AInputEvent { _unused: [u8; 0], } -pub const AINPUT_EVENT_TYPE_KEY: ::std::os::raw::c_uint = 1; -pub const AINPUT_EVENT_TYPE_MOTION: ::std::os::raw::c_uint = 2; -pub const AINPUT_EVENT_TYPE_FOCUS: ::std::os::raw::c_uint = 3; -pub const AINPUT_EVENT_TYPE_CAPTURE: ::std::os::raw::c_uint = 4; -pub const AINPUT_EVENT_TYPE_DRAG: ::std::os::raw::c_uint = 5; -pub const AINPUT_EVENT_TYPE_TOUCH_MODE: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AKEY_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_ACTION_MULTIPLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_FLAG_WOKE_HERE: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: ::std::os::raw::c_uint = 2; -pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: ::std::os::raw::c_uint = 4; -pub const AKEY_EVENT_FLAG_FROM_SYSTEM: ::std::os::raw::c_uint = 8; -pub const AKEY_EVENT_FLAG_EDITOR_ACTION: ::std::os::raw::c_uint = 16; -pub const AKEY_EVENT_FLAG_CANCELED: ::std::os::raw::c_uint = 32; -pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: ::std::os::raw::c_uint = 64; -pub const AKEY_EVENT_FLAG_LONG_PRESS: ::std::os::raw::c_uint = 128; -pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: ::std::os::raw::c_uint = 256; -pub const AKEY_EVENT_FLAG_TRACKING: ::std::os::raw::c_uint = 512; -pub const AKEY_EVENT_FLAG_FALLBACK: ::std::os::raw::c_uint = 1024; +pub const AINPUT_EVENT_TYPE_KEY: _bindgen_ty_19 = 1; +pub const AINPUT_EVENT_TYPE_MOTION: _bindgen_ty_19 = 2; +pub const AINPUT_EVENT_TYPE_FOCUS: _bindgen_ty_19 = 3; +pub const AINPUT_EVENT_TYPE_CAPTURE: _bindgen_ty_19 = 4; +pub const AINPUT_EVENT_TYPE_DRAG: _bindgen_ty_19 = 5; +pub const AINPUT_EVENT_TYPE_TOUCH_MODE: _bindgen_ty_19 = 6; pub type _bindgen_ty_19 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_ACTION_MASK: ::std::os::raw::c_uint = 255; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: ::std::os::raw::c_uint = 65280; -pub const AMOTION_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_ACTION_MOVE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_ACTION_CANCEL: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_ACTION_OUTSIDE: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_ACTION_POINTER_DOWN: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_ACTION_POINTER_UP: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_ACTION_HOVER_MOVE: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_ACTION_SCROLL: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_ACTION_HOVER_ENTER: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_ACTION_HOVER_EXIT: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: ::std::os::raw::c_uint = 12; +pub const AKEY_EVENT_ACTION_DOWN: _bindgen_ty_20 = 0; +pub const AKEY_EVENT_ACTION_UP: _bindgen_ty_20 = 1; +pub const AKEY_EVENT_ACTION_MULTIPLE: _bindgen_ty_20 = 2; pub type _bindgen_ty_20 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: ::std::os::raw::c_uint = 1; +pub const AKEY_EVENT_FLAG_WOKE_HERE: _bindgen_ty_21 = 1; +pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: _bindgen_ty_21 = 2; +pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: _bindgen_ty_21 = 4; +pub const AKEY_EVENT_FLAG_FROM_SYSTEM: _bindgen_ty_21 = 8; +pub const AKEY_EVENT_FLAG_EDITOR_ACTION: _bindgen_ty_21 = 16; +pub const AKEY_EVENT_FLAG_CANCELED: _bindgen_ty_21 = 32; +pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: _bindgen_ty_21 = 64; +pub const AKEY_EVENT_FLAG_LONG_PRESS: _bindgen_ty_21 = 128; +pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: _bindgen_ty_21 = 256; +pub const AKEY_EVENT_FLAG_TRACKING: _bindgen_ty_21 = 512; +pub const AKEY_EVENT_FLAG_FALLBACK: _bindgen_ty_21 = 1024; pub type _bindgen_ty_21 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_EDGE_FLAG_NONE: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_EDGE_FLAG_TOP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_EDGE_FLAG_LEFT: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: ::std::os::raw::c_uint = 8; +pub const AMOTION_EVENT_ACTION_MASK: _bindgen_ty_22 = 255; +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: _bindgen_ty_22 = 65280; +pub const AMOTION_EVENT_ACTION_DOWN: _bindgen_ty_22 = 0; +pub const AMOTION_EVENT_ACTION_UP: _bindgen_ty_22 = 1; +pub const AMOTION_EVENT_ACTION_MOVE: _bindgen_ty_22 = 2; +pub const AMOTION_EVENT_ACTION_CANCEL: _bindgen_ty_22 = 3; +pub const AMOTION_EVENT_ACTION_OUTSIDE: _bindgen_ty_22 = 4; +pub const AMOTION_EVENT_ACTION_POINTER_DOWN: _bindgen_ty_22 = 5; +pub const AMOTION_EVENT_ACTION_POINTER_UP: _bindgen_ty_22 = 6; +pub const AMOTION_EVENT_ACTION_HOVER_MOVE: _bindgen_ty_22 = 7; +pub const AMOTION_EVENT_ACTION_SCROLL: _bindgen_ty_22 = 8; +pub const AMOTION_EVENT_ACTION_HOVER_ENTER: _bindgen_ty_22 = 9; +pub const AMOTION_EVENT_ACTION_HOVER_EXIT: _bindgen_ty_22 = 10; +pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: _bindgen_ty_22 = 11; +pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: _bindgen_ty_22 = 12; pub type _bindgen_ty_22 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_AXIS_X: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_AXIS_Y: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_AXIS_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_AXIS_SIZE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_AXIS_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_AXIS_ORIENTATION: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_AXIS_VSCROLL: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_AXIS_HSCROLL: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_AXIS_Z: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_AXIS_RX: ::std::os::raw::c_uint = 12; -pub const AMOTION_EVENT_AXIS_RY: ::std::os::raw::c_uint = 13; -pub const AMOTION_EVENT_AXIS_RZ: ::std::os::raw::c_uint = 14; -pub const AMOTION_EVENT_AXIS_HAT_X: ::std::os::raw::c_uint = 15; -pub const AMOTION_EVENT_AXIS_HAT_Y: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_AXIS_LTRIGGER: ::std::os::raw::c_uint = 17; -pub const AMOTION_EVENT_AXIS_RTRIGGER: ::std::os::raw::c_uint = 18; -pub const AMOTION_EVENT_AXIS_THROTTLE: ::std::os::raw::c_uint = 19; -pub const AMOTION_EVENT_AXIS_RUDDER: ::std::os::raw::c_uint = 20; -pub const AMOTION_EVENT_AXIS_WHEEL: ::std::os::raw::c_uint = 21; -pub const AMOTION_EVENT_AXIS_GAS: ::std::os::raw::c_uint = 22; -pub const AMOTION_EVENT_AXIS_BRAKE: ::std::os::raw::c_uint = 23; -pub const AMOTION_EVENT_AXIS_DISTANCE: ::std::os::raw::c_uint = 24; -pub const AMOTION_EVENT_AXIS_TILT: ::std::os::raw::c_uint = 25; -pub const AMOTION_EVENT_AXIS_SCROLL: ::std::os::raw::c_uint = 26; -pub const AMOTION_EVENT_AXIS_RELATIVE_X: ::std::os::raw::c_uint = 27; -pub const AMOTION_EVENT_AXIS_RELATIVE_Y: ::std::os::raw::c_uint = 28; -pub const AMOTION_EVENT_AXIS_GENERIC_1: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_AXIS_GENERIC_2: ::std::os::raw::c_uint = 33; -pub const AMOTION_EVENT_AXIS_GENERIC_3: ::std::os::raw::c_uint = 34; -pub const AMOTION_EVENT_AXIS_GENERIC_4: ::std::os::raw::c_uint = 35; -pub const AMOTION_EVENT_AXIS_GENERIC_5: ::std::os::raw::c_uint = 36; -pub const AMOTION_EVENT_AXIS_GENERIC_6: ::std::os::raw::c_uint = 37; -pub const AMOTION_EVENT_AXIS_GENERIC_7: ::std::os::raw::c_uint = 38; -pub const AMOTION_EVENT_AXIS_GENERIC_8: ::std::os::raw::c_uint = 39; -pub const AMOTION_EVENT_AXIS_GENERIC_9: ::std::os::raw::c_uint = 40; -pub const AMOTION_EVENT_AXIS_GENERIC_10: ::std::os::raw::c_uint = 41; -pub const AMOTION_EVENT_AXIS_GENERIC_11: ::std::os::raw::c_uint = 42; -pub const AMOTION_EVENT_AXIS_GENERIC_12: ::std::os::raw::c_uint = 43; -pub const AMOTION_EVENT_AXIS_GENERIC_13: ::std::os::raw::c_uint = 44; -pub const AMOTION_EVENT_AXIS_GENERIC_14: ::std::os::raw::c_uint = 45; -pub const AMOTION_EVENT_AXIS_GENERIC_15: ::std::os::raw::c_uint = 46; -pub const AMOTION_EVENT_AXIS_GENERIC_16: ::std::os::raw::c_uint = 47; +pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: _bindgen_ty_23 = 1; pub type _bindgen_ty_23 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_BUTTON_PRIMARY: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_BUTTON_SECONDARY: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_BUTTON_TERTIARY: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_BUTTON_BACK: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_BUTTON_FORWARD: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: ::std::os::raw::c_uint = 64; +pub const AMOTION_EVENT_EDGE_FLAG_NONE: _bindgen_ty_24 = 0; +pub const AMOTION_EVENT_EDGE_FLAG_TOP: _bindgen_ty_24 = 1; +pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: _bindgen_ty_24 = 2; +pub const AMOTION_EVENT_EDGE_FLAG_LEFT: _bindgen_ty_24 = 4; +pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: _bindgen_ty_24 = 8; pub type _bindgen_ty_24 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_TOOL_TYPE_FINGER: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_TOOL_TYPE_ERASER: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_TOOL_TYPE_PALM: ::std::os::raw::c_uint = 5; +pub const AMOTION_EVENT_AXIS_X: _bindgen_ty_25 = 0; +pub const AMOTION_EVENT_AXIS_Y: _bindgen_ty_25 = 1; +pub const AMOTION_EVENT_AXIS_PRESSURE: _bindgen_ty_25 = 2; +pub const AMOTION_EVENT_AXIS_SIZE: _bindgen_ty_25 = 3; +pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: _bindgen_ty_25 = 4; +pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: _bindgen_ty_25 = 5; +pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: _bindgen_ty_25 = 6; +pub const AMOTION_EVENT_AXIS_TOOL_MINOR: _bindgen_ty_25 = 7; +pub const AMOTION_EVENT_AXIS_ORIENTATION: _bindgen_ty_25 = 8; +pub const AMOTION_EVENT_AXIS_VSCROLL: _bindgen_ty_25 = 9; +pub const AMOTION_EVENT_AXIS_HSCROLL: _bindgen_ty_25 = 10; +pub const AMOTION_EVENT_AXIS_Z: _bindgen_ty_25 = 11; +pub const AMOTION_EVENT_AXIS_RX: _bindgen_ty_25 = 12; +pub const AMOTION_EVENT_AXIS_RY: _bindgen_ty_25 = 13; +pub const AMOTION_EVENT_AXIS_RZ: _bindgen_ty_25 = 14; +pub const AMOTION_EVENT_AXIS_HAT_X: _bindgen_ty_25 = 15; +pub const AMOTION_EVENT_AXIS_HAT_Y: _bindgen_ty_25 = 16; +pub const AMOTION_EVENT_AXIS_LTRIGGER: _bindgen_ty_25 = 17; +pub const AMOTION_EVENT_AXIS_RTRIGGER: _bindgen_ty_25 = 18; +pub const AMOTION_EVENT_AXIS_THROTTLE: _bindgen_ty_25 = 19; +pub const AMOTION_EVENT_AXIS_RUDDER: _bindgen_ty_25 = 20; +pub const AMOTION_EVENT_AXIS_WHEEL: _bindgen_ty_25 = 21; +pub const AMOTION_EVENT_AXIS_GAS: _bindgen_ty_25 = 22; +pub const AMOTION_EVENT_AXIS_BRAKE: _bindgen_ty_25 = 23; +pub const AMOTION_EVENT_AXIS_DISTANCE: _bindgen_ty_25 = 24; +pub const AMOTION_EVENT_AXIS_TILT: _bindgen_ty_25 = 25; +pub const AMOTION_EVENT_AXIS_SCROLL: _bindgen_ty_25 = 26; +pub const AMOTION_EVENT_AXIS_RELATIVE_X: _bindgen_ty_25 = 27; +pub const AMOTION_EVENT_AXIS_RELATIVE_Y: _bindgen_ty_25 = 28; +pub const AMOTION_EVENT_AXIS_GENERIC_1: _bindgen_ty_25 = 32; +pub const AMOTION_EVENT_AXIS_GENERIC_2: _bindgen_ty_25 = 33; +pub const AMOTION_EVENT_AXIS_GENERIC_3: _bindgen_ty_25 = 34; +pub const AMOTION_EVENT_AXIS_GENERIC_4: _bindgen_ty_25 = 35; +pub const AMOTION_EVENT_AXIS_GENERIC_5: _bindgen_ty_25 = 36; +pub const AMOTION_EVENT_AXIS_GENERIC_6: _bindgen_ty_25 = 37; +pub const AMOTION_EVENT_AXIS_GENERIC_7: _bindgen_ty_25 = 38; +pub const AMOTION_EVENT_AXIS_GENERIC_8: _bindgen_ty_25 = 39; +pub const AMOTION_EVENT_AXIS_GENERIC_9: _bindgen_ty_25 = 40; +pub const AMOTION_EVENT_AXIS_GENERIC_10: _bindgen_ty_25 = 41; +pub const AMOTION_EVENT_AXIS_GENERIC_11: _bindgen_ty_25 = 42; +pub const AMOTION_EVENT_AXIS_GENERIC_12: _bindgen_ty_25 = 43; +pub const AMOTION_EVENT_AXIS_GENERIC_13: _bindgen_ty_25 = 44; +pub const AMOTION_EVENT_AXIS_GENERIC_14: _bindgen_ty_25 = 45; +pub const AMOTION_EVENT_AXIS_GENERIC_15: _bindgen_ty_25 = 46; +pub const AMOTION_EVENT_AXIS_GENERIC_16: _bindgen_ty_25 = 47; pub type _bindgen_ty_25 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_BUTTON_PRIMARY: _bindgen_ty_26 = 1; +pub const AMOTION_EVENT_BUTTON_SECONDARY: _bindgen_ty_26 = 2; +pub const AMOTION_EVENT_BUTTON_TERTIARY: _bindgen_ty_26 = 4; +pub const AMOTION_EVENT_BUTTON_BACK: _bindgen_ty_26 = 8; +pub const AMOTION_EVENT_BUTTON_FORWARD: _bindgen_ty_26 = 16; +pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: _bindgen_ty_26 = 32; +pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: _bindgen_ty_26 = 64; +pub type _bindgen_ty_26 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: _bindgen_ty_27 = 0; +pub const AMOTION_EVENT_TOOL_TYPE_FINGER: _bindgen_ty_27 = 1; +pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: _bindgen_ty_27 = 2; +pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: _bindgen_ty_27 = 3; +pub const AMOTION_EVENT_TOOL_TYPE_ERASER: _bindgen_ty_27 = 4; +pub const AMOTION_EVENT_TOOL_TYPE_PALM: _bindgen_ty_27 = 5; +pub type _bindgen_ty_27 = ::std::os::raw::c_uint; impl AMotionClassification { pub const AMOTION_EVENT_CLASSIFICATION_NONE: AMotionClassification = AMotionClassification(0); } @@ -4351,46 +4247,46 @@ impl AMotionClassification { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AMotionClassification(pub u32); -pub const AINPUT_SOURCE_CLASS_MASK: ::std::os::raw::c_uint = 255; -pub const AINPUT_SOURCE_CLASS_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_CLASS_BUTTON: ::std::os::raw::c_uint = 1; -pub const AINPUT_SOURCE_CLASS_POINTER: ::std::os::raw::c_uint = 2; -pub const AINPUT_SOURCE_CLASS_NAVIGATION: ::std::os::raw::c_uint = 4; -pub const AINPUT_SOURCE_CLASS_POSITION: ::std::os::raw::c_uint = 8; -pub const AINPUT_SOURCE_CLASS_JOYSTICK: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_26 = ::std::os::raw::c_uint; -pub const AINPUT_SOURCE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_KEYBOARD: ::std::os::raw::c_uint = 257; -pub const AINPUT_SOURCE_DPAD: ::std::os::raw::c_uint = 513; -pub const AINPUT_SOURCE_GAMEPAD: ::std::os::raw::c_uint = 1025; -pub const AINPUT_SOURCE_TOUCHSCREEN: ::std::os::raw::c_uint = 4098; -pub const AINPUT_SOURCE_MOUSE: ::std::os::raw::c_uint = 8194; -pub const AINPUT_SOURCE_STYLUS: ::std::os::raw::c_uint = 16386; -pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: ::std::os::raw::c_uint = 49154; -pub const AINPUT_SOURCE_TRACKBALL: ::std::os::raw::c_uint = 65540; -pub const AINPUT_SOURCE_MOUSE_RELATIVE: ::std::os::raw::c_uint = 131076; -pub const AINPUT_SOURCE_TOUCHPAD: ::std::os::raw::c_uint = 1048584; -pub const AINPUT_SOURCE_TOUCH_NAVIGATION: ::std::os::raw::c_uint = 2097152; -pub const AINPUT_SOURCE_JOYSTICK: ::std::os::raw::c_uint = 16777232; -pub const AINPUT_SOURCE_HDMI: ::std::os::raw::c_uint = 33554433; -pub const AINPUT_SOURCE_SENSOR: ::std::os::raw::c_uint = 67108864; -pub const AINPUT_SOURCE_ROTARY_ENCODER: ::std::os::raw::c_uint = 4194304; -pub const AINPUT_SOURCE_ANY: ::std::os::raw::c_uint = 4294967040; -pub type _bindgen_ty_27 = ::std::os::raw::c_uint; -pub const AINPUT_KEYBOARD_TYPE_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: ::std::os::raw::c_uint = 1; -pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: ::std::os::raw::c_uint = 2; +pub const AINPUT_SOURCE_CLASS_MASK: _bindgen_ty_28 = 255; +pub const AINPUT_SOURCE_CLASS_NONE: _bindgen_ty_28 = 0; +pub const AINPUT_SOURCE_CLASS_BUTTON: _bindgen_ty_28 = 1; +pub const AINPUT_SOURCE_CLASS_POINTER: _bindgen_ty_28 = 2; +pub const AINPUT_SOURCE_CLASS_NAVIGATION: _bindgen_ty_28 = 4; +pub const AINPUT_SOURCE_CLASS_POSITION: _bindgen_ty_28 = 8; +pub const AINPUT_SOURCE_CLASS_JOYSTICK: _bindgen_ty_28 = 16; pub type _bindgen_ty_28 = ::std::os::raw::c_uint; -pub const AINPUT_MOTION_RANGE_X: ::std::os::raw::c_uint = 0; -pub const AINPUT_MOTION_RANGE_Y: ::std::os::raw::c_uint = 1; -pub const AINPUT_MOTION_RANGE_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AINPUT_MOTION_RANGE_SIZE: ::std::os::raw::c_uint = 3; -pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AINPUT_MOTION_RANGE_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AINPUT_MOTION_RANGE_ORIENTATION: ::std::os::raw::c_uint = 8; +pub const AINPUT_SOURCE_UNKNOWN: _bindgen_ty_29 = 0; +pub const AINPUT_SOURCE_KEYBOARD: _bindgen_ty_29 = 257; +pub const AINPUT_SOURCE_DPAD: _bindgen_ty_29 = 513; +pub const AINPUT_SOURCE_GAMEPAD: _bindgen_ty_29 = 1025; +pub const AINPUT_SOURCE_TOUCHSCREEN: _bindgen_ty_29 = 4098; +pub const AINPUT_SOURCE_MOUSE: _bindgen_ty_29 = 8194; +pub const AINPUT_SOURCE_STYLUS: _bindgen_ty_29 = 16386; +pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: _bindgen_ty_29 = 49154; +pub const AINPUT_SOURCE_TRACKBALL: _bindgen_ty_29 = 65540; +pub const AINPUT_SOURCE_MOUSE_RELATIVE: _bindgen_ty_29 = 131076; +pub const AINPUT_SOURCE_TOUCHPAD: _bindgen_ty_29 = 1048584; +pub const AINPUT_SOURCE_TOUCH_NAVIGATION: _bindgen_ty_29 = 2097152; +pub const AINPUT_SOURCE_JOYSTICK: _bindgen_ty_29 = 16777232; +pub const AINPUT_SOURCE_HDMI: _bindgen_ty_29 = 33554433; +pub const AINPUT_SOURCE_SENSOR: _bindgen_ty_29 = 67108864; +pub const AINPUT_SOURCE_ROTARY_ENCODER: _bindgen_ty_29 = 4194304; +pub const AINPUT_SOURCE_ANY: _bindgen_ty_29 = 4294967040; pub type _bindgen_ty_29 = ::std::os::raw::c_uint; +pub const AINPUT_KEYBOARD_TYPE_NONE: _bindgen_ty_30 = 0; +pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: _bindgen_ty_30 = 1; +pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: _bindgen_ty_30 = 2; +pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const AINPUT_MOTION_RANGE_X: _bindgen_ty_31 = 0; +pub const AINPUT_MOTION_RANGE_Y: _bindgen_ty_31 = 1; +pub const AINPUT_MOTION_RANGE_PRESSURE: _bindgen_ty_31 = 2; +pub const AINPUT_MOTION_RANGE_SIZE: _bindgen_ty_31 = 3; +pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: _bindgen_ty_31 = 4; +pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: _bindgen_ty_31 = 5; +pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: _bindgen_ty_31 = 6; +pub const AINPUT_MOTION_RANGE_TOOL_MINOR: _bindgen_ty_31 = 7; +pub const AINPUT_MOTION_RANGE_ORIENTATION: _bindgen_ty_31 = 8; +pub type _bindgen_ty_31 = ::std::os::raw::c_uint; extern "C" { pub fn AInputEvent_getType(event: *const AInputEvent) -> i32; } @@ -4730,7 +4626,7 @@ extern "C" { tag: *const ::std::os::raw::c_char, fmt: *const ::std::os::raw::c_char, ... - ); + ) -> !; } impl log_id { pub const LOG_ID_MIN: log_id = log_id(0); @@ -4799,6 +4695,9 @@ pub struct __android_log_message { } #[test] fn bindgen_test_layout___android_log_message() { + const UNINIT: ::std::mem::MaybeUninit<__android_log_message> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__android_log_message>(), 48usize, @@ -4810,9 +4709,7 @@ fn bindgen_test_layout___android_log_message() { concat!("Alignment of ", stringify!(__android_log_message)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__android_log_message>())).struct_size as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).struct_size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4822,7 +4719,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).buffer_id as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).buffer_id) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4832,7 +4729,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4842,7 +4739,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4852,7 +4749,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).file as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -4862,7 +4759,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).line as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -4872,7 +4769,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).message as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -4905,7 +4802,7 @@ extern "C" { pub fn __android_log_call_aborter(abort_message: *const ::std::os::raw::c_char); } extern "C" { - pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char); + pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char) -> !; } extern "C" { pub fn __android_log_is_loggable( @@ -4942,6 +4839,8 @@ pub struct flock { } #[test] fn bindgen_test_layout_flock() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -4953,7 +4852,7 @@ fn bindgen_test_layout_flock() { concat!("Alignment of ", stringify!(flock)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4963,7 +4862,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -4973,7 +4872,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4983,7 +4882,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4993,7 +4892,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5014,6 +4913,8 @@ pub struct flock64 { } #[test] fn bindgen_test_layout_flock64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5025,7 +4926,7 @@ fn bindgen_test_layout_flock64() { concat!("Alignment of ", stringify!(flock64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5035,7 +4936,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5045,7 +4946,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5055,7 +4956,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5065,7 +4966,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5083,6 +4984,8 @@ pub struct f_owner_ex { } #[test] fn bindgen_test_layout_f_owner_ex() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5094,7 +4997,7 @@ fn bindgen_test_layout_f_owner_ex() { concat!("Alignment of ", stringify!(f_owner_ex)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5104,7 +5007,7 @@ fn bindgen_test_layout_f_owner_ex() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5122,6 +5025,8 @@ pub struct iovec { } #[test] fn bindgen_test_layout_iovec() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5133,7 +5038,7 @@ fn bindgen_test_layout_iovec() { concat!("Alignment of ", stringify!(iovec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_base) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5143,7 +5048,7 @@ fn bindgen_test_layout_iovec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5154,10 +5059,10 @@ fn bindgen_test_layout_iovec() { ); } pub type sa_family_t = ::std::os::raw::c_ushort; -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const SHUT_RD: _bindgen_ty_32 = 0; +pub const SHUT_WR: _bindgen_ty_32 = 1; +pub const SHUT_RDWR: _bindgen_ty_32 = 2; +pub type _bindgen_ty_32 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr { @@ -5166,6 +5071,8 @@ pub struct sockaddr { } #[test] fn bindgen_test_layout_sockaddr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5177,7 +5084,7 @@ fn bindgen_test_layout_sockaddr() { concat!("Alignment of ", stringify!(sockaddr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5187,7 +5094,7 @@ fn bindgen_test_layout_sockaddr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5216,6 +5123,9 @@ pub struct sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sockaddr_storage__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::(), 128usize, @@ -5233,10 +5143,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ss_family - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5246,10 +5153,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5261,6 +5165,9 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -5272,9 +5179,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { concat!("Alignment of ", stringify!(sockaddr_storage__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__align as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5305,6 +5210,8 @@ pub struct linger { } #[test] fn bindgen_test_layout_linger() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5316,7 +5223,7 @@ fn bindgen_test_layout_linger() { concat!("Alignment of ", stringify!(linger)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_onoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_onoff) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5326,7 +5233,7 @@ fn bindgen_test_layout_linger() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_linger as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_linger) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5349,6 +5256,8 @@ pub struct msghdr { } #[test] fn bindgen_test_layout_msghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -5360,7 +5269,7 @@ fn bindgen_test_layout_msghdr() { concat!("Alignment of ", stringify!(msghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5370,7 +5279,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_namelen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_namelen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5380,7 +5289,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iov as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iov) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5390,7 +5299,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iovlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iovlen) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5400,7 +5309,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_control as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_control) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -5410,7 +5319,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_controllen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_controllen) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -5420,7 +5329,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_flags) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -5438,6 +5347,8 @@ pub struct mmsghdr { } #[test] fn bindgen_test_layout_mmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -5449,7 +5360,7 @@ fn bindgen_test_layout_mmsghdr() { concat!("Alignment of ", stringify!(mmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5459,7 +5370,7 @@ fn bindgen_test_layout_mmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_len) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -5478,6 +5389,8 @@ pub struct cmsghdr { } #[test] fn bindgen_test_layout_cmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5489,7 +5402,7 @@ fn bindgen_test_layout_cmsghdr() { concat!("Alignment of ", stringify!(cmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5499,7 +5412,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_level as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_level) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5509,7 +5422,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_type) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5531,6 +5444,8 @@ pub struct ucred { } #[test] fn bindgen_test_layout_ucred() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5542,7 +5457,7 @@ fn bindgen_test_layout_ucred() { concat!("Alignment of ", stringify!(ucred)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5552,7 +5467,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5562,7 +5477,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gid) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5738,6 +5653,8 @@ pub struct hostent { } #[test] fn bindgen_test_layout_hostent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5749,7 +5666,7 @@ fn bindgen_test_layout_hostent() { concat!("Alignment of ", stringify!(hostent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5759,7 +5676,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5769,7 +5686,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addrtype) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5779,7 +5696,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_length) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5789,7 +5706,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addr_list as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addr_list) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5809,6 +5726,8 @@ pub struct netent { } #[test] fn bindgen_test_layout_netent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -5820,7 +5739,7 @@ fn bindgen_test_layout_netent() { concat!("Alignment of ", stringify!(netent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5830,7 +5749,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5840,7 +5759,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_addrtype) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5850,7 +5769,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_net as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_net) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5870,6 +5789,8 @@ pub struct servent { } #[test] fn bindgen_test_layout_servent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5881,7 +5802,7 @@ fn bindgen_test_layout_servent() { concat!("Alignment of ", stringify!(servent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5891,7 +5812,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5901,7 +5822,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_port as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_port) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5911,7 +5832,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_proto) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5930,6 +5851,8 @@ pub struct protoent { } #[test] fn bindgen_test_layout_protoent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -5941,7 +5864,7 @@ fn bindgen_test_layout_protoent() { concat!("Alignment of ", stringify!(protoent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5951,7 +5874,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5961,7 +5884,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_proto) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5985,6 +5908,8 @@ pub struct addrinfo { } #[test] fn bindgen_test_layout_addrinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -5996,7 +5921,7 @@ fn bindgen_test_layout_addrinfo() { concat!("Alignment of ", stringify!(addrinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6006,7 +5931,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_family) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6016,7 +5941,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_socktype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_socktype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6026,7 +5951,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_protocol as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_protocol) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6036,7 +5961,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addrlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addrlen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6046,7 +5971,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_canonname as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_canonname) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6056,7 +5981,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addr) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6066,7 +5991,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_next as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_next) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6681,6 +6606,8 @@ pub struct mallinfo { } #[test] fn bindgen_test_layout_mallinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -6692,7 +6619,7 @@ fn bindgen_test_layout_mallinfo() { concat!("Alignment of ", stringify!(mallinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6702,7 +6629,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6712,7 +6639,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6722,7 +6649,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6732,7 +6659,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6742,7 +6669,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6752,7 +6679,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -6762,7 +6689,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -6772,7 +6699,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -6782,7 +6709,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -6811,6 +6738,8 @@ pub struct mallinfo2 { } #[test] fn bindgen_test_layout_mallinfo2() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -6822,7 +6751,7 @@ fn bindgen_test_layout_mallinfo2() { concat!("Alignment of ", stringify!(mallinfo2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6832,7 +6761,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6842,7 +6771,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6852,7 +6781,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6862,7 +6791,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6872,7 +6801,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6882,7 +6811,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -6892,7 +6821,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -6902,7 +6831,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -6912,7 +6841,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -6990,13 +6919,13 @@ pub struct __locale_t { } pub type locale_t = *mut __locale_t; extern "C" { - pub fn abort(); + pub fn abort() -> !; } extern "C" { - pub fn exit(__status: ::std::os::raw::c_int); + pub fn exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { - pub fn _Exit(__status: ::std::os::raw::c_int); + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn atexit(__fn: ::std::option::Option) -> ::std::os::raw::c_int; @@ -7007,7 +6936,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub fn quick_exit(__status: ::std::os::raw::c_int); + pub fn quick_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; @@ -7264,6 +7193,8 @@ pub struct div_t { } #[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, @@ -7275,7 +7206,7 @@ fn bindgen_test_layout_div_t() { concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7285,7 +7216,7 @@ fn bindgen_test_layout_div_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7306,6 +7237,8 @@ pub struct ldiv_t { } #[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, @@ -7317,7 +7250,7 @@ fn bindgen_test_layout_ldiv_t() { concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7327,7 +7260,7 @@ fn bindgen_test_layout_ldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7351,6 +7284,8 @@ pub struct lldiv_t { } #[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, @@ -7362,7 +7297,7 @@ fn bindgen_test_layout_lldiv_t() { concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7372,7 +7307,7 @@ fn bindgen_test_layout_lldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7640,6 +7575,8 @@ pub struct ANativeWindow_Buffer { } #[test] fn bindgen_test_layout_ANativeWindow_Buffer() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -7651,7 +7588,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { concat!("Alignment of ", stringify!(ANativeWindow_Buffer)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7661,7 +7598,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7671,7 +7608,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7681,7 +7618,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7691,7 +7628,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bits) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7701,7 +7638,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7808,6 +7745,8 @@ pub struct ANativeActivity { } #[test] fn bindgen_test_layout_ANativeActivity() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -7819,7 +7758,7 @@ fn bindgen_test_layout_ANativeActivity() { concat!("Alignment of ", stringify!(ANativeActivity)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).callbacks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).callbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7829,7 +7768,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vm) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7839,7 +7778,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).env) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7849,7 +7788,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).clazz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).clazz) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7859,9 +7798,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).internalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).internalDataPath) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -7871,9 +7808,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).externalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).externalDataPath) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -7883,7 +7818,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sdkVersion as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sdkVersion) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -7893,7 +7828,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).instance as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).instance) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -7903,7 +7838,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).assetManager as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).assetManager) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -7913,7 +7848,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obbPath as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obbPath) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -7967,6 +7902,9 @@ pub struct ANativeActivityCallbacks { } #[test] fn bindgen_test_layout_ANativeActivityCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -7978,9 +7916,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { concat!("Alignment of ", stringify!(ANativeActivityCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onStart as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onStart) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7990,9 +7926,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onResume as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onResume) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8002,10 +7936,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onSaveInstanceState as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onSaveInstanceState) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -8015,9 +7946,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onPause as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPause) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -8027,7 +7956,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).onStop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).onStop) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -8037,9 +7966,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDestroy as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDestroy) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -8049,10 +7976,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onWindowFocusChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onWindowFocusChanged) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -8062,10 +7986,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowCreated) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -8075,10 +7996,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowResized as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowResized) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -8088,10 +8006,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowRedrawNeeded - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowRedrawNeeded) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -8101,10 +8016,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowDestroyed) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -8114,10 +8026,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueCreated) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -8127,10 +8036,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueDestroyed) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -8140,10 +8046,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onContentRectChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onContentRectChanged) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -8153,10 +8056,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onConfigurationChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onConfigurationChanged) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -8166,9 +8066,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onLowMemory as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onLowMemory) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -8205,15 +8103,15 @@ extern "C" { removeFlags: u32, ); } -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_31 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: _bindgen_ty_33 = 1; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: _bindgen_ty_33 = 2; +pub type _bindgen_ty_33 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_showSoftInput(activity: *mut ANativeActivity, flags: u32); } -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_32 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: _bindgen_ty_34 = 1; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: _bindgen_ty_34 = 2; +pub type _bindgen_ty_34 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_hideSoftInput(activity: *mut ANativeActivity, flags: u32); } @@ -8724,10 +8622,10 @@ impl ResultCode { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ResultCode(pub ::std::os::raw::c_uint); -pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: ::std::os::raw::c_uint = 128; -pub type _bindgen_ty_33 = ::std::os::raw::c_uint; -pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: ::std::os::raw::c_uint = 32; -pub type _bindgen_ty_34 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: _bindgen_ty_35 = 128; +pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: _bindgen_ty_36 = 32; +pub type _bindgen_ty_36 = ::std::os::raw::c_uint; impl DurationCode { pub const ANEURALNETWORKS_DURATION_ON_HARDWARE: DurationCode = DurationCode(0); } @@ -8787,6 +8685,9 @@ pub struct ANeuralNetworksSymmPerChannelQuantParams { } #[test] fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -8804,10 +8705,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).channelDim - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).channelDim) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8817,10 +8715,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scaleCount - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scaleCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8830,10 +8725,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scales as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scales) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8859,6 +8751,9 @@ pub struct ANeuralNetworksOperandType { } #[test] fn bindgen_test_layout_ANeuralNetworksOperandType() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -8870,9 +8765,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { concat!("Alignment of ", stringify!(ANeuralNetworksOperandType)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8882,10 +8775,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensionCount as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensionCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8895,9 +8785,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensions as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensions) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8907,9 +8795,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scale as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scale) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -8919,9 +8805,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).zeroPoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).zeroPoint) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -9372,8 +9256,8 @@ extern "C" { pub struct AObbInfo { _unused: [u8; 0], } -pub const AOBBINFO_OVERLAY: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const AOBBINFO_OVERLAY: _bindgen_ty_37 = 1; +pub type _bindgen_ty_37 = ::std::os::raw::c_uint; extern "C" { pub fn AObbScanner_getObbInfo(filename: *const ::std::os::raw::c_char) -> *mut AObbInfo; } @@ -9389,13 +9273,13 @@ extern "C" { extern "C" { pub fn AObbInfo_getFlags(obbInfo: *mut AObbInfo) -> i32; } -pub const PERMISSION_MANAGER_PERMISSION_GRANTED: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_PERMISSION_DENIED: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_36 = ::std::os::raw::c_int; -pub const PERMISSION_MANAGER_STATUS_OK: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: ::std::os::raw::c_int = -1; -pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: ::std::os::raw::c_int = -2; -pub type _bindgen_ty_37 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_PERMISSION_GRANTED: _bindgen_ty_38 = 0; +pub const PERMISSION_MANAGER_PERMISSION_DENIED: _bindgen_ty_38 = -1; +pub type _bindgen_ty_38 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_STATUS_OK: _bindgen_ty_39 = 0; +pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: _bindgen_ty_39 = -1; +pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: _bindgen_ty_39 = -2; +pub type _bindgen_ty_39 = ::std::os::raw::c_int; extern "C" { pub fn APermissionManager_checkPermission( permission: *const ::std::os::raw::c_char, @@ -9939,70 +9823,70 @@ extern "C" { extern "C" { pub fn yn(__n: ::std::os::raw::c_int, __x: f64) -> f64; } -pub const ASENSOR_TYPE_INVALID: ::std::os::raw::c_int = -1; -pub const ASENSOR_TYPE_ACCELEROMETER: ::std::os::raw::c_int = 1; -pub const ASENSOR_TYPE_MAGNETIC_FIELD: ::std::os::raw::c_int = 2; -pub const ASENSOR_TYPE_GYROSCOPE: ::std::os::raw::c_int = 4; -pub const ASENSOR_TYPE_LIGHT: ::std::os::raw::c_int = 5; -pub const ASENSOR_TYPE_PRESSURE: ::std::os::raw::c_int = 6; -pub const ASENSOR_TYPE_PROXIMITY: ::std::os::raw::c_int = 8; -pub const ASENSOR_TYPE_GRAVITY: ::std::os::raw::c_int = 9; -pub const ASENSOR_TYPE_LINEAR_ACCELERATION: ::std::os::raw::c_int = 10; -pub const ASENSOR_TYPE_ROTATION_VECTOR: ::std::os::raw::c_int = 11; -pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: ::std::os::raw::c_int = 12; -pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: ::std::os::raw::c_int = 13; -pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: ::std::os::raw::c_int = 14; -pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: ::std::os::raw::c_int = 15; -pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: ::std::os::raw::c_int = 16; -pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: ::std::os::raw::c_int = 17; -pub const ASENSOR_TYPE_STEP_DETECTOR: ::std::os::raw::c_int = 18; -pub const ASENSOR_TYPE_STEP_COUNTER: ::std::os::raw::c_int = 19; -pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: ::std::os::raw::c_int = 20; -pub const ASENSOR_TYPE_HEART_RATE: ::std::os::raw::c_int = 21; -pub const ASENSOR_TYPE_POSE_6DOF: ::std::os::raw::c_int = 28; -pub const ASENSOR_TYPE_STATIONARY_DETECT: ::std::os::raw::c_int = 29; -pub const ASENSOR_TYPE_MOTION_DETECT: ::std::os::raw::c_int = 30; -pub const ASENSOR_TYPE_HEART_BEAT: ::std::os::raw::c_int = 31; -pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: ::std::os::raw::c_int = 32; -pub const ASENSOR_TYPE_ADDITIONAL_INFO: ::std::os::raw::c_int = 33; -pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: ::std::os::raw::c_int = 34; -pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: ::std::os::raw::c_int = 35; -pub const ASENSOR_TYPE_HINGE_ANGLE: ::std::os::raw::c_int = 36; -pub const ASENSOR_TYPE_HEAD_TRACKER: ::std::os::raw::c_int = 37; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: ::std::os::raw::c_int = 38; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: ::std::os::raw::c_int = 39; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 40; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 41; -pub const ASENSOR_TYPE_HEADING: ::std::os::raw::c_int = 42; -pub type _bindgen_ty_38 = ::std::os::raw::c_int; -pub const ASENSOR_STATUS_NO_CONTACT: ::std::os::raw::c_int = -1; -pub const ASENSOR_STATUS_UNRELIABLE: ::std::os::raw::c_int = 0; -pub const ASENSOR_STATUS_ACCURACY_LOW: ::std::os::raw::c_int = 1; -pub const ASENSOR_STATUS_ACCURACY_MEDIUM: ::std::os::raw::c_int = 2; -pub const ASENSOR_STATUS_ACCURACY_HIGH: ::std::os::raw::c_int = 3; -pub type _bindgen_ty_39 = ::std::os::raw::c_int; -pub const AREPORTING_MODE_INVALID: ::std::os::raw::c_int = -1; -pub const AREPORTING_MODE_CONTINUOUS: ::std::os::raw::c_int = 0; -pub const AREPORTING_MODE_ON_CHANGE: ::std::os::raw::c_int = 1; -pub const AREPORTING_MODE_ONE_SHOT: ::std::os::raw::c_int = 2; -pub const AREPORTING_MODE_SPECIAL_TRIGGER: ::std::os::raw::c_int = 3; +pub const ASENSOR_TYPE_INVALID: _bindgen_ty_40 = -1; +pub const ASENSOR_TYPE_ACCELEROMETER: _bindgen_ty_40 = 1; +pub const ASENSOR_TYPE_MAGNETIC_FIELD: _bindgen_ty_40 = 2; +pub const ASENSOR_TYPE_GYROSCOPE: _bindgen_ty_40 = 4; +pub const ASENSOR_TYPE_LIGHT: _bindgen_ty_40 = 5; +pub const ASENSOR_TYPE_PRESSURE: _bindgen_ty_40 = 6; +pub const ASENSOR_TYPE_PROXIMITY: _bindgen_ty_40 = 8; +pub const ASENSOR_TYPE_GRAVITY: _bindgen_ty_40 = 9; +pub const ASENSOR_TYPE_LINEAR_ACCELERATION: _bindgen_ty_40 = 10; +pub const ASENSOR_TYPE_ROTATION_VECTOR: _bindgen_ty_40 = 11; +pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: _bindgen_ty_40 = 12; +pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: _bindgen_ty_40 = 13; +pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: _bindgen_ty_40 = 14; +pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: _bindgen_ty_40 = 15; +pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: _bindgen_ty_40 = 16; +pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: _bindgen_ty_40 = 17; +pub const ASENSOR_TYPE_STEP_DETECTOR: _bindgen_ty_40 = 18; +pub const ASENSOR_TYPE_STEP_COUNTER: _bindgen_ty_40 = 19; +pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: _bindgen_ty_40 = 20; +pub const ASENSOR_TYPE_HEART_RATE: _bindgen_ty_40 = 21; +pub const ASENSOR_TYPE_POSE_6DOF: _bindgen_ty_40 = 28; +pub const ASENSOR_TYPE_STATIONARY_DETECT: _bindgen_ty_40 = 29; +pub const ASENSOR_TYPE_MOTION_DETECT: _bindgen_ty_40 = 30; +pub const ASENSOR_TYPE_HEART_BEAT: _bindgen_ty_40 = 31; +pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: _bindgen_ty_40 = 32; +pub const ASENSOR_TYPE_ADDITIONAL_INFO: _bindgen_ty_40 = 33; +pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: _bindgen_ty_40 = 34; +pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: _bindgen_ty_40 = 35; +pub const ASENSOR_TYPE_HINGE_ANGLE: _bindgen_ty_40 = 36; +pub const ASENSOR_TYPE_HEAD_TRACKER: _bindgen_ty_40 = 37; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: _bindgen_ty_40 = 38; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: _bindgen_ty_40 = 39; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 40; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 41; +pub const ASENSOR_TYPE_HEADING: _bindgen_ty_40 = 42; pub type _bindgen_ty_40 = ::std::os::raw::c_int; -pub const ASENSOR_DIRECT_RATE_STOP: ::std::os::raw::c_uint = 0; -pub const ASENSOR_DIRECT_RATE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_RATE_FAST: ::std::os::raw::c_uint = 2; -pub const ASENSOR_DIRECT_RATE_VERY_FAST: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_41 = ::std::os::raw::c_uint; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_42 = ::std::os::raw::c_uint; -pub const ASENSOR_ADDITIONAL_INFO_BEGIN: ::std::os::raw::c_uint = 0; -pub const ASENSOR_ADDITIONAL_INFO_END: ::std::os::raw::c_uint = 1; -pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: ::std::os::raw::c_uint = 65536; -pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: ::std::os::raw::c_uint = 65537; -pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: ::std::os::raw::c_uint = 65538; -pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: ::std::os::raw::c_uint = 65539; -pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: ::std::os::raw::c_uint = 65540; +pub const ASENSOR_STATUS_NO_CONTACT: _bindgen_ty_41 = -1; +pub const ASENSOR_STATUS_UNRELIABLE: _bindgen_ty_41 = 0; +pub const ASENSOR_STATUS_ACCURACY_LOW: _bindgen_ty_41 = 1; +pub const ASENSOR_STATUS_ACCURACY_MEDIUM: _bindgen_ty_41 = 2; +pub const ASENSOR_STATUS_ACCURACY_HIGH: _bindgen_ty_41 = 3; +pub type _bindgen_ty_41 = ::std::os::raw::c_int; +pub const AREPORTING_MODE_INVALID: _bindgen_ty_42 = -1; +pub const AREPORTING_MODE_CONTINUOUS: _bindgen_ty_42 = 0; +pub const AREPORTING_MODE_ON_CHANGE: _bindgen_ty_42 = 1; +pub const AREPORTING_MODE_ONE_SHOT: _bindgen_ty_42 = 2; +pub const AREPORTING_MODE_SPECIAL_TRIGGER: _bindgen_ty_42 = 3; +pub type _bindgen_ty_42 = ::std::os::raw::c_int; +pub const ASENSOR_DIRECT_RATE_STOP: _bindgen_ty_43 = 0; +pub const ASENSOR_DIRECT_RATE_NORMAL: _bindgen_ty_43 = 1; +pub const ASENSOR_DIRECT_RATE_FAST: _bindgen_ty_43 = 2; +pub const ASENSOR_DIRECT_RATE_VERY_FAST: _bindgen_ty_43 = 3; pub type _bindgen_ty_43 = ::std::os::raw::c_uint; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: _bindgen_ty_44 = 1; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: _bindgen_ty_44 = 2; +pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const ASENSOR_ADDITIONAL_INFO_BEGIN: _bindgen_ty_45 = 0; +pub const ASENSOR_ADDITIONAL_INFO_END: _bindgen_ty_45 = 1; +pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: _bindgen_ty_45 = 65536; +pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: _bindgen_ty_45 = 65537; +pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: _bindgen_ty_45 = 65538; +pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: _bindgen_ty_45 = 65539; +pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: _bindgen_ty_45 = 65540; +pub type _bindgen_ty_45 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct ASensorVector { @@ -10026,6 +9910,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -10043,10 +9930,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10056,10 +9940,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10069,10 +9950,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10091,6 +9969,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -10108,10 +9989,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).azimuth - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).azimuth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10121,10 +9999,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pitch as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pitch) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10134,10 +10009,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).roll as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).roll) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10149,6 +10021,9 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10160,7 +10035,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorVector__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10172,6 +10047,8 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorVector() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -10183,7 +10060,7 @@ fn bindgen_test_layout_ASensorVector() { concat!("Alignment of ", stringify!(ASensorVector)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10193,7 +10070,7 @@ fn bindgen_test_layout_ASensorVector() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 13usize, concat!( "Offset of field: ", @@ -10211,6 +10088,8 @@ pub struct AMetaDataEvent { } #[test] fn bindgen_test_layout_AMetaDataEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10222,7 +10101,7 @@ fn bindgen_test_layout_AMetaDataEvent() { concat!("Alignment of ", stringify!(AMetaDataEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).what as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).what) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10232,7 +10111,7 @@ fn bindgen_test_layout_AMetaDataEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10263,6 +10142,9 @@ pub struct AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__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::(), 12usize, @@ -10280,10 +10162,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10293,10 +10172,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10306,10 +10182,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10321,6 +10194,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10335,10 +10211,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10363,6 +10236,9 @@ pub struct AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10380,10 +10256,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10393,10 +10266,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10406,10 +10276,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10421,6 +10288,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10435,9 +10305,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10468,6 +10336,8 @@ pub struct AHeartRateEvent { } #[test] fn bindgen_test_layout_AHeartRateEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10479,7 +10349,7 @@ fn bindgen_test_layout_AHeartRateEvent() { concat!("Alignment of ", stringify!(AHeartRateEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bpm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bpm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10489,7 +10359,7 @@ fn bindgen_test_layout_AHeartRateEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10507,6 +10377,8 @@ pub struct ADynamicSensorEvent { } #[test] fn bindgen_test_layout_ADynamicSensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10518,7 +10390,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { concat!("Alignment of ", stringify!(ADynamicSensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).connected as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).connected) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10528,7 +10400,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).handle as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).handle) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10553,6 +10425,9 @@ pub union AAdditionalInfoEvent__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -10567,10 +10442,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_int32 as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_int32) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10580,10 +10452,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_float as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10595,6 +10464,8 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -10606,7 +10477,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { concat!("Alignment of ", stringify!(AAdditionalInfoEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10616,7 +10487,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).serial as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10639,6 +10510,8 @@ pub struct AHeadTrackerEvent { } #[test] fn bindgen_test_layout_AHeadTrackerEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -10650,7 +10523,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { concat!("Alignment of ", stringify!(AHeadTrackerEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rx) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10660,7 +10533,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ry as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ry) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10670,7 +10543,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rz) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10680,7 +10553,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vx) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10690,7 +10563,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -10700,7 +10573,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vz) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -10710,9 +10583,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).discontinuity_count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).discontinuity_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -10743,6 +10614,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__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::(), 12usize, @@ -10760,10 +10634,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10773,10 +10644,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10786,10 +10654,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10801,6 +10666,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10815,10 +10683,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).calib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).calib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10843,6 +10708,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10860,10 +10728,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10873,10 +10738,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10886,10 +10748,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10901,6 +10760,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10915,10 +10777,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10963,6 +10822,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10980,10 +10843,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10993,10 +10853,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11006,10 +10863,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11021,6 +10875,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11038,10 +10895,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11066,6 +10920,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11082,11 +10940,8 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t stringify!(ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_bias as *const _ as usize - }, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11096,10 +10951,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11109,10 +10961,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11124,6 +10973,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11141,10 +10993,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11169,6 +11018,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11186,10 +11039,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11199,10 +11049,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11212,10 +11059,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11227,6 +11071,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11244,10 +11091,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11281,6 +11125,8 @@ pub struct AHeadingEvent { } #[test] fn bindgen_test_layout_AHeadingEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -11292,7 +11138,7 @@ fn bindgen_test_layout_AHeadingEvent() { concat!("Alignment of ", stringify!(AHeadingEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).heading as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11302,7 +11148,7 @@ fn bindgen_test_layout_AHeadingEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).accuracy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).accuracy) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11357,6 +11203,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11374,10 +11223,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11387,10 +11233,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).vector as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).vector) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11400,10 +11243,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).acceleration - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11413,10 +11253,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).gyro as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11426,10 +11263,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).magnetic - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11439,10 +11273,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).temperature - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).temperature) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11452,10 +11283,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).distance - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).distance) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11465,10 +11293,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).light as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).light) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11478,10 +11303,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pressure - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pressure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11491,10 +11313,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).relative_humidity - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).relative_humidity) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11504,10 +11323,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_acceleration as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11517,10 +11333,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalibrated_gyro - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11530,10 +11343,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_magnetic as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11543,10 +11353,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).meta_data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).meta_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11556,10 +11363,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heart_rate - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heart_rate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11569,10 +11373,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dynamic_sensor_meta - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dynamic_sensor_meta) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11582,10 +11383,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).additional_info - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).additional_info) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11595,10 +11393,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).head_tracker - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).head_tracker) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11608,10 +11403,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).limited_axes_imu - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).limited_axes_imu) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11622,8 +11414,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .limited_axes_imu_uncalibrated as *const _ as usize + ::std::ptr::addr_of!((*ptr).limited_axes_imu_uncalibrated) as usize - ptr as usize }, 0usize, concat!( @@ -11634,10 +11425,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heading as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11655,6 +11443,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11672,10 +11463,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11685,10 +11473,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).step_counter - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).step_counter) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11700,6 +11485,9 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -11711,7 +11499,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorEvent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u64_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11723,6 +11511,8 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 104usize, @@ -11734,7 +11524,7 @@ fn bindgen_test_layout_ASensorEvent() { concat!("Alignment of ", stringify!(ASensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11744,7 +11534,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11754,7 +11544,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11764,7 +11554,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -11774,7 +11564,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -11784,7 +11574,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -11794,7 +11584,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", @@ -12012,15 +11802,15 @@ extern "C" { pub struct AStorageManager { _unused: [u8; 0], } -pub const AOBB_STATE_MOUNTED: ::std::os::raw::c_uint = 1; -pub const AOBB_STATE_UNMOUNTED: ::std::os::raw::c_uint = 2; -pub const AOBB_STATE_ERROR_INTERNAL: ::std::os::raw::c_uint = 20; -pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: ::std::os::raw::c_uint = 21; -pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: ::std::os::raw::c_uint = 22; -pub const AOBB_STATE_ERROR_NOT_MOUNTED: ::std::os::raw::c_uint = 23; -pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: ::std::os::raw::c_uint = 24; -pub const AOBB_STATE_ERROR_PERMISSION_DENIED: ::std::os::raw::c_uint = 25; -pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const AOBB_STATE_MOUNTED: _bindgen_ty_46 = 1; +pub const AOBB_STATE_UNMOUNTED: _bindgen_ty_46 = 2; +pub const AOBB_STATE_ERROR_INTERNAL: _bindgen_ty_46 = 20; +pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: _bindgen_ty_46 = 21; +pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: _bindgen_ty_46 = 22; +pub const AOBB_STATE_ERROR_NOT_MOUNTED: _bindgen_ty_46 = 23; +pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: _bindgen_ty_46 = 24; +pub const AOBB_STATE_ERROR_PERMISSION_DENIED: _bindgen_ty_46 = 25; +pub type _bindgen_ty_46 = ::std::os::raw::c_uint; extern "C" { pub fn AStorageManager_new() -> *mut AStorageManager; } @@ -12110,6 +11900,8 @@ pub struct sync_merge_data { } #[test] fn bindgen_test_layout_sync_merge_data() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -12121,7 +11913,7 @@ fn bindgen_test_layout_sync_merge_data() { concat!("Alignment of ", stringify!(sync_merge_data)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12131,7 +11923,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fd2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fd2) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12141,7 +11933,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fence) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12151,7 +11943,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12161,7 +11953,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12182,6 +11974,8 @@ pub struct sync_fence_info { } #[test] fn bindgen_test_layout_sync_fence_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -12193,7 +11987,7 @@ fn bindgen_test_layout_sync_fence_info() { concat!("Alignment of ", stringify!(sync_fence_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obj_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obj_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12203,7 +11997,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).driver_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).driver_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12213,7 +12007,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -12223,7 +12017,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -12233,7 +12027,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp_ns as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp_ns) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -12255,6 +12049,8 @@ pub struct sync_file_info { } #[test] fn bindgen_test_layout_sync_file_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -12266,7 +12062,7 @@ fn bindgen_test_layout_sync_file_info() { concat!("Alignment of ", stringify!(sync_file_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12276,7 +12072,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12286,7 +12082,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12296,7 +12092,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).num_fences as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).num_fences) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12306,7 +12102,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12316,7 +12112,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sync_fence_info as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sync_fence_info) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -12326,14 +12122,226 @@ fn bindgen_test_layout_sync_file_info() { ) ); } +pub const SYNC_IOC_MAGIC: u8 = 62u8; +extern "C" { + pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; +} +extern "C" { + pub fn sync_file_info(fd: i32) -> *mut sync_file_info; +} +extern "C" { + pub fn sync_file_info_free(info: *mut sync_file_info); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASystemFontIterator { + _unused: [u8; 0], +} +pub const PAGE_SIZE: u32 = 4096; +pub const PAGE_MASK: i32 = -4096; +pub const NGREG: u32 = 34; +pub const FD_SETSIZE: u32 = 1024; +pub const CLOCKS_PER_SEC: u32 = 1000000; +pub const TIME_UTC: u32 = 1; +pub const AAUDIO_UNSPECIFIED: u32 = 0; +pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; +pub const PROPERTY_VENDOR: &[u8; 7] = b"vendor\0"; +pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; +pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; +pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; +pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +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_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const FPSIMD_MAGIC: u32 = 1179680769; +pub const ESR_MAGIC: u32 = 1163088385; +pub const EXTRA_MAGIC: u32 = 1163416577; +pub const SVE_MAGIC: u32 = 1398162689; +pub const __SVE_VQ_BYTES: u32 = 16; +pub const __SVE_VQ_MIN: u32 = 1; +pub const __SVE_VQ_MAX: u32 = 512; +pub const __SVE_VL_MIN: u32 = 16; +pub const __SVE_VL_MAX: u32 = 8192; +pub const __SVE_NUM_ZREGS: u32 = 32; +pub const __SVE_NUM_PREGS: u32 = 16; +pub const __SVE_ZREGS_OFFSET: u32 = 0; +pub const SVE_VQ_BYTES: u32 = 16; +pub const SVE_VQ_MIN: u32 = 1; +pub const SVE_VQ_MAX: u32 = 512; +pub const SVE_VL_MIN: u32 = 16; +pub const SVE_VL_MAX: u32 = 8192; +pub const SVE_NUM_ZREGS: u32 = 32; +pub const SVE_NUM_PREGS: u32 = 16; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 5120; +pub const SIGSTKSZ: u32 = 16384; +pub const _KERNEL__NSIG: u32 = 64; +pub const _NSIG_BPW: u32 = 64; +pub const _NSIG_WORDS: u32 = 1; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const __SIGRTMIN: u32 = 32; +pub const __SIGRTMAX: u32 = 64; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const NSIGSEGV: u32 = 9; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; extern "C" { - pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; + pub fn ASystemFontIterator_open() -> *mut ASystemFontIterator; } extern "C" { - pub fn sync_file_info(fd: i32) -> *mut sync_file_info; + pub fn ASystemFontIterator_close(iterator: *mut ASystemFontIterator); } extern "C" { - pub fn sync_file_info_free(info: *mut sync_file_info); + pub fn ASystemFontIterator_next(iterator: *mut ASystemFontIterator) -> *mut AFont; } extern "C" { pub fn ATrace_isEnabled() -> bool; @@ -12353,30 +12361,30 @@ extern "C" { extern "C" { pub fn ATrace_setCounter(counterName: *const ::std::os::raw::c_char, counterValue: i64); } -pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: ::std::os::raw::c_uint = 1; -pub const AWINDOW_FLAG_DIM_BEHIND: ::std::os::raw::c_uint = 2; -pub const AWINDOW_FLAG_BLUR_BEHIND: ::std::os::raw::c_uint = 4; -pub const AWINDOW_FLAG_NOT_FOCUSABLE: ::std::os::raw::c_uint = 8; -pub const AWINDOW_FLAG_NOT_TOUCHABLE: ::std::os::raw::c_uint = 16; -pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: ::std::os::raw::c_uint = 32; -pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: ::std::os::raw::c_uint = 64; -pub const AWINDOW_FLAG_KEEP_SCREEN_ON: ::std::os::raw::c_uint = 128; -pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: ::std::os::raw::c_uint = 256; -pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: ::std::os::raw::c_uint = 512; -pub const AWINDOW_FLAG_FULLSCREEN: ::std::os::raw::c_uint = 1024; -pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: ::std::os::raw::c_uint = 2048; -pub const AWINDOW_FLAG_DITHER: ::std::os::raw::c_uint = 4096; -pub const AWINDOW_FLAG_SECURE: ::std::os::raw::c_uint = 8192; -pub const AWINDOW_FLAG_SCALED: ::std::os::raw::c_uint = 16384; -pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: ::std::os::raw::c_uint = 32768; -pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: ::std::os::raw::c_uint = 65536; -pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: ::std::os::raw::c_uint = 131072; -pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: ::std::os::raw::c_uint = 262144; -pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: ::std::os::raw::c_uint = 524288; -pub const AWINDOW_FLAG_SHOW_WALLPAPER: ::std::os::raw::c_uint = 1048576; -pub const AWINDOW_FLAG_TURN_SCREEN_ON: ::std::os::raw::c_uint = 2097152; -pub const AWINDOW_FLAG_DISMISS_KEYGUARD: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_45 = ::std::os::raw::c_uint; +pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: _bindgen_ty_47 = 1; +pub const AWINDOW_FLAG_DIM_BEHIND: _bindgen_ty_47 = 2; +pub const AWINDOW_FLAG_BLUR_BEHIND: _bindgen_ty_47 = 4; +pub const AWINDOW_FLAG_NOT_FOCUSABLE: _bindgen_ty_47 = 8; +pub const AWINDOW_FLAG_NOT_TOUCHABLE: _bindgen_ty_47 = 16; +pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: _bindgen_ty_47 = 32; +pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: _bindgen_ty_47 = 64; +pub const AWINDOW_FLAG_KEEP_SCREEN_ON: _bindgen_ty_47 = 128; +pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: _bindgen_ty_47 = 256; +pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: _bindgen_ty_47 = 512; +pub const AWINDOW_FLAG_FULLSCREEN: _bindgen_ty_47 = 1024; +pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: _bindgen_ty_47 = 2048; +pub const AWINDOW_FLAG_DITHER: _bindgen_ty_47 = 4096; +pub const AWINDOW_FLAG_SECURE: _bindgen_ty_47 = 8192; +pub const AWINDOW_FLAG_SCALED: _bindgen_ty_47 = 16384; +pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: _bindgen_ty_47 = 32768; +pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: _bindgen_ty_47 = 65536; +pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: _bindgen_ty_47 = 131072; +pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: _bindgen_ty_47 = 262144; +pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: _bindgen_ty_47 = 524288; +pub const AWINDOW_FLAG_SHOW_WALLPAPER: _bindgen_ty_47 = 1048576; +pub const AWINDOW_FLAG_TURN_SCREEN_ON: _bindgen_ty_47 = 2097152; +pub const AWINDOW_FLAG_DISMISS_KEYGUARD: _bindgen_ty_47 = 4194304; +pub type _bindgen_ty_47 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { @@ -12385,6 +12393,8 @@ pub struct __kernel_timespec { } #[test] fn bindgen_test_layout___kernel_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_timespec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_timespec>(), 16usize, @@ -12396,7 +12406,7 @@ fn bindgen_test_layout___kernel_timespec() { concat!("Alignment of ", stringify!(__kernel_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12406,7 +12416,7 @@ fn bindgen_test_layout___kernel_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12424,6 +12434,8 @@ pub struct __kernel_itimerspec { } #[test] fn bindgen_test_layout___kernel_itimerspec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_itimerspec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_itimerspec>(), 32usize, @@ -12435,7 +12447,7 @@ fn bindgen_test_layout___kernel_itimerspec() { concat!("Alignment of ", stringify!(__kernel_itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12445,7 +12457,7 @@ fn bindgen_test_layout___kernel_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12463,6 +12475,9 @@ pub struct __kernel_old_timespec { } #[test] fn bindgen_test_layout___kernel_old_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_old_timespec> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_old_timespec>(), 16usize, @@ -12474,7 +12489,7 @@ fn bindgen_test_layout___kernel_old_timespec() { concat!("Alignment of ", stringify!(__kernel_old_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12484,7 +12499,7 @@ fn bindgen_test_layout___kernel_old_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12502,6 +12517,9 @@ pub struct __kernel_sock_timeval { } #[test] fn bindgen_test_layout___kernel_sock_timeval() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sock_timeval> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sock_timeval>(), 16usize, @@ -12513,7 +12531,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { concat!("Alignment of ", stringify!(__kernel_sock_timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12523,7 +12541,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12541,6 +12559,8 @@ pub struct timespec { } #[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, @@ -12552,7 +12572,7 @@ fn bindgen_test_layout_timespec() { concat!("Alignment of ", stringify!(timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12562,7 +12582,7 @@ fn bindgen_test_layout_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12580,6 +12600,8 @@ pub struct timeval { } #[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, @@ -12591,7 +12613,7 @@ fn bindgen_test_layout_timeval() { concat!("Alignment of ", stringify!(timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12601,7 +12623,7 @@ fn bindgen_test_layout_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12619,6 +12641,8 @@ pub struct itimerspec { } #[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, @@ -12630,7 +12654,7 @@ fn bindgen_test_layout_itimerspec() { concat!("Alignment of ", stringify!(itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12640,7 +12664,7 @@ fn bindgen_test_layout_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12658,6 +12682,8 @@ pub struct itimerval { } #[test] fn bindgen_test_layout_itimerval() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -12669,7 +12695,7 @@ fn bindgen_test_layout_itimerval() { concat!("Alignment of ", stringify!(itimerval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12679,7 +12705,7 @@ fn bindgen_test_layout_itimerval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12697,6 +12723,8 @@ pub struct timezone { } #[test] fn bindgen_test_layout_timezone() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -12708,7 +12736,7 @@ fn bindgen_test_layout_timezone() { concat!("Alignment of ", stringify!(timezone)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_minuteswest as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_minuteswest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12718,7 +12746,7 @@ fn bindgen_test_layout_timezone() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_dsttime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_dsttime) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12742,6 +12770,8 @@ pub struct sigcontext { } #[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::(), 4384usize, @@ -12753,7 +12783,7 @@ fn bindgen_test_layout_sigcontext() { concat!("Alignment of ", stringify!(sigcontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fault_address as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fault_address) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12763,7 +12793,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).regs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12773,7 +12803,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", @@ -12783,7 +12813,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pc as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pc) as usize - ptr as usize }, 264usize, concat!( "Offset of field: ", @@ -12793,7 +12823,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pstate) as usize - ptr as usize }, 272usize, concat!( "Offset of field: ", @@ -12803,7 +12833,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved) as usize - ptr as usize }, 288usize, concat!( "Offset of field: ", @@ -12821,6 +12851,8 @@ pub struct _aarch64_ctx { } #[test] fn bindgen_test_layout__aarch64_ctx() { + const UNINIT: ::std::mem::MaybeUninit<_aarch64_ctx> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_aarch64_ctx>(), 8usize, @@ -12832,7 +12864,7 @@ fn bindgen_test_layout__aarch64_ctx() { concat!("Alignment of ", stringify!(_aarch64_ctx)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_aarch64_ctx>())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12842,7 +12874,7 @@ fn bindgen_test_layout__aarch64_ctx() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_aarch64_ctx>())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12863,6 +12895,8 @@ pub struct fpsimd_context { } #[test] fn bindgen_test_layout_fpsimd_context() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 528usize, @@ -12874,7 +12908,7 @@ fn bindgen_test_layout_fpsimd_context() { concat!("Alignment of ", stringify!(fpsimd_context)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).head as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).head) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12884,7 +12918,7 @@ fn bindgen_test_layout_fpsimd_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpsr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12894,7 +12928,7 @@ fn bindgen_test_layout_fpsimd_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpcr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpcr) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -12904,7 +12938,7 @@ fn bindgen_test_layout_fpsimd_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vregs) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12922,6 +12956,8 @@ pub struct esr_context { } #[test] fn bindgen_test_layout_esr_context() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -12933,7 +12969,7 @@ fn bindgen_test_layout_esr_context() { concat!("Alignment of ", stringify!(esr_context)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).head as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).head) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12943,7 +12979,7 @@ fn bindgen_test_layout_esr_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12963,6 +12999,8 @@ pub struct extra_context { } #[test] fn bindgen_test_layout_extra_context() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -12974,7 +13012,7 @@ fn bindgen_test_layout_extra_context() { concat!("Alignment of ", stringify!(extra_context)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).head as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).head) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12984,7 +13022,7 @@ fn bindgen_test_layout_extra_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).datap as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datap) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12994,7 +13032,7 @@ fn bindgen_test_layout_extra_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13004,7 +13042,7 @@ fn bindgen_test_layout_extra_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -13023,6 +13061,8 @@ pub struct sve_context { } #[test] fn bindgen_test_layout_sve_context() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -13034,7 +13074,7 @@ fn bindgen_test_layout_sve_context() { concat!("Alignment of ", stringify!(sve_context)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).head as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).head) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13044,7 +13084,7 @@ fn bindgen_test_layout_sve_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vl as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13054,7 +13094,7 @@ fn bindgen_test_layout_sve_context() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -13064,6 +13104,8 @@ fn bindgen_test_layout_sve_context() { ) ); } +pub const _NSIG: u32 = 65; +pub const NSIG: u32 = 65; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sigset_t { @@ -13071,6 +13113,8 @@ pub struct sigset_t { } #[test] fn bindgen_test_layout_sigset_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -13082,7 +13126,7 @@ fn bindgen_test_layout_sigset_t() { concat!("Alignment of ", stringify!(sigset_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sig as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sig) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13107,6 +13151,8 @@ pub struct __kernel_sigaction { } #[test] fn bindgen_test_layout___kernel_sigaction() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction>(), 32usize, @@ -13118,7 +13164,7 @@ fn bindgen_test_layout___kernel_sigaction() { concat!("Alignment of ", stringify!(__kernel_sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_handler as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13128,7 +13174,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13138,7 +13184,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13148,7 +13194,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13163,10 +13209,12 @@ fn bindgen_test_layout___kernel_sigaction() { pub struct sigaltstack { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_flags: ::std::os::raw::c_int, - pub ss_size: size_t, + pub ss_size: __kernel_size_t, } #[test] fn bindgen_test_layout_sigaltstack() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -13178,7 +13226,7 @@ fn bindgen_test_layout_sigaltstack() { concat!("Alignment of ", stringify!(sigaltstack)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13188,7 +13236,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13198,7 +13246,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13217,6 +13265,8 @@ pub union sigval { } #[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, @@ -13228,7 +13278,7 @@ fn bindgen_test_layout_sigval() { concat!("Alignment of ", stringify!(sigval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13238,7 +13288,7 @@ fn bindgen_test_layout_sigval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13268,6 +13318,9 @@ pub struct __sifields__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_1>(), 8usize, @@ -13279,7 +13332,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13289,7 +13342,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13309,6 +13362,9 @@ pub struct __sifields__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_2>(), 24usize, @@ -13320,7 +13376,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13330,9 +13386,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._overrun as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._overrun) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13342,9 +13396,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13354,9 +13406,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sys_private as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sys_private) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13375,6 +13425,9 @@ pub struct __sifields__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_3>(), 16usize, @@ -13386,7 +13439,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_3)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13396,7 +13449,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13406,9 +13459,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13429,6 +13480,9 @@ pub struct __sifields__bindgen_ty_4 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_4() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_4> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_4>(), 32usize, @@ -13440,7 +13494,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_4)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13450,7 +13504,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13460,9 +13514,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._status as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._status) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13472,7 +13524,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._utime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._utime) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13482,7 +13534,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._stime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._stime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13516,6 +13568,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(), 24usize, @@ -13533,10 +13588,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>())) - ._dummy_bnd as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13546,10 +13598,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._lower - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._lower) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13559,10 +13608,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._upper - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._upper) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13580,6 +13626,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>(), 12usize, @@ -13597,10 +13646,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>())) - ._dummy_pkey as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13610,10 +13656,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>()))._pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._pkey) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13631,6 +13674,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>(), 16usize, @@ -13648,10 +13694,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13661,10 +13704,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._type - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._type) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13676,6 +13716,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1>(), 24usize, @@ -13693,10 +13736,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._trapno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._trapno) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13706,10 +13746,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_lsb as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_lsb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13719,10 +13756,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_bnd as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13732,10 +13766,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13745,10 +13776,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._perf as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._perf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13760,6 +13788,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5>(), 32usize, @@ -13771,7 +13802,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_5)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_5>()))._addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13789,6 +13820,9 @@ pub struct __sifields__bindgen_ty_6 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_6() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_6> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_6>(), 16usize, @@ -13800,7 +13834,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_6)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._band as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._band) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13810,7 +13844,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fd) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13829,6 +13863,9 @@ pub struct __sifields__bindgen_ty_7 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_7() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_7> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_7>(), 16usize, @@ -13840,9 +13877,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_7)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._call_addr as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._call_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13852,9 +13887,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._syscall as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._syscall) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13864,7 +13897,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._arch as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._arch) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13876,6 +13909,8 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { } #[test] fn bindgen_test_layout___sifields() { + const UNINIT: ::std::mem::MaybeUninit<__sifields> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields>(), 32usize, @@ -13887,7 +13922,7 @@ fn bindgen_test_layout___sifields() { concat!("Alignment of ", stringify!(__sifields)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._kill as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._kill) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13897,7 +13932,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._timer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._timer) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13907,7 +13942,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._rt as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._rt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13917,7 +13952,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigchld as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigchld) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13927,7 +13962,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigfault as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigfault) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13937,7 +13972,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigpoll as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigpoll) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13947,7 +13982,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigsys as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13978,6 +14013,9 @@ pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_siginfo__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::(), 48usize, @@ -13992,10 +14030,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_signo as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14005,10 +14040,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_errno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14018,10 +14050,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_code as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14031,10 +14060,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sifields as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sifields) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14046,6 +14072,9 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_siginfo__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -14057,7 +14086,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1() { concat!("Alignment of ", stringify!(siginfo__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._si_pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._si_pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14104,6 +14133,9 @@ pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { } #[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, @@ -14121,10 +14153,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._function as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._function) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14134,10 +14163,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._attribute as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._attribute) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14149,6 +14175,9 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { } #[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, @@ -14160,7 +14189,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14170,7 +14199,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14180,9 +14209,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sigev_thread as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_thread) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14194,6 +14221,8 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { } #[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, @@ -14205,7 +14234,7 @@ fn bindgen_test_layout_sigevent() { concat!("Alignment of ", stringify!(sigevent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14215,7 +14244,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14225,7 +14254,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14235,7 +14264,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._sigev_un as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_un) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14272,6 +14301,9 @@ pub union sigaction__bindgen_ty_1 { } #[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, @@ -14283,9 +14315,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14295,9 +14325,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14309,6 +14337,8 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { } #[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::(), 32usize, @@ -14320,7 +14350,7 @@ fn bindgen_test_layout_sigaction() { concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14330,7 +14360,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14340,7 +14370,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14372,6 +14402,9 @@ pub union sigaction64__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sigaction64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -14383,9 +14416,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14395,9 +14426,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14409,6 +14438,8 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sigaction64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -14420,7 +14451,7 @@ fn bindgen_test_layout_sigaction64() { concat!("Alignment of ", stringify!(sigaction64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14430,7 +14461,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14440,7 +14471,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14460,6 +14491,8 @@ pub struct user_regs_struct { } #[test] fn bindgen_test_layout_user_regs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 272usize, @@ -14471,7 +14504,7 @@ fn bindgen_test_layout_user_regs_struct() { concat!("Alignment of ", stringify!(user_regs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).regs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14481,7 +14514,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 248usize, concat!( "Offset of field: ", @@ -14491,7 +14524,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pc as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pc) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", @@ -14501,7 +14534,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pstate) as usize - ptr as usize }, 264usize, concat!( "Offset of field: ", @@ -14521,6 +14554,8 @@ pub struct user_fpsimd_struct { } #[test] fn bindgen_test_layout_user_fpsimd_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 528usize, @@ -14532,7 +14567,7 @@ fn bindgen_test_layout_user_fpsimd_struct() { concat!("Alignment of ", stringify!(user_fpsimd_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14542,7 +14577,7 @@ fn bindgen_test_layout_user_fpsimd_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpsr) as usize - ptr as usize }, 512usize, concat!( "Offset of field: ", @@ -14552,7 +14587,7 @@ fn bindgen_test_layout_user_fpsimd_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpcr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpcr) as usize - ptr as usize }, 516usize, concat!( "Offset of field: ", @@ -14586,6 +14621,9 @@ pub union ucontext__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ucontext__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -14597,9 +14635,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { concat!("Alignment of ", stringify!(ucontext__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14609,9 +14645,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask64 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14623,6 +14657,8 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4560usize, @@ -14634,7 +14670,7 @@ fn bindgen_test_layout_ucontext() { concat!("Alignment of ", stringify!(ucontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14644,7 +14680,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_link as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14654,7 +14690,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14664,7 +14700,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__padding) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -14674,7 +14710,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_mcontext as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -14908,6 +14944,8 @@ pub struct fd_set { } #[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, @@ -14919,7 +14957,7 @@ fn bindgen_test_layout_fd_set() { concat!("Alignment of ", stringify!(fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15022,6 +15060,8 @@ pub struct tm { } #[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, @@ -15033,7 +15073,7 @@ fn bindgen_test_layout_tm() { concat!("Alignment of ", stringify!(tm)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15043,7 +15083,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_min as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15053,7 +15093,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_hour as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15063,7 +15103,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15073,7 +15113,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mon as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15083,7 +15123,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_year as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -15093,7 +15133,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_wday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15103,7 +15143,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_yday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -15113,7 +15153,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_isdst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -15123,7 +15163,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_gmtoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -15133,7 +15173,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_zone as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -15282,161 +15322,161 @@ extern "C" { __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AAUDIO_DIRECTION_OUTPUT: ::std::os::raw::c_uint = 0; -pub const AAUDIO_DIRECTION_INPUT: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_46 = ::std::os::raw::c_uint; +pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_48 = 0; +pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_48 = 1; +pub type _bindgen_ty_48 = ::std::os::raw::c_uint; pub type aaudio_direction_t = i32; -pub const AAUDIO_FORMAT_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_FORMAT_UNSPECIFIED: ::std::os::raw::c_int = 0; -pub const AAUDIO_FORMAT_PCM_I16: ::std::os::raw::c_int = 1; -pub const AAUDIO_FORMAT_PCM_FLOAT: ::std::os::raw::c_int = 2; -pub const AAUDIO_FORMAT_PCM_I24_PACKED: ::std::os::raw::c_int = 3; -pub const AAUDIO_FORMAT_PCM_I32: ::std::os::raw::c_int = 4; -pub type _bindgen_ty_47 = ::std::os::raw::c_int; +pub const AAUDIO_FORMAT_INVALID: _bindgen_ty_49 = -1; +pub const AAUDIO_FORMAT_UNSPECIFIED: _bindgen_ty_49 = 0; +pub const AAUDIO_FORMAT_PCM_I16: _bindgen_ty_49 = 1; +pub const AAUDIO_FORMAT_PCM_FLOAT: _bindgen_ty_49 = 2; +pub const AAUDIO_FORMAT_PCM_I24_PACKED: _bindgen_ty_49 = 3; +pub const AAUDIO_FORMAT_PCM_I32: _bindgen_ty_49 = 4; +pub type _bindgen_ty_49 = ::std::os::raw::c_int; pub type aaudio_format_t = i32; -pub const AAUDIO_OK: ::std::os::raw::c_int = 0; -pub const AAUDIO_ERROR_BASE: ::std::os::raw::c_int = -900; -pub const AAUDIO_ERROR_DISCONNECTED: ::std::os::raw::c_int = -899; -pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: ::std::os::raw::c_int = -898; -pub const AAUDIO_ERROR_INTERNAL: ::std::os::raw::c_int = -896; -pub const AAUDIO_ERROR_INVALID_STATE: ::std::os::raw::c_int = -895; -pub const AAUDIO_ERROR_INVALID_HANDLE: ::std::os::raw::c_int = -892; -pub const AAUDIO_ERROR_UNIMPLEMENTED: ::std::os::raw::c_int = -890; -pub const AAUDIO_ERROR_UNAVAILABLE: ::std::os::raw::c_int = -889; -pub const AAUDIO_ERROR_NO_FREE_HANDLES: ::std::os::raw::c_int = -888; -pub const AAUDIO_ERROR_NO_MEMORY: ::std::os::raw::c_int = -887; -pub const AAUDIO_ERROR_NULL: ::std::os::raw::c_int = -886; -pub const AAUDIO_ERROR_TIMEOUT: ::std::os::raw::c_int = -885; -pub const AAUDIO_ERROR_WOULD_BLOCK: ::std::os::raw::c_int = -884; -pub const AAUDIO_ERROR_INVALID_FORMAT: ::std::os::raw::c_int = -883; -pub const AAUDIO_ERROR_OUT_OF_RANGE: ::std::os::raw::c_int = -882; -pub const AAUDIO_ERROR_NO_SERVICE: ::std::os::raw::c_int = -881; -pub const AAUDIO_ERROR_INVALID_RATE: ::std::os::raw::c_int = -880; -pub type _bindgen_ty_48 = ::std::os::raw::c_int; +pub const AAUDIO_OK: _bindgen_ty_50 = 0; +pub const AAUDIO_ERROR_BASE: _bindgen_ty_50 = -900; +pub const AAUDIO_ERROR_DISCONNECTED: _bindgen_ty_50 = -899; +pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: _bindgen_ty_50 = -898; +pub const AAUDIO_ERROR_INTERNAL: _bindgen_ty_50 = -896; +pub const AAUDIO_ERROR_INVALID_STATE: _bindgen_ty_50 = -895; +pub const AAUDIO_ERROR_INVALID_HANDLE: _bindgen_ty_50 = -892; +pub const AAUDIO_ERROR_UNIMPLEMENTED: _bindgen_ty_50 = -890; +pub const AAUDIO_ERROR_UNAVAILABLE: _bindgen_ty_50 = -889; +pub const AAUDIO_ERROR_NO_FREE_HANDLES: _bindgen_ty_50 = -888; +pub const AAUDIO_ERROR_NO_MEMORY: _bindgen_ty_50 = -887; +pub const AAUDIO_ERROR_NULL: _bindgen_ty_50 = -886; +pub const AAUDIO_ERROR_TIMEOUT: _bindgen_ty_50 = -885; +pub const AAUDIO_ERROR_WOULD_BLOCK: _bindgen_ty_50 = -884; +pub const AAUDIO_ERROR_INVALID_FORMAT: _bindgen_ty_50 = -883; +pub const AAUDIO_ERROR_OUT_OF_RANGE: _bindgen_ty_50 = -882; +pub const AAUDIO_ERROR_NO_SERVICE: _bindgen_ty_50 = -881; +pub const AAUDIO_ERROR_INVALID_RATE: _bindgen_ty_50 = -880; +pub type _bindgen_ty_50 = ::std::os::raw::c_int; pub type aaudio_result_t = i32; -pub const AAUDIO_STREAM_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 0; -pub const AAUDIO_STREAM_STATE_UNKNOWN: ::std::os::raw::c_uint = 1; -pub const AAUDIO_STREAM_STATE_OPEN: ::std::os::raw::c_uint = 2; -pub const AAUDIO_STREAM_STATE_STARTING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_STREAM_STATE_STARTED: ::std::os::raw::c_uint = 4; -pub const AAUDIO_STREAM_STATE_PAUSING: ::std::os::raw::c_uint = 5; -pub const AAUDIO_STREAM_STATE_PAUSED: ::std::os::raw::c_uint = 6; -pub const AAUDIO_STREAM_STATE_FLUSHING: ::std::os::raw::c_uint = 7; -pub const AAUDIO_STREAM_STATE_FLUSHED: ::std::os::raw::c_uint = 8; -pub const AAUDIO_STREAM_STATE_STOPPING: ::std::os::raw::c_uint = 9; -pub const AAUDIO_STREAM_STATE_STOPPED: ::std::os::raw::c_uint = 10; -pub const AAUDIO_STREAM_STATE_CLOSING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_STREAM_STATE_CLOSED: ::std::os::raw::c_uint = 12; -pub const AAUDIO_STREAM_STATE_DISCONNECTED: ::std::os::raw::c_uint = 13; -pub type _bindgen_ty_49 = ::std::os::raw::c_uint; +pub const AAUDIO_STREAM_STATE_UNINITIALIZED: _bindgen_ty_51 = 0; +pub const AAUDIO_STREAM_STATE_UNKNOWN: _bindgen_ty_51 = 1; +pub const AAUDIO_STREAM_STATE_OPEN: _bindgen_ty_51 = 2; +pub const AAUDIO_STREAM_STATE_STARTING: _bindgen_ty_51 = 3; +pub const AAUDIO_STREAM_STATE_STARTED: _bindgen_ty_51 = 4; +pub const AAUDIO_STREAM_STATE_PAUSING: _bindgen_ty_51 = 5; +pub const AAUDIO_STREAM_STATE_PAUSED: _bindgen_ty_51 = 6; +pub const AAUDIO_STREAM_STATE_FLUSHING: _bindgen_ty_51 = 7; +pub const AAUDIO_STREAM_STATE_FLUSHED: _bindgen_ty_51 = 8; +pub const AAUDIO_STREAM_STATE_STOPPING: _bindgen_ty_51 = 9; +pub const AAUDIO_STREAM_STATE_STOPPED: _bindgen_ty_51 = 10; +pub const AAUDIO_STREAM_STATE_CLOSING: _bindgen_ty_51 = 11; +pub const AAUDIO_STREAM_STATE_CLOSED: _bindgen_ty_51 = 12; +pub const AAUDIO_STREAM_STATE_DISCONNECTED: _bindgen_ty_51 = 13; +pub type _bindgen_ty_51 = ::std::os::raw::c_uint; pub type aaudio_stream_state_t = i32; -pub const AAUDIO_SHARING_MODE_EXCLUSIVE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_SHARING_MODE_SHARED: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_50 = ::std::os::raw::c_uint; +pub const AAUDIO_SHARING_MODE_EXCLUSIVE: _bindgen_ty_52 = 0; +pub const AAUDIO_SHARING_MODE_SHARED: _bindgen_ty_52 = 1; +pub type _bindgen_ty_52 = ::std::os::raw::c_uint; pub type aaudio_sharing_mode_t = i32; -pub const AAUDIO_PERFORMANCE_MODE_NONE: ::std::os::raw::c_uint = 10; -pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: ::std::os::raw::c_uint = 12; -pub type _bindgen_ty_51 = ::std::os::raw::c_uint; +pub const AAUDIO_PERFORMANCE_MODE_NONE: _bindgen_ty_53 = 10; +pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: _bindgen_ty_53 = 11; +pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: _bindgen_ty_53 = 12; +pub type _bindgen_ty_53 = ::std::os::raw::c_uint; pub type aaudio_performance_mode_t = i32; -pub const AAUDIO_USAGE_MEDIA: ::std::os::raw::c_uint = 1; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 2; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_USAGE_ALARM: ::std::os::raw::c_uint = 4; -pub const AAUDIO_USAGE_NOTIFICATION: ::std::os::raw::c_uint = 5; -pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: ::std::os::raw::c_uint = 6; -pub const AAUDIO_USAGE_NOTIFICATION_EVENT: ::std::os::raw::c_uint = 10; -pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: ::std::os::raw::c_uint = 11; -pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: ::std::os::raw::c_uint = 12; -pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: ::std::os::raw::c_uint = 13; -pub const AAUDIO_USAGE_GAME: ::std::os::raw::c_uint = 14; -pub const AAUDIO_USAGE_ASSISTANT: ::std::os::raw::c_uint = 16; -pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: ::std::os::raw::c_uint = 1000; -pub const AAUDIO_SYSTEM_USAGE_SAFETY: ::std::os::raw::c_uint = 1001; -pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: ::std::os::raw::c_uint = 1002; -pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: ::std::os::raw::c_uint = 1003; -pub type _bindgen_ty_52 = ::std::os::raw::c_uint; +pub const AAUDIO_USAGE_MEDIA: _bindgen_ty_54 = 1; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION: _bindgen_ty_54 = 2; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: _bindgen_ty_54 = 3; +pub const AAUDIO_USAGE_ALARM: _bindgen_ty_54 = 4; +pub const AAUDIO_USAGE_NOTIFICATION: _bindgen_ty_54 = 5; +pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: _bindgen_ty_54 = 6; +pub const AAUDIO_USAGE_NOTIFICATION_EVENT: _bindgen_ty_54 = 10; +pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: _bindgen_ty_54 = 11; +pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: _bindgen_ty_54 = 12; +pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: _bindgen_ty_54 = 13; +pub const AAUDIO_USAGE_GAME: _bindgen_ty_54 = 14; +pub const AAUDIO_USAGE_ASSISTANT: _bindgen_ty_54 = 16; +pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: _bindgen_ty_54 = 1000; +pub const AAUDIO_SYSTEM_USAGE_SAFETY: _bindgen_ty_54 = 1001; +pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: _bindgen_ty_54 = 1002; +pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: _bindgen_ty_54 = 1003; +pub type _bindgen_ty_54 = ::std::os::raw::c_uint; pub type aaudio_usage_t = i32; -pub const AAUDIO_CONTENT_TYPE_SPEECH: ::std::os::raw::c_uint = 1; -pub const AAUDIO_CONTENT_TYPE_MUSIC: ::std::os::raw::c_uint = 2; -pub const AAUDIO_CONTENT_TYPE_MOVIE: ::std::os::raw::c_uint = 3; -pub const AAUDIO_CONTENT_TYPE_SONIFICATION: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_53 = ::std::os::raw::c_uint; +pub const AAUDIO_CONTENT_TYPE_SPEECH: _bindgen_ty_55 = 1; +pub const AAUDIO_CONTENT_TYPE_MUSIC: _bindgen_ty_55 = 2; +pub const AAUDIO_CONTENT_TYPE_MOVIE: _bindgen_ty_55 = 3; +pub const AAUDIO_CONTENT_TYPE_SONIFICATION: _bindgen_ty_55 = 4; +pub type _bindgen_ty_55 = ::std::os::raw::c_uint; pub type aaudio_content_type_t = i32; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: ::std::os::raw::c_uint = 1; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_54 = ::std::os::raw::c_uint; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: _bindgen_ty_56 = 1; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: _bindgen_ty_56 = 2; +pub type _bindgen_ty_56 = ::std::os::raw::c_uint; pub type aaudio_spatialization_behavior_t = i32; -pub const AAUDIO_INPUT_PRESET_GENERIC: ::std::os::raw::c_uint = 1; -pub const AAUDIO_INPUT_PRESET_CAMCORDER: ::std::os::raw::c_uint = 5; -pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: ::std::os::raw::c_uint = 6; -pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 7; -pub const AAUDIO_INPUT_PRESET_UNPROCESSED: ::std::os::raw::c_uint = 9; -pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: ::std::os::raw::c_uint = 10; -pub type _bindgen_ty_55 = ::std::os::raw::c_uint; +pub const AAUDIO_INPUT_PRESET_GENERIC: _bindgen_ty_57 = 1; +pub const AAUDIO_INPUT_PRESET_CAMCORDER: _bindgen_ty_57 = 5; +pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: _bindgen_ty_57 = 6; +pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: _bindgen_ty_57 = 7; +pub const AAUDIO_INPUT_PRESET_UNPROCESSED: _bindgen_ty_57 = 9; +pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: _bindgen_ty_57 = 10; +pub type _bindgen_ty_57 = ::std::os::raw::c_uint; pub type aaudio_input_preset_t = i32; -pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: ::std::os::raw::c_uint = 1; -pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: ::std::os::raw::c_uint = 2; -pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_56 = ::std::os::raw::c_uint; +pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: _bindgen_ty_58 = 1; +pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: _bindgen_ty_58 = 2; +pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: _bindgen_ty_58 = 3; +pub type _bindgen_ty_58 = ::std::os::raw::c_uint; pub type aaudio_allowed_capture_policy_t = i32; -pub const AAUDIO_SESSION_ID_NONE: ::std::os::raw::c_int = -1; -pub const AAUDIO_SESSION_ID_ALLOCATE: ::std::os::raw::c_int = 0; -pub type _bindgen_ty_57 = ::std::os::raw::c_int; +pub const AAUDIO_SESSION_ID_NONE: _bindgen_ty_59 = -1; +pub const AAUDIO_SESSION_ID_ALLOCATE: _bindgen_ty_59 = 0; +pub type _bindgen_ty_59 = ::std::os::raw::c_int; pub type aaudio_session_id_t = i32; -pub const AAUDIO_CHANNEL_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_CHANNEL_FRONT_LEFT: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_FRONT_RIGHT: ::std::os::raw::c_int = 2; -pub const AAUDIO_CHANNEL_FRONT_CENTER: ::std::os::raw::c_int = 4; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY: ::std::os::raw::c_int = 8; -pub const AAUDIO_CHANNEL_BACK_LEFT: ::std::os::raw::c_int = 16; -pub const AAUDIO_CHANNEL_BACK_RIGHT: ::std::os::raw::c_int = 32; -pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: ::std::os::raw::c_int = 64; -pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: ::std::os::raw::c_int = 128; -pub const AAUDIO_CHANNEL_BACK_CENTER: ::std::os::raw::c_int = 256; -pub const AAUDIO_CHANNEL_SIDE_LEFT: ::std::os::raw::c_int = 512; -pub const AAUDIO_CHANNEL_SIDE_RIGHT: ::std::os::raw::c_int = 1024; -pub const AAUDIO_CHANNEL_TOP_CENTER: ::std::os::raw::c_int = 2048; -pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: ::std::os::raw::c_int = 4096; -pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: ::std::os::raw::c_int = 8192; -pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: ::std::os::raw::c_int = 16384; -pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: ::std::os::raw::c_int = 32768; -pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: ::std::os::raw::c_int = 65536; -pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: ::std::os::raw::c_int = 131072; -pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: ::std::os::raw::c_int = 262144; -pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: ::std::os::raw::c_int = 524288; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: ::std::os::raw::c_int = 1048576; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: ::std::os::raw::c_int = 2097152; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: ::std::os::raw::c_int = 4194304; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: ::std::os::raw::c_int = 8388608; -pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: ::std::os::raw::c_int = 16777216; -pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: ::std::os::raw::c_int = 33554432; -pub const AAUDIO_CHANNEL_MONO: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_STEREO: ::std::os::raw::c_int = 3; -pub const AAUDIO_CHANNEL_2POINT1: ::std::os::raw::c_int = 11; -pub const AAUDIO_CHANNEL_TRI: ::std::os::raw::c_int = 7; -pub const AAUDIO_CHANNEL_TRI_BACK: ::std::os::raw::c_int = 259; -pub const AAUDIO_CHANNEL_3POINT1: ::std::os::raw::c_int = 15; -pub const AAUDIO_CHANNEL_2POINT0POINT2: ::std::os::raw::c_int = 786435; -pub const AAUDIO_CHANNEL_2POINT1POINT2: ::std::os::raw::c_int = 786443; -pub const AAUDIO_CHANNEL_3POINT0POINT2: ::std::os::raw::c_int = 786439; -pub const AAUDIO_CHANNEL_3POINT1POINT2: ::std::os::raw::c_int = 786447; -pub const AAUDIO_CHANNEL_QUAD: ::std::os::raw::c_int = 51; -pub const AAUDIO_CHANNEL_QUAD_SIDE: ::std::os::raw::c_int = 1539; -pub const AAUDIO_CHANNEL_SURROUND: ::std::os::raw::c_int = 263; -pub const AAUDIO_CHANNEL_PENTA: ::std::os::raw::c_int = 55; -pub const AAUDIO_CHANNEL_5POINT1: ::std::os::raw::c_int = 63; -pub const AAUDIO_CHANNEL_5POINT1_SIDE: ::std::os::raw::c_int = 1551; -pub const AAUDIO_CHANNEL_6POINT1: ::std::os::raw::c_int = 319; -pub const AAUDIO_CHANNEL_7POINT1: ::std::os::raw::c_int = 1599; -pub const AAUDIO_CHANNEL_5POINT1POINT2: ::std::os::raw::c_int = 786495; -pub const AAUDIO_CHANNEL_5POINT1POINT4: ::std::os::raw::c_int = 184383; -pub const AAUDIO_CHANNEL_7POINT1POINT2: ::std::os::raw::c_int = 788031; -pub const AAUDIO_CHANNEL_7POINT1POINT4: ::std::os::raw::c_int = 185919; -pub const AAUDIO_CHANNEL_9POINT1POINT4: ::std::os::raw::c_int = 50517567; -pub const AAUDIO_CHANNEL_9POINT1POINT6: ::std::os::raw::c_int = 51303999; -pub const AAUDIO_CHANNEL_FRONT_BACK: ::std::os::raw::c_int = 260; -pub type _bindgen_ty_58 = ::std::os::raw::c_int; +pub const AAUDIO_CHANNEL_INVALID: _bindgen_ty_60 = -1; +pub const AAUDIO_CHANNEL_FRONT_LEFT: _bindgen_ty_60 = 1; +pub const AAUDIO_CHANNEL_FRONT_RIGHT: _bindgen_ty_60 = 2; +pub const AAUDIO_CHANNEL_FRONT_CENTER: _bindgen_ty_60 = 4; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY: _bindgen_ty_60 = 8; +pub const AAUDIO_CHANNEL_BACK_LEFT: _bindgen_ty_60 = 16; +pub const AAUDIO_CHANNEL_BACK_RIGHT: _bindgen_ty_60 = 32; +pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: _bindgen_ty_60 = 64; +pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: _bindgen_ty_60 = 128; +pub const AAUDIO_CHANNEL_BACK_CENTER: _bindgen_ty_60 = 256; +pub const AAUDIO_CHANNEL_SIDE_LEFT: _bindgen_ty_60 = 512; +pub const AAUDIO_CHANNEL_SIDE_RIGHT: _bindgen_ty_60 = 1024; +pub const AAUDIO_CHANNEL_TOP_CENTER: _bindgen_ty_60 = 2048; +pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: _bindgen_ty_60 = 4096; +pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: _bindgen_ty_60 = 8192; +pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: _bindgen_ty_60 = 16384; +pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: _bindgen_ty_60 = 32768; +pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: _bindgen_ty_60 = 65536; +pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: _bindgen_ty_60 = 131072; +pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: _bindgen_ty_60 = 262144; +pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: _bindgen_ty_60 = 524288; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: _bindgen_ty_60 = 1048576; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: _bindgen_ty_60 = 2097152; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: _bindgen_ty_60 = 4194304; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: _bindgen_ty_60 = 8388608; +pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: _bindgen_ty_60 = 16777216; +pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: _bindgen_ty_60 = 33554432; +pub const AAUDIO_CHANNEL_MONO: _bindgen_ty_60 = 1; +pub const AAUDIO_CHANNEL_STEREO: _bindgen_ty_60 = 3; +pub const AAUDIO_CHANNEL_2POINT1: _bindgen_ty_60 = 11; +pub const AAUDIO_CHANNEL_TRI: _bindgen_ty_60 = 7; +pub const AAUDIO_CHANNEL_TRI_BACK: _bindgen_ty_60 = 259; +pub const AAUDIO_CHANNEL_3POINT1: _bindgen_ty_60 = 15; +pub const AAUDIO_CHANNEL_2POINT0POINT2: _bindgen_ty_60 = 786435; +pub const AAUDIO_CHANNEL_2POINT1POINT2: _bindgen_ty_60 = 786443; +pub const AAUDIO_CHANNEL_3POINT0POINT2: _bindgen_ty_60 = 786439; +pub const AAUDIO_CHANNEL_3POINT1POINT2: _bindgen_ty_60 = 786447; +pub const AAUDIO_CHANNEL_QUAD: _bindgen_ty_60 = 51; +pub const AAUDIO_CHANNEL_QUAD_SIDE: _bindgen_ty_60 = 1539; +pub const AAUDIO_CHANNEL_SURROUND: _bindgen_ty_60 = 263; +pub const AAUDIO_CHANNEL_PENTA: _bindgen_ty_60 = 55; +pub const AAUDIO_CHANNEL_5POINT1: _bindgen_ty_60 = 63; +pub const AAUDIO_CHANNEL_5POINT1_SIDE: _bindgen_ty_60 = 1551; +pub const AAUDIO_CHANNEL_6POINT1: _bindgen_ty_60 = 319; +pub const AAUDIO_CHANNEL_7POINT1: _bindgen_ty_60 = 1599; +pub const AAUDIO_CHANNEL_5POINT1POINT2: _bindgen_ty_60 = 786495; +pub const AAUDIO_CHANNEL_5POINT1POINT4: _bindgen_ty_60 = 184383; +pub const AAUDIO_CHANNEL_7POINT1POINT2: _bindgen_ty_60 = 788031; +pub const AAUDIO_CHANNEL_7POINT1POINT4: _bindgen_ty_60 = 185919; +pub const AAUDIO_CHANNEL_9POINT1POINT4: _bindgen_ty_60 = 50517567; +pub const AAUDIO_CHANNEL_9POINT1POINT6: _bindgen_ty_60 = 51303999; +pub const AAUDIO_CHANNEL_FRONT_BACK: _bindgen_ty_60 = 260; +pub type _bindgen_ty_60 = ::std::os::raw::c_int; pub type aaudio_channel_mask_t = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -15567,9 +15607,9 @@ extern "C" { privacySensitive: bool, ); } -pub const AAUDIO_CALLBACK_RESULT_CONTINUE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_CALLBACK_RESULT_STOP: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_59 = ::std::os::raw::c_uint; +pub const AAUDIO_CALLBACK_RESULT_CONTINUE: _bindgen_ty_61 = 0; +pub const AAUDIO_CALLBACK_RESULT_STOP: _bindgen_ty_61 = 1; +pub type _bindgen_ty_61 = ::std::os::raw::c_uint; pub type aaudio_data_callback_result_t = i32; pub type AAudioStream_dataCallback = ::std::option::Option< unsafe extern "C" fn( @@ -15861,13 +15901,13 @@ pub struct AMidiInputPort { pub struct AMidiOutputPort { _unused: [u8; 0], } -pub const AMIDI_OPCODE_DATA: ::std::os::raw::c_uint = 1; -pub const AMIDI_OPCODE_FLUSH: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_60 = ::std::os::raw::c_uint; -pub const AMIDI_DEVICE_TYPE_USB: ::std::os::raw::c_uint = 1; -pub const AMIDI_DEVICE_TYPE_VIRTUAL: ::std::os::raw::c_uint = 2; -pub const AMIDI_DEVICE_TYPE_BLUETOOTH: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_61 = ::std::os::raw::c_uint; +pub const AMIDI_OPCODE_DATA: _bindgen_ty_62 = 1; +pub const AMIDI_OPCODE_FLUSH: _bindgen_ty_62 = 2; +pub type _bindgen_ty_62 = ::std::os::raw::c_uint; +pub const AMIDI_DEVICE_TYPE_USB: _bindgen_ty_63 = 1; +pub const AMIDI_DEVICE_TYPE_VIRTUAL: _bindgen_ty_63 = 2; +pub const AMIDI_DEVICE_TYPE_BLUETOOTH: _bindgen_ty_63 = 3; +pub type _bindgen_ty_63 = ::std::os::raw::c_uint; impl AMidiDevice_Protocol { pub const AMIDI_DEVICE_PROTOCOL_UMP_USE_MIDI_CI: AMidiDevice_Protocol = AMidiDevice_Protocol(0); } @@ -19048,14 +19088,14 @@ pub use self::acamera_metadata_enum_acamera_automotive_lens_facing as acamera_me pub struct ACameraMetadata { _unused: [u8; 0], } -pub const ACAMERA_TYPE_BYTE: ::std::os::raw::c_uint = 0; -pub const ACAMERA_TYPE_INT32: ::std::os::raw::c_uint = 1; -pub const ACAMERA_TYPE_FLOAT: ::std::os::raw::c_uint = 2; -pub const ACAMERA_TYPE_INT64: ::std::os::raw::c_uint = 3; -pub const ACAMERA_TYPE_DOUBLE: ::std::os::raw::c_uint = 4; -pub const ACAMERA_TYPE_RATIONAL: ::std::os::raw::c_uint = 5; -pub const ACAMERA_NUM_TYPES: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_62 = ::std::os::raw::c_uint; +pub const ACAMERA_TYPE_BYTE: _bindgen_ty_64 = 0; +pub const ACAMERA_TYPE_INT32: _bindgen_ty_64 = 1; +pub const ACAMERA_TYPE_FLOAT: _bindgen_ty_64 = 2; +pub const ACAMERA_TYPE_INT64: _bindgen_ty_64 = 3; +pub const ACAMERA_TYPE_DOUBLE: _bindgen_ty_64 = 4; +pub const ACAMERA_TYPE_RATIONAL: _bindgen_ty_64 = 5; +pub const ACAMERA_NUM_TYPES: _bindgen_ty_64 = 6; +pub type _bindgen_ty_64 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraMetadata_rational { @@ -19064,6 +19104,9 @@ pub struct ACameraMetadata_rational { } #[test] fn bindgen_test_layout_ACameraMetadata_rational() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -19075,9 +19118,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { concat!("Alignment of ", stringify!(ACameraMetadata_rational)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).numerator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).numerator) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19087,9 +19128,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).denominator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).denominator) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19119,6 +19158,9 @@ pub union ACameraMetadata_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -19133,9 +19175,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19145,10 +19185,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19158,9 +19195,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19170,10 +19205,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19183,9 +19215,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19195,9 +19225,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19209,6 +19237,9 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -19220,7 +19251,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19230,7 +19261,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19240,7 +19271,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19250,7 +19281,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -19280,6 +19311,9 @@ pub union ACameraMetadata_const_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -19297,10 +19331,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19310,10 +19341,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19323,10 +19351,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19336,10 +19361,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19349,10 +19371,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19362,10 +19381,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19377,6 +19393,9 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -19388,7 +19407,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_const_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19398,9 +19417,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19410,9 +19427,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19422,9 +19437,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -19664,6 +19677,9 @@ pub struct ACameraCaptureSession_stateCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -19681,10 +19697,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19694,10 +19707,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onClosed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onClosed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19707,10 +19717,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onReady as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onReady) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -19720,10 +19727,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onActive as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onActive) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -19733,9 +19737,9 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); } -pub const CAPTURE_FAILURE_REASON_FLUSHED: ::std::os::raw::c_uint = 0; -pub const CAPTURE_FAILURE_REASON_ERROR: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const CAPTURE_FAILURE_REASON_FLUSHED: _bindgen_ty_65 = 0; +pub const CAPTURE_FAILURE_REASON_ERROR: _bindgen_ty_65 = 1; +pub type _bindgen_ty_65 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraCaptureFailure { @@ -19746,6 +19750,9 @@ pub struct ACameraCaptureFailure { } #[test] fn bindgen_test_layout_ACameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -19757,9 +19764,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { concat!("Alignment of ", stringify!(ACameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).frameNumber as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).frameNumber) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19769,7 +19774,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reason as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19779,9 +19784,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sequenceId as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sequenceId) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -19791,9 +19794,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wasImageCaptured as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).wasImageCaptured) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -19865,6 +19866,9 @@ pub struct ACameraCaptureSession_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -19882,10 +19886,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19895,10 +19896,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19908,10 +19906,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -19921,10 +19916,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -19934,10 +19926,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -19947,10 +19936,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -19960,10 +19946,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -19973,10 +19956,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -19986,8 +19966,8 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); } -pub const CAPTURE_SEQUENCE_ID_NONE: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_64 = ::std::os::raw::c_int; +pub const CAPTURE_SEQUENCE_ID_NONE: _bindgen_ty_66 = -1; +pub type _bindgen_ty_66 = ::std::os::raw::c_int; extern "C" { pub fn ACameraCaptureSession_close(session: *mut ACameraCaptureSession); } @@ -20060,6 +20040,9 @@ pub struct ALogicalCameraCaptureFailure { } #[test] fn bindgen_test_layout_ALogicalCameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20071,10 +20054,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { concat!("Alignment of ", stringify!(ALogicalCameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).captureFailure as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).captureFailure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20084,10 +20064,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).physicalCameraId as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).physicalCameraId) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20119,6 +20096,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -20136,10 +20116,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20149,10 +20126,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20162,10 +20136,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20176,8 +20147,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( @@ -20189,8 +20159,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 32usize, concat!( @@ -20201,10 +20170,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -20214,10 +20180,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -20227,10 +20190,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -20281,6 +20241,9 @@ pub struct ACameraCaptureSession_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -20298,10 +20261,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20311,10 +20271,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20324,10 +20281,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20337,10 +20291,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20350,10 +20301,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -20363,10 +20311,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -20376,10 +20321,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -20389,10 +20331,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -20416,6 +20355,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -20433,10 +20375,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20446,10 +20385,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20459,10 +20395,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20473,8 +20406,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( @@ -20486,8 +20418,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 32usize, concat!( @@ -20498,10 +20429,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -20511,10 +20439,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -20524,10 +20449,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -20581,6 +20503,8 @@ pub struct ACameraIdList { } #[test] fn bindgen_test_layout_ACameraIdList() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -20592,7 +20516,7 @@ fn bindgen_test_layout_ACameraIdList() { concat!("Alignment of ", stringify!(ACameraIdList)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numCameras as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numCameras) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20602,7 +20526,7 @@ fn bindgen_test_layout_ACameraIdList() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cameraIds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cameraIds) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20612,12 +20536,12 @@ fn bindgen_test_layout_ACameraIdList() { ) ); } -pub const ERROR_CAMERA_IN_USE: ::std::os::raw::c_uint = 1; -pub const ERROR_MAX_CAMERAS_IN_USE: ::std::os::raw::c_uint = 2; -pub const ERROR_CAMERA_DISABLED: ::std::os::raw::c_uint = 3; -pub const ERROR_CAMERA_DEVICE: ::std::os::raw::c_uint = 4; -pub const ERROR_CAMERA_SERVICE: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_65 = ::std::os::raw::c_uint; +pub const ERROR_CAMERA_IN_USE: _bindgen_ty_67 = 1; +pub const ERROR_MAX_CAMERAS_IN_USE: _bindgen_ty_67 = 2; +pub const ERROR_CAMERA_DISABLED: _bindgen_ty_67 = 3; +pub const ERROR_CAMERA_DEVICE: _bindgen_ty_67 = 4; +pub const ERROR_CAMERA_SERVICE: _bindgen_ty_67 = 5; +pub type _bindgen_ty_67 = ::std::os::raw::c_uint; pub type ACameraDevice_StateCallback = ::std::option::Option< unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, device: *mut ACameraDevice), >; @@ -20637,6 +20561,9 @@ pub struct ACameraDevice_StateCallbacks { } #[test] fn bindgen_test_layout_ACameraDevice_StateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -20648,9 +20575,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { concat!("Alignment of ", stringify!(ACameraDevice_StateCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20660,10 +20585,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDisconnected as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDisconnected) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20673,9 +20595,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onError as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onError) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20855,6 +20775,9 @@ pub struct ACameraManager_AvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_AvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -20869,10 +20792,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20882,10 +20802,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20895,10 +20812,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraUnavailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraUnavailable) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20949,6 +20863,9 @@ pub struct ACameraManager_ExtendedAvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -20966,10 +20883,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .availabilityCallbacks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).availabilityCallbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20980,8 +20894,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onCameraAccessPrioritiesChanged as *const _ as usize + ::std::ptr::addr_of!((*ptr).onCameraAccessPrioritiesChanged) as usize - ptr as usize }, 24usize, concat!( @@ -20992,10 +20905,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraAvailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraAvailable) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -21005,10 +20915,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraUnavailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraUnavailable) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -21018,10 +20925,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).reserved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -21113,6 +21017,8 @@ pub struct AImageCropRect { } #[test] fn bindgen_test_layout_AImageCropRect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21124,7 +21030,7 @@ fn bindgen_test_layout_AImageCropRect() { concat!("Alignment of ", stringify!(AImageCropRect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21134,7 +21040,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21144,7 +21050,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21154,7 +21060,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21277,6 +21183,9 @@ pub struct AImageReader_ImageListener { } #[test] fn bindgen_test_layout_AImageReader_ImageListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21288,9 +21197,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { concat!("Alignment of ", stringify!(AImageReader_ImageListener)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21300,10 +21207,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onImageAvailable as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onImageAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21358,6 +21262,9 @@ pub struct AImageReader_BufferRemovedListener { } #[test] fn bindgen_test_layout_AImageReader_BufferRemovedListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21372,10 +21279,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21385,10 +21289,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onBufferRemoved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onBufferRemoved) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22024,6 +21925,9 @@ pub struct AMediaCodecBufferInfo { } #[test] fn bindgen_test_layout_AMediaCodecBufferInfo() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22035,7 +21939,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { concat!("Alignment of ", stringify!(AMediaCodecBufferInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22045,7 +21949,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22055,10 +21959,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).presentationTimeUs as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).presentationTimeUs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22068,7 +21969,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22083,14 +21984,14 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { pub struct AMediaCodecCryptoInfo { _unused: [u8; 0], } -pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: ::std::os::raw::c_int = 2; -pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: ::std::os::raw::c_int = 4; -pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: ::std::os::raw::c_int = 8; -pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: ::std::os::raw::c_int = 1; -pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: ::std::os::raw::c_int = -3; -pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: ::std::os::raw::c_int = -2; -pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_66 = ::std::os::raw::c_int; +pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: _bindgen_ty_68 = 2; +pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: _bindgen_ty_68 = 4; +pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: _bindgen_ty_68 = 8; +pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: _bindgen_ty_68 = 1; +pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: _bindgen_ty_68 = -3; +pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: _bindgen_ty_68 = -2; +pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: _bindgen_ty_68 = -1; +pub type _bindgen_ty_68 = ::std::os::raw::c_int; pub type AMediaCodecOnAsyncInputAvailable = ::std::option::Option< unsafe extern "C" fn( codec: *mut AMediaCodec, @@ -22132,6 +22033,9 @@ pub struct AMediaCodecOnAsyncNotifyCallback { } #[test] fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -22146,10 +22050,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncInputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncInputAvailable) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22159,10 +22060,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncOutputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncOutputAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22172,10 +22070,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncFormatChanged - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncFormatChanged) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22185,10 +22080,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncError as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncError) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22262,7 +22154,7 @@ extern "C" { __file: *const ::std::os::raw::c_char, __line: ::std::os::raw::c_int, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn __assert2( @@ -22270,7 +22162,7 @@ extern "C" { __line: ::std::os::raw::c_int, __function: *const ::std::os::raw::c_char, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn AMediaCodec_queueInputBuffer( @@ -22409,6 +22301,8 @@ pub struct cryptoinfo_pattern_t { } #[test] fn bindgen_test_layout_cryptoinfo_pattern_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -22420,9 +22314,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { concat!("Alignment of ", stringify!(cryptoinfo_pattern_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).encryptBlocks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).encryptBlocks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22432,7 +22324,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).skipBlocks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).skipBlocks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22582,6 +22474,8 @@ pub struct AMediaDrmByteArray { } #[test] fn bindgen_test_layout_AMediaDrmByteArray() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -22593,7 +22487,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { concat!("Alignment of ", stringify!(AMediaDrmByteArray)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22603,7 +22497,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22674,6 +22568,9 @@ pub struct AMediaDrmKeyValuePair { } #[test] fn bindgen_test_layout_AMediaDrmKeyValuePair() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -22685,7 +22582,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { concat!("Alignment of ", stringify!(AMediaDrmKeyValuePair)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mKey as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mKey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22695,7 +22592,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mValue as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mValue) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22733,6 +22630,8 @@ pub struct AMediaDrmKeyStatus { } #[test] fn bindgen_test_layout_AMediaDrmKeyStatus() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22744,7 +22643,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { concat!("Alignment of ", stringify!(AMediaDrmKeyStatus)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyId as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyId) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22754,7 +22653,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyType as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyType) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23092,6 +22991,8 @@ pub struct PsshEntry { } #[test] fn bindgen_test_layout_PsshEntry() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -23103,7 +23004,7 @@ fn bindgen_test_layout_PsshEntry() { concat!("Alignment of ", stringify!(PsshEntry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uuid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uuid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23113,7 +23014,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).datalen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datalen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23123,7 +23024,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -23141,6 +23042,8 @@ pub struct PsshInfo { } #[test] fn bindgen_test_layout_PsshInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -23152,7 +23055,7 @@ fn bindgen_test_layout_PsshInfo() { concat!("Alignment of ", stringify!(PsshInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numentries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numentries) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23162,7 +23065,7 @@ fn bindgen_test_layout_PsshInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).entries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).entries) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23180,9 +23083,9 @@ extern "C" { arg1: *mut AMediaExtractor, ) -> *mut AMediaCodecCryptoInfo; } -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: ::std::os::raw::c_uint = 1; -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_67 = ::std::os::raw::c_uint; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: _bindgen_ty_69 = 1; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: _bindgen_ty_69 = 2; +pub type _bindgen_ty_69 = ::std::os::raw::c_uint; extern "C" { pub fn AMediaExtractor_getFileFormat(arg1: *mut AMediaExtractor) -> *mut AMediaFormat; } diff --git a/ndk-sys/src/ffi_arm.rs b/ndk-sys/src/ffi_arm.rs index deaa04c2..f953b9af 100644 --- a/ndk-sys/src/ffi_arm.rs +++ b/ndk-sys/src/ffi_arm.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.66.0 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] @@ -115,9 +115,9 @@ pub const __WORDSIZE: u32 = 32; pub const __bos_level: u32 = 0; pub const __ANDROID_NDK__: u32 = 1; pub const __NDK_MAJOR__: u32 = 25; -pub const __NDK_MINOR__: u32 = 0; +pub const __NDK_MINOR__: u32 = 1; pub const __NDK_BETA__: u32 = 0; -pub const __NDK_BUILD__: u32 = 8775105; +pub const __NDK_BUILD__: u32 = 8937393; pub const __NDK_CANARY__: u32 = 0; pub const __ANDROID_API_FUTURE__: u32 = 10000; pub const __ANDROID_API__: u32 = 10000; @@ -139,6 +139,7 @@ pub const __ANDROID_API_Q__: u32 = 29; pub const __ANDROID_API_R__: u32 = 30; pub const __ANDROID_API_S__: u32 = 31; pub const __ANDROID_API_T__: u32 = 33; +pub const __ANDROID_API_U__: u32 = 34; pub const WCHAR_MIN: u8 = 0u8; pub const INT8_MIN: i32 = -128; pub const INT8_MAX: u32 = 127; @@ -176,1008 +177,131 @@ pub const PTRDIFF_MAX: u32 = 2147483647; pub const SIZE_MAX: u32 = 4294967295; pub const __BITS_PER_LONG: u32 = 32; pub const __FD_SETSIZE: u32 = 1024; -pub const __GNUC_VA_LIST: u32 = 1; +pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; -pub const __bool_true_false_are_defined: u32 = 1; -pub const __PRI_64_prefix: &[u8; 3usize] = b"ll\0"; -pub const PRId8: &[u8; 2usize] = b"d\0"; -pub const PRId16: &[u8; 2usize] = b"d\0"; -pub const PRId32: &[u8; 2usize] = b"d\0"; -pub const PRId64: &[u8; 4usize] = b"lld\0"; -pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdFAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; -pub const PRIi8: &[u8; 2usize] = b"i\0"; -pub const PRIi16: &[u8; 2usize] = b"i\0"; -pub const PRIi32: &[u8; 2usize] = b"i\0"; -pub const PRIi64: &[u8; 4usize] = b"lli\0"; -pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiFAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; -pub const PRIo8: &[u8; 2usize] = b"o\0"; -pub const PRIo16: &[u8; 2usize] = b"o\0"; -pub const PRIo32: &[u8; 2usize] = b"o\0"; -pub const PRIo64: &[u8; 4usize] = b"llo\0"; -pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoFAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; -pub const PRIu8: &[u8; 2usize] = b"u\0"; -pub const PRIu16: &[u8; 2usize] = b"u\0"; -pub const PRIu32: &[u8; 2usize] = b"u\0"; -pub const PRIu64: &[u8; 4usize] = b"llu\0"; -pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuFAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; -pub const PRIx8: &[u8; 2usize] = b"x\0"; -pub const PRIx16: &[u8; 2usize] = b"x\0"; -pub const PRIx32: &[u8; 2usize] = b"x\0"; -pub const PRIx64: &[u8; 4usize] = b"llx\0"; -pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxFAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; -pub const PRIX8: &[u8; 2usize] = b"X\0"; -pub const PRIX16: &[u8; 2usize] = b"X\0"; -pub const PRIX32: &[u8; 2usize] = b"X\0"; -pub const PRIX64: &[u8; 4usize] = b"llX\0"; -pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXFAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; -pub const SCNd8: &[u8; 4usize] = b"hhd\0"; -pub const SCNd16: &[u8; 3usize] = b"hd\0"; -pub const SCNd32: &[u8; 2usize] = b"d\0"; -pub const SCNd64: &[u8; 4usize] = b"lld\0"; -pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; -pub const SCNdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdFAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; -pub const SCNi8: &[u8; 4usize] = b"hhi\0"; -pub const SCNi16: &[u8; 3usize] = b"hi\0"; -pub const SCNi32: &[u8; 2usize] = b"i\0"; -pub const SCNi64: &[u8; 4usize] = b"lli\0"; -pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; -pub const SCNiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiFAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; -pub const SCNo8: &[u8; 4usize] = b"hho\0"; -pub const SCNo16: &[u8; 3usize] = b"ho\0"; -pub const SCNo32: &[u8; 2usize] = b"o\0"; -pub const SCNo64: &[u8; 4usize] = b"llo\0"; -pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; -pub const SCNoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoFAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; -pub const SCNu8: &[u8; 4usize] = b"hhu\0"; -pub const SCNu16: &[u8; 3usize] = b"hu\0"; -pub const SCNu32: &[u8; 2usize] = b"u\0"; -pub const SCNu64: &[u8; 4usize] = b"llu\0"; -pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; -pub const SCNuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuFAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; -pub const SCNx8: &[u8; 4usize] = b"hhx\0"; -pub const SCNx16: &[u8; 3usize] = b"hx\0"; -pub const SCNx32: &[u8; 2usize] = b"x\0"; -pub const SCNx64: &[u8; 4usize] = b"llx\0"; -pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; -pub const SCNxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxFAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; -pub const O_DIRECTORY: u32 = 16384; -pub const O_NOFOLLOW: u32 = 32768; -pub const O_DIRECT: u32 = 65536; -pub const O_LARGEFILE: u32 = 131072; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4210688; -pub const O_TMPFILE_MASK: u32 = 4210752; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SOCK_IOC_TYPE: u32 = 137; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCETHTOOL: u32 = 35142; -pub const SIOCGMIIPHY: u32 = 35143; -pub const SIOCGMIIREG: u32 = 35144; -pub const SIOCSMIIREG: u32 = 35145; -pub const SIOCWANDEV: u32 = 35146; -pub const SIOCOUTQNSD: u32 = 35147; -pub const SIOCGSKNS: u32 = 35148; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCGIFVLAN: u32 = 35202; -pub const SIOCSIFVLAN: u32 = 35203; -pub const SIOCBONDENSLAVE: u32 = 35216; -pub const SIOCBONDRELEASE: u32 = 35217; -pub const SIOCBONDSETHWADDR: u32 = 35218; -pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; -pub const SIOCBONDINFOQUERY: u32 = 35220; -pub const SIOCBONDCHANGEACTIVE: u32 = 35221; -pub const SIOCBRADDBR: u32 = 35232; -pub const SIOCBRDELBR: u32 = 35233; -pub const SIOCBRADDIF: u32 = 35234; -pub const SIOCBRDELIF: u32 = 35235; -pub const SIOCSHWTSTAMP: u32 = 35248; -pub const SIOCGHWTSTAMP: u32 = 35249; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const SOCK_DCCP: u32 = 6; -pub const SOCK_PACKET: u32 = 10; -pub const SOCK_CLOEXEC: u32 = 524288; -pub const SOCK_NONBLOCK: u32 = 2048; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_LOCAL: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_MAX: u32 = 43; -pub const PF_UNSPEC: u32 = 0; -pub const PF_UNIX: u32 = 1; -pub const PF_LOCAL: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_MAX: u32 = 43; -pub const SOMAXCONN: u32 = 128; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_TRYHARD: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_DONTWAIT: u32 = 64; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_WAITFORONE: u32 = 65536; -pub const MSG_BATCH: u32 = 262144; -pub const MSG_FASTOPEN: u32 = 536870912; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const MSG_EOF: u32 = 512; -pub const MSG_CMSG_COMPAT: u32 = 0; -pub const SOL_IP: u32 = 0; -pub const SOL_TCP: u32 = 6; -pub const SOL_UDP: u32 = 17; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const SOL_SCTP: u32 = 132; -pub const SOL_RAW: u32 = 255; -pub const SOL_IPX: u32 = 256; -pub const SOL_AX25: u32 = 257; -pub const SOL_ATALK: u32 = 258; -pub const SOL_NETROM: u32 = 259; -pub const SOL_ROSE: u32 = 260; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const IPX_TYPE: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 24usize] = b"/system/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 18usize] = b"/system/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 21usize] = b"/system/etc/networks\0"; -pub const _PATH_PROTOCOLS: &[u8; 22usize] = b"/system/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 21usize] = b"/system/etc/services\0"; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NO_ADDRESS: u32 = 4; -pub const EAI_ADDRFAMILY: u32 = 1; -pub const EAI_AGAIN: u32 = 2; -pub const EAI_BADFLAGS: u32 = 3; -pub const EAI_FAIL: u32 = 4; -pub const EAI_FAMILY: u32 = 5; -pub const EAI_MEMORY: u32 = 6; -pub const EAI_NODATA: u32 = 7; -pub const EAI_NONAME: u32 = 8; -pub const EAI_SERVICE: u32 = 9; -pub const EAI_SOCKTYPE: u32 = 10; -pub const EAI_SYSTEM: u32 = 11; -pub const EAI_BADHINTS: u32 = 12; -pub const EAI_PROTOCOL: u32 = 13; -pub const EAI_OVERFLOW: u32 = 14; -pub const EAI_MAX: u32 = 15; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_NUMERICSERV: u32 = 8; -pub const AI_ALL: u32 = 256; -pub const AI_V4MAPPED_CFG: u32 = 512; -pub const AI_ADDRCONFIG: u32 = 1024; -pub const AI_V4MAPPED: u32 = 2048; -pub const AI_DEFAULT: u32 = 1536; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NOFQDN: u32 = 1; -pub const NI_NUMERICHOST: u32 = 2; -pub const NI_NAMEREQD: u32 = 4; -pub const NI_NUMERICSERV: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const SCOPE_DELIMITER: u8 = 37u8; -pub const IPPORT_RESERVED: u32 = 1024; -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 P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 1024; -pub const EOF: i32 = -1; -pub const FOPEN_MAX: u32 = 20; -pub const FILENAME_MAX: u32 = 4096; -pub const L_tmpnam: u32 = 4096; -pub const TMP_MAX: u32 = 308915776; -pub const P_tmpdir: &[u8; 6usize] = b"/tmp/\0"; -pub const L_ctermid: u32 = 1024; -pub const STRUCT_MALLINFO_DECLARED: u32 = 1; -pub const M_DECAY_TIME: i32 = -100; -pub const M_PURGE: i32 = -101; -pub const M_MEMTAG_TUNING: i32 = -102; -pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; -pub const M_MEMTAG_TUNING_UAF: u32 = 1; -pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; -pub const M_CACHE_COUNT_MAX: i32 = -200; -pub const M_CACHE_SIZE_MAX: i32 = -201; -pub const M_TSDS_COUNT_MAX: i32 = -202; -pub const M_BIONIC_ZERO_INIT: i32 = -203; -pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; -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 PASS_MAX: u32 = 128; -pub const NL_ARGMAX: u32 = 9; -pub const NL_LANGMAX: u32 = 14; -pub const NL_MSGMAX: u32 = 32767; -pub const NL_NMAX: u32 = 1; -pub const NL_SETMAX: u32 = 255; -pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; -pub const LONG_BIT: u32 = 32; -pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MIN: u32 = 0; -pub const CHAR_MAX: u32 = 255; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: u32 = 4294967295; -pub const LONG_MAX: u32 = 2147483647; -pub const LONG_MIN: i32 = -2147483648; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: u32 = 4294967295; -pub const SSIZE_MAX: u32 = 2147483647; -pub const MB_LEN_MAX: u32 = 4; -pub const NZERO: u32 = 20; -pub const IOV_MAX: u32 = 1024; -pub const SEM_VALUE_MAX: u32 = 1073741823; -pub const _POSIX_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; -pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; -pub const _POSIX_CPUTIME: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: i32 = -1; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: i32 = -1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_CPUTIME: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: i32 = -1; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX2_FORT_DEV: i32 = -1; -pub const _POSIX2_FORT_RUN: i32 = -1; -pub const _POSIX2_LOCALEDEF: i32 = -1; -pub const _POSIX2_SW_DEV: i32 = -1; -pub const _POSIX2_UPE: i32 = -1; -pub const _POSIX_V7_ILP32_OFF32: u32 = 1; -pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: i32 = -1; -pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; -pub const _XOPEN_CRYPT: i32 = -1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: i32 = -1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _XOPEN_STREAMS: i32 = -1; -pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; -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_SS_REPL_MAX: u32 = 4; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; -pub const _POSIX_TRACE_NAME_MAX: u32 = 8; -pub const _POSIX_TRACE_SYS_MAX: u32 = 8; -pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -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_CHARCLASS_NAME_MAX: u32 = 14; -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 _XOPEN_IOV_MAX: u32 = 16; -pub const _XOPEN_NAME_MAX: u32 = 255; -pub const _XOPEN_PATH_MAX: u32 = 1024; -pub const HOST_NAME_MAX: u32 = 255; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const TTY_NAME_MAX: u32 = 32; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_KEYS_MAX: u32 = 128; -pub const FP_INFINITE: u32 = 1; -pub const FP_NAN: u32 = 2; -pub const FP_NORMAL: u32 = 4; -pub const FP_SUBNORMAL: u32 = 8; -pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 2; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; -pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; -pub const ASENSOR_INVALID: i32 = -1; -pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SYNC_IOC_MAGIC: u8 = 62u8; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -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_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const _KERNEL_NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const __SIGRTMIN: u32 = 32; -pub const SIGSWI: u32 = 32; -pub const SA_THIRTYTWO: u32 = 33554432; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -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_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const _KERNEL__NSIG: u32 = 64; -pub const _NSIG: u32 = 65; -pub const NSIG: u32 = 65; -pub const PAGE_SIZE: u32 = 4096; -pub const PAGE_MASK: i32 = -4096; -pub const NGREG: u32 = 18; -pub const FD_SETSIZE: u32 = 1024; -pub const CLOCKS_PER_SEC: u32 = 1000000; -pub const TIME_UTC: u32 = 1; -pub const AAUDIO_UNSPECIFIED: u32 = 0; -pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; -pub const PROPERTY_VENDOR: &[u8; 7usize] = b"vendor\0"; -pub const PROPERTY_VERSION: &[u8; 8usize] = b"version\0"; -pub const PROPERTY_DESCRIPTION: &[u8; 12usize] = b"description\0"; -pub const PROPERTY_ALGORITHMS: &[u8; 11usize] = b"algorithms\0"; -pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15usize] = b"deviceUniqueId\0"; +pub const __PRI_64_prefix: &[u8; 3] = b"ll\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; 4] = b"lld\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; 4] = b"lld\0"; +pub const PRIdFAST8: &[u8; 2] = b"d\0"; +pub const PRIdFAST64: &[u8; 4] = b"lld\0"; +pub const PRIdMAX: &[u8; 3] = b"jd\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; 4] = b"lli\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; 4] = b"lli\0"; +pub const PRIiFAST8: &[u8; 2] = b"i\0"; +pub const PRIiFAST64: &[u8; 4] = b"lli\0"; +pub const PRIiMAX: &[u8; 3] = b"ji\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; 4] = b"llo\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; 4] = b"llo\0"; +pub const PRIoFAST8: &[u8; 2] = b"o\0"; +pub const PRIoFAST64: &[u8; 4] = b"llo\0"; +pub const PRIoMAX: &[u8; 3] = b"jo\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; 4] = b"llu\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; 4] = b"llu\0"; +pub const PRIuFAST8: &[u8; 2] = b"u\0"; +pub const PRIuFAST64: &[u8; 4] = b"llu\0"; +pub const PRIuMAX: &[u8; 3] = b"ju\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; 4] = b"llx\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; 4] = b"llx\0"; +pub const PRIxFAST8: &[u8; 2] = b"x\0"; +pub const PRIxFAST64: &[u8; 4] = b"llx\0"; +pub const PRIxMAX: &[u8; 3] = b"jx\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; 4] = b"llX\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; 4] = b"llX\0"; +pub const PRIXFAST8: &[u8; 2] = b"X\0"; +pub const PRIXFAST64: &[u8; 4] = b"llX\0"; +pub const PRIXMAX: &[u8; 3] = b"jX\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; 4] = b"lld\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; 4] = b"lld\0"; +pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNdFAST64: &[u8; 4] = b"lld\0"; +pub const SCNdMAX: &[u8; 3] = b"jd\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; 4] = b"lli\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; 4] = b"lli\0"; +pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; +pub const SCNiFAST64: &[u8; 4] = b"lli\0"; +pub const SCNiMAX: &[u8; 3] = b"ji\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; 4] = b"llo\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; 4] = b"llo\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNoFAST64: &[u8; 4] = b"llo\0"; +pub const SCNoMAX: &[u8; 3] = b"jo\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; 4] = b"llu\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; 4] = b"llu\0"; +pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuFAST64: &[u8; 4] = b"llu\0"; +pub const SCNuMAX: &[u8; 3] = b"ju\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; 4] = b"llx\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; 4] = b"llx\0"; +pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; +pub const SCNxFAST64: &[u8; 4] = b"llx\0"; +pub const SCNxMAX: &[u8; 3] = b"jx\0"; extern "C" { pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; } @@ -1194,6 +318,8 @@ pub struct max_align_t { } #[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::(), 16usize, @@ -1205,9 +331,7 @@ fn bindgen_test_layout_max_align_t() { concat!("Alignment of ", stringify!(max_align_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1217,9 +341,7 @@ fn bindgen_test_layout_max_align_t() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce2 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1272,6 +394,8 @@ pub struct __kernel_fd_set { } #[test] fn bindgen_test_layout___kernel_fd_set() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fd_set> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fd_set>(), 128usize, @@ -1283,7 +407,7 @@ fn bindgen_test_layout___kernel_fd_set() { concat!("Alignment of ", stringify!(__kernel_fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1322,6 +446,8 @@ pub struct __kernel_fsid_t { } #[test] fn bindgen_test_layout___kernel_fsid_t() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fsid_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fsid_t>(), 8usize, @@ -1333,7 +459,7 @@ fn bindgen_test_layout___kernel_fsid_t() { concat!("Alignment of ", stringify!(__kernel_fsid_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1375,6 +501,8 @@ pub struct pthread_attr_t { } #[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::(), 24usize, @@ -1386,7 +514,7 @@ fn bindgen_test_layout_pthread_attr_t() { concat!("Alignment of ", stringify!(pthread_attr_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1396,7 +524,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_base) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1406,7 +534,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_size) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1416,7 +544,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).guard_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).guard_size) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1426,7 +554,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_policy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_policy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1436,7 +564,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -1453,6 +581,8 @@ pub struct pthread_barrier_t { } #[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, @@ -1464,7 +594,7 @@ fn bindgen_test_layout_pthread_barrier_t() { concat!("Alignment of ", stringify!(pthread_barrier_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1482,6 +612,8 @@ pub struct pthread_cond_t { } #[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::(), 4usize, @@ -1493,7 +625,7 @@ fn bindgen_test_layout_pthread_cond_t() { concat!("Alignment of ", stringify!(pthread_cond_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1512,6 +644,8 @@ pub struct pthread_mutex_t { } #[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::(), 4usize, @@ -1523,7 +657,7 @@ fn bindgen_test_layout_pthread_mutex_t() { concat!("Alignment of ", stringify!(pthread_mutex_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1542,6 +676,8 @@ pub struct pthread_rwlock_t { } #[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::(), 40usize, @@ -1553,7 +689,7 @@ fn bindgen_test_layout_pthread_rwlock_t() { concat!("Alignment of ", stringify!(pthread_rwlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1571,6 +707,8 @@ pub struct pthread_spinlock_t { } #[test] fn bindgen_test_layout_pthread_spinlock_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1582,7 +720,7 @@ fn bindgen_test_layout_pthread_spinlock_t() { concat!("Alignment of ", stringify!(pthread_spinlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1660,10 +798,10 @@ pub struct AAssetDir { pub struct AAsset { _unused: [u8; 0], } -pub const AASSET_MODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AASSET_MODE_RANDOM: ::std::os::raw::c_uint = 1; -pub const AASSET_MODE_STREAMING: ::std::os::raw::c_uint = 2; -pub const AASSET_MODE_BUFFER: ::std::os::raw::c_uint = 3; +pub const AASSET_MODE_UNKNOWN: _bindgen_ty_1 = 0; +pub const AASSET_MODE_RANDOM: _bindgen_ty_1 = 1; +pub const AASSET_MODE_STREAMING: _bindgen_ty_1 = 2; +pub const AASSET_MODE_BUFFER: _bindgen_ty_1 = 3; pub type _bindgen_ty_1 = ::std::os::raw::c_uint; extern "C" { pub fn AAssetManager_openDir( @@ -1739,8 +877,8 @@ extern "C" { extern "C" { pub fn AAsset_isAllocated(asset: *mut AAsset) -> ::std::os::raw::c_int; } -pub type va_list = u32; pub type __gnuc_va_list = u32; +pub type va_list = u32; #[repr(C)] pub struct JavaVMAttachArgs { pub version: jint, @@ -1749,6 +887,8 @@ pub struct JavaVMAttachArgs { } #[test] fn bindgen_test_layout_JavaVMAttachArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -1760,7 +900,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { concat!("Alignment of ", stringify!(JavaVMAttachArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1770,7 +910,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1780,7 +920,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).group as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).group) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1798,6 +938,8 @@ pub struct JavaVMOption { } #[test] fn bindgen_test_layout_JavaVMOption() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1809,7 +951,7 @@ fn bindgen_test_layout_JavaVMOption() { concat!("Alignment of ", stringify!(JavaVMOption)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).optionString as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).optionString) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1819,7 +961,7 @@ fn bindgen_test_layout_JavaVMOption() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).extraInfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extraInfo) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1838,6 +980,8 @@ pub struct JavaVMInitArgs { } #[test] fn bindgen_test_layout_JavaVMInitArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -1849,7 +993,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { concat!("Alignment of ", stringify!(JavaVMInitArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1859,7 +1003,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).nOptions as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nOptions) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1869,7 +1013,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).options as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).options) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1879,9 +1023,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ignoreUnrecognized as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ignoreUnrecognized) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1894,10 +1036,10 @@ fn bindgen_test_layout_JavaVMInitArgs() { extern "C" { pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager; } -pub const ANDROID_BITMAP_RESULT_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: ::std::os::raw::c_int = -1; -pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: ::std::os::raw::c_int = -2; -pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: ::std::os::raw::c_int = -3; +pub const ANDROID_BITMAP_RESULT_SUCCESS: _bindgen_ty_2 = 0; +pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: _bindgen_ty_2 = -1; +pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: _bindgen_ty_2 = -2; +pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: _bindgen_ty_2 = -3; pub type _bindgen_ty_2 = ::std::os::raw::c_int; impl AndroidBitmapFormat { pub const ANDROID_BITMAP_FORMAT_NONE: AndroidBitmapFormat = AndroidBitmapFormat(0); @@ -1923,13 +1065,13 @@ impl AndroidBitmapFormat { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AndroidBitmapFormat(pub ::std::os::raw::c_uint); -pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: ::std::os::raw::c_uint = 0; -pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: ::std::os::raw::c_uint = 1; -pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: ::std::os::raw::c_uint = 2; -pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: ::std::os::raw::c_uint = 3; -pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: ::std::os::raw::c_uint = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: _bindgen_ty_3 = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: _bindgen_ty_3 = 1; +pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: _bindgen_ty_3 = 2; +pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: _bindgen_ty_3 = 3; +pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: _bindgen_ty_3 = 0; pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: ::std::os::raw::c_int = -2147483648; +pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: _bindgen_ty_4 = -2147483648; pub type _bindgen_ty_4 = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1942,6 +1084,8 @@ pub struct AndroidBitmapInfo { } #[test] fn bindgen_test_layout_AndroidBitmapInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -1953,7 +1097,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { concat!("Alignment of ", stringify!(AndroidBitmapInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1963,7 +1107,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1973,7 +1117,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1983,7 +1127,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1993,7 +1137,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2190,92 +1334,92 @@ extern "C" { pub struct AConfiguration { _unused: [u8; 0], } -pub const ACONFIGURATION_ORIENTATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_ORIENTATION_PORT: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_ORIENTATION_LAND: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_ORIENTATION_SQUARE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_TOUCHSCREEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_TOUCHSCREEN_FINGER: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_DENSITY_DEFAULT: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_DENSITY_LOW: ::std::os::raw::c_uint = 120; -pub const ACONFIGURATION_DENSITY_MEDIUM: ::std::os::raw::c_uint = 160; -pub const ACONFIGURATION_DENSITY_TV: ::std::os::raw::c_uint = 213; -pub const ACONFIGURATION_DENSITY_HIGH: ::std::os::raw::c_uint = 240; -pub const ACONFIGURATION_DENSITY_XHIGH: ::std::os::raw::c_uint = 320; -pub const ACONFIGURATION_DENSITY_XXHIGH: ::std::os::raw::c_uint = 480; -pub const ACONFIGURATION_DENSITY_XXXHIGH: ::std::os::raw::c_uint = 640; -pub const ACONFIGURATION_DENSITY_ANY: ::std::os::raw::c_uint = 65534; -pub const ACONFIGURATION_DENSITY_NONE: ::std::os::raw::c_uint = 65535; -pub const ACONFIGURATION_KEYBOARD_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYBOARD_NOKEYS: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYBOARD_QWERTY: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYBOARD_12KEY: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVIGATION_NONAV: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVIGATION_DPAD: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_NAVIGATION_TRACKBALL: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_WHEEL: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_KEYSHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYSHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYSHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYSHIDDEN_SOFT: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENSIZE_SMALL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENSIZE_NORMAL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_LARGE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_SCREENSIZE_XLARGE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_SCREENLONG_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENLONG_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENLONG_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENROUND_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENROUND_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENROUND_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_HDR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_HDR_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_HDR_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_TYPE_DESK: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_CAR: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: ::std::os::raw::c_uint = 5; -pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: ::std::os::raw::c_uint = 6; -pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: ::std::os::raw::c_uint = 7; -pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_NIGHT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_NIGHT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_LTR: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_LAYOUTDIR_RTL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_MCC: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_MNC: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_LOCALE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_TOUCHSCREEN: ::std::os::raw::c_uint = 8; -pub const ACONFIGURATION_KEYBOARD: ::std::os::raw::c_uint = 16; -pub const ACONFIGURATION_KEYBOARD_HIDDEN: ::std::os::raw::c_uint = 32; -pub const ACONFIGURATION_NAVIGATION: ::std::os::raw::c_uint = 64; -pub const ACONFIGURATION_ORIENTATION: ::std::os::raw::c_uint = 128; -pub const ACONFIGURATION_DENSITY: ::std::os::raw::c_uint = 256; -pub const ACONFIGURATION_SCREEN_SIZE: ::std::os::raw::c_uint = 512; -pub const ACONFIGURATION_VERSION: ::std::os::raw::c_uint = 1024; -pub const ACONFIGURATION_SCREEN_LAYOUT: ::std::os::raw::c_uint = 2048; -pub const ACONFIGURATION_UI_MODE: ::std::os::raw::c_uint = 4096; -pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: ::std::os::raw::c_uint = 8192; -pub const ACONFIGURATION_LAYOUTDIR: ::std::os::raw::c_uint = 16384; -pub const ACONFIGURATION_SCREEN_ROUND: ::std::os::raw::c_uint = 32768; -pub const ACONFIGURATION_COLOR_MODE: ::std::os::raw::c_uint = 65536; -pub const ACONFIGURATION_MNC_ZERO: ::std::os::raw::c_uint = 65535; +pub const ACONFIGURATION_ORIENTATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_ORIENTATION_PORT: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_ORIENTATION_LAND: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_ORIENTATION_SQUARE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_TOUCHSCREEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_TOUCHSCREEN_FINGER: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_DENSITY_DEFAULT: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_DENSITY_LOW: _bindgen_ty_5 = 120; +pub const ACONFIGURATION_DENSITY_MEDIUM: _bindgen_ty_5 = 160; +pub const ACONFIGURATION_DENSITY_TV: _bindgen_ty_5 = 213; +pub const ACONFIGURATION_DENSITY_HIGH: _bindgen_ty_5 = 240; +pub const ACONFIGURATION_DENSITY_XHIGH: _bindgen_ty_5 = 320; +pub const ACONFIGURATION_DENSITY_XXHIGH: _bindgen_ty_5 = 480; +pub const ACONFIGURATION_DENSITY_XXXHIGH: _bindgen_ty_5 = 640; +pub const ACONFIGURATION_DENSITY_ANY: _bindgen_ty_5 = 65534; +pub const ACONFIGURATION_DENSITY_NONE: _bindgen_ty_5 = 65535; +pub const ACONFIGURATION_KEYBOARD_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYBOARD_NOKEYS: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYBOARD_QWERTY: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYBOARD_12KEY: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVIGATION_NONAV: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVIGATION_DPAD: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_NAVIGATION_TRACKBALL: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_WHEEL: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_KEYSHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYSHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYSHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYSHIDDEN_SOFT: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENSIZE_SMALL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENSIZE_NORMAL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_LARGE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_SCREENSIZE_XLARGE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_SCREENLONG_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENLONG_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENLONG_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENROUND_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENROUND_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENROUND_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_HDR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_HDR_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_HDR_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_TYPE_DESK: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_CAR: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: _bindgen_ty_5 = 5; +pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: _bindgen_ty_5 = 6; +pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: _bindgen_ty_5 = 7; +pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_NIGHT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_NIGHT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_LTR: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_LAYOUTDIR_RTL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_MCC: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_MNC: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_LOCALE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_TOUCHSCREEN: _bindgen_ty_5 = 8; +pub const ACONFIGURATION_KEYBOARD: _bindgen_ty_5 = 16; +pub const ACONFIGURATION_KEYBOARD_HIDDEN: _bindgen_ty_5 = 32; +pub const ACONFIGURATION_NAVIGATION: _bindgen_ty_5 = 64; +pub const ACONFIGURATION_ORIENTATION: _bindgen_ty_5 = 128; +pub const ACONFIGURATION_DENSITY: _bindgen_ty_5 = 256; +pub const ACONFIGURATION_SCREEN_SIZE: _bindgen_ty_5 = 512; +pub const ACONFIGURATION_VERSION: _bindgen_ty_5 = 1024; +pub const ACONFIGURATION_SCREEN_LAYOUT: _bindgen_ty_5 = 2048; +pub const ACONFIGURATION_UI_MODE: _bindgen_ty_5 = 4096; +pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: _bindgen_ty_5 = 8192; +pub const ACONFIGURATION_LAYOUTDIR: _bindgen_ty_5 = 16384; +pub const ACONFIGURATION_SCREEN_ROUND: _bindgen_ty_5 = 32768; +pub const ACONFIGURATION_COLOR_MODE: _bindgen_ty_5 = 65536; +pub const ACONFIGURATION_MNC_ZERO: _bindgen_ty_5 = 65535; pub type _bindgen_ty_5 = ::std::os::raw::c_uint; extern "C" { pub fn AConfiguration_new() -> *mut AConfiguration; @@ -2448,6 +1592,8 @@ pub struct imaxdiv_t { } #[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, @@ -2459,7 +1605,7 @@ fn bindgen_test_layout_imaxdiv_t() { concat!("Alignment of ", stringify!(imaxdiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2469,7 +1615,7 @@ fn bindgen_test_layout_imaxdiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2657,16 +1803,16 @@ impl ADataSpace { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ADataSpace(pub ::std::os::raw::c_uint); -pub const ANDROID_DLEXT_RESERVED_ADDRESS: ::std::os::raw::c_uint = 1; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: ::std::os::raw::c_uint = 2; -pub const ANDROID_DLEXT_WRITE_RELRO: ::std::os::raw::c_uint = 4; -pub const ANDROID_DLEXT_USE_RELRO: ::std::os::raw::c_uint = 8; -pub const ANDROID_DLEXT_USE_LIBRARY_FD: ::std::os::raw::c_uint = 16; -pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: ::std::os::raw::c_uint = 32; -pub const ANDROID_DLEXT_FORCE_LOAD: ::std::os::raw::c_uint = 64; -pub const ANDROID_DLEXT_USE_NAMESPACE: ::std::os::raw::c_uint = 512; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: ::std::os::raw::c_uint = 1024; -pub const ANDROID_DLEXT_VALID_FLAG_BITS: ::std::os::raw::c_uint = 1663; +pub const ANDROID_DLEXT_RESERVED_ADDRESS: _bindgen_ty_6 = 1; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: _bindgen_ty_6 = 2; +pub const ANDROID_DLEXT_WRITE_RELRO: _bindgen_ty_6 = 4; +pub const ANDROID_DLEXT_USE_RELRO: _bindgen_ty_6 = 8; +pub const ANDROID_DLEXT_USE_LIBRARY_FD: _bindgen_ty_6 = 16; +pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: _bindgen_ty_6 = 32; +pub const ANDROID_DLEXT_FORCE_LOAD: _bindgen_ty_6 = 64; +pub const ANDROID_DLEXT_USE_NAMESPACE: _bindgen_ty_6 = 512; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: _bindgen_ty_6 = 1024; +pub const ANDROID_DLEXT_VALID_FLAG_BITS: _bindgen_ty_6 = 1663; pub type _bindgen_ty_6 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2686,6 +1832,8 @@ pub struct android_dlextinfo { } #[test] fn bindgen_test_layout_android_dlextinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -2697,7 +1845,7 @@ fn bindgen_test_layout_android_dlextinfo() { concat!("Alignment of ", stringify!(android_dlextinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2707,7 +1855,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_addr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2717,7 +1865,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_size) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2727,7 +1875,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).relro_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).relro_fd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2737,7 +1885,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).library_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2747,9 +1895,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_fd_offset as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd_offset) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2759,9 +1905,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_namespace as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_namespace) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2880,33 +2024,809 @@ impl android_fdsan_error_level { #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; + pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level( + new_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level_from_property( + default_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; +} +extern "C" { + pub fn AFileDescriptor_getFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AFileDescriptor_setFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + fd: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFont { + _unused: [u8; 0], +} +pub const AFONT_WEIGHT_MIN: _bindgen_ty_7 = 0; +pub const AFONT_WEIGHT_THIN: _bindgen_ty_7 = 100; +pub const AFONT_WEIGHT_EXTRA_LIGHT: _bindgen_ty_7 = 200; +pub const AFONT_WEIGHT_LIGHT: _bindgen_ty_7 = 300; +pub const AFONT_WEIGHT_NORMAL: _bindgen_ty_7 = 400; +pub const AFONT_WEIGHT_MEDIUM: _bindgen_ty_7 = 500; +pub const AFONT_WEIGHT_SEMI_BOLD: _bindgen_ty_7 = 600; +pub const AFONT_WEIGHT_BOLD: _bindgen_ty_7 = 700; +pub const AFONT_WEIGHT_EXTRA_BOLD: _bindgen_ty_7 = 800; +pub const AFONT_WEIGHT_BLACK: _bindgen_ty_7 = 900; +pub const AFONT_WEIGHT_MAX: _bindgen_ty_7 = 1000; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFont_close(font: *mut AFont); +} +extern "C" { + pub fn AFont_getFontFilePath(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getWeight(font: *const AFont) -> u16; +} +extern "C" { + pub fn AFont_isItalic(font: *const AFont) -> bool; +} +extern "C" { + pub fn AFont_getLocale(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getCollectionIndex(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisCount(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisTag(font: *const AFont, axisIndex: u32) -> u32; +} +extern "C" { + pub fn AFont_getAxisValue(font: *const AFont, axisIndex: u32) -> f32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFontMatcher { + _unused: [u8; 0], +} +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; +pub const O_DIRECTORY: u32 = 16384; +pub const O_NOFOLLOW: u32 = 32768; +pub const O_DIRECT: u32 = 65536; +pub const O_LARGEFILE: u32 = 131072; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4210688; +pub const O_TMPFILE_MASK: u32 = 4210752; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_GETLK64: u32 = 12; +pub const F_SETLK64: u32 = 13; +pub const F_SETLKW64: u32 = 14; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SOCK_IOC_TYPE: u32 = 137; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCETHTOOL: u32 = 35142; +pub const SIOCGMIIPHY: u32 = 35143; +pub const SIOCGMIIREG: u32 = 35144; +pub const SIOCSMIIREG: u32 = 35145; +pub const SIOCWANDEV: u32 = 35146; +pub const SIOCOUTQNSD: u32 = 35147; +pub const SIOCGSKNS: u32 = 35148; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCGIFVLAN: u32 = 35202; +pub const SIOCSIFVLAN: u32 = 35203; +pub const SIOCBONDENSLAVE: u32 = 35216; +pub const SIOCBONDRELEASE: u32 = 35217; +pub const SIOCBONDSETHWADDR: u32 = 35218; +pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; +pub const SIOCBONDINFOQUERY: u32 = 35220; +pub const SIOCBONDCHANGEACTIVE: u32 = 35221; +pub const SIOCBRADDBR: u32 = 35232; +pub const SIOCBRDELBR: u32 = 35233; +pub const SIOCBRADDIF: u32 = 35234; +pub const SIOCBRDELIF: u32 = 35235; +pub const SIOCSHWTSTAMP: u32 = 35248; +pub const SIOCGHWTSTAMP: u32 = 35249; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const SOCK_DCCP: u32 = 6; +pub const SOCK_PACKET: u32 = 10; +pub const SOCK_CLOEXEC: u32 = 524288; +pub const SOCK_NONBLOCK: u32 = 2048; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_LOCAL: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_ROUTE: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_MAX: u32 = 43; +pub const PF_UNSPEC: u32 = 0; +pub const PF_UNIX: u32 = 1; +pub const PF_LOCAL: u32 = 1; +pub const PF_INET: u32 = 2; +pub const PF_AX25: u32 = 3; +pub const PF_IPX: u32 = 4; +pub const PF_APPLETALK: u32 = 5; +pub const PF_NETROM: u32 = 6; +pub const PF_BRIDGE: u32 = 7; +pub const PF_ATMPVC: u32 = 8; +pub const PF_X25: u32 = 9; +pub const PF_INET6: u32 = 10; +pub const PF_ROSE: u32 = 11; +pub const PF_DECnet: u32 = 12; +pub const PF_NETBEUI: u32 = 13; +pub const PF_SECURITY: u32 = 14; +pub const PF_KEY: u32 = 15; +pub const PF_NETLINK: u32 = 16; +pub const PF_ROUTE: u32 = 16; +pub const PF_PACKET: u32 = 17; +pub const PF_ASH: u32 = 18; +pub const PF_ECONET: u32 = 19; +pub const PF_ATMSVC: u32 = 20; +pub const PF_RDS: u32 = 21; +pub const PF_SNA: u32 = 22; +pub const PF_IRDA: u32 = 23; +pub const PF_PPPOX: u32 = 24; +pub const PF_WANPIPE: u32 = 25; +pub const PF_LLC: u32 = 26; +pub const PF_CAN: u32 = 29; +pub const PF_TIPC: u32 = 30; +pub const PF_BLUETOOTH: u32 = 31; +pub const PF_IUCV: u32 = 32; +pub const PF_RXRPC: u32 = 33; +pub const PF_ISDN: u32 = 34; +pub const PF_PHONET: u32 = 35; +pub const PF_IEEE802154: u32 = 36; +pub const PF_CAIF: u32 = 37; +pub const PF_ALG: u32 = 38; +pub const PF_NFC: u32 = 39; +pub const PF_VSOCK: u32 = 40; +pub const PF_KCM: u32 = 41; +pub const PF_QIPCRTR: u32 = 42; +pub const PF_MAX: u32 = 43; +pub const SOMAXCONN: u32 = 128; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_TRYHARD: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_DONTWAIT: u32 = 64; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_WAITFORONE: u32 = 65536; +pub const MSG_BATCH: u32 = 262144; +pub const MSG_FASTOPEN: u32 = 536870912; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const MSG_EOF: u32 = 512; +pub const MSG_CMSG_COMPAT: u32 = 0; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const IPX_TYPE: u32 = 1; +pub const _PATH_HEQUIV: &[u8; 24] = b"/system/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 18] = b"/system/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 21] = b"/system/etc/networks\0"; +pub const _PATH_PROTOCOLS: &[u8; 22] = b"/system/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 21] = b"/system/etc/services\0"; +pub const NETDB_INTERNAL: i32 = -1; +pub const NETDB_SUCCESS: u32 = 0; +pub const HOST_NOT_FOUND: u32 = 1; +pub const TRY_AGAIN: u32 = 2; +pub const NO_RECOVERY: u32 = 3; +pub const NO_DATA: u32 = 4; +pub const NO_ADDRESS: u32 = 4; +pub const EAI_ADDRFAMILY: u32 = 1; +pub const EAI_AGAIN: u32 = 2; +pub const EAI_BADFLAGS: u32 = 3; +pub const EAI_FAIL: u32 = 4; +pub const EAI_FAMILY: u32 = 5; +pub const EAI_MEMORY: u32 = 6; +pub const EAI_NODATA: u32 = 7; +pub const EAI_NONAME: u32 = 8; +pub const EAI_SERVICE: u32 = 9; +pub const EAI_SOCKTYPE: u32 = 10; +pub const EAI_SYSTEM: u32 = 11; +pub const EAI_BADHINTS: u32 = 12; +pub const EAI_PROTOCOL: u32 = 13; +pub const EAI_OVERFLOW: u32 = 14; +pub const EAI_MAX: u32 = 15; +pub const AI_PASSIVE: u32 = 1; +pub const AI_CANONNAME: u32 = 2; +pub const AI_NUMERICHOST: u32 = 4; +pub const AI_NUMERICSERV: u32 = 8; +pub const AI_ALL: u32 = 256; +pub const AI_V4MAPPED_CFG: u32 = 512; +pub const AI_ADDRCONFIG: u32 = 1024; +pub const AI_V4MAPPED: u32 = 2048; +pub const AI_DEFAULT: u32 = 1536; +pub const NI_MAXHOST: u32 = 1025; +pub const NI_MAXSERV: u32 = 32; +pub const NI_NOFQDN: u32 = 1; +pub const NI_NUMERICHOST: u32 = 2; +pub const NI_NAMEREQD: u32 = 4; +pub const NI_NUMERICSERV: u32 = 8; +pub const NI_DGRAM: u32 = 16; +pub const SCOPE_DELIMITER: u8 = 37u8; +pub const IPPORT_RESERVED: u32 = 1024; +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 P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 1024; +pub const EOF: i32 = -1; +pub const FOPEN_MAX: u32 = 20; +pub const FILENAME_MAX: u32 = 4096; +pub const L_tmpnam: u32 = 4096; +pub const TMP_MAX: u32 = 308915776; +pub const P_tmpdir: &[u8; 6] = b"/tmp/\0"; +pub const L_ctermid: u32 = 1024; +pub const STRUCT_MALLINFO_DECLARED: u32 = 1; +pub const M_DECAY_TIME: i32 = -100; +pub const M_PURGE: i32 = -101; +pub const M_MEMTAG_TUNING: i32 = -102; +pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; +pub const M_MEMTAG_TUNING_UAF: u32 = 1; +pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; +pub const M_CACHE_COUNT_MAX: i32 = -200; +pub const M_CACHE_SIZE_MAX: i32 = -201; +pub const M_TSDS_COUNT_MAX: i32 = -202; +pub const M_BIONIC_ZERO_INIT: i32 = -203; +pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; +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 PASS_MAX: u32 = 128; +pub const NL_ARGMAX: u32 = 9; +pub const NL_LANGMAX: u32 = 14; +pub const NL_MSGMAX: u32 = 32767; +pub const NL_NMAX: u32 = 1; +pub const NL_SETMAX: u32 = 255; +pub const NL_TEXTMAX: u32 = 255; +pub const CHAR_BIT: u32 = 8; +pub const LONG_BIT: u32 = 32; +pub const WORD_BIT: u32 = 32; +pub const SCHAR_MAX: u32 = 127; +pub const SCHAR_MIN: i32 = -128; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MIN: u32 = 0; +pub const CHAR_MAX: u32 = 255; +pub const USHRT_MAX: u32 = 65535; +pub const SHRT_MAX: u32 = 32767; +pub const SHRT_MIN: i32 = -32768; +pub const UINT_MAX: u32 = 4294967295; +pub const INT_MAX: u32 = 2147483647; +pub const INT_MIN: i32 = -2147483648; +pub const ULONG_MAX: u32 = 4294967295; +pub const LONG_MAX: u32 = 2147483647; +pub const LONG_MIN: i32 = -2147483648; +pub const ULLONG_MAX: i32 = -1; +pub const LLONG_MAX: u64 = 9223372036854775807; +pub const LLONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MAX: u64 = 9223372036854775807; +pub const ULONG_LONG_MAX: i32 = -1; +pub const UID_MAX: u32 = 4294967295; +pub const GID_MAX: u32 = 4294967295; +pub const SIZE_T_MAX: u32 = 4294967295; +pub const SSIZE_MAX: u32 = 2147483647; +pub const MB_LEN_MAX: u32 = 4; +pub const NZERO: u32 = 20; +pub const IOV_MAX: u32 = 1024; +pub const SEM_VALUE_MAX: u32 = 1073741823; +pub const _POSIX_VERSION: u32 = 200809; +pub const _POSIX2_VERSION: u32 = 200809; +pub const _XOPEN_VERSION: u32 = 700; +pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; +pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; +pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; +pub const _POSIX_CPUTIME: u32 = 200809; +pub const _POSIX_FSYNC: u32 = 200809; +pub const _POSIX_IPV6: u32 = 200809; +pub const _POSIX_MAPPED_FILES: u32 = 200809; +pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; +pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; +pub const _POSIX_MESSAGE_PASSING: i32 = -1; +pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; +pub const _POSIX_NO_TRUNC: u32 = 1; +pub const _POSIX_PRIORITIZED_IO: i32 = -1; +pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_RAW_SOCKETS: u32 = 200809; +pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; +pub const _POSIX_REGEXP: u32 = 1; +pub const _POSIX_SAVED_IDS: u32 = 1; +pub const _POSIX_SEMAPHORES: u32 = 200809; +pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_SHELL: u32 = 1; +pub const _POSIX_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; +pub const _POSIX_THREAD_CPUTIME: u32 = 200809; +pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; +pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; +pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_THREADS: u32 = 200809; +pub const _POSIX_TIMERS: u32 = 200809; +pub const _POSIX_TRACE: i32 = -1; +pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; +pub const _POSIX_TRACE_INHERIT: i32 = -1; +pub const _POSIX_TRACE_LOG: i32 = -1; +pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_VDISABLE: u8 = 0u8; +pub const _POSIX2_C_BIND: u32 = 200809; +pub const _POSIX2_C_DEV: i32 = -1; +pub const _POSIX2_CHAR_TERM: u32 = 200809; +pub const _POSIX2_FORT_DEV: i32 = -1; +pub const _POSIX2_FORT_RUN: i32 = -1; +pub const _POSIX2_LOCALEDEF: i32 = -1; +pub const _POSIX2_SW_DEV: i32 = -1; +pub const _POSIX2_UPE: i32 = -1; +pub const _POSIX_V7_ILP32_OFF32: u32 = 1; +pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; +pub const _POSIX_V7_LP64_OFF64: i32 = -1; +pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; +pub const _XOPEN_CRYPT: i32 = -1; +pub const _XOPEN_ENH_I18N: u32 = 1; +pub const _XOPEN_LEGACY: i32 = -1; +pub const _XOPEN_REALTIME: u32 = 1; +pub const _XOPEN_REALTIME_THREADS: u32 = 1; +pub const _XOPEN_SHM: u32 = 1; +pub const _XOPEN_STREAMS: i32 = -1; +pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; +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_SS_REPL_MAX: u32 = 4; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; +pub const _POSIX_TRACE_NAME_MAX: u32 = 8; +pub const _POSIX_TRACE_SYS_MAX: u32 = 8; +pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +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_CHARCLASS_NAME_MAX: u32 = 14; +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 _XOPEN_IOV_MAX: u32 = 16; +pub const _XOPEN_NAME_MAX: u32 = 255; +pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const HOST_NAME_MAX: u32 = 255; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const TTY_NAME_MAX: u32 = 32; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const FP_INFINITE: u32 = 1; +pub const FP_NAN: u32 = 2; +pub const FP_NORMAL: u32 = 4; +pub const FP_SUBNORMAL: u32 = 8; +pub const FP_ZERO: u32 = 16; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; +pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; +pub const ASENSOR_INVALID: i32 = -1; +pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const AFAMILY_VARIANT_DEFAULT: _bindgen_ty_8 = 0; +pub const AFAMILY_VARIANT_COMPACT: _bindgen_ty_8 = 1; +pub const AFAMILY_VARIANT_ELEGANT: _bindgen_ty_8 = 2; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFontMatcher_create() -> *mut AFontMatcher; } extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_destroy(matcher: *mut AFontMatcher); } extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_setStyle(matcher: *mut AFontMatcher, weight: u16, italic: bool); } extern "C" { - pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; + pub fn AFontMatcher_setLocales( + matcher: *mut AFontMatcher, + languageTags: *const ::std::os::raw::c_char, + ); } extern "C" { - pub fn AFileDescriptor_getFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - ) -> ::std::os::raw::c_int; + pub fn AFontMatcher_setFamilyVariant(matcher: *mut AFontMatcher, familyVariant: u32); } extern "C" { - pub fn AFileDescriptor_setFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - fd: ::std::os::raw::c_int, - ); + pub fn AFontMatcher_match( + matcher: *const AFontMatcher, + familyName: *const ::std::os::raw::c_char, + text: *const u16, + textLength: u32, + runLengthOut: *mut u32, + ) -> *mut AFont; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2918,6 +2838,8 @@ pub struct ARect { } #[test] fn bindgen_test_layout_ARect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -2929,7 +2851,7 @@ fn bindgen_test_layout_ARect() { concat!("Alignment of ", stringify!(ARect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2939,7 +2861,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2949,7 +2871,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2959,7 +2881,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3199,6 +3121,8 @@ pub struct AHardwareBuffer_Desc { } #[test] fn bindgen_test_layout_AHardwareBuffer_Desc() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3210,7 +3134,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { concat!("Alignment of ", stringify!(AHardwareBuffer_Desc)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3220,7 +3144,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3230,7 +3154,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).layers as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3240,7 +3164,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3250,7 +3174,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usage as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usage) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3260,7 +3184,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3270,7 +3194,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu0) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -3280,7 +3204,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu1) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3299,6 +3223,9 @@ pub struct AHardwareBuffer_Plane { } #[test] fn bindgen_test_layout_AHardwareBuffer_Plane() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -3310,7 +3237,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { concat!("Alignment of ", stringify!(AHardwareBuffer_Plane)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3320,9 +3247,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pixelStride as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pixelStride) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3332,7 +3257,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rowStride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rowStride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3350,6 +3275,9 @@ pub struct AHardwareBuffer_Planes { } #[test] fn bindgen_test_layout_AHardwareBuffer_Planes() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 52usize, @@ -3361,9 +3289,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { concat!("Alignment of ", stringify!(AHardwareBuffer_Planes)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).planeCount as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).planeCount) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3373,7 +3299,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).planes as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).planes) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3489,6 +3415,8 @@ pub struct AColor_xy { } #[test] fn bindgen_test_layout_AColor_xy() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3500,7 +3428,7 @@ fn bindgen_test_layout_AColor_xy() { concat!("Alignment of ", stringify!(AColor_xy)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3510,7 +3438,7 @@ fn bindgen_test_layout_AColor_xy() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3532,6 +3460,9 @@ pub struct AHdrMetadata_smpte2086 { } #[test] fn bindgen_test_layout_AHdrMetadata_smpte2086() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3543,10 +3474,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { concat!("Alignment of ", stringify!(AHdrMetadata_smpte2086)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryRed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryRed) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3556,10 +3484,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryGreen as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryGreen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3569,10 +3494,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryBlue as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryBlue) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3582,9 +3504,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).whitePoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).whitePoint) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3594,9 +3514,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxLuminance) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3606,9 +3524,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).minLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).minLuminance) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -3626,6 +3542,9 @@ pub struct AHdrMetadata_cta861_3 { } #[test] fn bindgen_test_layout_AHdrMetadata_cta861_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3637,10 +3556,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { concat!("Alignment of ", stringify!(AHdrMetadata_cta861_3)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxContentLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxContentLightLevel) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3650,10 +3566,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxFrameAverageLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxFrameAverageLightLevel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3663,19 +3576,19 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); } -pub const ANDROID_IMAGE_DECODER_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_IMAGE_DECODER_INCOMPLETE: ::std::os::raw::c_int = -1; -pub const ANDROID_IMAGE_DECODER_ERROR: ::std::os::raw::c_int = -2; -pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: ::std::os::raw::c_int = -3; -pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: ::std::os::raw::c_int = -4; -pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: ::std::os::raw::c_int = -5; -pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: ::std::os::raw::c_int = -6; -pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: ::std::os::raw::c_int = -7; -pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: ::std::os::raw::c_int = -8; -pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: ::std::os::raw::c_int = -9; -pub const ANDROID_IMAGE_DECODER_FINISHED: ::std::os::raw::c_int = -10; -pub const ANDROID_IMAGE_DECODER_INVALID_STATE: ::std::os::raw::c_int = -11; -pub type _bindgen_ty_7 = ::std::os::raw::c_int; +pub const ANDROID_IMAGE_DECODER_SUCCESS: _bindgen_ty_9 = 0; +pub const ANDROID_IMAGE_DECODER_INCOMPLETE: _bindgen_ty_9 = -1; +pub const ANDROID_IMAGE_DECODER_ERROR: _bindgen_ty_9 = -2; +pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: _bindgen_ty_9 = -3; +pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: _bindgen_ty_9 = -4; +pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: _bindgen_ty_9 = -5; +pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: _bindgen_ty_9 = -6; +pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: _bindgen_ty_9 = -7; +pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: _bindgen_ty_9 = -8; +pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: _bindgen_ty_9 = -9; +pub const ANDROID_IMAGE_DECODER_FINISHED: _bindgen_ty_9 = -10; +pub const ANDROID_IMAGE_DECODER_INVALID_STATE: _bindgen_ty_9 = -11; +pub type _bindgen_ty_9 = ::std::os::raw::c_int; extern "C" { pub fn AImageDecoder_resultToString( arg1: ::std::os::raw::c_int, @@ -3793,8 +3706,8 @@ extern "C" { extern "C" { pub fn AImageDecoder_isAnimated(decoder: *mut AImageDecoder) -> bool; } -pub const ANDROID_IMAGE_DECODER_INFINITE: ::std::os::raw::c_uint = 2147483647; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_INFINITE: _bindgen_ty_10 = 2147483647; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoder_getRepeatCount(decoder: *mut AImageDecoder) -> i32; } @@ -3831,16 +3744,16 @@ extern "C" { pub fn AImageDecoderFrameInfo_hasAlphaWithinBounds(info: *const AImageDecoderFrameInfo) -> bool; } -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: ::std::os::raw::c_uint = 2; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: _bindgen_ty_11 = 1; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: _bindgen_ty_11 = 2; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: _bindgen_ty_11 = 3; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getDisposeOp(info: *const AImageDecoderFrameInfo) -> i32; } -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: _bindgen_ty_12 = 1; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: _bindgen_ty_12 = 2; +pub type _bindgen_ty_12 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getBlendOp(info: *const AImageDecoderFrameInfo) -> i32; } @@ -3850,296 +3763,296 @@ extern "C" { handleInternally: bool, ); } -pub const AKEYCODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AKEYCODE_SOFT_LEFT: ::std::os::raw::c_uint = 1; -pub const AKEYCODE_SOFT_RIGHT: ::std::os::raw::c_uint = 2; -pub const AKEYCODE_HOME: ::std::os::raw::c_uint = 3; -pub const AKEYCODE_BACK: ::std::os::raw::c_uint = 4; -pub const AKEYCODE_CALL: ::std::os::raw::c_uint = 5; -pub const AKEYCODE_ENDCALL: ::std::os::raw::c_uint = 6; -pub const AKEYCODE_0: ::std::os::raw::c_uint = 7; -pub const AKEYCODE_1: ::std::os::raw::c_uint = 8; -pub const AKEYCODE_2: ::std::os::raw::c_uint = 9; -pub const AKEYCODE_3: ::std::os::raw::c_uint = 10; -pub const AKEYCODE_4: ::std::os::raw::c_uint = 11; -pub const AKEYCODE_5: ::std::os::raw::c_uint = 12; -pub const AKEYCODE_6: ::std::os::raw::c_uint = 13; -pub const AKEYCODE_7: ::std::os::raw::c_uint = 14; -pub const AKEYCODE_8: ::std::os::raw::c_uint = 15; -pub const AKEYCODE_9: ::std::os::raw::c_uint = 16; -pub const AKEYCODE_STAR: ::std::os::raw::c_uint = 17; -pub const AKEYCODE_POUND: ::std::os::raw::c_uint = 18; -pub const AKEYCODE_DPAD_UP: ::std::os::raw::c_uint = 19; -pub const AKEYCODE_DPAD_DOWN: ::std::os::raw::c_uint = 20; -pub const AKEYCODE_DPAD_LEFT: ::std::os::raw::c_uint = 21; -pub const AKEYCODE_DPAD_RIGHT: ::std::os::raw::c_uint = 22; -pub const AKEYCODE_DPAD_CENTER: ::std::os::raw::c_uint = 23; -pub const AKEYCODE_VOLUME_UP: ::std::os::raw::c_uint = 24; -pub const AKEYCODE_VOLUME_DOWN: ::std::os::raw::c_uint = 25; -pub const AKEYCODE_POWER: ::std::os::raw::c_uint = 26; -pub const AKEYCODE_CAMERA: ::std::os::raw::c_uint = 27; -pub const AKEYCODE_CLEAR: ::std::os::raw::c_uint = 28; -pub const AKEYCODE_A: ::std::os::raw::c_uint = 29; -pub const AKEYCODE_B: ::std::os::raw::c_uint = 30; -pub const AKEYCODE_C: ::std::os::raw::c_uint = 31; -pub const AKEYCODE_D: ::std::os::raw::c_uint = 32; -pub const AKEYCODE_E: ::std::os::raw::c_uint = 33; -pub const AKEYCODE_F: ::std::os::raw::c_uint = 34; -pub const AKEYCODE_G: ::std::os::raw::c_uint = 35; -pub const AKEYCODE_H: ::std::os::raw::c_uint = 36; -pub const AKEYCODE_I: ::std::os::raw::c_uint = 37; -pub const AKEYCODE_J: ::std::os::raw::c_uint = 38; -pub const AKEYCODE_K: ::std::os::raw::c_uint = 39; -pub const AKEYCODE_L: ::std::os::raw::c_uint = 40; -pub const AKEYCODE_M: ::std::os::raw::c_uint = 41; -pub const AKEYCODE_N: ::std::os::raw::c_uint = 42; -pub const AKEYCODE_O: ::std::os::raw::c_uint = 43; -pub const AKEYCODE_P: ::std::os::raw::c_uint = 44; -pub const AKEYCODE_Q: ::std::os::raw::c_uint = 45; -pub const AKEYCODE_R: ::std::os::raw::c_uint = 46; -pub const AKEYCODE_S: ::std::os::raw::c_uint = 47; -pub const AKEYCODE_T: ::std::os::raw::c_uint = 48; -pub const AKEYCODE_U: ::std::os::raw::c_uint = 49; -pub const AKEYCODE_V: ::std::os::raw::c_uint = 50; -pub const AKEYCODE_W: ::std::os::raw::c_uint = 51; -pub const AKEYCODE_X: ::std::os::raw::c_uint = 52; -pub const AKEYCODE_Y: ::std::os::raw::c_uint = 53; -pub const AKEYCODE_Z: ::std::os::raw::c_uint = 54; -pub const AKEYCODE_COMMA: ::std::os::raw::c_uint = 55; -pub const AKEYCODE_PERIOD: ::std::os::raw::c_uint = 56; -pub const AKEYCODE_ALT_LEFT: ::std::os::raw::c_uint = 57; -pub const AKEYCODE_ALT_RIGHT: ::std::os::raw::c_uint = 58; -pub const AKEYCODE_SHIFT_LEFT: ::std::os::raw::c_uint = 59; -pub const AKEYCODE_SHIFT_RIGHT: ::std::os::raw::c_uint = 60; -pub const AKEYCODE_TAB: ::std::os::raw::c_uint = 61; -pub const AKEYCODE_SPACE: ::std::os::raw::c_uint = 62; -pub const AKEYCODE_SYM: ::std::os::raw::c_uint = 63; -pub const AKEYCODE_EXPLORER: ::std::os::raw::c_uint = 64; -pub const AKEYCODE_ENVELOPE: ::std::os::raw::c_uint = 65; -pub const AKEYCODE_ENTER: ::std::os::raw::c_uint = 66; -pub const AKEYCODE_DEL: ::std::os::raw::c_uint = 67; -pub const AKEYCODE_GRAVE: ::std::os::raw::c_uint = 68; -pub const AKEYCODE_MINUS: ::std::os::raw::c_uint = 69; -pub const AKEYCODE_EQUALS: ::std::os::raw::c_uint = 70; -pub const AKEYCODE_LEFT_BRACKET: ::std::os::raw::c_uint = 71; -pub const AKEYCODE_RIGHT_BRACKET: ::std::os::raw::c_uint = 72; -pub const AKEYCODE_BACKSLASH: ::std::os::raw::c_uint = 73; -pub const AKEYCODE_SEMICOLON: ::std::os::raw::c_uint = 74; -pub const AKEYCODE_APOSTROPHE: ::std::os::raw::c_uint = 75; -pub const AKEYCODE_SLASH: ::std::os::raw::c_uint = 76; -pub const AKEYCODE_AT: ::std::os::raw::c_uint = 77; -pub const AKEYCODE_NUM: ::std::os::raw::c_uint = 78; -pub const AKEYCODE_HEADSETHOOK: ::std::os::raw::c_uint = 79; -pub const AKEYCODE_FOCUS: ::std::os::raw::c_uint = 80; -pub const AKEYCODE_PLUS: ::std::os::raw::c_uint = 81; -pub const AKEYCODE_MENU: ::std::os::raw::c_uint = 82; -pub const AKEYCODE_NOTIFICATION: ::std::os::raw::c_uint = 83; -pub const AKEYCODE_SEARCH: ::std::os::raw::c_uint = 84; -pub const AKEYCODE_MEDIA_PLAY_PAUSE: ::std::os::raw::c_uint = 85; -pub const AKEYCODE_MEDIA_STOP: ::std::os::raw::c_uint = 86; -pub const AKEYCODE_MEDIA_NEXT: ::std::os::raw::c_uint = 87; -pub const AKEYCODE_MEDIA_PREVIOUS: ::std::os::raw::c_uint = 88; -pub const AKEYCODE_MEDIA_REWIND: ::std::os::raw::c_uint = 89; -pub const AKEYCODE_MEDIA_FAST_FORWARD: ::std::os::raw::c_uint = 90; -pub const AKEYCODE_MUTE: ::std::os::raw::c_uint = 91; -pub const AKEYCODE_PAGE_UP: ::std::os::raw::c_uint = 92; -pub const AKEYCODE_PAGE_DOWN: ::std::os::raw::c_uint = 93; -pub const AKEYCODE_PICTSYMBOLS: ::std::os::raw::c_uint = 94; -pub const AKEYCODE_SWITCH_CHARSET: ::std::os::raw::c_uint = 95; -pub const AKEYCODE_BUTTON_A: ::std::os::raw::c_uint = 96; -pub const AKEYCODE_BUTTON_B: ::std::os::raw::c_uint = 97; -pub const AKEYCODE_BUTTON_C: ::std::os::raw::c_uint = 98; -pub const AKEYCODE_BUTTON_X: ::std::os::raw::c_uint = 99; -pub const AKEYCODE_BUTTON_Y: ::std::os::raw::c_uint = 100; -pub const AKEYCODE_BUTTON_Z: ::std::os::raw::c_uint = 101; -pub const AKEYCODE_BUTTON_L1: ::std::os::raw::c_uint = 102; -pub const AKEYCODE_BUTTON_R1: ::std::os::raw::c_uint = 103; -pub const AKEYCODE_BUTTON_L2: ::std::os::raw::c_uint = 104; -pub const AKEYCODE_BUTTON_R2: ::std::os::raw::c_uint = 105; -pub const AKEYCODE_BUTTON_THUMBL: ::std::os::raw::c_uint = 106; -pub const AKEYCODE_BUTTON_THUMBR: ::std::os::raw::c_uint = 107; -pub const AKEYCODE_BUTTON_START: ::std::os::raw::c_uint = 108; -pub const AKEYCODE_BUTTON_SELECT: ::std::os::raw::c_uint = 109; -pub const AKEYCODE_BUTTON_MODE: ::std::os::raw::c_uint = 110; -pub const AKEYCODE_ESCAPE: ::std::os::raw::c_uint = 111; -pub const AKEYCODE_FORWARD_DEL: ::std::os::raw::c_uint = 112; -pub const AKEYCODE_CTRL_LEFT: ::std::os::raw::c_uint = 113; -pub const AKEYCODE_CTRL_RIGHT: ::std::os::raw::c_uint = 114; -pub const AKEYCODE_CAPS_LOCK: ::std::os::raw::c_uint = 115; -pub const AKEYCODE_SCROLL_LOCK: ::std::os::raw::c_uint = 116; -pub const AKEYCODE_META_LEFT: ::std::os::raw::c_uint = 117; -pub const AKEYCODE_META_RIGHT: ::std::os::raw::c_uint = 118; -pub const AKEYCODE_FUNCTION: ::std::os::raw::c_uint = 119; -pub const AKEYCODE_SYSRQ: ::std::os::raw::c_uint = 120; -pub const AKEYCODE_BREAK: ::std::os::raw::c_uint = 121; -pub const AKEYCODE_MOVE_HOME: ::std::os::raw::c_uint = 122; -pub const AKEYCODE_MOVE_END: ::std::os::raw::c_uint = 123; -pub const AKEYCODE_INSERT: ::std::os::raw::c_uint = 124; -pub const AKEYCODE_FORWARD: ::std::os::raw::c_uint = 125; -pub const AKEYCODE_MEDIA_PLAY: ::std::os::raw::c_uint = 126; -pub const AKEYCODE_MEDIA_PAUSE: ::std::os::raw::c_uint = 127; -pub const AKEYCODE_MEDIA_CLOSE: ::std::os::raw::c_uint = 128; -pub const AKEYCODE_MEDIA_EJECT: ::std::os::raw::c_uint = 129; -pub const AKEYCODE_MEDIA_RECORD: ::std::os::raw::c_uint = 130; -pub const AKEYCODE_F1: ::std::os::raw::c_uint = 131; -pub const AKEYCODE_F2: ::std::os::raw::c_uint = 132; -pub const AKEYCODE_F3: ::std::os::raw::c_uint = 133; -pub const AKEYCODE_F4: ::std::os::raw::c_uint = 134; -pub const AKEYCODE_F5: ::std::os::raw::c_uint = 135; -pub const AKEYCODE_F6: ::std::os::raw::c_uint = 136; -pub const AKEYCODE_F7: ::std::os::raw::c_uint = 137; -pub const AKEYCODE_F8: ::std::os::raw::c_uint = 138; -pub const AKEYCODE_F9: ::std::os::raw::c_uint = 139; -pub const AKEYCODE_F10: ::std::os::raw::c_uint = 140; -pub const AKEYCODE_F11: ::std::os::raw::c_uint = 141; -pub const AKEYCODE_F12: ::std::os::raw::c_uint = 142; -pub const AKEYCODE_NUM_LOCK: ::std::os::raw::c_uint = 143; -pub const AKEYCODE_NUMPAD_0: ::std::os::raw::c_uint = 144; -pub const AKEYCODE_NUMPAD_1: ::std::os::raw::c_uint = 145; -pub const AKEYCODE_NUMPAD_2: ::std::os::raw::c_uint = 146; -pub const AKEYCODE_NUMPAD_3: ::std::os::raw::c_uint = 147; -pub const AKEYCODE_NUMPAD_4: ::std::os::raw::c_uint = 148; -pub const AKEYCODE_NUMPAD_5: ::std::os::raw::c_uint = 149; -pub const AKEYCODE_NUMPAD_6: ::std::os::raw::c_uint = 150; -pub const AKEYCODE_NUMPAD_7: ::std::os::raw::c_uint = 151; -pub const AKEYCODE_NUMPAD_8: ::std::os::raw::c_uint = 152; -pub const AKEYCODE_NUMPAD_9: ::std::os::raw::c_uint = 153; -pub const AKEYCODE_NUMPAD_DIVIDE: ::std::os::raw::c_uint = 154; -pub const AKEYCODE_NUMPAD_MULTIPLY: ::std::os::raw::c_uint = 155; -pub const AKEYCODE_NUMPAD_SUBTRACT: ::std::os::raw::c_uint = 156; -pub const AKEYCODE_NUMPAD_ADD: ::std::os::raw::c_uint = 157; -pub const AKEYCODE_NUMPAD_DOT: ::std::os::raw::c_uint = 158; -pub const AKEYCODE_NUMPAD_COMMA: ::std::os::raw::c_uint = 159; -pub const AKEYCODE_NUMPAD_ENTER: ::std::os::raw::c_uint = 160; -pub const AKEYCODE_NUMPAD_EQUALS: ::std::os::raw::c_uint = 161; -pub const AKEYCODE_NUMPAD_LEFT_PAREN: ::std::os::raw::c_uint = 162; -pub const AKEYCODE_NUMPAD_RIGHT_PAREN: ::std::os::raw::c_uint = 163; -pub const AKEYCODE_VOLUME_MUTE: ::std::os::raw::c_uint = 164; -pub const AKEYCODE_INFO: ::std::os::raw::c_uint = 165; -pub const AKEYCODE_CHANNEL_UP: ::std::os::raw::c_uint = 166; -pub const AKEYCODE_CHANNEL_DOWN: ::std::os::raw::c_uint = 167; -pub const AKEYCODE_ZOOM_IN: ::std::os::raw::c_uint = 168; -pub const AKEYCODE_ZOOM_OUT: ::std::os::raw::c_uint = 169; -pub const AKEYCODE_TV: ::std::os::raw::c_uint = 170; -pub const AKEYCODE_WINDOW: ::std::os::raw::c_uint = 171; -pub const AKEYCODE_GUIDE: ::std::os::raw::c_uint = 172; -pub const AKEYCODE_DVR: ::std::os::raw::c_uint = 173; -pub const AKEYCODE_BOOKMARK: ::std::os::raw::c_uint = 174; -pub const AKEYCODE_CAPTIONS: ::std::os::raw::c_uint = 175; -pub const AKEYCODE_SETTINGS: ::std::os::raw::c_uint = 176; -pub const AKEYCODE_TV_POWER: ::std::os::raw::c_uint = 177; -pub const AKEYCODE_TV_INPUT: ::std::os::raw::c_uint = 178; -pub const AKEYCODE_STB_POWER: ::std::os::raw::c_uint = 179; -pub const AKEYCODE_STB_INPUT: ::std::os::raw::c_uint = 180; -pub const AKEYCODE_AVR_POWER: ::std::os::raw::c_uint = 181; -pub const AKEYCODE_AVR_INPUT: ::std::os::raw::c_uint = 182; -pub const AKEYCODE_PROG_RED: ::std::os::raw::c_uint = 183; -pub const AKEYCODE_PROG_GREEN: ::std::os::raw::c_uint = 184; -pub const AKEYCODE_PROG_YELLOW: ::std::os::raw::c_uint = 185; -pub const AKEYCODE_PROG_BLUE: ::std::os::raw::c_uint = 186; -pub const AKEYCODE_APP_SWITCH: ::std::os::raw::c_uint = 187; -pub const AKEYCODE_BUTTON_1: ::std::os::raw::c_uint = 188; -pub const AKEYCODE_BUTTON_2: ::std::os::raw::c_uint = 189; -pub const AKEYCODE_BUTTON_3: ::std::os::raw::c_uint = 190; -pub const AKEYCODE_BUTTON_4: ::std::os::raw::c_uint = 191; -pub const AKEYCODE_BUTTON_5: ::std::os::raw::c_uint = 192; -pub const AKEYCODE_BUTTON_6: ::std::os::raw::c_uint = 193; -pub const AKEYCODE_BUTTON_7: ::std::os::raw::c_uint = 194; -pub const AKEYCODE_BUTTON_8: ::std::os::raw::c_uint = 195; -pub const AKEYCODE_BUTTON_9: ::std::os::raw::c_uint = 196; -pub const AKEYCODE_BUTTON_10: ::std::os::raw::c_uint = 197; -pub const AKEYCODE_BUTTON_11: ::std::os::raw::c_uint = 198; -pub const AKEYCODE_BUTTON_12: ::std::os::raw::c_uint = 199; -pub const AKEYCODE_BUTTON_13: ::std::os::raw::c_uint = 200; -pub const AKEYCODE_BUTTON_14: ::std::os::raw::c_uint = 201; -pub const AKEYCODE_BUTTON_15: ::std::os::raw::c_uint = 202; -pub const AKEYCODE_BUTTON_16: ::std::os::raw::c_uint = 203; -pub const AKEYCODE_LANGUAGE_SWITCH: ::std::os::raw::c_uint = 204; -pub const AKEYCODE_MANNER_MODE: ::std::os::raw::c_uint = 205; -pub const AKEYCODE_3D_MODE: ::std::os::raw::c_uint = 206; -pub const AKEYCODE_CONTACTS: ::std::os::raw::c_uint = 207; -pub const AKEYCODE_CALENDAR: ::std::os::raw::c_uint = 208; -pub const AKEYCODE_MUSIC: ::std::os::raw::c_uint = 209; -pub const AKEYCODE_CALCULATOR: ::std::os::raw::c_uint = 210; -pub const AKEYCODE_ZENKAKU_HANKAKU: ::std::os::raw::c_uint = 211; -pub const AKEYCODE_EISU: ::std::os::raw::c_uint = 212; -pub const AKEYCODE_MUHENKAN: ::std::os::raw::c_uint = 213; -pub const AKEYCODE_HENKAN: ::std::os::raw::c_uint = 214; -pub const AKEYCODE_KATAKANA_HIRAGANA: ::std::os::raw::c_uint = 215; -pub const AKEYCODE_YEN: ::std::os::raw::c_uint = 216; -pub const AKEYCODE_RO: ::std::os::raw::c_uint = 217; -pub const AKEYCODE_KANA: ::std::os::raw::c_uint = 218; -pub const AKEYCODE_ASSIST: ::std::os::raw::c_uint = 219; -pub const AKEYCODE_BRIGHTNESS_DOWN: ::std::os::raw::c_uint = 220; -pub const AKEYCODE_BRIGHTNESS_UP: ::std::os::raw::c_uint = 221; -pub const AKEYCODE_MEDIA_AUDIO_TRACK: ::std::os::raw::c_uint = 222; -pub const AKEYCODE_SLEEP: ::std::os::raw::c_uint = 223; -pub const AKEYCODE_WAKEUP: ::std::os::raw::c_uint = 224; -pub const AKEYCODE_PAIRING: ::std::os::raw::c_uint = 225; -pub const AKEYCODE_MEDIA_TOP_MENU: ::std::os::raw::c_uint = 226; -pub const AKEYCODE_11: ::std::os::raw::c_uint = 227; -pub const AKEYCODE_12: ::std::os::raw::c_uint = 228; -pub const AKEYCODE_LAST_CHANNEL: ::std::os::raw::c_uint = 229; -pub const AKEYCODE_TV_DATA_SERVICE: ::std::os::raw::c_uint = 230; -pub const AKEYCODE_VOICE_ASSIST: ::std::os::raw::c_uint = 231; -pub const AKEYCODE_TV_RADIO_SERVICE: ::std::os::raw::c_uint = 232; -pub const AKEYCODE_TV_TELETEXT: ::std::os::raw::c_uint = 233; -pub const AKEYCODE_TV_NUMBER_ENTRY: ::std::os::raw::c_uint = 234; -pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: ::std::os::raw::c_uint = 235; -pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: ::std::os::raw::c_uint = 236; -pub const AKEYCODE_TV_SATELLITE: ::std::os::raw::c_uint = 237; -pub const AKEYCODE_TV_SATELLITE_BS: ::std::os::raw::c_uint = 238; -pub const AKEYCODE_TV_SATELLITE_CS: ::std::os::raw::c_uint = 239; -pub const AKEYCODE_TV_SATELLITE_SERVICE: ::std::os::raw::c_uint = 240; -pub const AKEYCODE_TV_NETWORK: ::std::os::raw::c_uint = 241; -pub const AKEYCODE_TV_ANTENNA_CABLE: ::std::os::raw::c_uint = 242; -pub const AKEYCODE_TV_INPUT_HDMI_1: ::std::os::raw::c_uint = 243; -pub const AKEYCODE_TV_INPUT_HDMI_2: ::std::os::raw::c_uint = 244; -pub const AKEYCODE_TV_INPUT_HDMI_3: ::std::os::raw::c_uint = 245; -pub const AKEYCODE_TV_INPUT_HDMI_4: ::std::os::raw::c_uint = 246; -pub const AKEYCODE_TV_INPUT_COMPOSITE_1: ::std::os::raw::c_uint = 247; -pub const AKEYCODE_TV_INPUT_COMPOSITE_2: ::std::os::raw::c_uint = 248; -pub const AKEYCODE_TV_INPUT_COMPONENT_1: ::std::os::raw::c_uint = 249; -pub const AKEYCODE_TV_INPUT_COMPONENT_2: ::std::os::raw::c_uint = 250; -pub const AKEYCODE_TV_INPUT_VGA_1: ::std::os::raw::c_uint = 251; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION: ::std::os::raw::c_uint = 252; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: ::std::os::raw::c_uint = 253; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: ::std::os::raw::c_uint = 254; -pub const AKEYCODE_TV_ZOOM_MODE: ::std::os::raw::c_uint = 255; -pub const AKEYCODE_TV_CONTENTS_MENU: ::std::os::raw::c_uint = 256; -pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: ::std::os::raw::c_uint = 257; -pub const AKEYCODE_TV_TIMER_PROGRAMMING: ::std::os::raw::c_uint = 258; -pub const AKEYCODE_HELP: ::std::os::raw::c_uint = 259; -pub const AKEYCODE_NAVIGATE_PREVIOUS: ::std::os::raw::c_uint = 260; -pub const AKEYCODE_NAVIGATE_NEXT: ::std::os::raw::c_uint = 261; -pub const AKEYCODE_NAVIGATE_IN: ::std::os::raw::c_uint = 262; -pub const AKEYCODE_NAVIGATE_OUT: ::std::os::raw::c_uint = 263; -pub const AKEYCODE_STEM_PRIMARY: ::std::os::raw::c_uint = 264; -pub const AKEYCODE_STEM_1: ::std::os::raw::c_uint = 265; -pub const AKEYCODE_STEM_2: ::std::os::raw::c_uint = 266; -pub const AKEYCODE_STEM_3: ::std::os::raw::c_uint = 267; -pub const AKEYCODE_DPAD_UP_LEFT: ::std::os::raw::c_uint = 268; -pub const AKEYCODE_DPAD_DOWN_LEFT: ::std::os::raw::c_uint = 269; -pub const AKEYCODE_DPAD_UP_RIGHT: ::std::os::raw::c_uint = 270; -pub const AKEYCODE_DPAD_DOWN_RIGHT: ::std::os::raw::c_uint = 271; -pub const AKEYCODE_MEDIA_SKIP_FORWARD: ::std::os::raw::c_uint = 272; -pub const AKEYCODE_MEDIA_SKIP_BACKWARD: ::std::os::raw::c_uint = 273; -pub const AKEYCODE_MEDIA_STEP_FORWARD: ::std::os::raw::c_uint = 274; -pub const AKEYCODE_MEDIA_STEP_BACKWARD: ::std::os::raw::c_uint = 275; -pub const AKEYCODE_SOFT_SLEEP: ::std::os::raw::c_uint = 276; -pub const AKEYCODE_CUT: ::std::os::raw::c_uint = 277; -pub const AKEYCODE_COPY: ::std::os::raw::c_uint = 278; -pub const AKEYCODE_PASTE: ::std::os::raw::c_uint = 279; -pub const AKEYCODE_SYSTEM_NAVIGATION_UP: ::std::os::raw::c_uint = 280; -pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: ::std::os::raw::c_uint = 281; -pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: ::std::os::raw::c_uint = 282; -pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: ::std::os::raw::c_uint = 283; -pub const AKEYCODE_ALL_APPS: ::std::os::raw::c_uint = 284; -pub const AKEYCODE_REFRESH: ::std::os::raw::c_uint = 285; -pub const AKEYCODE_THUMBS_UP: ::std::os::raw::c_uint = 286; -pub const AKEYCODE_THUMBS_DOWN: ::std::os::raw::c_uint = 287; -pub const AKEYCODE_PROFILE_SWITCH: ::std::os::raw::c_uint = 288; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +pub const AKEYCODE_UNKNOWN: _bindgen_ty_13 = 0; +pub const AKEYCODE_SOFT_LEFT: _bindgen_ty_13 = 1; +pub const AKEYCODE_SOFT_RIGHT: _bindgen_ty_13 = 2; +pub const AKEYCODE_HOME: _bindgen_ty_13 = 3; +pub const AKEYCODE_BACK: _bindgen_ty_13 = 4; +pub const AKEYCODE_CALL: _bindgen_ty_13 = 5; +pub const AKEYCODE_ENDCALL: _bindgen_ty_13 = 6; +pub const AKEYCODE_0: _bindgen_ty_13 = 7; +pub const AKEYCODE_1: _bindgen_ty_13 = 8; +pub const AKEYCODE_2: _bindgen_ty_13 = 9; +pub const AKEYCODE_3: _bindgen_ty_13 = 10; +pub const AKEYCODE_4: _bindgen_ty_13 = 11; +pub const AKEYCODE_5: _bindgen_ty_13 = 12; +pub const AKEYCODE_6: _bindgen_ty_13 = 13; +pub const AKEYCODE_7: _bindgen_ty_13 = 14; +pub const AKEYCODE_8: _bindgen_ty_13 = 15; +pub const AKEYCODE_9: _bindgen_ty_13 = 16; +pub const AKEYCODE_STAR: _bindgen_ty_13 = 17; +pub const AKEYCODE_POUND: _bindgen_ty_13 = 18; +pub const AKEYCODE_DPAD_UP: _bindgen_ty_13 = 19; +pub const AKEYCODE_DPAD_DOWN: _bindgen_ty_13 = 20; +pub const AKEYCODE_DPAD_LEFT: _bindgen_ty_13 = 21; +pub const AKEYCODE_DPAD_RIGHT: _bindgen_ty_13 = 22; +pub const AKEYCODE_DPAD_CENTER: _bindgen_ty_13 = 23; +pub const AKEYCODE_VOLUME_UP: _bindgen_ty_13 = 24; +pub const AKEYCODE_VOLUME_DOWN: _bindgen_ty_13 = 25; +pub const AKEYCODE_POWER: _bindgen_ty_13 = 26; +pub const AKEYCODE_CAMERA: _bindgen_ty_13 = 27; +pub const AKEYCODE_CLEAR: _bindgen_ty_13 = 28; +pub const AKEYCODE_A: _bindgen_ty_13 = 29; +pub const AKEYCODE_B: _bindgen_ty_13 = 30; +pub const AKEYCODE_C: _bindgen_ty_13 = 31; +pub const AKEYCODE_D: _bindgen_ty_13 = 32; +pub const AKEYCODE_E: _bindgen_ty_13 = 33; +pub const AKEYCODE_F: _bindgen_ty_13 = 34; +pub const AKEYCODE_G: _bindgen_ty_13 = 35; +pub const AKEYCODE_H: _bindgen_ty_13 = 36; +pub const AKEYCODE_I: _bindgen_ty_13 = 37; +pub const AKEYCODE_J: _bindgen_ty_13 = 38; +pub const AKEYCODE_K: _bindgen_ty_13 = 39; +pub const AKEYCODE_L: _bindgen_ty_13 = 40; +pub const AKEYCODE_M: _bindgen_ty_13 = 41; +pub const AKEYCODE_N: _bindgen_ty_13 = 42; +pub const AKEYCODE_O: _bindgen_ty_13 = 43; +pub const AKEYCODE_P: _bindgen_ty_13 = 44; +pub const AKEYCODE_Q: _bindgen_ty_13 = 45; +pub const AKEYCODE_R: _bindgen_ty_13 = 46; +pub const AKEYCODE_S: _bindgen_ty_13 = 47; +pub const AKEYCODE_T: _bindgen_ty_13 = 48; +pub const AKEYCODE_U: _bindgen_ty_13 = 49; +pub const AKEYCODE_V: _bindgen_ty_13 = 50; +pub const AKEYCODE_W: _bindgen_ty_13 = 51; +pub const AKEYCODE_X: _bindgen_ty_13 = 52; +pub const AKEYCODE_Y: _bindgen_ty_13 = 53; +pub const AKEYCODE_Z: _bindgen_ty_13 = 54; +pub const AKEYCODE_COMMA: _bindgen_ty_13 = 55; +pub const AKEYCODE_PERIOD: _bindgen_ty_13 = 56; +pub const AKEYCODE_ALT_LEFT: _bindgen_ty_13 = 57; +pub const AKEYCODE_ALT_RIGHT: _bindgen_ty_13 = 58; +pub const AKEYCODE_SHIFT_LEFT: _bindgen_ty_13 = 59; +pub const AKEYCODE_SHIFT_RIGHT: _bindgen_ty_13 = 60; +pub const AKEYCODE_TAB: _bindgen_ty_13 = 61; +pub const AKEYCODE_SPACE: _bindgen_ty_13 = 62; +pub const AKEYCODE_SYM: _bindgen_ty_13 = 63; +pub const AKEYCODE_EXPLORER: _bindgen_ty_13 = 64; +pub const AKEYCODE_ENVELOPE: _bindgen_ty_13 = 65; +pub const AKEYCODE_ENTER: _bindgen_ty_13 = 66; +pub const AKEYCODE_DEL: _bindgen_ty_13 = 67; +pub const AKEYCODE_GRAVE: _bindgen_ty_13 = 68; +pub const AKEYCODE_MINUS: _bindgen_ty_13 = 69; +pub const AKEYCODE_EQUALS: _bindgen_ty_13 = 70; +pub const AKEYCODE_LEFT_BRACKET: _bindgen_ty_13 = 71; +pub const AKEYCODE_RIGHT_BRACKET: _bindgen_ty_13 = 72; +pub const AKEYCODE_BACKSLASH: _bindgen_ty_13 = 73; +pub const AKEYCODE_SEMICOLON: _bindgen_ty_13 = 74; +pub const AKEYCODE_APOSTROPHE: _bindgen_ty_13 = 75; +pub const AKEYCODE_SLASH: _bindgen_ty_13 = 76; +pub const AKEYCODE_AT: _bindgen_ty_13 = 77; +pub const AKEYCODE_NUM: _bindgen_ty_13 = 78; +pub const AKEYCODE_HEADSETHOOK: _bindgen_ty_13 = 79; +pub const AKEYCODE_FOCUS: _bindgen_ty_13 = 80; +pub const AKEYCODE_PLUS: _bindgen_ty_13 = 81; +pub const AKEYCODE_MENU: _bindgen_ty_13 = 82; +pub const AKEYCODE_NOTIFICATION: _bindgen_ty_13 = 83; +pub const AKEYCODE_SEARCH: _bindgen_ty_13 = 84; +pub const AKEYCODE_MEDIA_PLAY_PAUSE: _bindgen_ty_13 = 85; +pub const AKEYCODE_MEDIA_STOP: _bindgen_ty_13 = 86; +pub const AKEYCODE_MEDIA_NEXT: _bindgen_ty_13 = 87; +pub const AKEYCODE_MEDIA_PREVIOUS: _bindgen_ty_13 = 88; +pub const AKEYCODE_MEDIA_REWIND: _bindgen_ty_13 = 89; +pub const AKEYCODE_MEDIA_FAST_FORWARD: _bindgen_ty_13 = 90; +pub const AKEYCODE_MUTE: _bindgen_ty_13 = 91; +pub const AKEYCODE_PAGE_UP: _bindgen_ty_13 = 92; +pub const AKEYCODE_PAGE_DOWN: _bindgen_ty_13 = 93; +pub const AKEYCODE_PICTSYMBOLS: _bindgen_ty_13 = 94; +pub const AKEYCODE_SWITCH_CHARSET: _bindgen_ty_13 = 95; +pub const AKEYCODE_BUTTON_A: _bindgen_ty_13 = 96; +pub const AKEYCODE_BUTTON_B: _bindgen_ty_13 = 97; +pub const AKEYCODE_BUTTON_C: _bindgen_ty_13 = 98; +pub const AKEYCODE_BUTTON_X: _bindgen_ty_13 = 99; +pub const AKEYCODE_BUTTON_Y: _bindgen_ty_13 = 100; +pub const AKEYCODE_BUTTON_Z: _bindgen_ty_13 = 101; +pub const AKEYCODE_BUTTON_L1: _bindgen_ty_13 = 102; +pub const AKEYCODE_BUTTON_R1: _bindgen_ty_13 = 103; +pub const AKEYCODE_BUTTON_L2: _bindgen_ty_13 = 104; +pub const AKEYCODE_BUTTON_R2: _bindgen_ty_13 = 105; +pub const AKEYCODE_BUTTON_THUMBL: _bindgen_ty_13 = 106; +pub const AKEYCODE_BUTTON_THUMBR: _bindgen_ty_13 = 107; +pub const AKEYCODE_BUTTON_START: _bindgen_ty_13 = 108; +pub const AKEYCODE_BUTTON_SELECT: _bindgen_ty_13 = 109; +pub const AKEYCODE_BUTTON_MODE: _bindgen_ty_13 = 110; +pub const AKEYCODE_ESCAPE: _bindgen_ty_13 = 111; +pub const AKEYCODE_FORWARD_DEL: _bindgen_ty_13 = 112; +pub const AKEYCODE_CTRL_LEFT: _bindgen_ty_13 = 113; +pub const AKEYCODE_CTRL_RIGHT: _bindgen_ty_13 = 114; +pub const AKEYCODE_CAPS_LOCK: _bindgen_ty_13 = 115; +pub const AKEYCODE_SCROLL_LOCK: _bindgen_ty_13 = 116; +pub const AKEYCODE_META_LEFT: _bindgen_ty_13 = 117; +pub const AKEYCODE_META_RIGHT: _bindgen_ty_13 = 118; +pub const AKEYCODE_FUNCTION: _bindgen_ty_13 = 119; +pub const AKEYCODE_SYSRQ: _bindgen_ty_13 = 120; +pub const AKEYCODE_BREAK: _bindgen_ty_13 = 121; +pub const AKEYCODE_MOVE_HOME: _bindgen_ty_13 = 122; +pub const AKEYCODE_MOVE_END: _bindgen_ty_13 = 123; +pub const AKEYCODE_INSERT: _bindgen_ty_13 = 124; +pub const AKEYCODE_FORWARD: _bindgen_ty_13 = 125; +pub const AKEYCODE_MEDIA_PLAY: _bindgen_ty_13 = 126; +pub const AKEYCODE_MEDIA_PAUSE: _bindgen_ty_13 = 127; +pub const AKEYCODE_MEDIA_CLOSE: _bindgen_ty_13 = 128; +pub const AKEYCODE_MEDIA_EJECT: _bindgen_ty_13 = 129; +pub const AKEYCODE_MEDIA_RECORD: _bindgen_ty_13 = 130; +pub const AKEYCODE_F1: _bindgen_ty_13 = 131; +pub const AKEYCODE_F2: _bindgen_ty_13 = 132; +pub const AKEYCODE_F3: _bindgen_ty_13 = 133; +pub const AKEYCODE_F4: _bindgen_ty_13 = 134; +pub const AKEYCODE_F5: _bindgen_ty_13 = 135; +pub const AKEYCODE_F6: _bindgen_ty_13 = 136; +pub const AKEYCODE_F7: _bindgen_ty_13 = 137; +pub const AKEYCODE_F8: _bindgen_ty_13 = 138; +pub const AKEYCODE_F9: _bindgen_ty_13 = 139; +pub const AKEYCODE_F10: _bindgen_ty_13 = 140; +pub const AKEYCODE_F11: _bindgen_ty_13 = 141; +pub const AKEYCODE_F12: _bindgen_ty_13 = 142; +pub const AKEYCODE_NUM_LOCK: _bindgen_ty_13 = 143; +pub const AKEYCODE_NUMPAD_0: _bindgen_ty_13 = 144; +pub const AKEYCODE_NUMPAD_1: _bindgen_ty_13 = 145; +pub const AKEYCODE_NUMPAD_2: _bindgen_ty_13 = 146; +pub const AKEYCODE_NUMPAD_3: _bindgen_ty_13 = 147; +pub const AKEYCODE_NUMPAD_4: _bindgen_ty_13 = 148; +pub const AKEYCODE_NUMPAD_5: _bindgen_ty_13 = 149; +pub const AKEYCODE_NUMPAD_6: _bindgen_ty_13 = 150; +pub const AKEYCODE_NUMPAD_7: _bindgen_ty_13 = 151; +pub const AKEYCODE_NUMPAD_8: _bindgen_ty_13 = 152; +pub const AKEYCODE_NUMPAD_9: _bindgen_ty_13 = 153; +pub const AKEYCODE_NUMPAD_DIVIDE: _bindgen_ty_13 = 154; +pub const AKEYCODE_NUMPAD_MULTIPLY: _bindgen_ty_13 = 155; +pub const AKEYCODE_NUMPAD_SUBTRACT: _bindgen_ty_13 = 156; +pub const AKEYCODE_NUMPAD_ADD: _bindgen_ty_13 = 157; +pub const AKEYCODE_NUMPAD_DOT: _bindgen_ty_13 = 158; +pub const AKEYCODE_NUMPAD_COMMA: _bindgen_ty_13 = 159; +pub const AKEYCODE_NUMPAD_ENTER: _bindgen_ty_13 = 160; +pub const AKEYCODE_NUMPAD_EQUALS: _bindgen_ty_13 = 161; +pub const AKEYCODE_NUMPAD_LEFT_PAREN: _bindgen_ty_13 = 162; +pub const AKEYCODE_NUMPAD_RIGHT_PAREN: _bindgen_ty_13 = 163; +pub const AKEYCODE_VOLUME_MUTE: _bindgen_ty_13 = 164; +pub const AKEYCODE_INFO: _bindgen_ty_13 = 165; +pub const AKEYCODE_CHANNEL_UP: _bindgen_ty_13 = 166; +pub const AKEYCODE_CHANNEL_DOWN: _bindgen_ty_13 = 167; +pub const AKEYCODE_ZOOM_IN: _bindgen_ty_13 = 168; +pub const AKEYCODE_ZOOM_OUT: _bindgen_ty_13 = 169; +pub const AKEYCODE_TV: _bindgen_ty_13 = 170; +pub const AKEYCODE_WINDOW: _bindgen_ty_13 = 171; +pub const AKEYCODE_GUIDE: _bindgen_ty_13 = 172; +pub const AKEYCODE_DVR: _bindgen_ty_13 = 173; +pub const AKEYCODE_BOOKMARK: _bindgen_ty_13 = 174; +pub const AKEYCODE_CAPTIONS: _bindgen_ty_13 = 175; +pub const AKEYCODE_SETTINGS: _bindgen_ty_13 = 176; +pub const AKEYCODE_TV_POWER: _bindgen_ty_13 = 177; +pub const AKEYCODE_TV_INPUT: _bindgen_ty_13 = 178; +pub const AKEYCODE_STB_POWER: _bindgen_ty_13 = 179; +pub const AKEYCODE_STB_INPUT: _bindgen_ty_13 = 180; +pub const AKEYCODE_AVR_POWER: _bindgen_ty_13 = 181; +pub const AKEYCODE_AVR_INPUT: _bindgen_ty_13 = 182; +pub const AKEYCODE_PROG_RED: _bindgen_ty_13 = 183; +pub const AKEYCODE_PROG_GREEN: _bindgen_ty_13 = 184; +pub const AKEYCODE_PROG_YELLOW: _bindgen_ty_13 = 185; +pub const AKEYCODE_PROG_BLUE: _bindgen_ty_13 = 186; +pub const AKEYCODE_APP_SWITCH: _bindgen_ty_13 = 187; +pub const AKEYCODE_BUTTON_1: _bindgen_ty_13 = 188; +pub const AKEYCODE_BUTTON_2: _bindgen_ty_13 = 189; +pub const AKEYCODE_BUTTON_3: _bindgen_ty_13 = 190; +pub const AKEYCODE_BUTTON_4: _bindgen_ty_13 = 191; +pub const AKEYCODE_BUTTON_5: _bindgen_ty_13 = 192; +pub const AKEYCODE_BUTTON_6: _bindgen_ty_13 = 193; +pub const AKEYCODE_BUTTON_7: _bindgen_ty_13 = 194; +pub const AKEYCODE_BUTTON_8: _bindgen_ty_13 = 195; +pub const AKEYCODE_BUTTON_9: _bindgen_ty_13 = 196; +pub const AKEYCODE_BUTTON_10: _bindgen_ty_13 = 197; +pub const AKEYCODE_BUTTON_11: _bindgen_ty_13 = 198; +pub const AKEYCODE_BUTTON_12: _bindgen_ty_13 = 199; +pub const AKEYCODE_BUTTON_13: _bindgen_ty_13 = 200; +pub const AKEYCODE_BUTTON_14: _bindgen_ty_13 = 201; +pub const AKEYCODE_BUTTON_15: _bindgen_ty_13 = 202; +pub const AKEYCODE_BUTTON_16: _bindgen_ty_13 = 203; +pub const AKEYCODE_LANGUAGE_SWITCH: _bindgen_ty_13 = 204; +pub const AKEYCODE_MANNER_MODE: _bindgen_ty_13 = 205; +pub const AKEYCODE_3D_MODE: _bindgen_ty_13 = 206; +pub const AKEYCODE_CONTACTS: _bindgen_ty_13 = 207; +pub const AKEYCODE_CALENDAR: _bindgen_ty_13 = 208; +pub const AKEYCODE_MUSIC: _bindgen_ty_13 = 209; +pub const AKEYCODE_CALCULATOR: _bindgen_ty_13 = 210; +pub const AKEYCODE_ZENKAKU_HANKAKU: _bindgen_ty_13 = 211; +pub const AKEYCODE_EISU: _bindgen_ty_13 = 212; +pub const AKEYCODE_MUHENKAN: _bindgen_ty_13 = 213; +pub const AKEYCODE_HENKAN: _bindgen_ty_13 = 214; +pub const AKEYCODE_KATAKANA_HIRAGANA: _bindgen_ty_13 = 215; +pub const AKEYCODE_YEN: _bindgen_ty_13 = 216; +pub const AKEYCODE_RO: _bindgen_ty_13 = 217; +pub const AKEYCODE_KANA: _bindgen_ty_13 = 218; +pub const AKEYCODE_ASSIST: _bindgen_ty_13 = 219; +pub const AKEYCODE_BRIGHTNESS_DOWN: _bindgen_ty_13 = 220; +pub const AKEYCODE_BRIGHTNESS_UP: _bindgen_ty_13 = 221; +pub const AKEYCODE_MEDIA_AUDIO_TRACK: _bindgen_ty_13 = 222; +pub const AKEYCODE_SLEEP: _bindgen_ty_13 = 223; +pub const AKEYCODE_WAKEUP: _bindgen_ty_13 = 224; +pub const AKEYCODE_PAIRING: _bindgen_ty_13 = 225; +pub const AKEYCODE_MEDIA_TOP_MENU: _bindgen_ty_13 = 226; +pub const AKEYCODE_11: _bindgen_ty_13 = 227; +pub const AKEYCODE_12: _bindgen_ty_13 = 228; +pub const AKEYCODE_LAST_CHANNEL: _bindgen_ty_13 = 229; +pub const AKEYCODE_TV_DATA_SERVICE: _bindgen_ty_13 = 230; +pub const AKEYCODE_VOICE_ASSIST: _bindgen_ty_13 = 231; +pub const AKEYCODE_TV_RADIO_SERVICE: _bindgen_ty_13 = 232; +pub const AKEYCODE_TV_TELETEXT: _bindgen_ty_13 = 233; +pub const AKEYCODE_TV_NUMBER_ENTRY: _bindgen_ty_13 = 234; +pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: _bindgen_ty_13 = 235; +pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: _bindgen_ty_13 = 236; +pub const AKEYCODE_TV_SATELLITE: _bindgen_ty_13 = 237; +pub const AKEYCODE_TV_SATELLITE_BS: _bindgen_ty_13 = 238; +pub const AKEYCODE_TV_SATELLITE_CS: _bindgen_ty_13 = 239; +pub const AKEYCODE_TV_SATELLITE_SERVICE: _bindgen_ty_13 = 240; +pub const AKEYCODE_TV_NETWORK: _bindgen_ty_13 = 241; +pub const AKEYCODE_TV_ANTENNA_CABLE: _bindgen_ty_13 = 242; +pub const AKEYCODE_TV_INPUT_HDMI_1: _bindgen_ty_13 = 243; +pub const AKEYCODE_TV_INPUT_HDMI_2: _bindgen_ty_13 = 244; +pub const AKEYCODE_TV_INPUT_HDMI_3: _bindgen_ty_13 = 245; +pub const AKEYCODE_TV_INPUT_HDMI_4: _bindgen_ty_13 = 246; +pub const AKEYCODE_TV_INPUT_COMPOSITE_1: _bindgen_ty_13 = 247; +pub const AKEYCODE_TV_INPUT_COMPOSITE_2: _bindgen_ty_13 = 248; +pub const AKEYCODE_TV_INPUT_COMPONENT_1: _bindgen_ty_13 = 249; +pub const AKEYCODE_TV_INPUT_COMPONENT_2: _bindgen_ty_13 = 250; +pub const AKEYCODE_TV_INPUT_VGA_1: _bindgen_ty_13 = 251; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION: _bindgen_ty_13 = 252; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: _bindgen_ty_13 = 253; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: _bindgen_ty_13 = 254; +pub const AKEYCODE_TV_ZOOM_MODE: _bindgen_ty_13 = 255; +pub const AKEYCODE_TV_CONTENTS_MENU: _bindgen_ty_13 = 256; +pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: _bindgen_ty_13 = 257; +pub const AKEYCODE_TV_TIMER_PROGRAMMING: _bindgen_ty_13 = 258; +pub const AKEYCODE_HELP: _bindgen_ty_13 = 259; +pub const AKEYCODE_NAVIGATE_PREVIOUS: _bindgen_ty_13 = 260; +pub const AKEYCODE_NAVIGATE_NEXT: _bindgen_ty_13 = 261; +pub const AKEYCODE_NAVIGATE_IN: _bindgen_ty_13 = 262; +pub const AKEYCODE_NAVIGATE_OUT: _bindgen_ty_13 = 263; +pub const AKEYCODE_STEM_PRIMARY: _bindgen_ty_13 = 264; +pub const AKEYCODE_STEM_1: _bindgen_ty_13 = 265; +pub const AKEYCODE_STEM_2: _bindgen_ty_13 = 266; +pub const AKEYCODE_STEM_3: _bindgen_ty_13 = 267; +pub const AKEYCODE_DPAD_UP_LEFT: _bindgen_ty_13 = 268; +pub const AKEYCODE_DPAD_DOWN_LEFT: _bindgen_ty_13 = 269; +pub const AKEYCODE_DPAD_UP_RIGHT: _bindgen_ty_13 = 270; +pub const AKEYCODE_DPAD_DOWN_RIGHT: _bindgen_ty_13 = 271; +pub const AKEYCODE_MEDIA_SKIP_FORWARD: _bindgen_ty_13 = 272; +pub const AKEYCODE_MEDIA_SKIP_BACKWARD: _bindgen_ty_13 = 273; +pub const AKEYCODE_MEDIA_STEP_FORWARD: _bindgen_ty_13 = 274; +pub const AKEYCODE_MEDIA_STEP_BACKWARD: _bindgen_ty_13 = 275; +pub const AKEYCODE_SOFT_SLEEP: _bindgen_ty_13 = 276; +pub const AKEYCODE_CUT: _bindgen_ty_13 = 277; +pub const AKEYCODE_COPY: _bindgen_ty_13 = 278; +pub const AKEYCODE_PASTE: _bindgen_ty_13 = 279; +pub const AKEYCODE_SYSTEM_NAVIGATION_UP: _bindgen_ty_13 = 280; +pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: _bindgen_ty_13 = 281; +pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: _bindgen_ty_13 = 282; +pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: _bindgen_ty_13 = 283; +pub const AKEYCODE_ALL_APPS: _bindgen_ty_13 = 284; +pub const AKEYCODE_REFRESH: _bindgen_ty_13 = 285; +pub const AKEYCODE_THUMBS_UP: _bindgen_ty_13 = 286; +pub const AKEYCODE_THUMBS_DOWN: _bindgen_ty_13 = 287; +pub const AKEYCODE_PROFILE_SWITCH: _bindgen_ty_13 = 288; +pub type _bindgen_ty_13 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ALooper { @@ -4148,28 +4061,28 @@ pub struct ALooper { extern "C" { pub fn ALooper_forThread() -> *mut ALooper; } -pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; +pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: _bindgen_ty_14 = 1; +pub type _bindgen_ty_14 = ::std::os::raw::c_uint; extern "C" { pub fn ALooper_prepare(opts: ::std::os::raw::c_int) -> *mut ALooper; } -pub const ALOOPER_POLL_WAKE: ::std::os::raw::c_int = -1; -pub const ALOOPER_POLL_CALLBACK: ::std::os::raw::c_int = -2; -pub const ALOOPER_POLL_TIMEOUT: ::std::os::raw::c_int = -3; -pub const ALOOPER_POLL_ERROR: ::std::os::raw::c_int = -4; -pub type _bindgen_ty_13 = ::std::os::raw::c_int; +pub const ALOOPER_POLL_WAKE: _bindgen_ty_15 = -1; +pub const ALOOPER_POLL_CALLBACK: _bindgen_ty_15 = -2; +pub const ALOOPER_POLL_TIMEOUT: _bindgen_ty_15 = -3; +pub const ALOOPER_POLL_ERROR: _bindgen_ty_15 = -4; +pub type _bindgen_ty_15 = ::std::os::raw::c_int; extern "C" { pub fn ALooper_acquire(looper: *mut ALooper); } extern "C" { pub fn ALooper_release(looper: *mut ALooper); } -pub const ALOOPER_EVENT_INPUT: ::std::os::raw::c_uint = 1; -pub const ALOOPER_EVENT_OUTPUT: ::std::os::raw::c_uint = 2; -pub const ALOOPER_EVENT_ERROR: ::std::os::raw::c_uint = 4; -pub const ALOOPER_EVENT_HANGUP: ::std::os::raw::c_uint = 8; -pub const ALOOPER_EVENT_INVALID: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; +pub const ALOOPER_EVENT_INPUT: _bindgen_ty_16 = 1; +pub const ALOOPER_EVENT_OUTPUT: _bindgen_ty_16 = 2; +pub const ALOOPER_EVENT_ERROR: _bindgen_ty_16 = 4; +pub const ALOOPER_EVENT_HANGUP: _bindgen_ty_16 = 8; +pub const ALOOPER_EVENT_INVALID: _bindgen_ty_16 = 16; +pub type _bindgen_ty_16 = ::std::os::raw::c_uint; pub type ALooper_callbackFunc = ::std::option::Option< unsafe extern "C" fn( fd: ::std::os::raw::c_int, @@ -4212,143 +4125,143 @@ extern "C" { fd: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AKEY_STATE_UNKNOWN: ::std::os::raw::c_int = -1; -pub const AKEY_STATE_UP: ::std::os::raw::c_int = 0; -pub const AKEY_STATE_DOWN: ::std::os::raw::c_int = 1; -pub const AKEY_STATE_VIRTUAL: ::std::os::raw::c_int = 2; -pub type _bindgen_ty_15 = ::std::os::raw::c_int; -pub const AMETA_NONE: ::std::os::raw::c_uint = 0; -pub const AMETA_ALT_ON: ::std::os::raw::c_uint = 2; -pub const AMETA_ALT_LEFT_ON: ::std::os::raw::c_uint = 16; -pub const AMETA_ALT_RIGHT_ON: ::std::os::raw::c_uint = 32; -pub const AMETA_SHIFT_ON: ::std::os::raw::c_uint = 1; -pub const AMETA_SHIFT_LEFT_ON: ::std::os::raw::c_uint = 64; -pub const AMETA_SHIFT_RIGHT_ON: ::std::os::raw::c_uint = 128; -pub const AMETA_SYM_ON: ::std::os::raw::c_uint = 4; -pub const AMETA_FUNCTION_ON: ::std::os::raw::c_uint = 8; -pub const AMETA_CTRL_ON: ::std::os::raw::c_uint = 4096; -pub const AMETA_CTRL_LEFT_ON: ::std::os::raw::c_uint = 8192; -pub const AMETA_CTRL_RIGHT_ON: ::std::os::raw::c_uint = 16384; -pub const AMETA_META_ON: ::std::os::raw::c_uint = 65536; -pub const AMETA_META_LEFT_ON: ::std::os::raw::c_uint = 131072; -pub const AMETA_META_RIGHT_ON: ::std::os::raw::c_uint = 262144; -pub const AMETA_CAPS_LOCK_ON: ::std::os::raw::c_uint = 1048576; -pub const AMETA_NUM_LOCK_ON: ::std::os::raw::c_uint = 2097152; -pub const AMETA_SCROLL_LOCK_ON: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; +pub const AKEY_STATE_UNKNOWN: _bindgen_ty_17 = -1; +pub const AKEY_STATE_UP: _bindgen_ty_17 = 0; +pub const AKEY_STATE_DOWN: _bindgen_ty_17 = 1; +pub const AKEY_STATE_VIRTUAL: _bindgen_ty_17 = 2; +pub type _bindgen_ty_17 = ::std::os::raw::c_int; +pub const AMETA_NONE: _bindgen_ty_18 = 0; +pub const AMETA_ALT_ON: _bindgen_ty_18 = 2; +pub const AMETA_ALT_LEFT_ON: _bindgen_ty_18 = 16; +pub const AMETA_ALT_RIGHT_ON: _bindgen_ty_18 = 32; +pub const AMETA_SHIFT_ON: _bindgen_ty_18 = 1; +pub const AMETA_SHIFT_LEFT_ON: _bindgen_ty_18 = 64; +pub const AMETA_SHIFT_RIGHT_ON: _bindgen_ty_18 = 128; +pub const AMETA_SYM_ON: _bindgen_ty_18 = 4; +pub const AMETA_FUNCTION_ON: _bindgen_ty_18 = 8; +pub const AMETA_CTRL_ON: _bindgen_ty_18 = 4096; +pub const AMETA_CTRL_LEFT_ON: _bindgen_ty_18 = 8192; +pub const AMETA_CTRL_RIGHT_ON: _bindgen_ty_18 = 16384; +pub const AMETA_META_ON: _bindgen_ty_18 = 65536; +pub const AMETA_META_LEFT_ON: _bindgen_ty_18 = 131072; +pub const AMETA_META_RIGHT_ON: _bindgen_ty_18 = 262144; +pub const AMETA_CAPS_LOCK_ON: _bindgen_ty_18 = 1048576; +pub const AMETA_NUM_LOCK_ON: _bindgen_ty_18 = 2097152; +pub const AMETA_SCROLL_LOCK_ON: _bindgen_ty_18 = 4194304; +pub type _bindgen_ty_18 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AInputEvent { _unused: [u8; 0], } -pub const AINPUT_EVENT_TYPE_KEY: ::std::os::raw::c_uint = 1; -pub const AINPUT_EVENT_TYPE_MOTION: ::std::os::raw::c_uint = 2; -pub const AINPUT_EVENT_TYPE_FOCUS: ::std::os::raw::c_uint = 3; -pub const AINPUT_EVENT_TYPE_CAPTURE: ::std::os::raw::c_uint = 4; -pub const AINPUT_EVENT_TYPE_DRAG: ::std::os::raw::c_uint = 5; -pub const AINPUT_EVENT_TYPE_TOUCH_MODE: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AKEY_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_ACTION_MULTIPLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_FLAG_WOKE_HERE: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: ::std::os::raw::c_uint = 2; -pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: ::std::os::raw::c_uint = 4; -pub const AKEY_EVENT_FLAG_FROM_SYSTEM: ::std::os::raw::c_uint = 8; -pub const AKEY_EVENT_FLAG_EDITOR_ACTION: ::std::os::raw::c_uint = 16; -pub const AKEY_EVENT_FLAG_CANCELED: ::std::os::raw::c_uint = 32; -pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: ::std::os::raw::c_uint = 64; -pub const AKEY_EVENT_FLAG_LONG_PRESS: ::std::os::raw::c_uint = 128; -pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: ::std::os::raw::c_uint = 256; -pub const AKEY_EVENT_FLAG_TRACKING: ::std::os::raw::c_uint = 512; -pub const AKEY_EVENT_FLAG_FALLBACK: ::std::os::raw::c_uint = 1024; +pub const AINPUT_EVENT_TYPE_KEY: _bindgen_ty_19 = 1; +pub const AINPUT_EVENT_TYPE_MOTION: _bindgen_ty_19 = 2; +pub const AINPUT_EVENT_TYPE_FOCUS: _bindgen_ty_19 = 3; +pub const AINPUT_EVENT_TYPE_CAPTURE: _bindgen_ty_19 = 4; +pub const AINPUT_EVENT_TYPE_DRAG: _bindgen_ty_19 = 5; +pub const AINPUT_EVENT_TYPE_TOUCH_MODE: _bindgen_ty_19 = 6; pub type _bindgen_ty_19 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_ACTION_MASK: ::std::os::raw::c_uint = 255; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: ::std::os::raw::c_uint = 65280; -pub const AMOTION_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_ACTION_MOVE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_ACTION_CANCEL: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_ACTION_OUTSIDE: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_ACTION_POINTER_DOWN: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_ACTION_POINTER_UP: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_ACTION_HOVER_MOVE: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_ACTION_SCROLL: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_ACTION_HOVER_ENTER: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_ACTION_HOVER_EXIT: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: ::std::os::raw::c_uint = 12; +pub const AKEY_EVENT_ACTION_DOWN: _bindgen_ty_20 = 0; +pub const AKEY_EVENT_ACTION_UP: _bindgen_ty_20 = 1; +pub const AKEY_EVENT_ACTION_MULTIPLE: _bindgen_ty_20 = 2; pub type _bindgen_ty_20 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: ::std::os::raw::c_uint = 1; +pub const AKEY_EVENT_FLAG_WOKE_HERE: _bindgen_ty_21 = 1; +pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: _bindgen_ty_21 = 2; +pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: _bindgen_ty_21 = 4; +pub const AKEY_EVENT_FLAG_FROM_SYSTEM: _bindgen_ty_21 = 8; +pub const AKEY_EVENT_FLAG_EDITOR_ACTION: _bindgen_ty_21 = 16; +pub const AKEY_EVENT_FLAG_CANCELED: _bindgen_ty_21 = 32; +pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: _bindgen_ty_21 = 64; +pub const AKEY_EVENT_FLAG_LONG_PRESS: _bindgen_ty_21 = 128; +pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: _bindgen_ty_21 = 256; +pub const AKEY_EVENT_FLAG_TRACKING: _bindgen_ty_21 = 512; +pub const AKEY_EVENT_FLAG_FALLBACK: _bindgen_ty_21 = 1024; pub type _bindgen_ty_21 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_EDGE_FLAG_NONE: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_EDGE_FLAG_TOP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_EDGE_FLAG_LEFT: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: ::std::os::raw::c_uint = 8; +pub const AMOTION_EVENT_ACTION_MASK: _bindgen_ty_22 = 255; +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: _bindgen_ty_22 = 65280; +pub const AMOTION_EVENT_ACTION_DOWN: _bindgen_ty_22 = 0; +pub const AMOTION_EVENT_ACTION_UP: _bindgen_ty_22 = 1; +pub const AMOTION_EVENT_ACTION_MOVE: _bindgen_ty_22 = 2; +pub const AMOTION_EVENT_ACTION_CANCEL: _bindgen_ty_22 = 3; +pub const AMOTION_EVENT_ACTION_OUTSIDE: _bindgen_ty_22 = 4; +pub const AMOTION_EVENT_ACTION_POINTER_DOWN: _bindgen_ty_22 = 5; +pub const AMOTION_EVENT_ACTION_POINTER_UP: _bindgen_ty_22 = 6; +pub const AMOTION_EVENT_ACTION_HOVER_MOVE: _bindgen_ty_22 = 7; +pub const AMOTION_EVENT_ACTION_SCROLL: _bindgen_ty_22 = 8; +pub const AMOTION_EVENT_ACTION_HOVER_ENTER: _bindgen_ty_22 = 9; +pub const AMOTION_EVENT_ACTION_HOVER_EXIT: _bindgen_ty_22 = 10; +pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: _bindgen_ty_22 = 11; +pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: _bindgen_ty_22 = 12; pub type _bindgen_ty_22 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_AXIS_X: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_AXIS_Y: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_AXIS_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_AXIS_SIZE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_AXIS_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_AXIS_ORIENTATION: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_AXIS_VSCROLL: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_AXIS_HSCROLL: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_AXIS_Z: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_AXIS_RX: ::std::os::raw::c_uint = 12; -pub const AMOTION_EVENT_AXIS_RY: ::std::os::raw::c_uint = 13; -pub const AMOTION_EVENT_AXIS_RZ: ::std::os::raw::c_uint = 14; -pub const AMOTION_EVENT_AXIS_HAT_X: ::std::os::raw::c_uint = 15; -pub const AMOTION_EVENT_AXIS_HAT_Y: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_AXIS_LTRIGGER: ::std::os::raw::c_uint = 17; -pub const AMOTION_EVENT_AXIS_RTRIGGER: ::std::os::raw::c_uint = 18; -pub const AMOTION_EVENT_AXIS_THROTTLE: ::std::os::raw::c_uint = 19; -pub const AMOTION_EVENT_AXIS_RUDDER: ::std::os::raw::c_uint = 20; -pub const AMOTION_EVENT_AXIS_WHEEL: ::std::os::raw::c_uint = 21; -pub const AMOTION_EVENT_AXIS_GAS: ::std::os::raw::c_uint = 22; -pub const AMOTION_EVENT_AXIS_BRAKE: ::std::os::raw::c_uint = 23; -pub const AMOTION_EVENT_AXIS_DISTANCE: ::std::os::raw::c_uint = 24; -pub const AMOTION_EVENT_AXIS_TILT: ::std::os::raw::c_uint = 25; -pub const AMOTION_EVENT_AXIS_SCROLL: ::std::os::raw::c_uint = 26; -pub const AMOTION_EVENT_AXIS_RELATIVE_X: ::std::os::raw::c_uint = 27; -pub const AMOTION_EVENT_AXIS_RELATIVE_Y: ::std::os::raw::c_uint = 28; -pub const AMOTION_EVENT_AXIS_GENERIC_1: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_AXIS_GENERIC_2: ::std::os::raw::c_uint = 33; -pub const AMOTION_EVENT_AXIS_GENERIC_3: ::std::os::raw::c_uint = 34; -pub const AMOTION_EVENT_AXIS_GENERIC_4: ::std::os::raw::c_uint = 35; -pub const AMOTION_EVENT_AXIS_GENERIC_5: ::std::os::raw::c_uint = 36; -pub const AMOTION_EVENT_AXIS_GENERIC_6: ::std::os::raw::c_uint = 37; -pub const AMOTION_EVENT_AXIS_GENERIC_7: ::std::os::raw::c_uint = 38; -pub const AMOTION_EVENT_AXIS_GENERIC_8: ::std::os::raw::c_uint = 39; -pub const AMOTION_EVENT_AXIS_GENERIC_9: ::std::os::raw::c_uint = 40; -pub const AMOTION_EVENT_AXIS_GENERIC_10: ::std::os::raw::c_uint = 41; -pub const AMOTION_EVENT_AXIS_GENERIC_11: ::std::os::raw::c_uint = 42; -pub const AMOTION_EVENT_AXIS_GENERIC_12: ::std::os::raw::c_uint = 43; -pub const AMOTION_EVENT_AXIS_GENERIC_13: ::std::os::raw::c_uint = 44; -pub const AMOTION_EVENT_AXIS_GENERIC_14: ::std::os::raw::c_uint = 45; -pub const AMOTION_EVENT_AXIS_GENERIC_15: ::std::os::raw::c_uint = 46; -pub const AMOTION_EVENT_AXIS_GENERIC_16: ::std::os::raw::c_uint = 47; +pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: _bindgen_ty_23 = 1; pub type _bindgen_ty_23 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_BUTTON_PRIMARY: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_BUTTON_SECONDARY: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_BUTTON_TERTIARY: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_BUTTON_BACK: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_BUTTON_FORWARD: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: ::std::os::raw::c_uint = 64; +pub const AMOTION_EVENT_EDGE_FLAG_NONE: _bindgen_ty_24 = 0; +pub const AMOTION_EVENT_EDGE_FLAG_TOP: _bindgen_ty_24 = 1; +pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: _bindgen_ty_24 = 2; +pub const AMOTION_EVENT_EDGE_FLAG_LEFT: _bindgen_ty_24 = 4; +pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: _bindgen_ty_24 = 8; pub type _bindgen_ty_24 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_TOOL_TYPE_FINGER: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_TOOL_TYPE_ERASER: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_TOOL_TYPE_PALM: ::std::os::raw::c_uint = 5; +pub const AMOTION_EVENT_AXIS_X: _bindgen_ty_25 = 0; +pub const AMOTION_EVENT_AXIS_Y: _bindgen_ty_25 = 1; +pub const AMOTION_EVENT_AXIS_PRESSURE: _bindgen_ty_25 = 2; +pub const AMOTION_EVENT_AXIS_SIZE: _bindgen_ty_25 = 3; +pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: _bindgen_ty_25 = 4; +pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: _bindgen_ty_25 = 5; +pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: _bindgen_ty_25 = 6; +pub const AMOTION_EVENT_AXIS_TOOL_MINOR: _bindgen_ty_25 = 7; +pub const AMOTION_EVENT_AXIS_ORIENTATION: _bindgen_ty_25 = 8; +pub const AMOTION_EVENT_AXIS_VSCROLL: _bindgen_ty_25 = 9; +pub const AMOTION_EVENT_AXIS_HSCROLL: _bindgen_ty_25 = 10; +pub const AMOTION_EVENT_AXIS_Z: _bindgen_ty_25 = 11; +pub const AMOTION_EVENT_AXIS_RX: _bindgen_ty_25 = 12; +pub const AMOTION_EVENT_AXIS_RY: _bindgen_ty_25 = 13; +pub const AMOTION_EVENT_AXIS_RZ: _bindgen_ty_25 = 14; +pub const AMOTION_EVENT_AXIS_HAT_X: _bindgen_ty_25 = 15; +pub const AMOTION_EVENT_AXIS_HAT_Y: _bindgen_ty_25 = 16; +pub const AMOTION_EVENT_AXIS_LTRIGGER: _bindgen_ty_25 = 17; +pub const AMOTION_EVENT_AXIS_RTRIGGER: _bindgen_ty_25 = 18; +pub const AMOTION_EVENT_AXIS_THROTTLE: _bindgen_ty_25 = 19; +pub const AMOTION_EVENT_AXIS_RUDDER: _bindgen_ty_25 = 20; +pub const AMOTION_EVENT_AXIS_WHEEL: _bindgen_ty_25 = 21; +pub const AMOTION_EVENT_AXIS_GAS: _bindgen_ty_25 = 22; +pub const AMOTION_EVENT_AXIS_BRAKE: _bindgen_ty_25 = 23; +pub const AMOTION_EVENT_AXIS_DISTANCE: _bindgen_ty_25 = 24; +pub const AMOTION_EVENT_AXIS_TILT: _bindgen_ty_25 = 25; +pub const AMOTION_EVENT_AXIS_SCROLL: _bindgen_ty_25 = 26; +pub const AMOTION_EVENT_AXIS_RELATIVE_X: _bindgen_ty_25 = 27; +pub const AMOTION_EVENT_AXIS_RELATIVE_Y: _bindgen_ty_25 = 28; +pub const AMOTION_EVENT_AXIS_GENERIC_1: _bindgen_ty_25 = 32; +pub const AMOTION_EVENT_AXIS_GENERIC_2: _bindgen_ty_25 = 33; +pub const AMOTION_EVENT_AXIS_GENERIC_3: _bindgen_ty_25 = 34; +pub const AMOTION_EVENT_AXIS_GENERIC_4: _bindgen_ty_25 = 35; +pub const AMOTION_EVENT_AXIS_GENERIC_5: _bindgen_ty_25 = 36; +pub const AMOTION_EVENT_AXIS_GENERIC_6: _bindgen_ty_25 = 37; +pub const AMOTION_EVENT_AXIS_GENERIC_7: _bindgen_ty_25 = 38; +pub const AMOTION_EVENT_AXIS_GENERIC_8: _bindgen_ty_25 = 39; +pub const AMOTION_EVENT_AXIS_GENERIC_9: _bindgen_ty_25 = 40; +pub const AMOTION_EVENT_AXIS_GENERIC_10: _bindgen_ty_25 = 41; +pub const AMOTION_EVENT_AXIS_GENERIC_11: _bindgen_ty_25 = 42; +pub const AMOTION_EVENT_AXIS_GENERIC_12: _bindgen_ty_25 = 43; +pub const AMOTION_EVENT_AXIS_GENERIC_13: _bindgen_ty_25 = 44; +pub const AMOTION_EVENT_AXIS_GENERIC_14: _bindgen_ty_25 = 45; +pub const AMOTION_EVENT_AXIS_GENERIC_15: _bindgen_ty_25 = 46; +pub const AMOTION_EVENT_AXIS_GENERIC_16: _bindgen_ty_25 = 47; pub type _bindgen_ty_25 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_BUTTON_PRIMARY: _bindgen_ty_26 = 1; +pub const AMOTION_EVENT_BUTTON_SECONDARY: _bindgen_ty_26 = 2; +pub const AMOTION_EVENT_BUTTON_TERTIARY: _bindgen_ty_26 = 4; +pub const AMOTION_EVENT_BUTTON_BACK: _bindgen_ty_26 = 8; +pub const AMOTION_EVENT_BUTTON_FORWARD: _bindgen_ty_26 = 16; +pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: _bindgen_ty_26 = 32; +pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: _bindgen_ty_26 = 64; +pub type _bindgen_ty_26 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: _bindgen_ty_27 = 0; +pub const AMOTION_EVENT_TOOL_TYPE_FINGER: _bindgen_ty_27 = 1; +pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: _bindgen_ty_27 = 2; +pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: _bindgen_ty_27 = 3; +pub const AMOTION_EVENT_TOOL_TYPE_ERASER: _bindgen_ty_27 = 4; +pub const AMOTION_EVENT_TOOL_TYPE_PALM: _bindgen_ty_27 = 5; +pub type _bindgen_ty_27 = ::std::os::raw::c_uint; impl AMotionClassification { pub const AMOTION_EVENT_CLASSIFICATION_NONE: AMotionClassification = AMotionClassification(0); } @@ -4363,46 +4276,46 @@ impl AMotionClassification { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AMotionClassification(pub u32); -pub const AINPUT_SOURCE_CLASS_MASK: ::std::os::raw::c_uint = 255; -pub const AINPUT_SOURCE_CLASS_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_CLASS_BUTTON: ::std::os::raw::c_uint = 1; -pub const AINPUT_SOURCE_CLASS_POINTER: ::std::os::raw::c_uint = 2; -pub const AINPUT_SOURCE_CLASS_NAVIGATION: ::std::os::raw::c_uint = 4; -pub const AINPUT_SOURCE_CLASS_POSITION: ::std::os::raw::c_uint = 8; -pub const AINPUT_SOURCE_CLASS_JOYSTICK: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_26 = ::std::os::raw::c_uint; -pub const AINPUT_SOURCE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_KEYBOARD: ::std::os::raw::c_uint = 257; -pub const AINPUT_SOURCE_DPAD: ::std::os::raw::c_uint = 513; -pub const AINPUT_SOURCE_GAMEPAD: ::std::os::raw::c_uint = 1025; -pub const AINPUT_SOURCE_TOUCHSCREEN: ::std::os::raw::c_uint = 4098; -pub const AINPUT_SOURCE_MOUSE: ::std::os::raw::c_uint = 8194; -pub const AINPUT_SOURCE_STYLUS: ::std::os::raw::c_uint = 16386; -pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: ::std::os::raw::c_uint = 49154; -pub const AINPUT_SOURCE_TRACKBALL: ::std::os::raw::c_uint = 65540; -pub const AINPUT_SOURCE_MOUSE_RELATIVE: ::std::os::raw::c_uint = 131076; -pub const AINPUT_SOURCE_TOUCHPAD: ::std::os::raw::c_uint = 1048584; -pub const AINPUT_SOURCE_TOUCH_NAVIGATION: ::std::os::raw::c_uint = 2097152; -pub const AINPUT_SOURCE_JOYSTICK: ::std::os::raw::c_uint = 16777232; -pub const AINPUT_SOURCE_HDMI: ::std::os::raw::c_uint = 33554433; -pub const AINPUT_SOURCE_SENSOR: ::std::os::raw::c_uint = 67108864; -pub const AINPUT_SOURCE_ROTARY_ENCODER: ::std::os::raw::c_uint = 4194304; -pub const AINPUT_SOURCE_ANY: ::std::os::raw::c_uint = 4294967040; -pub type _bindgen_ty_27 = ::std::os::raw::c_uint; -pub const AINPUT_KEYBOARD_TYPE_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: ::std::os::raw::c_uint = 1; -pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: ::std::os::raw::c_uint = 2; +pub const AINPUT_SOURCE_CLASS_MASK: _bindgen_ty_28 = 255; +pub const AINPUT_SOURCE_CLASS_NONE: _bindgen_ty_28 = 0; +pub const AINPUT_SOURCE_CLASS_BUTTON: _bindgen_ty_28 = 1; +pub const AINPUT_SOURCE_CLASS_POINTER: _bindgen_ty_28 = 2; +pub const AINPUT_SOURCE_CLASS_NAVIGATION: _bindgen_ty_28 = 4; +pub const AINPUT_SOURCE_CLASS_POSITION: _bindgen_ty_28 = 8; +pub const AINPUT_SOURCE_CLASS_JOYSTICK: _bindgen_ty_28 = 16; pub type _bindgen_ty_28 = ::std::os::raw::c_uint; -pub const AINPUT_MOTION_RANGE_X: ::std::os::raw::c_uint = 0; -pub const AINPUT_MOTION_RANGE_Y: ::std::os::raw::c_uint = 1; -pub const AINPUT_MOTION_RANGE_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AINPUT_MOTION_RANGE_SIZE: ::std::os::raw::c_uint = 3; -pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AINPUT_MOTION_RANGE_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AINPUT_MOTION_RANGE_ORIENTATION: ::std::os::raw::c_uint = 8; +pub const AINPUT_SOURCE_UNKNOWN: _bindgen_ty_29 = 0; +pub const AINPUT_SOURCE_KEYBOARD: _bindgen_ty_29 = 257; +pub const AINPUT_SOURCE_DPAD: _bindgen_ty_29 = 513; +pub const AINPUT_SOURCE_GAMEPAD: _bindgen_ty_29 = 1025; +pub const AINPUT_SOURCE_TOUCHSCREEN: _bindgen_ty_29 = 4098; +pub const AINPUT_SOURCE_MOUSE: _bindgen_ty_29 = 8194; +pub const AINPUT_SOURCE_STYLUS: _bindgen_ty_29 = 16386; +pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: _bindgen_ty_29 = 49154; +pub const AINPUT_SOURCE_TRACKBALL: _bindgen_ty_29 = 65540; +pub const AINPUT_SOURCE_MOUSE_RELATIVE: _bindgen_ty_29 = 131076; +pub const AINPUT_SOURCE_TOUCHPAD: _bindgen_ty_29 = 1048584; +pub const AINPUT_SOURCE_TOUCH_NAVIGATION: _bindgen_ty_29 = 2097152; +pub const AINPUT_SOURCE_JOYSTICK: _bindgen_ty_29 = 16777232; +pub const AINPUT_SOURCE_HDMI: _bindgen_ty_29 = 33554433; +pub const AINPUT_SOURCE_SENSOR: _bindgen_ty_29 = 67108864; +pub const AINPUT_SOURCE_ROTARY_ENCODER: _bindgen_ty_29 = 4194304; +pub const AINPUT_SOURCE_ANY: _bindgen_ty_29 = 4294967040; pub type _bindgen_ty_29 = ::std::os::raw::c_uint; +pub const AINPUT_KEYBOARD_TYPE_NONE: _bindgen_ty_30 = 0; +pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: _bindgen_ty_30 = 1; +pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: _bindgen_ty_30 = 2; +pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const AINPUT_MOTION_RANGE_X: _bindgen_ty_31 = 0; +pub const AINPUT_MOTION_RANGE_Y: _bindgen_ty_31 = 1; +pub const AINPUT_MOTION_RANGE_PRESSURE: _bindgen_ty_31 = 2; +pub const AINPUT_MOTION_RANGE_SIZE: _bindgen_ty_31 = 3; +pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: _bindgen_ty_31 = 4; +pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: _bindgen_ty_31 = 5; +pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: _bindgen_ty_31 = 6; +pub const AINPUT_MOTION_RANGE_TOOL_MINOR: _bindgen_ty_31 = 7; +pub const AINPUT_MOTION_RANGE_ORIENTATION: _bindgen_ty_31 = 8; +pub type _bindgen_ty_31 = ::std::os::raw::c_uint; extern "C" { pub fn AInputEvent_getType(event: *const AInputEvent) -> i32; } @@ -4742,7 +4655,7 @@ extern "C" { tag: *const ::std::os::raw::c_char, fmt: *const ::std::os::raw::c_char, ... - ); + ) -> !; } impl log_id { pub const LOG_ID_MIN: log_id = log_id(0); @@ -4811,6 +4724,9 @@ pub struct __android_log_message { } #[test] fn bindgen_test_layout___android_log_message() { + const UNINIT: ::std::mem::MaybeUninit<__android_log_message> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__android_log_message>(), 28usize, @@ -4822,9 +4738,7 @@ fn bindgen_test_layout___android_log_message() { concat!("Alignment of ", stringify!(__android_log_message)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__android_log_message>())).struct_size as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).struct_size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4834,7 +4748,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).buffer_id as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).buffer_id) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -4844,7 +4758,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4854,7 +4768,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4864,7 +4778,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).file as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4874,7 +4788,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).line as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -4884,7 +4798,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).message as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -4917,7 +4831,7 @@ extern "C" { pub fn __android_log_call_aborter(abort_message: *const ::std::os::raw::c_char); } extern "C" { - pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char); + pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char) -> !; } extern "C" { pub fn __android_log_is_loggable( @@ -4954,6 +4868,8 @@ pub struct flock { } #[test] fn bindgen_test_layout_flock() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -4965,7 +4881,7 @@ fn bindgen_test_layout_flock() { concat!("Alignment of ", stringify!(flock)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4975,7 +4891,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -4985,7 +4901,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -4995,7 +4911,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5005,7 +4921,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5026,6 +4942,8 @@ pub struct flock64 { } #[test] fn bindgen_test_layout_flock64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5037,7 +4955,7 @@ fn bindgen_test_layout_flock64() { concat!("Alignment of ", stringify!(flock64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5047,7 +4965,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5057,7 +4975,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5067,7 +4985,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5077,7 +4995,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5095,6 +5013,8 @@ pub struct f_owner_ex { } #[test] fn bindgen_test_layout_f_owner_ex() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5106,7 +5026,7 @@ fn bindgen_test_layout_f_owner_ex() { concat!("Alignment of ", stringify!(f_owner_ex)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5116,7 +5036,7 @@ fn bindgen_test_layout_f_owner_ex() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5134,6 +5054,8 @@ pub struct iovec { } #[test] fn bindgen_test_layout_iovec() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5145,7 +5067,7 @@ fn bindgen_test_layout_iovec() { concat!("Alignment of ", stringify!(iovec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_base) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5155,7 +5077,7 @@ fn bindgen_test_layout_iovec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5166,10 +5088,10 @@ fn bindgen_test_layout_iovec() { ); } pub type sa_family_t = ::std::os::raw::c_ushort; -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const SHUT_RD: _bindgen_ty_32 = 0; +pub const SHUT_WR: _bindgen_ty_32 = 1; +pub const SHUT_RDWR: _bindgen_ty_32 = 2; +pub type _bindgen_ty_32 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr { @@ -5178,6 +5100,8 @@ pub struct sockaddr { } #[test] fn bindgen_test_layout_sockaddr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5189,7 +5113,7 @@ fn bindgen_test_layout_sockaddr() { concat!("Alignment of ", stringify!(sockaddr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5199,7 +5123,7 @@ fn bindgen_test_layout_sockaddr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5228,6 +5152,9 @@ pub struct sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sockaddr_storage__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::(), 128usize, @@ -5245,10 +5172,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ss_family - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5258,10 +5182,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5273,6 +5194,9 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -5284,9 +5208,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { concat!("Alignment of ", stringify!(sockaddr_storage__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__align as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5317,6 +5239,8 @@ pub struct linger { } #[test] fn bindgen_test_layout_linger() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5328,7 +5252,7 @@ fn bindgen_test_layout_linger() { concat!("Alignment of ", stringify!(linger)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_onoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_onoff) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5338,7 +5262,7 @@ fn bindgen_test_layout_linger() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_linger as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_linger) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5361,6 +5285,8 @@ pub struct msghdr { } #[test] fn bindgen_test_layout_msghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -5372,7 +5298,7 @@ fn bindgen_test_layout_msghdr() { concat!("Alignment of ", stringify!(msghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5382,7 +5308,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_namelen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_namelen) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5392,7 +5318,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iov as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iov) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5402,7 +5328,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iovlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iovlen) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5412,7 +5338,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_control as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_control) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5422,7 +5348,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_controllen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_controllen) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5432,7 +5358,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_flags) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5450,6 +5376,8 @@ pub struct mmsghdr { } #[test] fn bindgen_test_layout_mmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5461,7 +5389,7 @@ fn bindgen_test_layout_mmsghdr() { concat!("Alignment of ", stringify!(mmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5471,7 +5399,7 @@ fn bindgen_test_layout_mmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_len) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -5490,6 +5418,8 @@ pub struct cmsghdr { } #[test] fn bindgen_test_layout_cmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5501,7 +5431,7 @@ fn bindgen_test_layout_cmsghdr() { concat!("Alignment of ", stringify!(cmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5511,7 +5441,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_level as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_level) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5521,7 +5451,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_type) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5543,6 +5473,8 @@ pub struct ucred { } #[test] fn bindgen_test_layout_ucred() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5554,7 +5486,7 @@ fn bindgen_test_layout_ucred() { concat!("Alignment of ", stringify!(ucred)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5564,7 +5496,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5574,7 +5506,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gid) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5750,6 +5682,8 @@ pub struct hostent { } #[test] fn bindgen_test_layout_hostent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -5761,7 +5695,7 @@ fn bindgen_test_layout_hostent() { concat!("Alignment of ", stringify!(hostent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5771,7 +5705,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5781,7 +5715,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addrtype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5791,7 +5725,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_length) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5801,7 +5735,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addr_list as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addr_list) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5821,6 +5755,8 @@ pub struct netent { } #[test] fn bindgen_test_layout_netent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5832,7 +5768,7 @@ fn bindgen_test_layout_netent() { concat!("Alignment of ", stringify!(netent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5842,7 +5778,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5852,7 +5788,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_addrtype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5862,7 +5798,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_net as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_net) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5882,6 +5818,8 @@ pub struct servent { } #[test] fn bindgen_test_layout_servent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5893,7 +5831,7 @@ fn bindgen_test_layout_servent() { concat!("Alignment of ", stringify!(servent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5903,7 +5841,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5913,7 +5851,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_port as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_port) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5923,7 +5861,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_proto) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5942,6 +5880,8 @@ pub struct protoent { } #[test] fn bindgen_test_layout_protoent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5953,7 +5893,7 @@ fn bindgen_test_layout_protoent() { concat!("Alignment of ", stringify!(protoent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5963,7 +5903,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5973,7 +5913,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_proto) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5997,6 +5937,8 @@ pub struct addrinfo { } #[test] fn bindgen_test_layout_addrinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -6008,7 +5950,7 @@ fn bindgen_test_layout_addrinfo() { concat!("Alignment of ", stringify!(addrinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6018,7 +5960,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_family) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6028,7 +5970,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_socktype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_socktype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6038,7 +5980,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_protocol as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_protocol) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6048,7 +5990,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addrlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addrlen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6058,7 +6000,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_canonname as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_canonname) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -6068,7 +6010,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6078,7 +6020,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_next as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_next) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6687,6 +6629,8 @@ pub struct mallinfo { } #[test] fn bindgen_test_layout_mallinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -6698,7 +6642,7 @@ fn bindgen_test_layout_mallinfo() { concat!("Alignment of ", stringify!(mallinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6708,7 +6652,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6718,7 +6662,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6728,7 +6672,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6738,7 +6682,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6748,7 +6692,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -6758,7 +6702,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6768,7 +6712,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6778,7 +6722,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6788,7 +6732,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -6817,6 +6761,8 @@ pub struct mallinfo2 { } #[test] fn bindgen_test_layout_mallinfo2() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -6828,7 +6774,7 @@ fn bindgen_test_layout_mallinfo2() { concat!("Alignment of ", stringify!(mallinfo2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6838,7 +6784,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6848,7 +6794,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6858,7 +6804,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6868,7 +6814,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6878,7 +6824,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -6888,7 +6834,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6898,7 +6844,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6908,7 +6854,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6918,7 +6864,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -6996,13 +6942,13 @@ pub struct __locale_t { } pub type locale_t = *mut __locale_t; extern "C" { - pub fn abort(); + pub fn abort() -> !; } extern "C" { - pub fn exit(__status: ::std::os::raw::c_int); + pub fn exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { - pub fn _Exit(__status: ::std::os::raw::c_int); + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn atexit(__fn: ::std::option::Option) -> ::std::os::raw::c_int; @@ -7013,7 +6959,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub fn quick_exit(__status: ::std::os::raw::c_int); + pub fn quick_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; @@ -7264,6 +7210,8 @@ pub struct div_t { } #[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, @@ -7275,7 +7223,7 @@ fn bindgen_test_layout_div_t() { concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7285,7 +7233,7 @@ fn bindgen_test_layout_div_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7306,6 +7254,8 @@ pub struct ldiv_t { } #[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::(), 8usize, @@ -7317,7 +7267,7 @@ fn bindgen_test_layout_ldiv_t() { concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7327,7 +7277,7 @@ fn bindgen_test_layout_ldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7351,6 +7301,8 @@ pub struct lldiv_t { } #[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, @@ -7362,7 +7314,7 @@ fn bindgen_test_layout_lldiv_t() { concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7372,7 +7324,7 @@ fn bindgen_test_layout_lldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7640,6 +7592,8 @@ pub struct ANativeWindow_Buffer { } #[test] fn bindgen_test_layout_ANativeWindow_Buffer() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 44usize, @@ -7651,7 +7605,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { concat!("Alignment of ", stringify!(ANativeWindow_Buffer)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7661,7 +7615,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7671,7 +7625,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7681,7 +7635,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7691,7 +7645,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bits) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7701,7 +7655,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -7808,6 +7762,8 @@ pub struct ANativeActivity { } #[test] fn bindgen_test_layout_ANativeActivity() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -7819,7 +7775,7 @@ fn bindgen_test_layout_ANativeActivity() { concat!("Alignment of ", stringify!(ANativeActivity)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).callbacks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).callbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7829,7 +7785,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vm) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7839,7 +7795,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).env) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7849,7 +7805,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).clazz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).clazz) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7859,9 +7815,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).internalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).internalDataPath) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7871,9 +7825,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).externalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).externalDataPath) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -7883,7 +7835,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sdkVersion as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sdkVersion) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7893,7 +7845,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).instance as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).instance) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -7903,7 +7855,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).assetManager as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).assetManager) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -7913,7 +7865,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obbPath as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obbPath) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -7967,6 +7919,9 @@ pub struct ANativeActivityCallbacks { } #[test] fn bindgen_test_layout_ANativeActivityCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -7978,9 +7933,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { concat!("Alignment of ", stringify!(ANativeActivityCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onStart as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onStart) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7990,9 +7943,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onResume as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onResume) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8002,10 +7953,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onSaveInstanceState as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onSaveInstanceState) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8015,9 +7963,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onPause as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPause) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -8027,7 +7973,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).onStop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).onStop) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -8037,9 +7983,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDestroy as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDestroy) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -8049,10 +7993,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onWindowFocusChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onWindowFocusChanged) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -8062,10 +8003,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowCreated) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -8075,10 +8013,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowResized as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowResized) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -8088,10 +8023,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowRedrawNeeded - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowRedrawNeeded) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -8101,10 +8033,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowDestroyed) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -8114,10 +8043,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueCreated) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -8127,10 +8053,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueDestroyed) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -8140,10 +8063,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onContentRectChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onContentRectChanged) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -8153,10 +8073,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onConfigurationChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onConfigurationChanged) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -8166,9 +8083,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onLowMemory as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onLowMemory) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -8205,15 +8120,15 @@ extern "C" { removeFlags: u32, ); } -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_31 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: _bindgen_ty_33 = 1; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: _bindgen_ty_33 = 2; +pub type _bindgen_ty_33 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_showSoftInput(activity: *mut ANativeActivity, flags: u32); } -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_32 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: _bindgen_ty_34 = 1; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: _bindgen_ty_34 = 2; +pub type _bindgen_ty_34 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_hideSoftInput(activity: *mut ANativeActivity, flags: u32); } @@ -8724,10 +8639,10 @@ impl ResultCode { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ResultCode(pub ::std::os::raw::c_uint); -pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: ::std::os::raw::c_uint = 128; -pub type _bindgen_ty_33 = ::std::os::raw::c_uint; -pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: ::std::os::raw::c_uint = 32; -pub type _bindgen_ty_34 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: _bindgen_ty_35 = 128; +pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: _bindgen_ty_36 = 32; +pub type _bindgen_ty_36 = ::std::os::raw::c_uint; impl DurationCode { pub const ANEURALNETWORKS_DURATION_ON_HARDWARE: DurationCode = DurationCode(0); } @@ -8787,6 +8702,9 @@ pub struct ANeuralNetworksSymmPerChannelQuantParams { } #[test] fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -8804,10 +8722,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).channelDim - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).channelDim) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8817,10 +8732,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scaleCount - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scaleCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8830,10 +8742,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scales as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scales) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8859,6 +8768,9 @@ pub struct ANeuralNetworksOperandType { } #[test] fn bindgen_test_layout_ANeuralNetworksOperandType() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -8870,9 +8782,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { concat!("Alignment of ", stringify!(ANeuralNetworksOperandType)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8882,10 +8792,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensionCount as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensionCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8895,9 +8802,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensions as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensions) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8907,9 +8812,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scale as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scale) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -8919,9 +8822,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).zeroPoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).zeroPoint) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -9372,8 +9273,8 @@ extern "C" { pub struct AObbInfo { _unused: [u8; 0], } -pub const AOBBINFO_OVERLAY: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const AOBBINFO_OVERLAY: _bindgen_ty_37 = 1; +pub type _bindgen_ty_37 = ::std::os::raw::c_uint; extern "C" { pub fn AObbScanner_getObbInfo(filename: *const ::std::os::raw::c_char) -> *mut AObbInfo; } @@ -9389,13 +9290,13 @@ extern "C" { extern "C" { pub fn AObbInfo_getFlags(obbInfo: *mut AObbInfo) -> i32; } -pub const PERMISSION_MANAGER_PERMISSION_GRANTED: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_PERMISSION_DENIED: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_36 = ::std::os::raw::c_int; -pub const PERMISSION_MANAGER_STATUS_OK: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: ::std::os::raw::c_int = -1; -pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: ::std::os::raw::c_int = -2; -pub type _bindgen_ty_37 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_PERMISSION_GRANTED: _bindgen_ty_38 = 0; +pub const PERMISSION_MANAGER_PERMISSION_DENIED: _bindgen_ty_38 = -1; +pub type _bindgen_ty_38 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_STATUS_OK: _bindgen_ty_39 = 0; +pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: _bindgen_ty_39 = -1; +pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: _bindgen_ty_39 = -2; +pub type _bindgen_ty_39 = ::std::os::raw::c_int; extern "C" { pub fn APermissionManager_checkPermission( permission: *const ::std::os::raw::c_char, @@ -9774,70 +9675,70 @@ extern "C" { extern "C" { pub fn yn(__n: ::std::os::raw::c_int, __x: f64) -> f64; } -pub const ASENSOR_TYPE_INVALID: ::std::os::raw::c_int = -1; -pub const ASENSOR_TYPE_ACCELEROMETER: ::std::os::raw::c_int = 1; -pub const ASENSOR_TYPE_MAGNETIC_FIELD: ::std::os::raw::c_int = 2; -pub const ASENSOR_TYPE_GYROSCOPE: ::std::os::raw::c_int = 4; -pub const ASENSOR_TYPE_LIGHT: ::std::os::raw::c_int = 5; -pub const ASENSOR_TYPE_PRESSURE: ::std::os::raw::c_int = 6; -pub const ASENSOR_TYPE_PROXIMITY: ::std::os::raw::c_int = 8; -pub const ASENSOR_TYPE_GRAVITY: ::std::os::raw::c_int = 9; -pub const ASENSOR_TYPE_LINEAR_ACCELERATION: ::std::os::raw::c_int = 10; -pub const ASENSOR_TYPE_ROTATION_VECTOR: ::std::os::raw::c_int = 11; -pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: ::std::os::raw::c_int = 12; -pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: ::std::os::raw::c_int = 13; -pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: ::std::os::raw::c_int = 14; -pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: ::std::os::raw::c_int = 15; -pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: ::std::os::raw::c_int = 16; -pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: ::std::os::raw::c_int = 17; -pub const ASENSOR_TYPE_STEP_DETECTOR: ::std::os::raw::c_int = 18; -pub const ASENSOR_TYPE_STEP_COUNTER: ::std::os::raw::c_int = 19; -pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: ::std::os::raw::c_int = 20; -pub const ASENSOR_TYPE_HEART_RATE: ::std::os::raw::c_int = 21; -pub const ASENSOR_TYPE_POSE_6DOF: ::std::os::raw::c_int = 28; -pub const ASENSOR_TYPE_STATIONARY_DETECT: ::std::os::raw::c_int = 29; -pub const ASENSOR_TYPE_MOTION_DETECT: ::std::os::raw::c_int = 30; -pub const ASENSOR_TYPE_HEART_BEAT: ::std::os::raw::c_int = 31; -pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: ::std::os::raw::c_int = 32; -pub const ASENSOR_TYPE_ADDITIONAL_INFO: ::std::os::raw::c_int = 33; -pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: ::std::os::raw::c_int = 34; -pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: ::std::os::raw::c_int = 35; -pub const ASENSOR_TYPE_HINGE_ANGLE: ::std::os::raw::c_int = 36; -pub const ASENSOR_TYPE_HEAD_TRACKER: ::std::os::raw::c_int = 37; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: ::std::os::raw::c_int = 38; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: ::std::os::raw::c_int = 39; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 40; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 41; -pub const ASENSOR_TYPE_HEADING: ::std::os::raw::c_int = 42; -pub type _bindgen_ty_38 = ::std::os::raw::c_int; -pub const ASENSOR_STATUS_NO_CONTACT: ::std::os::raw::c_int = -1; -pub const ASENSOR_STATUS_UNRELIABLE: ::std::os::raw::c_int = 0; -pub const ASENSOR_STATUS_ACCURACY_LOW: ::std::os::raw::c_int = 1; -pub const ASENSOR_STATUS_ACCURACY_MEDIUM: ::std::os::raw::c_int = 2; -pub const ASENSOR_STATUS_ACCURACY_HIGH: ::std::os::raw::c_int = 3; -pub type _bindgen_ty_39 = ::std::os::raw::c_int; -pub const AREPORTING_MODE_INVALID: ::std::os::raw::c_int = -1; -pub const AREPORTING_MODE_CONTINUOUS: ::std::os::raw::c_int = 0; -pub const AREPORTING_MODE_ON_CHANGE: ::std::os::raw::c_int = 1; -pub const AREPORTING_MODE_ONE_SHOT: ::std::os::raw::c_int = 2; -pub const AREPORTING_MODE_SPECIAL_TRIGGER: ::std::os::raw::c_int = 3; +pub const ASENSOR_TYPE_INVALID: _bindgen_ty_40 = -1; +pub const ASENSOR_TYPE_ACCELEROMETER: _bindgen_ty_40 = 1; +pub const ASENSOR_TYPE_MAGNETIC_FIELD: _bindgen_ty_40 = 2; +pub const ASENSOR_TYPE_GYROSCOPE: _bindgen_ty_40 = 4; +pub const ASENSOR_TYPE_LIGHT: _bindgen_ty_40 = 5; +pub const ASENSOR_TYPE_PRESSURE: _bindgen_ty_40 = 6; +pub const ASENSOR_TYPE_PROXIMITY: _bindgen_ty_40 = 8; +pub const ASENSOR_TYPE_GRAVITY: _bindgen_ty_40 = 9; +pub const ASENSOR_TYPE_LINEAR_ACCELERATION: _bindgen_ty_40 = 10; +pub const ASENSOR_TYPE_ROTATION_VECTOR: _bindgen_ty_40 = 11; +pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: _bindgen_ty_40 = 12; +pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: _bindgen_ty_40 = 13; +pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: _bindgen_ty_40 = 14; +pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: _bindgen_ty_40 = 15; +pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: _bindgen_ty_40 = 16; +pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: _bindgen_ty_40 = 17; +pub const ASENSOR_TYPE_STEP_DETECTOR: _bindgen_ty_40 = 18; +pub const ASENSOR_TYPE_STEP_COUNTER: _bindgen_ty_40 = 19; +pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: _bindgen_ty_40 = 20; +pub const ASENSOR_TYPE_HEART_RATE: _bindgen_ty_40 = 21; +pub const ASENSOR_TYPE_POSE_6DOF: _bindgen_ty_40 = 28; +pub const ASENSOR_TYPE_STATIONARY_DETECT: _bindgen_ty_40 = 29; +pub const ASENSOR_TYPE_MOTION_DETECT: _bindgen_ty_40 = 30; +pub const ASENSOR_TYPE_HEART_BEAT: _bindgen_ty_40 = 31; +pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: _bindgen_ty_40 = 32; +pub const ASENSOR_TYPE_ADDITIONAL_INFO: _bindgen_ty_40 = 33; +pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: _bindgen_ty_40 = 34; +pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: _bindgen_ty_40 = 35; +pub const ASENSOR_TYPE_HINGE_ANGLE: _bindgen_ty_40 = 36; +pub const ASENSOR_TYPE_HEAD_TRACKER: _bindgen_ty_40 = 37; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: _bindgen_ty_40 = 38; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: _bindgen_ty_40 = 39; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 40; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 41; +pub const ASENSOR_TYPE_HEADING: _bindgen_ty_40 = 42; pub type _bindgen_ty_40 = ::std::os::raw::c_int; -pub const ASENSOR_DIRECT_RATE_STOP: ::std::os::raw::c_uint = 0; -pub const ASENSOR_DIRECT_RATE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_RATE_FAST: ::std::os::raw::c_uint = 2; -pub const ASENSOR_DIRECT_RATE_VERY_FAST: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_41 = ::std::os::raw::c_uint; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_42 = ::std::os::raw::c_uint; -pub const ASENSOR_ADDITIONAL_INFO_BEGIN: ::std::os::raw::c_uint = 0; -pub const ASENSOR_ADDITIONAL_INFO_END: ::std::os::raw::c_uint = 1; -pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: ::std::os::raw::c_uint = 65536; -pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: ::std::os::raw::c_uint = 65537; -pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: ::std::os::raw::c_uint = 65538; -pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: ::std::os::raw::c_uint = 65539; -pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: ::std::os::raw::c_uint = 65540; +pub const ASENSOR_STATUS_NO_CONTACT: _bindgen_ty_41 = -1; +pub const ASENSOR_STATUS_UNRELIABLE: _bindgen_ty_41 = 0; +pub const ASENSOR_STATUS_ACCURACY_LOW: _bindgen_ty_41 = 1; +pub const ASENSOR_STATUS_ACCURACY_MEDIUM: _bindgen_ty_41 = 2; +pub const ASENSOR_STATUS_ACCURACY_HIGH: _bindgen_ty_41 = 3; +pub type _bindgen_ty_41 = ::std::os::raw::c_int; +pub const AREPORTING_MODE_INVALID: _bindgen_ty_42 = -1; +pub const AREPORTING_MODE_CONTINUOUS: _bindgen_ty_42 = 0; +pub const AREPORTING_MODE_ON_CHANGE: _bindgen_ty_42 = 1; +pub const AREPORTING_MODE_ONE_SHOT: _bindgen_ty_42 = 2; +pub const AREPORTING_MODE_SPECIAL_TRIGGER: _bindgen_ty_42 = 3; +pub type _bindgen_ty_42 = ::std::os::raw::c_int; +pub const ASENSOR_DIRECT_RATE_STOP: _bindgen_ty_43 = 0; +pub const ASENSOR_DIRECT_RATE_NORMAL: _bindgen_ty_43 = 1; +pub const ASENSOR_DIRECT_RATE_FAST: _bindgen_ty_43 = 2; +pub const ASENSOR_DIRECT_RATE_VERY_FAST: _bindgen_ty_43 = 3; pub type _bindgen_ty_43 = ::std::os::raw::c_uint; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: _bindgen_ty_44 = 1; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: _bindgen_ty_44 = 2; +pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const ASENSOR_ADDITIONAL_INFO_BEGIN: _bindgen_ty_45 = 0; +pub const ASENSOR_ADDITIONAL_INFO_END: _bindgen_ty_45 = 1; +pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: _bindgen_ty_45 = 65536; +pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: _bindgen_ty_45 = 65537; +pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: _bindgen_ty_45 = 65538; +pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: _bindgen_ty_45 = 65539; +pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: _bindgen_ty_45 = 65540; +pub type _bindgen_ty_45 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct ASensorVector { @@ -9861,6 +9762,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -9878,10 +9782,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9891,10 +9792,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -9904,10 +9802,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -9926,6 +9821,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -9943,10 +9841,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).azimuth - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).azimuth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9956,10 +9851,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pitch as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pitch) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -9969,10 +9861,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).roll as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).roll) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -9984,6 +9873,9 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -9995,7 +9887,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorVector__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10007,6 +9899,8 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorVector() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -10018,7 +9912,7 @@ fn bindgen_test_layout_ASensorVector() { concat!("Alignment of ", stringify!(ASensorVector)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10028,7 +9922,7 @@ fn bindgen_test_layout_ASensorVector() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 13usize, concat!( "Offset of field: ", @@ -10046,6 +9940,8 @@ pub struct AMetaDataEvent { } #[test] fn bindgen_test_layout_AMetaDataEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10057,7 +9953,7 @@ fn bindgen_test_layout_AMetaDataEvent() { concat!("Alignment of ", stringify!(AMetaDataEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).what as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).what) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10067,7 +9963,7 @@ fn bindgen_test_layout_AMetaDataEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10098,6 +9994,9 @@ pub struct AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__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::(), 12usize, @@ -10115,10 +10014,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10128,10 +10024,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10141,10 +10034,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10156,6 +10046,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10170,10 +10063,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10198,6 +10088,9 @@ pub struct AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10215,10 +10108,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10228,10 +10118,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10241,10 +10128,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10256,6 +10140,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10270,9 +10157,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10303,6 +10188,8 @@ pub struct AHeartRateEvent { } #[test] fn bindgen_test_layout_AHeartRateEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10314,7 +10201,7 @@ fn bindgen_test_layout_AHeartRateEvent() { concat!("Alignment of ", stringify!(AHeartRateEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bpm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bpm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10324,7 +10211,7 @@ fn bindgen_test_layout_AHeartRateEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10342,6 +10229,8 @@ pub struct ADynamicSensorEvent { } #[test] fn bindgen_test_layout_ADynamicSensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10353,7 +10242,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { concat!("Alignment of ", stringify!(ADynamicSensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).connected as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).connected) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10363,7 +10252,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).handle as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).handle) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10388,6 +10277,9 @@ pub union AAdditionalInfoEvent__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -10402,10 +10294,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_int32 as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_int32) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10415,10 +10304,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_float as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10430,6 +10316,8 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -10441,7 +10329,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { concat!("Alignment of ", stringify!(AAdditionalInfoEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10451,7 +10339,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).serial as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10474,6 +10362,8 @@ pub struct AHeadTrackerEvent { } #[test] fn bindgen_test_layout_AHeadTrackerEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -10485,7 +10375,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { concat!("Alignment of ", stringify!(AHeadTrackerEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rx) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10495,7 +10385,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ry as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ry) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10505,7 +10395,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rz) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10515,7 +10405,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vx) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10525,7 +10415,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -10535,7 +10425,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vz) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -10545,9 +10435,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).discontinuity_count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).discontinuity_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -10578,6 +10466,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__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::(), 12usize, @@ -10595,10 +10486,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10608,10 +10496,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10621,10 +10506,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10636,6 +10518,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10650,10 +10535,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).calib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).calib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10678,6 +10560,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10695,10 +10580,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10708,10 +10590,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10721,10 +10600,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10736,6 +10612,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10750,10 +10629,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10798,6 +10674,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10815,10 +10695,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10828,10 +10705,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10841,10 +10715,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10856,6 +10727,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10873,10 +10747,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10901,6 +10772,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10918,10 +10793,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10931,10 +10803,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10944,10 +10813,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10959,6 +10825,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10976,10 +10845,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11004,6 +10870,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11021,10 +10891,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11034,10 +10901,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11047,10 +10911,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11062,6 +10923,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11079,10 +10943,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11116,6 +10977,8 @@ pub struct AHeadingEvent { } #[test] fn bindgen_test_layout_AHeadingEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -11127,7 +10990,7 @@ fn bindgen_test_layout_AHeadingEvent() { concat!("Alignment of ", stringify!(AHeadingEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).heading as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11137,7 +11000,7 @@ fn bindgen_test_layout_AHeadingEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).accuracy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).accuracy) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11192,6 +11055,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11209,10 +11075,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11222,10 +11085,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).vector as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).vector) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11235,10 +11095,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).acceleration - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11248,10 +11105,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).gyro as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11261,10 +11115,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).magnetic - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11274,10 +11125,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).temperature - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).temperature) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11287,10 +11135,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).distance - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).distance) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11300,10 +11145,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).light as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).light) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11313,10 +11155,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pressure - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pressure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11326,10 +11165,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).relative_humidity - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).relative_humidity) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11339,10 +11175,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_acceleration as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11352,10 +11185,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalibrated_gyro - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11365,10 +11195,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_magnetic as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11378,10 +11205,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).meta_data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).meta_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11391,10 +11215,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heart_rate - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heart_rate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11404,10 +11225,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dynamic_sensor_meta - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dynamic_sensor_meta) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11417,10 +11235,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).additional_info - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).additional_info) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11430,10 +11245,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).head_tracker - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).head_tracker) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11443,10 +11255,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).limited_axes_imu - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).limited_axes_imu) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11457,8 +11266,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .limited_axes_imu_uncalibrated as *const _ as usize + ::std::ptr::addr_of!((*ptr).limited_axes_imu_uncalibrated) as usize - ptr as usize }, 0usize, concat!( @@ -11469,10 +11277,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heading as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11490,6 +11295,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11507,10 +11315,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11520,10 +11325,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).step_counter - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).step_counter) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11535,6 +11337,9 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -11546,7 +11351,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorEvent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u64_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11558,6 +11363,8 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 104usize, @@ -11569,7 +11376,7 @@ fn bindgen_test_layout_ASensorEvent() { concat!("Alignment of ", stringify!(ASensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11579,7 +11386,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11589,7 +11396,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11599,7 +11406,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -11609,7 +11416,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -11619,7 +11426,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -11629,7 +11436,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", @@ -11847,15 +11654,15 @@ extern "C" { pub struct AStorageManager { _unused: [u8; 0], } -pub const AOBB_STATE_MOUNTED: ::std::os::raw::c_uint = 1; -pub const AOBB_STATE_UNMOUNTED: ::std::os::raw::c_uint = 2; -pub const AOBB_STATE_ERROR_INTERNAL: ::std::os::raw::c_uint = 20; -pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: ::std::os::raw::c_uint = 21; -pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: ::std::os::raw::c_uint = 22; -pub const AOBB_STATE_ERROR_NOT_MOUNTED: ::std::os::raw::c_uint = 23; -pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: ::std::os::raw::c_uint = 24; -pub const AOBB_STATE_ERROR_PERMISSION_DENIED: ::std::os::raw::c_uint = 25; -pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const AOBB_STATE_MOUNTED: _bindgen_ty_46 = 1; +pub const AOBB_STATE_UNMOUNTED: _bindgen_ty_46 = 2; +pub const AOBB_STATE_ERROR_INTERNAL: _bindgen_ty_46 = 20; +pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: _bindgen_ty_46 = 21; +pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: _bindgen_ty_46 = 22; +pub const AOBB_STATE_ERROR_NOT_MOUNTED: _bindgen_ty_46 = 23; +pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: _bindgen_ty_46 = 24; +pub const AOBB_STATE_ERROR_PERMISSION_DENIED: _bindgen_ty_46 = 25; +pub type _bindgen_ty_46 = ::std::os::raw::c_uint; extern "C" { pub fn AStorageManager_new() -> *mut AStorageManager; } @@ -11945,6 +11752,8 @@ pub struct sync_merge_data { } #[test] fn bindgen_test_layout_sync_merge_data() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -11956,7 +11765,7 @@ fn bindgen_test_layout_sync_merge_data() { concat!("Alignment of ", stringify!(sync_merge_data)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11966,7 +11775,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fd2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fd2) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -11976,7 +11785,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fence) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -11986,7 +11795,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -11996,7 +11805,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12017,6 +11826,8 @@ pub struct sync_fence_info { } #[test] fn bindgen_test_layout_sync_fence_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -12028,7 +11839,7 @@ fn bindgen_test_layout_sync_fence_info() { concat!("Alignment of ", stringify!(sync_fence_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obj_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obj_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12038,7 +11849,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).driver_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).driver_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12048,7 +11859,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -12058,7 +11869,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -12068,7 +11879,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp_ns as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp_ns) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -12090,6 +11901,8 @@ pub struct sync_file_info { } #[test] fn bindgen_test_layout_sync_file_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -12101,7 +11914,7 @@ fn bindgen_test_layout_sync_file_info() { concat!("Alignment of ", stringify!(sync_file_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12111,7 +11924,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12121,7 +11934,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12131,7 +11944,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).num_fences as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).num_fences) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12141,7 +11954,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12151,7 +11964,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sync_fence_info as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sync_fence_info) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -12161,14 +11974,206 @@ fn bindgen_test_layout_sync_file_info() { ) ); } +pub const SYNC_IOC_MAGIC: u8 = 62u8; +extern "C" { + pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; +} +extern "C" { + pub fn sync_file_info(fd: i32) -> *mut sync_file_info; +} +extern "C" { + pub fn sync_file_info_free(info: *mut sync_file_info); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASystemFontIterator { + _unused: [u8; 0], +} +pub const PAGE_SIZE: u32 = 4096; +pub const PAGE_MASK: i32 = -4096; +pub const NGREG: u32 = 18; +pub const FD_SETSIZE: u32 = 1024; +pub const CLOCKS_PER_SEC: u32 = 1000000; +pub const TIME_UTC: u32 = 1; +pub const AAUDIO_UNSPECIFIED: u32 = 0; +pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; +pub const PROPERTY_VENDOR: &[u8; 7] = b"vendor\0"; +pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; +pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; +pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; +pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +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_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const _KERNEL_NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const __SIGRTMIN: u32 = 32; +pub const SIGSWI: u32 = 32; +pub const SA_THIRTYTWO: u32 = 33554432; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const NSIGSEGV: u32 = 9; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; extern "C" { - pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; + pub fn ASystemFontIterator_open() -> *mut ASystemFontIterator; } extern "C" { - pub fn sync_file_info(fd: i32) -> *mut sync_file_info; + pub fn ASystemFontIterator_close(iterator: *mut ASystemFontIterator); } extern "C" { - pub fn sync_file_info_free(info: *mut sync_file_info); + pub fn ASystemFontIterator_next(iterator: *mut ASystemFontIterator) -> *mut AFont; } extern "C" { pub fn ATrace_isEnabled() -> bool; @@ -12188,30 +12193,30 @@ extern "C" { extern "C" { pub fn ATrace_setCounter(counterName: *const ::std::os::raw::c_char, counterValue: i64); } -pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: ::std::os::raw::c_uint = 1; -pub const AWINDOW_FLAG_DIM_BEHIND: ::std::os::raw::c_uint = 2; -pub const AWINDOW_FLAG_BLUR_BEHIND: ::std::os::raw::c_uint = 4; -pub const AWINDOW_FLAG_NOT_FOCUSABLE: ::std::os::raw::c_uint = 8; -pub const AWINDOW_FLAG_NOT_TOUCHABLE: ::std::os::raw::c_uint = 16; -pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: ::std::os::raw::c_uint = 32; -pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: ::std::os::raw::c_uint = 64; -pub const AWINDOW_FLAG_KEEP_SCREEN_ON: ::std::os::raw::c_uint = 128; -pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: ::std::os::raw::c_uint = 256; -pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: ::std::os::raw::c_uint = 512; -pub const AWINDOW_FLAG_FULLSCREEN: ::std::os::raw::c_uint = 1024; -pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: ::std::os::raw::c_uint = 2048; -pub const AWINDOW_FLAG_DITHER: ::std::os::raw::c_uint = 4096; -pub const AWINDOW_FLAG_SECURE: ::std::os::raw::c_uint = 8192; -pub const AWINDOW_FLAG_SCALED: ::std::os::raw::c_uint = 16384; -pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: ::std::os::raw::c_uint = 32768; -pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: ::std::os::raw::c_uint = 65536; -pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: ::std::os::raw::c_uint = 131072; -pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: ::std::os::raw::c_uint = 262144; -pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: ::std::os::raw::c_uint = 524288; -pub const AWINDOW_FLAG_SHOW_WALLPAPER: ::std::os::raw::c_uint = 1048576; -pub const AWINDOW_FLAG_TURN_SCREEN_ON: ::std::os::raw::c_uint = 2097152; -pub const AWINDOW_FLAG_DISMISS_KEYGUARD: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_45 = ::std::os::raw::c_uint; +pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: _bindgen_ty_47 = 1; +pub const AWINDOW_FLAG_DIM_BEHIND: _bindgen_ty_47 = 2; +pub const AWINDOW_FLAG_BLUR_BEHIND: _bindgen_ty_47 = 4; +pub const AWINDOW_FLAG_NOT_FOCUSABLE: _bindgen_ty_47 = 8; +pub const AWINDOW_FLAG_NOT_TOUCHABLE: _bindgen_ty_47 = 16; +pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: _bindgen_ty_47 = 32; +pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: _bindgen_ty_47 = 64; +pub const AWINDOW_FLAG_KEEP_SCREEN_ON: _bindgen_ty_47 = 128; +pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: _bindgen_ty_47 = 256; +pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: _bindgen_ty_47 = 512; +pub const AWINDOW_FLAG_FULLSCREEN: _bindgen_ty_47 = 1024; +pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: _bindgen_ty_47 = 2048; +pub const AWINDOW_FLAG_DITHER: _bindgen_ty_47 = 4096; +pub const AWINDOW_FLAG_SECURE: _bindgen_ty_47 = 8192; +pub const AWINDOW_FLAG_SCALED: _bindgen_ty_47 = 16384; +pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: _bindgen_ty_47 = 32768; +pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: _bindgen_ty_47 = 65536; +pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: _bindgen_ty_47 = 131072; +pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: _bindgen_ty_47 = 262144; +pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: _bindgen_ty_47 = 524288; +pub const AWINDOW_FLAG_SHOW_WALLPAPER: _bindgen_ty_47 = 1048576; +pub const AWINDOW_FLAG_TURN_SCREEN_ON: _bindgen_ty_47 = 2097152; +pub const AWINDOW_FLAG_DISMISS_KEYGUARD: _bindgen_ty_47 = 4194304; +pub type _bindgen_ty_47 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { @@ -12220,6 +12225,8 @@ pub struct __kernel_timespec { } #[test] fn bindgen_test_layout___kernel_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_timespec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_timespec>(), 16usize, @@ -12231,7 +12238,7 @@ fn bindgen_test_layout___kernel_timespec() { concat!("Alignment of ", stringify!(__kernel_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12241,7 +12248,7 @@ fn bindgen_test_layout___kernel_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12259,6 +12266,8 @@ pub struct __kernel_itimerspec { } #[test] fn bindgen_test_layout___kernel_itimerspec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_itimerspec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_itimerspec>(), 32usize, @@ -12270,7 +12279,7 @@ fn bindgen_test_layout___kernel_itimerspec() { concat!("Alignment of ", stringify!(__kernel_itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12280,7 +12289,7 @@ fn bindgen_test_layout___kernel_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12298,6 +12307,9 @@ pub struct __kernel_old_timespec { } #[test] fn bindgen_test_layout___kernel_old_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_old_timespec> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_old_timespec>(), 8usize, @@ -12309,7 +12321,7 @@ fn bindgen_test_layout___kernel_old_timespec() { concat!("Alignment of ", stringify!(__kernel_old_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12319,7 +12331,7 @@ fn bindgen_test_layout___kernel_old_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12337,6 +12349,9 @@ pub struct __kernel_sock_timeval { } #[test] fn bindgen_test_layout___kernel_sock_timeval() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sock_timeval> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sock_timeval>(), 16usize, @@ -12348,7 +12363,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { concat!("Alignment of ", stringify!(__kernel_sock_timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12358,7 +12373,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12376,6 +12391,8 @@ pub struct timespec { } #[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::(), 8usize, @@ -12387,7 +12404,7 @@ fn bindgen_test_layout_timespec() { concat!("Alignment of ", stringify!(timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12397,7 +12414,7 @@ fn bindgen_test_layout_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12415,6 +12432,8 @@ pub struct timeval { } #[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::(), 8usize, @@ -12426,7 +12445,7 @@ fn bindgen_test_layout_timeval() { concat!("Alignment of ", stringify!(timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12436,7 +12455,7 @@ fn bindgen_test_layout_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12454,6 +12473,8 @@ pub struct itimerspec { } #[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::(), 16usize, @@ -12465,7 +12486,7 @@ fn bindgen_test_layout_itimerspec() { concat!("Alignment of ", stringify!(itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12475,7 +12496,7 @@ fn bindgen_test_layout_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12493,6 +12514,8 @@ pub struct itimerval { } #[test] fn bindgen_test_layout_itimerval() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -12504,7 +12527,7 @@ fn bindgen_test_layout_itimerval() { concat!("Alignment of ", stringify!(itimerval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12514,7 +12537,7 @@ fn bindgen_test_layout_itimerval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12532,6 +12555,8 @@ pub struct timezone { } #[test] fn bindgen_test_layout_timezone() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -12543,7 +12568,7 @@ fn bindgen_test_layout_timezone() { concat!("Alignment of ", stringify!(timezone)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_minuteswest as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_minuteswest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12553,7 +12578,7 @@ fn bindgen_test_layout_timezone() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_dsttime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_dsttime) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12590,6 +12615,8 @@ pub struct sigcontext { } #[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::(), 84usize, @@ -12601,7 +12628,7 @@ fn bindgen_test_layout_sigcontext() { concat!("Alignment of ", stringify!(sigcontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trap_no as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trap_no) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12611,7 +12638,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).error_code as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).error_code) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12621,7 +12648,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12631,7 +12658,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -12641,7 +12668,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r1) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12651,7 +12678,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r2) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -12661,7 +12688,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r3 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r3) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -12671,7 +12698,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r4 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r4) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -12681,7 +12708,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r5 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r5) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12691,7 +12718,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r6 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r6) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12701,7 +12728,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r7 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r7) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12711,7 +12738,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r8 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r8) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12721,7 +12748,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r9 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r9) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -12731,7 +12758,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_r10 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_r10) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -12741,7 +12768,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_fp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_fp) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -12751,7 +12778,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_ip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_ip) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -12761,7 +12788,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_sp) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -12771,7 +12798,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_lr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_lr) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -12781,7 +12808,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_pc as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_pc) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -12791,7 +12818,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arm_cpsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arm_cpsr) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -12801,7 +12828,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fault_address as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fault_address) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -12811,6 +12838,9 @@ fn bindgen_test_layout_sigcontext() { ) ); } +pub const _KERNEL__NSIG: u32 = 64; +pub const _NSIG: u32 = 65; +pub const NSIG: u32 = 65; pub type sigset_t = ::std::os::raw::c_ulong; pub type __signalfn_t = ::std::option::Option; pub type __sighandler_t = __signalfn_t; @@ -12838,6 +12868,9 @@ pub union __kernel_sigaction__bindgen_ty_1 { } #[test] fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction__bindgen_ty_1>(), 4usize, @@ -12852,10 +12885,7 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__kernel_sigaction__bindgen_ty_1>()))._sa_handler as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12865,10 +12895,7 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__kernel_sigaction__bindgen_ty_1>()))._sa_sigaction as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12880,6 +12907,8 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { } #[test] fn bindgen_test_layout___kernel_sigaction() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction>(), 16usize, @@ -12891,7 +12920,7 @@ fn bindgen_test_layout___kernel_sigaction() { concat!("Alignment of ", stringify!(__kernel_sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>()))._u as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._u) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12901,7 +12930,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12911,7 +12940,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12921,7 +12950,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -12936,10 +12965,12 @@ fn bindgen_test_layout___kernel_sigaction() { pub struct sigaltstack { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_flags: ::std::os::raw::c_int, - pub ss_size: size_t, + pub ss_size: __kernel_size_t, } #[test] fn bindgen_test_layout_sigaltstack() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -12951,7 +12982,7 @@ fn bindgen_test_layout_sigaltstack() { concat!("Alignment of ", stringify!(sigaltstack)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12961,7 +12992,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12971,7 +13002,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12990,6 +13021,8 @@ pub union sigval { } #[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::(), 4usize, @@ -13001,7 +13034,7 @@ fn bindgen_test_layout_sigval() { concat!("Alignment of ", stringify!(sigval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13011,7 +13044,7 @@ fn bindgen_test_layout_sigval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13041,6 +13074,9 @@ pub struct __sifields__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_1>(), 8usize, @@ -13052,7 +13088,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13062,7 +13098,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13082,6 +13118,9 @@ pub struct __sifields__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_2>(), 16usize, @@ -13093,7 +13132,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13103,9 +13142,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._overrun as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._overrun) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13115,9 +13152,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13127,9 +13162,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sys_private as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sys_private) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13148,6 +13181,9 @@ pub struct __sifields__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_3>(), 12usize, @@ -13159,7 +13195,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_3)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13169,7 +13205,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13179,9 +13215,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13202,6 +13236,9 @@ pub struct __sifields__bindgen_ty_4 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_4() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_4> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_4>(), 20usize, @@ -13213,7 +13250,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_4)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13223,7 +13260,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13233,9 +13270,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._status as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._status) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13245,7 +13280,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._utime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._utime) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13255,7 +13290,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._stime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._stime) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13289,6 +13324,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(), 12usize, @@ -13306,10 +13344,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>())) - ._dummy_bnd as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13319,10 +13354,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._lower - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._lower) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13332,10 +13364,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._upper - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._upper) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13353,6 +13382,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>(), 8usize, @@ -13370,10 +13402,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>())) - ._dummy_pkey as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13383,10 +13412,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>()))._pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._pkey) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13404,6 +13430,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>(), 8usize, @@ -13421,10 +13450,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13434,10 +13460,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._type - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._type) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13449,6 +13472,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1>(), 12usize, @@ -13466,10 +13492,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._trapno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._trapno) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13479,10 +13502,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_lsb as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_lsb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13492,10 +13512,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_bnd as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13505,10 +13522,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13518,10 +13532,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._perf as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._perf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13533,6 +13544,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5>(), 16usize, @@ -13544,7 +13558,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_5)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_5>()))._addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13562,6 +13576,9 @@ pub struct __sifields__bindgen_ty_6 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_6() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_6> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_6>(), 8usize, @@ -13573,7 +13590,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_6)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._band as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._band) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13583,7 +13600,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13602,6 +13619,9 @@ pub struct __sifields__bindgen_ty_7 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_7() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_7> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_7>(), 12usize, @@ -13613,9 +13633,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_7)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._call_addr as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._call_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13625,9 +13643,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._syscall as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._syscall) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13637,7 +13653,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._arch as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._arch) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13649,6 +13665,8 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { } #[test] fn bindgen_test_layout___sifields() { + const UNINIT: ::std::mem::MaybeUninit<__sifields> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields>(), 20usize, @@ -13660,7 +13678,7 @@ fn bindgen_test_layout___sifields() { concat!("Alignment of ", stringify!(__sifields)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._kill as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._kill) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13670,7 +13688,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._timer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._timer) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13680,7 +13698,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._rt as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._rt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13690,7 +13708,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigchld as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigchld) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13700,7 +13718,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigfault as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigfault) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13710,7 +13728,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigpoll as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigpoll) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13720,7 +13738,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigsys as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13751,6 +13769,9 @@ pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_siginfo__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::(), 32usize, @@ -13765,10 +13786,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_signo as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13778,10 +13796,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_errno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13791,10 +13806,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_code as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13804,10 +13816,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sifields as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sifields) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13819,6 +13828,9 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_siginfo__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -13830,7 +13842,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1() { concat!("Alignment of ", stringify!(siginfo__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._si_pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._si_pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13877,6 +13889,9 @@ pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { } #[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::(), 8usize, @@ -13894,10 +13909,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._function as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._function) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13907,10 +13919,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._attribute as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._attribute) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13922,6 +13931,9 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { } #[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::(), 52usize, @@ -13933,7 +13945,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13943,7 +13955,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13953,9 +13965,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sigev_thread as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_thread) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13967,6 +13977,8 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { } #[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, @@ -13978,7 +13990,7 @@ fn bindgen_test_layout_sigevent() { concat!("Alignment of ", stringify!(sigevent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13988,7 +14000,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13998,7 +14010,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14008,7 +14020,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._sigev_un as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_un) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14029,6 +14041,8 @@ pub struct sigset64_t { } #[test] fn bindgen_test_layout_sigset64_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -14040,7 +14054,7 @@ fn bindgen_test_layout_sigset64_t() { concat!("Alignment of ", stringify!(sigset64_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14072,6 +14086,9 @@ pub union sigaction__bindgen_ty_1 { } #[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::(), 4usize, @@ -14083,9 +14100,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14095,9 +14110,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14109,6 +14122,8 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { } #[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::(), 16usize, @@ -14120,7 +14135,7 @@ fn bindgen_test_layout_sigaction() { concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14130,7 +14145,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14140,7 +14155,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14172,6 +14187,9 @@ pub union sigaction64__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sigaction64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -14183,9 +14201,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14195,9 +14211,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14209,6 +14223,8 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sigaction64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -14220,7 +14236,7 @@ fn bindgen_test_layout_sigaction64() { concat!("Alignment of ", stringify!(sigaction64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14230,7 +14246,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14240,7 +14256,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14401,6 +14417,8 @@ impl user_fpregs_fp_reg { } #[test] fn bindgen_test_layout_user_fpregs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 116usize, @@ -14412,7 +14430,7 @@ fn bindgen_test_layout_user_fpregs() { concat!("Alignment of ", stringify!(user_fpregs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14422,7 +14440,7 @@ fn bindgen_test_layout_user_fpregs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ftype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ftype) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -14432,7 +14450,7 @@ fn bindgen_test_layout_user_fpregs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).init_flag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).init_flag) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -14489,6 +14507,8 @@ pub struct user_regs { } #[test] fn bindgen_test_layout_user_regs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 72usize, @@ -14500,7 +14520,7 @@ fn bindgen_test_layout_user_regs() { concat!("Alignment of ", stringify!(user_regs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14518,6 +14538,8 @@ pub struct user_vfp { } #[test] fn bindgen_test_layout_user_vfp() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 264usize, @@ -14529,7 +14551,7 @@ fn bindgen_test_layout_user_vfp() { concat!("Alignment of ", stringify!(user_vfp)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14539,7 +14561,7 @@ fn bindgen_test_layout_user_vfp() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpscr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpscr) as usize - ptr as usize }, 256usize, concat!( "Offset of field: ", @@ -14558,6 +14580,8 @@ pub struct user_vfp_exc { } #[test] fn bindgen_test_layout_user_vfp_exc() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -14569,7 +14593,7 @@ fn bindgen_test_layout_user_vfp_exc() { concat!("Alignment of ", stringify!(user_vfp_exc)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpexc as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpexc) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14579,7 +14603,7 @@ fn bindgen_test_layout_user_vfp_exc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpinst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpinst) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14589,7 +14613,7 @@ fn bindgen_test_layout_user_vfp_exc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpinst2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpinst2) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14620,6 +14644,8 @@ pub struct user { } #[test] fn bindgen_test_layout_user() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 296usize, @@ -14631,7 +14657,7 @@ fn bindgen_test_layout_user() { concat!("Alignment of ", stringify!(user)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).regs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14641,7 +14667,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fpvalid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fpvalid) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -14651,7 +14677,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_tsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_tsize) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -14661,7 +14687,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_dsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_dsize) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -14671,7 +14697,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ssize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ssize) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", @@ -14681,7 +14707,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_code as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_code) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -14691,7 +14717,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_stack) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", @@ -14701,7 +14727,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).signal) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -14711,7 +14737,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 100usize, concat!( "Offset of field: ", @@ -14721,7 +14747,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ar0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ar0) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -14731,7 +14757,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 108usize, concat!( "Offset of field: ", @@ -14741,7 +14767,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_comm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_comm) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -14751,7 +14777,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_debugreg as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_debugreg) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -14761,7 +14787,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fp) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -14771,7 +14797,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fp0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fp0) as usize - ptr as usize }, 292usize, concat!( "Offset of field: ", @@ -14781,23 +14807,23 @@ fn bindgen_test_layout_user() { ) ); } -pub const REG_R0: ::std::os::raw::c_uint = 0; -pub const REG_R1: ::std::os::raw::c_uint = 1; -pub const REG_R2: ::std::os::raw::c_uint = 2; -pub const REG_R3: ::std::os::raw::c_uint = 3; -pub const REG_R4: ::std::os::raw::c_uint = 4; -pub const REG_R5: ::std::os::raw::c_uint = 5; -pub const REG_R6: ::std::os::raw::c_uint = 6; -pub const REG_R7: ::std::os::raw::c_uint = 7; -pub const REG_R8: ::std::os::raw::c_uint = 8; -pub const REG_R9: ::std::os::raw::c_uint = 9; -pub const REG_R10: ::std::os::raw::c_uint = 10; -pub const REG_R11: ::std::os::raw::c_uint = 11; -pub const REG_R12: ::std::os::raw::c_uint = 12; -pub const REG_R13: ::std::os::raw::c_uint = 13; -pub const REG_R14: ::std::os::raw::c_uint = 14; -pub const REG_R15: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_46 = ::std::os::raw::c_uint; +pub const REG_R0: _bindgen_ty_48 = 0; +pub const REG_R1: _bindgen_ty_48 = 1; +pub const REG_R2: _bindgen_ty_48 = 2; +pub const REG_R3: _bindgen_ty_48 = 3; +pub const REG_R4: _bindgen_ty_48 = 4; +pub const REG_R5: _bindgen_ty_48 = 5; +pub const REG_R6: _bindgen_ty_48 = 6; +pub const REG_R7: _bindgen_ty_48 = 7; +pub const REG_R8: _bindgen_ty_48 = 8; +pub const REG_R9: _bindgen_ty_48 = 9; +pub const REG_R10: _bindgen_ty_48 = 10; +pub const REG_R11: _bindgen_ty_48 = 11; +pub const REG_R12: _bindgen_ty_48 = 12; +pub const REG_R13: _bindgen_ty_48 = 13; +pub const REG_R14: _bindgen_ty_48 = 14; +pub const REG_R15: _bindgen_ty_48 = 15; +pub type _bindgen_ty_48 = ::std::os::raw::c_uint; pub type greg_t = ::std::os::raw::c_int; pub type gregset_t = [greg_t; 18usize]; pub type fpregset_t = user_fpregs; @@ -14828,6 +14854,9 @@ pub struct ucontext__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ucontext__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, @@ -14845,10 +14874,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14858,10 +14884,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__padding_rt_sigset - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__padding_rt_sigset) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14873,6 +14896,9 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -14884,9 +14910,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { concat!("Alignment of ", stringify!(ucontext__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask64 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14898,6 +14922,8 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 744usize, @@ -14909,7 +14935,7 @@ fn bindgen_test_layout_ucontext() { concat!("Alignment of ", stringify!(ucontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14919,7 +14945,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_link as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14929,7 +14955,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14939,7 +14965,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_mcontext as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -14949,7 +14975,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__padding) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -14959,7 +14985,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_regspace as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_regspace) as usize - ptr as usize }, 232usize, concat!( "Offset of field: ", @@ -15193,6 +15219,8 @@ pub struct fd_set { } #[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, @@ -15204,7 +15232,7 @@ fn bindgen_test_layout_fd_set() { concat!("Alignment of ", stringify!(fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15307,6 +15335,8 @@ pub struct tm { } #[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::(), 44usize, @@ -15318,7 +15348,7 @@ fn bindgen_test_layout_tm() { concat!("Alignment of ", stringify!(tm)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15328,7 +15358,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_min as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15338,7 +15368,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_hour as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15348,7 +15378,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15358,7 +15388,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mon as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15368,7 +15398,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_year as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -15378,7 +15408,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_wday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15388,7 +15418,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_yday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -15398,7 +15428,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_isdst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -15408,7 +15438,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_gmtoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -15418,7 +15448,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_zone as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -15567,161 +15597,161 @@ extern "C" { __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AAUDIO_DIRECTION_OUTPUT: ::std::os::raw::c_uint = 0; -pub const AAUDIO_DIRECTION_INPUT: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_47 = ::std::os::raw::c_uint; +pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; +pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; +pub type _bindgen_ty_49 = ::std::os::raw::c_uint; pub type aaudio_direction_t = i32; -pub const AAUDIO_FORMAT_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_FORMAT_UNSPECIFIED: ::std::os::raw::c_int = 0; -pub const AAUDIO_FORMAT_PCM_I16: ::std::os::raw::c_int = 1; -pub const AAUDIO_FORMAT_PCM_FLOAT: ::std::os::raw::c_int = 2; -pub const AAUDIO_FORMAT_PCM_I24_PACKED: ::std::os::raw::c_int = 3; -pub const AAUDIO_FORMAT_PCM_I32: ::std::os::raw::c_int = 4; -pub type _bindgen_ty_48 = ::std::os::raw::c_int; +pub const AAUDIO_FORMAT_INVALID: _bindgen_ty_50 = -1; +pub const AAUDIO_FORMAT_UNSPECIFIED: _bindgen_ty_50 = 0; +pub const AAUDIO_FORMAT_PCM_I16: _bindgen_ty_50 = 1; +pub const AAUDIO_FORMAT_PCM_FLOAT: _bindgen_ty_50 = 2; +pub const AAUDIO_FORMAT_PCM_I24_PACKED: _bindgen_ty_50 = 3; +pub const AAUDIO_FORMAT_PCM_I32: _bindgen_ty_50 = 4; +pub type _bindgen_ty_50 = ::std::os::raw::c_int; pub type aaudio_format_t = i32; -pub const AAUDIO_OK: ::std::os::raw::c_int = 0; -pub const AAUDIO_ERROR_BASE: ::std::os::raw::c_int = -900; -pub const AAUDIO_ERROR_DISCONNECTED: ::std::os::raw::c_int = -899; -pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: ::std::os::raw::c_int = -898; -pub const AAUDIO_ERROR_INTERNAL: ::std::os::raw::c_int = -896; -pub const AAUDIO_ERROR_INVALID_STATE: ::std::os::raw::c_int = -895; -pub const AAUDIO_ERROR_INVALID_HANDLE: ::std::os::raw::c_int = -892; -pub const AAUDIO_ERROR_UNIMPLEMENTED: ::std::os::raw::c_int = -890; -pub const AAUDIO_ERROR_UNAVAILABLE: ::std::os::raw::c_int = -889; -pub const AAUDIO_ERROR_NO_FREE_HANDLES: ::std::os::raw::c_int = -888; -pub const AAUDIO_ERROR_NO_MEMORY: ::std::os::raw::c_int = -887; -pub const AAUDIO_ERROR_NULL: ::std::os::raw::c_int = -886; -pub const AAUDIO_ERROR_TIMEOUT: ::std::os::raw::c_int = -885; -pub const AAUDIO_ERROR_WOULD_BLOCK: ::std::os::raw::c_int = -884; -pub const AAUDIO_ERROR_INVALID_FORMAT: ::std::os::raw::c_int = -883; -pub const AAUDIO_ERROR_OUT_OF_RANGE: ::std::os::raw::c_int = -882; -pub const AAUDIO_ERROR_NO_SERVICE: ::std::os::raw::c_int = -881; -pub const AAUDIO_ERROR_INVALID_RATE: ::std::os::raw::c_int = -880; -pub type _bindgen_ty_49 = ::std::os::raw::c_int; +pub const AAUDIO_OK: _bindgen_ty_51 = 0; +pub const AAUDIO_ERROR_BASE: _bindgen_ty_51 = -900; +pub const AAUDIO_ERROR_DISCONNECTED: _bindgen_ty_51 = -899; +pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: _bindgen_ty_51 = -898; +pub const AAUDIO_ERROR_INTERNAL: _bindgen_ty_51 = -896; +pub const AAUDIO_ERROR_INVALID_STATE: _bindgen_ty_51 = -895; +pub const AAUDIO_ERROR_INVALID_HANDLE: _bindgen_ty_51 = -892; +pub const AAUDIO_ERROR_UNIMPLEMENTED: _bindgen_ty_51 = -890; +pub const AAUDIO_ERROR_UNAVAILABLE: _bindgen_ty_51 = -889; +pub const AAUDIO_ERROR_NO_FREE_HANDLES: _bindgen_ty_51 = -888; +pub const AAUDIO_ERROR_NO_MEMORY: _bindgen_ty_51 = -887; +pub const AAUDIO_ERROR_NULL: _bindgen_ty_51 = -886; +pub const AAUDIO_ERROR_TIMEOUT: _bindgen_ty_51 = -885; +pub const AAUDIO_ERROR_WOULD_BLOCK: _bindgen_ty_51 = -884; +pub const AAUDIO_ERROR_INVALID_FORMAT: _bindgen_ty_51 = -883; +pub const AAUDIO_ERROR_OUT_OF_RANGE: _bindgen_ty_51 = -882; +pub const AAUDIO_ERROR_NO_SERVICE: _bindgen_ty_51 = -881; +pub const AAUDIO_ERROR_INVALID_RATE: _bindgen_ty_51 = -880; +pub type _bindgen_ty_51 = ::std::os::raw::c_int; pub type aaudio_result_t = i32; -pub const AAUDIO_STREAM_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 0; -pub const AAUDIO_STREAM_STATE_UNKNOWN: ::std::os::raw::c_uint = 1; -pub const AAUDIO_STREAM_STATE_OPEN: ::std::os::raw::c_uint = 2; -pub const AAUDIO_STREAM_STATE_STARTING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_STREAM_STATE_STARTED: ::std::os::raw::c_uint = 4; -pub const AAUDIO_STREAM_STATE_PAUSING: ::std::os::raw::c_uint = 5; -pub const AAUDIO_STREAM_STATE_PAUSED: ::std::os::raw::c_uint = 6; -pub const AAUDIO_STREAM_STATE_FLUSHING: ::std::os::raw::c_uint = 7; -pub const AAUDIO_STREAM_STATE_FLUSHED: ::std::os::raw::c_uint = 8; -pub const AAUDIO_STREAM_STATE_STOPPING: ::std::os::raw::c_uint = 9; -pub const AAUDIO_STREAM_STATE_STOPPED: ::std::os::raw::c_uint = 10; -pub const AAUDIO_STREAM_STATE_CLOSING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_STREAM_STATE_CLOSED: ::std::os::raw::c_uint = 12; -pub const AAUDIO_STREAM_STATE_DISCONNECTED: ::std::os::raw::c_uint = 13; -pub type _bindgen_ty_50 = ::std::os::raw::c_uint; +pub const AAUDIO_STREAM_STATE_UNINITIALIZED: _bindgen_ty_52 = 0; +pub const AAUDIO_STREAM_STATE_UNKNOWN: _bindgen_ty_52 = 1; +pub const AAUDIO_STREAM_STATE_OPEN: _bindgen_ty_52 = 2; +pub const AAUDIO_STREAM_STATE_STARTING: _bindgen_ty_52 = 3; +pub const AAUDIO_STREAM_STATE_STARTED: _bindgen_ty_52 = 4; +pub const AAUDIO_STREAM_STATE_PAUSING: _bindgen_ty_52 = 5; +pub const AAUDIO_STREAM_STATE_PAUSED: _bindgen_ty_52 = 6; +pub const AAUDIO_STREAM_STATE_FLUSHING: _bindgen_ty_52 = 7; +pub const AAUDIO_STREAM_STATE_FLUSHED: _bindgen_ty_52 = 8; +pub const AAUDIO_STREAM_STATE_STOPPING: _bindgen_ty_52 = 9; +pub const AAUDIO_STREAM_STATE_STOPPED: _bindgen_ty_52 = 10; +pub const AAUDIO_STREAM_STATE_CLOSING: _bindgen_ty_52 = 11; +pub const AAUDIO_STREAM_STATE_CLOSED: _bindgen_ty_52 = 12; +pub const AAUDIO_STREAM_STATE_DISCONNECTED: _bindgen_ty_52 = 13; +pub type _bindgen_ty_52 = ::std::os::raw::c_uint; pub type aaudio_stream_state_t = i32; -pub const AAUDIO_SHARING_MODE_EXCLUSIVE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_SHARING_MODE_SHARED: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_51 = ::std::os::raw::c_uint; +pub const AAUDIO_SHARING_MODE_EXCLUSIVE: _bindgen_ty_53 = 0; +pub const AAUDIO_SHARING_MODE_SHARED: _bindgen_ty_53 = 1; +pub type _bindgen_ty_53 = ::std::os::raw::c_uint; pub type aaudio_sharing_mode_t = i32; -pub const AAUDIO_PERFORMANCE_MODE_NONE: ::std::os::raw::c_uint = 10; -pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: ::std::os::raw::c_uint = 12; -pub type _bindgen_ty_52 = ::std::os::raw::c_uint; +pub const AAUDIO_PERFORMANCE_MODE_NONE: _bindgen_ty_54 = 10; +pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: _bindgen_ty_54 = 11; +pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: _bindgen_ty_54 = 12; +pub type _bindgen_ty_54 = ::std::os::raw::c_uint; pub type aaudio_performance_mode_t = i32; -pub const AAUDIO_USAGE_MEDIA: ::std::os::raw::c_uint = 1; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 2; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_USAGE_ALARM: ::std::os::raw::c_uint = 4; -pub const AAUDIO_USAGE_NOTIFICATION: ::std::os::raw::c_uint = 5; -pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: ::std::os::raw::c_uint = 6; -pub const AAUDIO_USAGE_NOTIFICATION_EVENT: ::std::os::raw::c_uint = 10; -pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: ::std::os::raw::c_uint = 11; -pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: ::std::os::raw::c_uint = 12; -pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: ::std::os::raw::c_uint = 13; -pub const AAUDIO_USAGE_GAME: ::std::os::raw::c_uint = 14; -pub const AAUDIO_USAGE_ASSISTANT: ::std::os::raw::c_uint = 16; -pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: ::std::os::raw::c_uint = 1000; -pub const AAUDIO_SYSTEM_USAGE_SAFETY: ::std::os::raw::c_uint = 1001; -pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: ::std::os::raw::c_uint = 1002; -pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: ::std::os::raw::c_uint = 1003; -pub type _bindgen_ty_53 = ::std::os::raw::c_uint; +pub const AAUDIO_USAGE_MEDIA: _bindgen_ty_55 = 1; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION: _bindgen_ty_55 = 2; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: _bindgen_ty_55 = 3; +pub const AAUDIO_USAGE_ALARM: _bindgen_ty_55 = 4; +pub const AAUDIO_USAGE_NOTIFICATION: _bindgen_ty_55 = 5; +pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: _bindgen_ty_55 = 6; +pub const AAUDIO_USAGE_NOTIFICATION_EVENT: _bindgen_ty_55 = 10; +pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: _bindgen_ty_55 = 11; +pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: _bindgen_ty_55 = 12; +pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: _bindgen_ty_55 = 13; +pub const AAUDIO_USAGE_GAME: _bindgen_ty_55 = 14; +pub const AAUDIO_USAGE_ASSISTANT: _bindgen_ty_55 = 16; +pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: _bindgen_ty_55 = 1000; +pub const AAUDIO_SYSTEM_USAGE_SAFETY: _bindgen_ty_55 = 1001; +pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: _bindgen_ty_55 = 1002; +pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: _bindgen_ty_55 = 1003; +pub type _bindgen_ty_55 = ::std::os::raw::c_uint; pub type aaudio_usage_t = i32; -pub const AAUDIO_CONTENT_TYPE_SPEECH: ::std::os::raw::c_uint = 1; -pub const AAUDIO_CONTENT_TYPE_MUSIC: ::std::os::raw::c_uint = 2; -pub const AAUDIO_CONTENT_TYPE_MOVIE: ::std::os::raw::c_uint = 3; -pub const AAUDIO_CONTENT_TYPE_SONIFICATION: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_54 = ::std::os::raw::c_uint; +pub const AAUDIO_CONTENT_TYPE_SPEECH: _bindgen_ty_56 = 1; +pub const AAUDIO_CONTENT_TYPE_MUSIC: _bindgen_ty_56 = 2; +pub const AAUDIO_CONTENT_TYPE_MOVIE: _bindgen_ty_56 = 3; +pub const AAUDIO_CONTENT_TYPE_SONIFICATION: _bindgen_ty_56 = 4; +pub type _bindgen_ty_56 = ::std::os::raw::c_uint; pub type aaudio_content_type_t = i32; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: ::std::os::raw::c_uint = 1; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_55 = ::std::os::raw::c_uint; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: _bindgen_ty_57 = 1; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: _bindgen_ty_57 = 2; +pub type _bindgen_ty_57 = ::std::os::raw::c_uint; pub type aaudio_spatialization_behavior_t = i32; -pub const AAUDIO_INPUT_PRESET_GENERIC: ::std::os::raw::c_uint = 1; -pub const AAUDIO_INPUT_PRESET_CAMCORDER: ::std::os::raw::c_uint = 5; -pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: ::std::os::raw::c_uint = 6; -pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 7; -pub const AAUDIO_INPUT_PRESET_UNPROCESSED: ::std::os::raw::c_uint = 9; -pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: ::std::os::raw::c_uint = 10; -pub type _bindgen_ty_56 = ::std::os::raw::c_uint; +pub const AAUDIO_INPUT_PRESET_GENERIC: _bindgen_ty_58 = 1; +pub const AAUDIO_INPUT_PRESET_CAMCORDER: _bindgen_ty_58 = 5; +pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: _bindgen_ty_58 = 6; +pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: _bindgen_ty_58 = 7; +pub const AAUDIO_INPUT_PRESET_UNPROCESSED: _bindgen_ty_58 = 9; +pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: _bindgen_ty_58 = 10; +pub type _bindgen_ty_58 = ::std::os::raw::c_uint; pub type aaudio_input_preset_t = i32; -pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: ::std::os::raw::c_uint = 1; -pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: ::std::os::raw::c_uint = 2; -pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_57 = ::std::os::raw::c_uint; +pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: _bindgen_ty_59 = 1; +pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: _bindgen_ty_59 = 2; +pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: _bindgen_ty_59 = 3; +pub type _bindgen_ty_59 = ::std::os::raw::c_uint; pub type aaudio_allowed_capture_policy_t = i32; -pub const AAUDIO_SESSION_ID_NONE: ::std::os::raw::c_int = -1; -pub const AAUDIO_SESSION_ID_ALLOCATE: ::std::os::raw::c_int = 0; -pub type _bindgen_ty_58 = ::std::os::raw::c_int; +pub const AAUDIO_SESSION_ID_NONE: _bindgen_ty_60 = -1; +pub const AAUDIO_SESSION_ID_ALLOCATE: _bindgen_ty_60 = 0; +pub type _bindgen_ty_60 = ::std::os::raw::c_int; pub type aaudio_session_id_t = i32; -pub const AAUDIO_CHANNEL_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_CHANNEL_FRONT_LEFT: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_FRONT_RIGHT: ::std::os::raw::c_int = 2; -pub const AAUDIO_CHANNEL_FRONT_CENTER: ::std::os::raw::c_int = 4; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY: ::std::os::raw::c_int = 8; -pub const AAUDIO_CHANNEL_BACK_LEFT: ::std::os::raw::c_int = 16; -pub const AAUDIO_CHANNEL_BACK_RIGHT: ::std::os::raw::c_int = 32; -pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: ::std::os::raw::c_int = 64; -pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: ::std::os::raw::c_int = 128; -pub const AAUDIO_CHANNEL_BACK_CENTER: ::std::os::raw::c_int = 256; -pub const AAUDIO_CHANNEL_SIDE_LEFT: ::std::os::raw::c_int = 512; -pub const AAUDIO_CHANNEL_SIDE_RIGHT: ::std::os::raw::c_int = 1024; -pub const AAUDIO_CHANNEL_TOP_CENTER: ::std::os::raw::c_int = 2048; -pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: ::std::os::raw::c_int = 4096; -pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: ::std::os::raw::c_int = 8192; -pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: ::std::os::raw::c_int = 16384; -pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: ::std::os::raw::c_int = 32768; -pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: ::std::os::raw::c_int = 65536; -pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: ::std::os::raw::c_int = 131072; -pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: ::std::os::raw::c_int = 262144; -pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: ::std::os::raw::c_int = 524288; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: ::std::os::raw::c_int = 1048576; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: ::std::os::raw::c_int = 2097152; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: ::std::os::raw::c_int = 4194304; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: ::std::os::raw::c_int = 8388608; -pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: ::std::os::raw::c_int = 16777216; -pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: ::std::os::raw::c_int = 33554432; -pub const AAUDIO_CHANNEL_MONO: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_STEREO: ::std::os::raw::c_int = 3; -pub const AAUDIO_CHANNEL_2POINT1: ::std::os::raw::c_int = 11; -pub const AAUDIO_CHANNEL_TRI: ::std::os::raw::c_int = 7; -pub const AAUDIO_CHANNEL_TRI_BACK: ::std::os::raw::c_int = 259; -pub const AAUDIO_CHANNEL_3POINT1: ::std::os::raw::c_int = 15; -pub const AAUDIO_CHANNEL_2POINT0POINT2: ::std::os::raw::c_int = 786435; -pub const AAUDIO_CHANNEL_2POINT1POINT2: ::std::os::raw::c_int = 786443; -pub const AAUDIO_CHANNEL_3POINT0POINT2: ::std::os::raw::c_int = 786439; -pub const AAUDIO_CHANNEL_3POINT1POINT2: ::std::os::raw::c_int = 786447; -pub const AAUDIO_CHANNEL_QUAD: ::std::os::raw::c_int = 51; -pub const AAUDIO_CHANNEL_QUAD_SIDE: ::std::os::raw::c_int = 1539; -pub const AAUDIO_CHANNEL_SURROUND: ::std::os::raw::c_int = 263; -pub const AAUDIO_CHANNEL_PENTA: ::std::os::raw::c_int = 55; -pub const AAUDIO_CHANNEL_5POINT1: ::std::os::raw::c_int = 63; -pub const AAUDIO_CHANNEL_5POINT1_SIDE: ::std::os::raw::c_int = 1551; -pub const AAUDIO_CHANNEL_6POINT1: ::std::os::raw::c_int = 319; -pub const AAUDIO_CHANNEL_7POINT1: ::std::os::raw::c_int = 1599; -pub const AAUDIO_CHANNEL_5POINT1POINT2: ::std::os::raw::c_int = 786495; -pub const AAUDIO_CHANNEL_5POINT1POINT4: ::std::os::raw::c_int = 184383; -pub const AAUDIO_CHANNEL_7POINT1POINT2: ::std::os::raw::c_int = 788031; -pub const AAUDIO_CHANNEL_7POINT1POINT4: ::std::os::raw::c_int = 185919; -pub const AAUDIO_CHANNEL_9POINT1POINT4: ::std::os::raw::c_int = 50517567; -pub const AAUDIO_CHANNEL_9POINT1POINT6: ::std::os::raw::c_int = 51303999; -pub const AAUDIO_CHANNEL_FRONT_BACK: ::std::os::raw::c_int = 260; -pub type _bindgen_ty_59 = ::std::os::raw::c_int; +pub const AAUDIO_CHANNEL_INVALID: _bindgen_ty_61 = -1; +pub const AAUDIO_CHANNEL_FRONT_LEFT: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_FRONT_RIGHT: _bindgen_ty_61 = 2; +pub const AAUDIO_CHANNEL_FRONT_CENTER: _bindgen_ty_61 = 4; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY: _bindgen_ty_61 = 8; +pub const AAUDIO_CHANNEL_BACK_LEFT: _bindgen_ty_61 = 16; +pub const AAUDIO_CHANNEL_BACK_RIGHT: _bindgen_ty_61 = 32; +pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: _bindgen_ty_61 = 64; +pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: _bindgen_ty_61 = 128; +pub const AAUDIO_CHANNEL_BACK_CENTER: _bindgen_ty_61 = 256; +pub const AAUDIO_CHANNEL_SIDE_LEFT: _bindgen_ty_61 = 512; +pub const AAUDIO_CHANNEL_SIDE_RIGHT: _bindgen_ty_61 = 1024; +pub const AAUDIO_CHANNEL_TOP_CENTER: _bindgen_ty_61 = 2048; +pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: _bindgen_ty_61 = 4096; +pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: _bindgen_ty_61 = 8192; +pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: _bindgen_ty_61 = 16384; +pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: _bindgen_ty_61 = 32768; +pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: _bindgen_ty_61 = 65536; +pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: _bindgen_ty_61 = 131072; +pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: _bindgen_ty_61 = 262144; +pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: _bindgen_ty_61 = 524288; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: _bindgen_ty_61 = 1048576; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: _bindgen_ty_61 = 2097152; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: _bindgen_ty_61 = 4194304; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: _bindgen_ty_61 = 8388608; +pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: _bindgen_ty_61 = 16777216; +pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: _bindgen_ty_61 = 33554432; +pub const AAUDIO_CHANNEL_MONO: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_STEREO: _bindgen_ty_61 = 3; +pub const AAUDIO_CHANNEL_2POINT1: _bindgen_ty_61 = 11; +pub const AAUDIO_CHANNEL_TRI: _bindgen_ty_61 = 7; +pub const AAUDIO_CHANNEL_TRI_BACK: _bindgen_ty_61 = 259; +pub const AAUDIO_CHANNEL_3POINT1: _bindgen_ty_61 = 15; +pub const AAUDIO_CHANNEL_2POINT0POINT2: _bindgen_ty_61 = 786435; +pub const AAUDIO_CHANNEL_2POINT1POINT2: _bindgen_ty_61 = 786443; +pub const AAUDIO_CHANNEL_3POINT0POINT2: _bindgen_ty_61 = 786439; +pub const AAUDIO_CHANNEL_3POINT1POINT2: _bindgen_ty_61 = 786447; +pub const AAUDIO_CHANNEL_QUAD: _bindgen_ty_61 = 51; +pub const AAUDIO_CHANNEL_QUAD_SIDE: _bindgen_ty_61 = 1539; +pub const AAUDIO_CHANNEL_SURROUND: _bindgen_ty_61 = 263; +pub const AAUDIO_CHANNEL_PENTA: _bindgen_ty_61 = 55; +pub const AAUDIO_CHANNEL_5POINT1: _bindgen_ty_61 = 63; +pub const AAUDIO_CHANNEL_5POINT1_SIDE: _bindgen_ty_61 = 1551; +pub const AAUDIO_CHANNEL_6POINT1: _bindgen_ty_61 = 319; +pub const AAUDIO_CHANNEL_7POINT1: _bindgen_ty_61 = 1599; +pub const AAUDIO_CHANNEL_5POINT1POINT2: _bindgen_ty_61 = 786495; +pub const AAUDIO_CHANNEL_5POINT1POINT4: _bindgen_ty_61 = 184383; +pub const AAUDIO_CHANNEL_7POINT1POINT2: _bindgen_ty_61 = 788031; +pub const AAUDIO_CHANNEL_7POINT1POINT4: _bindgen_ty_61 = 185919; +pub const AAUDIO_CHANNEL_9POINT1POINT4: _bindgen_ty_61 = 50517567; +pub const AAUDIO_CHANNEL_9POINT1POINT6: _bindgen_ty_61 = 51303999; +pub const AAUDIO_CHANNEL_FRONT_BACK: _bindgen_ty_61 = 260; +pub type _bindgen_ty_61 = ::std::os::raw::c_int; pub type aaudio_channel_mask_t = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -15852,9 +15882,9 @@ extern "C" { privacySensitive: bool, ); } -pub const AAUDIO_CALLBACK_RESULT_CONTINUE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_CALLBACK_RESULT_STOP: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_60 = ::std::os::raw::c_uint; +pub const AAUDIO_CALLBACK_RESULT_CONTINUE: _bindgen_ty_62 = 0; +pub const AAUDIO_CALLBACK_RESULT_STOP: _bindgen_ty_62 = 1; +pub type _bindgen_ty_62 = ::std::os::raw::c_uint; pub type aaudio_data_callback_result_t = i32; pub type AAudioStream_dataCallback = ::std::option::Option< unsafe extern "C" fn( @@ -16146,13 +16176,13 @@ pub struct AMidiInputPort { pub struct AMidiOutputPort { _unused: [u8; 0], } -pub const AMIDI_OPCODE_DATA: ::std::os::raw::c_uint = 1; -pub const AMIDI_OPCODE_FLUSH: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_61 = ::std::os::raw::c_uint; -pub const AMIDI_DEVICE_TYPE_USB: ::std::os::raw::c_uint = 1; -pub const AMIDI_DEVICE_TYPE_VIRTUAL: ::std::os::raw::c_uint = 2; -pub const AMIDI_DEVICE_TYPE_BLUETOOTH: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_62 = ::std::os::raw::c_uint; +pub const AMIDI_OPCODE_DATA: _bindgen_ty_63 = 1; +pub const AMIDI_OPCODE_FLUSH: _bindgen_ty_63 = 2; +pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const AMIDI_DEVICE_TYPE_USB: _bindgen_ty_64 = 1; +pub const AMIDI_DEVICE_TYPE_VIRTUAL: _bindgen_ty_64 = 2; +pub const AMIDI_DEVICE_TYPE_BLUETOOTH: _bindgen_ty_64 = 3; +pub type _bindgen_ty_64 = ::std::os::raw::c_uint; impl AMidiDevice_Protocol { pub const AMIDI_DEVICE_PROTOCOL_UMP_USE_MIDI_CI: AMidiDevice_Protocol = AMidiDevice_Protocol(0); } @@ -19333,14 +19363,14 @@ pub use self::acamera_metadata_enum_acamera_automotive_lens_facing as acamera_me pub struct ACameraMetadata { _unused: [u8; 0], } -pub const ACAMERA_TYPE_BYTE: ::std::os::raw::c_uint = 0; -pub const ACAMERA_TYPE_INT32: ::std::os::raw::c_uint = 1; -pub const ACAMERA_TYPE_FLOAT: ::std::os::raw::c_uint = 2; -pub const ACAMERA_TYPE_INT64: ::std::os::raw::c_uint = 3; -pub const ACAMERA_TYPE_DOUBLE: ::std::os::raw::c_uint = 4; -pub const ACAMERA_TYPE_RATIONAL: ::std::os::raw::c_uint = 5; -pub const ACAMERA_NUM_TYPES: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const ACAMERA_TYPE_BYTE: _bindgen_ty_65 = 0; +pub const ACAMERA_TYPE_INT32: _bindgen_ty_65 = 1; +pub const ACAMERA_TYPE_FLOAT: _bindgen_ty_65 = 2; +pub const ACAMERA_TYPE_INT64: _bindgen_ty_65 = 3; +pub const ACAMERA_TYPE_DOUBLE: _bindgen_ty_65 = 4; +pub const ACAMERA_TYPE_RATIONAL: _bindgen_ty_65 = 5; +pub const ACAMERA_NUM_TYPES: _bindgen_ty_65 = 6; +pub type _bindgen_ty_65 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraMetadata_rational { @@ -19349,6 +19379,9 @@ pub struct ACameraMetadata_rational { } #[test] fn bindgen_test_layout_ACameraMetadata_rational() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -19360,9 +19393,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { concat!("Alignment of ", stringify!(ACameraMetadata_rational)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).numerator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).numerator) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19372,9 +19403,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).denominator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).denominator) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19404,6 +19433,9 @@ pub union ACameraMetadata_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -19418,9 +19450,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19430,10 +19460,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19443,9 +19470,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19455,10 +19480,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19468,9 +19490,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19480,9 +19500,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19494,6 +19512,9 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -19505,7 +19526,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19515,7 +19536,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19525,7 +19546,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19535,7 +19556,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -19565,6 +19586,9 @@ pub union ACameraMetadata_const_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -19582,10 +19606,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19595,10 +19616,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19608,10 +19626,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19621,10 +19636,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19634,10 +19646,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19647,10 +19656,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19662,6 +19668,9 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -19673,7 +19682,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_const_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19683,9 +19692,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19695,9 +19702,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -19707,9 +19712,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -19949,6 +19952,9 @@ pub struct ACameraCaptureSession_stateCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -19966,10 +19972,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -19979,10 +19982,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onClosed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onClosed) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -19992,10 +19992,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onReady as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onReady) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20005,10 +20002,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onActive as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onActive) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -20018,9 +20012,9 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); } -pub const CAPTURE_FAILURE_REASON_FLUSHED: ::std::os::raw::c_uint = 0; -pub const CAPTURE_FAILURE_REASON_ERROR: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_64 = ::std::os::raw::c_uint; +pub const CAPTURE_FAILURE_REASON_FLUSHED: _bindgen_ty_66 = 0; +pub const CAPTURE_FAILURE_REASON_ERROR: _bindgen_ty_66 = 1; +pub type _bindgen_ty_66 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraCaptureFailure { @@ -20031,6 +20025,9 @@ pub struct ACameraCaptureFailure { } #[test] fn bindgen_test_layout_ACameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -20042,9 +20039,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { concat!("Alignment of ", stringify!(ACameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).frameNumber as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).frameNumber) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20054,7 +20049,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reason as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20064,9 +20059,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sequenceId as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sequenceId) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -20076,9 +20069,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wasImageCaptured as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).wasImageCaptured) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20150,6 +20141,9 @@ pub struct ACameraCaptureSession_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20167,10 +20161,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20180,10 +20171,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20193,10 +20181,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20206,10 +20191,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -20219,10 +20201,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20232,10 +20211,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -20245,10 +20221,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20258,10 +20231,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -20271,8 +20241,8 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); } -pub const CAPTURE_SEQUENCE_ID_NONE: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_65 = ::std::os::raw::c_int; +pub const CAPTURE_SEQUENCE_ID_NONE: _bindgen_ty_67 = -1; +pub type _bindgen_ty_67 = ::std::os::raw::c_int; extern "C" { pub fn ACameraCaptureSession_close(session: *mut ACameraCaptureSession); } @@ -20345,6 +20315,9 @@ pub struct ALogicalCameraCaptureFailure { } #[test] fn bindgen_test_layout_ALogicalCameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20356,10 +20329,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { concat!("Alignment of ", stringify!(ALogicalCameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).captureFailure as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).captureFailure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20369,10 +20339,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).physicalCameraId as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).physicalCameraId) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20404,6 +20371,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20421,10 +20391,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20434,10 +20401,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20447,10 +20411,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20461,8 +20422,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( @@ -20474,8 +20434,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 16usize, concat!( @@ -20486,10 +20445,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -20499,10 +20455,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20512,10 +20465,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -20566,6 +20516,9 @@ pub struct ACameraCaptureSession_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20583,10 +20536,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20596,10 +20546,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20609,10 +20556,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20622,10 +20566,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -20635,10 +20576,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -20648,10 +20586,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -20661,10 +20596,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20674,10 +20606,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -20701,6 +20630,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -20718,10 +20650,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20731,10 +20660,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20744,10 +20670,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -20758,8 +20681,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( @@ -20771,8 +20693,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 16usize, concat!( @@ -20783,10 +20704,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -20796,10 +20714,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -20809,10 +20724,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -20866,6 +20778,8 @@ pub struct ACameraIdList { } #[test] fn bindgen_test_layout_ACameraIdList() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -20877,7 +20791,7 @@ fn bindgen_test_layout_ACameraIdList() { concat!("Alignment of ", stringify!(ACameraIdList)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numCameras as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numCameras) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20887,7 +20801,7 @@ fn bindgen_test_layout_ACameraIdList() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cameraIds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cameraIds) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20897,12 +20811,12 @@ fn bindgen_test_layout_ACameraIdList() { ) ); } -pub const ERROR_CAMERA_IN_USE: ::std::os::raw::c_uint = 1; -pub const ERROR_MAX_CAMERAS_IN_USE: ::std::os::raw::c_uint = 2; -pub const ERROR_CAMERA_DISABLED: ::std::os::raw::c_uint = 3; -pub const ERROR_CAMERA_DEVICE: ::std::os::raw::c_uint = 4; -pub const ERROR_CAMERA_SERVICE: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_66 = ::std::os::raw::c_uint; +pub const ERROR_CAMERA_IN_USE: _bindgen_ty_68 = 1; +pub const ERROR_MAX_CAMERAS_IN_USE: _bindgen_ty_68 = 2; +pub const ERROR_CAMERA_DISABLED: _bindgen_ty_68 = 3; +pub const ERROR_CAMERA_DEVICE: _bindgen_ty_68 = 4; +pub const ERROR_CAMERA_SERVICE: _bindgen_ty_68 = 5; +pub type _bindgen_ty_68 = ::std::os::raw::c_uint; pub type ACameraDevice_StateCallback = ::std::option::Option< unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, device: *mut ACameraDevice), >; @@ -20922,6 +20836,9 @@ pub struct ACameraDevice_StateCallbacks { } #[test] fn bindgen_test_layout_ACameraDevice_StateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -20933,9 +20850,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { concat!("Alignment of ", stringify!(ACameraDevice_StateCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -20945,10 +20860,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDisconnected as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDisconnected) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -20958,9 +20870,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onError as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onError) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21140,6 +21050,9 @@ pub struct ACameraManager_AvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_AvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -21154,10 +21067,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21167,10 +21077,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21180,10 +21087,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraUnavailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraUnavailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21234,6 +21138,9 @@ pub struct ACameraManager_ExtendedAvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -21251,10 +21158,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .availabilityCallbacks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).availabilityCallbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21265,8 +21169,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onCameraAccessPrioritiesChanged as *const _ as usize + ::std::ptr::addr_of!((*ptr).onCameraAccessPrioritiesChanged) as usize - ptr as usize }, 12usize, concat!( @@ -21277,10 +21180,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraAvailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraAvailable) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21290,10 +21190,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraUnavailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraUnavailable) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -21303,10 +21200,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).reserved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -21398,6 +21292,8 @@ pub struct AImageCropRect { } #[test] fn bindgen_test_layout_AImageCropRect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21409,7 +21305,7 @@ fn bindgen_test_layout_AImageCropRect() { concat!("Alignment of ", stringify!(AImageCropRect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21419,7 +21315,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21429,7 +21325,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21439,7 +21335,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21562,6 +21458,9 @@ pub struct AImageReader_ImageListener { } #[test] fn bindgen_test_layout_AImageReader_ImageListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21573,9 +21472,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { concat!("Alignment of ", stringify!(AImageReader_ImageListener)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21585,10 +21482,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onImageAvailable as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onImageAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21643,6 +21537,9 @@ pub struct AImageReader_BufferRemovedListener { } #[test] fn bindgen_test_layout_AImageReader_BufferRemovedListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21657,10 +21554,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21670,10 +21564,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onBufferRemoved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onBufferRemoved) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22309,6 +22200,9 @@ pub struct AMediaCodecBufferInfo { } #[test] fn bindgen_test_layout_AMediaCodecBufferInfo() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22320,7 +22214,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { concat!("Alignment of ", stringify!(AMediaCodecBufferInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22330,7 +22224,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22340,10 +22234,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).presentationTimeUs as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).presentationTimeUs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22353,7 +22244,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22368,14 +22259,14 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { pub struct AMediaCodecCryptoInfo { _unused: [u8; 0], } -pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: ::std::os::raw::c_int = 2; -pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: ::std::os::raw::c_int = 4; -pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: ::std::os::raw::c_int = 8; -pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: ::std::os::raw::c_int = 1; -pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: ::std::os::raw::c_int = -3; -pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: ::std::os::raw::c_int = -2; -pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_67 = ::std::os::raw::c_int; +pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: _bindgen_ty_69 = 2; +pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: _bindgen_ty_69 = 4; +pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: _bindgen_ty_69 = 8; +pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: _bindgen_ty_69 = 1; +pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: _bindgen_ty_69 = -3; +pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: _bindgen_ty_69 = -2; +pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: _bindgen_ty_69 = -1; +pub type _bindgen_ty_69 = ::std::os::raw::c_int; pub type AMediaCodecOnAsyncInputAvailable = ::std::option::Option< unsafe extern "C" fn( codec: *mut AMediaCodec, @@ -22417,6 +22308,9 @@ pub struct AMediaCodecOnAsyncNotifyCallback { } #[test] fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -22431,10 +22325,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncInputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncInputAvailable) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22444,10 +22335,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncOutputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncOutputAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22457,10 +22345,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncFormatChanged - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncFormatChanged) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22470,10 +22355,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncError as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncError) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -22547,7 +22429,7 @@ extern "C" { __file: *const ::std::os::raw::c_char, __line: ::std::os::raw::c_int, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn __assert2( @@ -22555,7 +22437,7 @@ extern "C" { __line: ::std::os::raw::c_int, __function: *const ::std::os::raw::c_char, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn AMediaCodec_queueInputBuffer( @@ -22694,6 +22576,8 @@ pub struct cryptoinfo_pattern_t { } #[test] fn bindgen_test_layout_cryptoinfo_pattern_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -22705,9 +22589,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { concat!("Alignment of ", stringify!(cryptoinfo_pattern_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).encryptBlocks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).encryptBlocks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22717,7 +22599,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).skipBlocks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).skipBlocks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22867,6 +22749,8 @@ pub struct AMediaDrmByteArray { } #[test] fn bindgen_test_layout_AMediaDrmByteArray() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -22878,7 +22762,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { concat!("Alignment of ", stringify!(AMediaDrmByteArray)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22888,7 +22772,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22959,6 +22843,9 @@ pub struct AMediaDrmKeyValuePair { } #[test] fn bindgen_test_layout_AMediaDrmKeyValuePair() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -22970,7 +22857,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { concat!("Alignment of ", stringify!(AMediaDrmKeyValuePair)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mKey as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mKey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22980,7 +22867,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mValue as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mValue) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -23018,6 +22905,8 @@ pub struct AMediaDrmKeyStatus { } #[test] fn bindgen_test_layout_AMediaDrmKeyStatus() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -23029,7 +22918,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { concat!("Alignment of ", stringify!(AMediaDrmKeyStatus)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyId as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyId) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23039,7 +22928,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyType as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyType) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23377,6 +23266,8 @@ pub struct PsshEntry { } #[test] fn bindgen_test_layout_PsshEntry() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -23388,7 +23279,7 @@ fn bindgen_test_layout_PsshEntry() { concat!("Alignment of ", stringify!(PsshEntry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uuid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uuid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23398,7 +23289,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).datalen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datalen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23408,7 +23299,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -23426,6 +23317,8 @@ pub struct PsshInfo { } #[test] fn bindgen_test_layout_PsshInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -23437,7 +23330,7 @@ fn bindgen_test_layout_PsshInfo() { concat!("Alignment of ", stringify!(PsshInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numentries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numentries) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23447,7 +23340,7 @@ fn bindgen_test_layout_PsshInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).entries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).entries) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -23465,9 +23358,9 @@ extern "C" { arg1: *mut AMediaExtractor, ) -> *mut AMediaCodecCryptoInfo; } -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: ::std::os::raw::c_uint = 1; -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_68 = ::std::os::raw::c_uint; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: _bindgen_ty_70 = 1; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: _bindgen_ty_70 = 2; +pub type _bindgen_ty_70 = ::std::os::raw::c_uint; extern "C" { pub fn AMediaExtractor_getFileFormat(arg1: *mut AMediaExtractor) -> *mut AMediaFormat; } diff --git a/ndk-sys/src/ffi_i686.rs b/ndk-sys/src/ffi_i686.rs index 076412a4..c156f5c2 100644 --- a/ndk-sys/src/ffi_i686.rs +++ b/ndk-sys/src/ffi_i686.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.66.0 */ #[repr(C)] #[derive(Default)] @@ -35,9 +35,9 @@ pub const __WORDSIZE: u32 = 32; pub const __bos_level: u32 = 0; pub const __ANDROID_NDK__: u32 = 1; pub const __NDK_MAJOR__: u32 = 25; -pub const __NDK_MINOR__: u32 = 0; +pub const __NDK_MINOR__: u32 = 1; pub const __NDK_BETA__: u32 = 0; -pub const __NDK_BUILD__: u32 = 8775105; +pub const __NDK_BUILD__: u32 = 8937393; pub const __NDK_CANARY__: u32 = 0; pub const __ANDROID_API_FUTURE__: u32 = 10000; pub const __ANDROID_API__: u32 = 10000; @@ -59,6 +59,7 @@ pub const __ANDROID_API_Q__: u32 = 29; pub const __ANDROID_API_R__: u32 = 30; pub const __ANDROID_API_S__: u32 = 31; pub const __ANDROID_API_T__: u32 = 33; +pub const __ANDROID_API_U__: u32 = 34; pub const INT8_MIN: i32 = -128; pub const INT8_MAX: u32 = 127; pub const INT_LEAST8_MIN: i32 = -128; @@ -95,1009 +96,131 @@ pub const PTRDIFF_MAX: u32 = 2147483647; pub const SIZE_MAX: u32 = 4294967295; pub const __BITS_PER_LONG: u32 = 32; pub const __FD_SETSIZE: u32 = 1024; -pub const __GNUC_VA_LIST: u32 = 1; +pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; -pub const __bool_true_false_are_defined: u32 = 1; -pub const __PRI_64_prefix: &[u8; 3usize] = b"ll\0"; -pub const PRId8: &[u8; 2usize] = b"d\0"; -pub const PRId16: &[u8; 2usize] = b"d\0"; -pub const PRId32: &[u8; 2usize] = b"d\0"; -pub const PRId64: &[u8; 4usize] = b"lld\0"; -pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdFAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; -pub const PRIi8: &[u8; 2usize] = b"i\0"; -pub const PRIi16: &[u8; 2usize] = b"i\0"; -pub const PRIi32: &[u8; 2usize] = b"i\0"; -pub const PRIi64: &[u8; 4usize] = b"lli\0"; -pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiFAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; -pub const PRIo8: &[u8; 2usize] = b"o\0"; -pub const PRIo16: &[u8; 2usize] = b"o\0"; -pub const PRIo32: &[u8; 2usize] = b"o\0"; -pub const PRIo64: &[u8; 4usize] = b"llo\0"; -pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoFAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; -pub const PRIu8: &[u8; 2usize] = b"u\0"; -pub const PRIu16: &[u8; 2usize] = b"u\0"; -pub const PRIu32: &[u8; 2usize] = b"u\0"; -pub const PRIu64: &[u8; 4usize] = b"llu\0"; -pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuFAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; -pub const PRIx8: &[u8; 2usize] = b"x\0"; -pub const PRIx16: &[u8; 2usize] = b"x\0"; -pub const PRIx32: &[u8; 2usize] = b"x\0"; -pub const PRIx64: &[u8; 4usize] = b"llx\0"; -pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxFAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; -pub const PRIX8: &[u8; 2usize] = b"X\0"; -pub const PRIX16: &[u8; 2usize] = b"X\0"; -pub const PRIX32: &[u8; 2usize] = b"X\0"; -pub const PRIX64: &[u8; 4usize] = b"llX\0"; -pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXFAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; -pub const SCNd8: &[u8; 4usize] = b"hhd\0"; -pub const SCNd16: &[u8; 3usize] = b"hd\0"; -pub const SCNd32: &[u8; 2usize] = b"d\0"; -pub const SCNd64: &[u8; 4usize] = b"lld\0"; -pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; -pub const SCNdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdFAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; -pub const SCNi8: &[u8; 4usize] = b"hhi\0"; -pub const SCNi16: &[u8; 3usize] = b"hi\0"; -pub const SCNi32: &[u8; 2usize] = b"i\0"; -pub const SCNi64: &[u8; 4usize] = b"lli\0"; -pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; -pub const SCNiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiFAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; -pub const SCNo8: &[u8; 4usize] = b"hho\0"; -pub const SCNo16: &[u8; 3usize] = b"ho\0"; -pub const SCNo32: &[u8; 2usize] = b"o\0"; -pub const SCNo64: &[u8; 4usize] = b"llo\0"; -pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; -pub const SCNoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoFAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; -pub const SCNu8: &[u8; 4usize] = b"hhu\0"; -pub const SCNu16: &[u8; 3usize] = b"hu\0"; -pub const SCNu32: &[u8; 2usize] = b"u\0"; -pub const SCNu64: &[u8; 4usize] = b"llu\0"; -pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; -pub const SCNuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuFAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; -pub const SCNx8: &[u8; 4usize] = b"hhx\0"; -pub const SCNx16: &[u8; 3usize] = b"hx\0"; -pub const SCNx32: &[u8; 2usize] = b"x\0"; -pub const SCNx64: &[u8; 4usize] = b"llx\0"; -pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; -pub const SCNxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxFAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_GETLK64: u32 = 12; -pub const F_SETLK64: u32 = 13; -pub const F_SETLKW64: u32 = 14; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SOCK_IOC_TYPE: u32 = 137; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCETHTOOL: u32 = 35142; -pub const SIOCGMIIPHY: u32 = 35143; -pub const SIOCGMIIREG: u32 = 35144; -pub const SIOCSMIIREG: u32 = 35145; -pub const SIOCWANDEV: u32 = 35146; -pub const SIOCOUTQNSD: u32 = 35147; -pub const SIOCGSKNS: u32 = 35148; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCGIFVLAN: u32 = 35202; -pub const SIOCSIFVLAN: u32 = 35203; -pub const SIOCBONDENSLAVE: u32 = 35216; -pub const SIOCBONDRELEASE: u32 = 35217; -pub const SIOCBONDSETHWADDR: u32 = 35218; -pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; -pub const SIOCBONDINFOQUERY: u32 = 35220; -pub const SIOCBONDCHANGEACTIVE: u32 = 35221; -pub const SIOCBRADDBR: u32 = 35232; -pub const SIOCBRDELBR: u32 = 35233; -pub const SIOCBRADDIF: u32 = 35234; -pub const SIOCBRDELIF: u32 = 35235; -pub const SIOCSHWTSTAMP: u32 = 35248; -pub const SIOCGHWTSTAMP: u32 = 35249; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const SOCK_DCCP: u32 = 6; -pub const SOCK_PACKET: u32 = 10; -pub const SOCK_CLOEXEC: u32 = 524288; -pub const SOCK_NONBLOCK: u32 = 2048; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_LOCAL: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_MAX: u32 = 43; -pub const PF_UNSPEC: u32 = 0; -pub const PF_UNIX: u32 = 1; -pub const PF_LOCAL: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_MAX: u32 = 43; -pub const SOMAXCONN: u32 = 128; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_TRYHARD: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_DONTWAIT: u32 = 64; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_WAITFORONE: u32 = 65536; -pub const MSG_BATCH: u32 = 262144; -pub const MSG_FASTOPEN: u32 = 536870912; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const MSG_EOF: u32 = 512; -pub const MSG_CMSG_COMPAT: u32 = 0; -pub const SOL_IP: u32 = 0; -pub const SOL_TCP: u32 = 6; -pub const SOL_UDP: u32 = 17; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const SOL_SCTP: u32 = 132; -pub const SOL_RAW: u32 = 255; -pub const SOL_IPX: u32 = 256; -pub const SOL_AX25: u32 = 257; -pub const SOL_ATALK: u32 = 258; -pub const SOL_NETROM: u32 = 259; -pub const SOL_ROSE: u32 = 260; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const IPX_TYPE: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 24usize] = b"/system/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 18usize] = b"/system/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 21usize] = b"/system/etc/networks\0"; -pub const _PATH_PROTOCOLS: &[u8; 22usize] = b"/system/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 21usize] = b"/system/etc/services\0"; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NO_ADDRESS: u32 = 4; -pub const EAI_ADDRFAMILY: u32 = 1; -pub const EAI_AGAIN: u32 = 2; -pub const EAI_BADFLAGS: u32 = 3; -pub const EAI_FAIL: u32 = 4; -pub const EAI_FAMILY: u32 = 5; -pub const EAI_MEMORY: u32 = 6; -pub const EAI_NODATA: u32 = 7; -pub const EAI_NONAME: u32 = 8; -pub const EAI_SERVICE: u32 = 9; -pub const EAI_SOCKTYPE: u32 = 10; -pub const EAI_SYSTEM: u32 = 11; -pub const EAI_BADHINTS: u32 = 12; -pub const EAI_PROTOCOL: u32 = 13; -pub const EAI_OVERFLOW: u32 = 14; -pub const EAI_MAX: u32 = 15; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_NUMERICSERV: u32 = 8; -pub const AI_ALL: u32 = 256; -pub const AI_V4MAPPED_CFG: u32 = 512; -pub const AI_ADDRCONFIG: u32 = 1024; -pub const AI_V4MAPPED: u32 = 2048; -pub const AI_DEFAULT: u32 = 1536; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NOFQDN: u32 = 1; -pub const NI_NUMERICHOST: u32 = 2; -pub const NI_NAMEREQD: u32 = 4; -pub const NI_NUMERICSERV: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const SCOPE_DELIMITER: u8 = 37u8; -pub const IPPORT_RESERVED: u32 = 1024; -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 P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 1024; -pub const EOF: i32 = -1; -pub const FOPEN_MAX: u32 = 20; -pub const FILENAME_MAX: u32 = 4096; -pub const L_tmpnam: u32 = 4096; -pub const TMP_MAX: u32 = 308915776; -pub const P_tmpdir: &[u8; 6usize] = b"/tmp/\0"; -pub const L_ctermid: u32 = 1024; -pub const STRUCT_MALLINFO_DECLARED: u32 = 1; -pub const M_DECAY_TIME: i32 = -100; -pub const M_PURGE: i32 = -101; -pub const M_MEMTAG_TUNING: i32 = -102; -pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; -pub const M_MEMTAG_TUNING_UAF: u32 = 1; -pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; -pub const M_CACHE_COUNT_MAX: i32 = -200; -pub const M_CACHE_SIZE_MAX: i32 = -201; -pub const M_TSDS_COUNT_MAX: i32 = -202; -pub const M_BIONIC_ZERO_INIT: i32 = -203; -pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; -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 PASS_MAX: u32 = 128; -pub const NL_ARGMAX: u32 = 9; -pub const NL_LANGMAX: u32 = 14; -pub const NL_MSGMAX: u32 = 32767; -pub const NL_NMAX: u32 = 1; -pub const NL_SETMAX: u32 = 255; -pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; -pub const LONG_BIT: u32 = 32; -pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MAX: u32 = 127; -pub const CHAR_MIN: i32 = -128; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: u32 = 4294967295; -pub const LONG_MAX: u32 = 2147483647; -pub const LONG_MIN: i32 = -2147483648; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: u32 = 4294967295; -pub const SSIZE_MAX: u32 = 2147483647; -pub const MB_LEN_MAX: u32 = 4; -pub const NZERO: u32 = 20; -pub const IOV_MAX: u32 = 1024; -pub const SEM_VALUE_MAX: u32 = 1073741823; -pub const _POSIX_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; -pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; -pub const _POSIX_CPUTIME: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: i32 = -1; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: i32 = -1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_CPUTIME: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: i32 = -1; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX2_FORT_DEV: i32 = -1; -pub const _POSIX2_FORT_RUN: i32 = -1; -pub const _POSIX2_LOCALEDEF: i32 = -1; -pub const _POSIX2_SW_DEV: i32 = -1; -pub const _POSIX2_UPE: i32 = -1; -pub const _POSIX_V7_ILP32_OFF32: u32 = 1; -pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: i32 = -1; -pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; -pub const _XOPEN_CRYPT: i32 = -1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: i32 = -1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _XOPEN_STREAMS: i32 = -1; -pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; -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_SS_REPL_MAX: u32 = 4; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; -pub const _POSIX_TRACE_NAME_MAX: u32 = 8; -pub const _POSIX_TRACE_SYS_MAX: u32 = 8; -pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -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_CHARCLASS_NAME_MAX: u32 = 14; -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 _XOPEN_IOV_MAX: u32 = 16; -pub const _XOPEN_NAME_MAX: u32 = 255; -pub const _XOPEN_PATH_MAX: u32 = 1024; -pub const HOST_NAME_MAX: u32 = 255; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const TTY_NAME_MAX: u32 = 32; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_KEYS_MAX: u32 = 128; -pub const FP_INFINITE: u32 = 1; -pub const FP_NAN: u32 = 2; -pub const FP_NORMAL: u32 = 4; -pub const FP_SUBNORMAL: u32 = 8; -pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 2; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; -pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; -pub const ASENSOR_INVALID: i32 = -1; -pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SYNC_IOC_MAGIC: u8 = 62u8; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -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_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const X86_FXSR_MAGIC: u32 = 0; -pub const _KERNEL_NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const __SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -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_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const _KERNEL__NSIG: u32 = 64; -pub const _NSIG: u32 = 65; -pub const NSIG: u32 = 65; -pub const PAGE_SIZE: u32 = 4096; -pub const PAGE_MASK: i32 = -4096; -pub const UPAGES: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; -pub const CLOCKS_PER_SEC: u32 = 1000000; -pub const TIME_UTC: u32 = 1; -pub const AAUDIO_UNSPECIFIED: u32 = 0; -pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; -pub const PROPERTY_VENDOR: &[u8; 7usize] = b"vendor\0"; -pub const PROPERTY_VERSION: &[u8; 8usize] = b"version\0"; -pub const PROPERTY_DESCRIPTION: &[u8; 12usize] = b"description\0"; -pub const PROPERTY_ALGORITHMS: &[u8; 11usize] = b"algorithms\0"; -pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15usize] = b"deviceUniqueId\0"; +pub const __PRI_64_prefix: &[u8; 3] = b"ll\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; 4] = b"lld\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; 4] = b"lld\0"; +pub const PRIdFAST8: &[u8; 2] = b"d\0"; +pub const PRIdFAST64: &[u8; 4] = b"lld\0"; +pub const PRIdMAX: &[u8; 3] = b"jd\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; 4] = b"lli\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; 4] = b"lli\0"; +pub const PRIiFAST8: &[u8; 2] = b"i\0"; +pub const PRIiFAST64: &[u8; 4] = b"lli\0"; +pub const PRIiMAX: &[u8; 3] = b"ji\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; 4] = b"llo\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; 4] = b"llo\0"; +pub const PRIoFAST8: &[u8; 2] = b"o\0"; +pub const PRIoFAST64: &[u8; 4] = b"llo\0"; +pub const PRIoMAX: &[u8; 3] = b"jo\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; 4] = b"llu\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; 4] = b"llu\0"; +pub const PRIuFAST8: &[u8; 2] = b"u\0"; +pub const PRIuFAST64: &[u8; 4] = b"llu\0"; +pub const PRIuMAX: &[u8; 3] = b"ju\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; 4] = b"llx\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; 4] = b"llx\0"; +pub const PRIxFAST8: &[u8; 2] = b"x\0"; +pub const PRIxFAST64: &[u8; 4] = b"llx\0"; +pub const PRIxMAX: &[u8; 3] = b"jx\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; 4] = b"llX\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; 4] = b"llX\0"; +pub const PRIXFAST8: &[u8; 2] = b"X\0"; +pub const PRIXFAST64: &[u8; 4] = b"llX\0"; +pub const PRIXMAX: &[u8; 3] = b"jX\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; 4] = b"lld\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; 4] = b"lld\0"; +pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNdFAST64: &[u8; 4] = b"lld\0"; +pub const SCNdMAX: &[u8; 3] = b"jd\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; 4] = b"lli\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; 4] = b"lli\0"; +pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; +pub const SCNiFAST64: &[u8; 4] = b"lli\0"; +pub const SCNiMAX: &[u8; 3] = b"ji\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; 4] = b"llo\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; 4] = b"llo\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNoFAST64: &[u8; 4] = b"llo\0"; +pub const SCNoMAX: &[u8; 3] = b"jo\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; 4] = b"llu\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; 4] = b"llu\0"; +pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuFAST64: &[u8; 4] = b"llu\0"; +pub const SCNuMAX: &[u8; 3] = b"ju\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; 4] = b"llx\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; 4] = b"llx\0"; +pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; +pub const SCNxFAST64: &[u8; 4] = b"llx\0"; +pub const SCNxMAX: &[u8; 3] = b"jx\0"; extern "C" { pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; } @@ -1115,6 +238,8 @@ pub struct max_align_t { } #[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::(), 16usize, @@ -1126,9 +251,7 @@ fn bindgen_test_layout_max_align_t() { concat!("Alignment of ", stringify!(max_align_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1138,9 +261,7 @@ fn bindgen_test_layout_max_align_t() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce2 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1193,6 +314,8 @@ pub struct __kernel_fd_set { } #[test] fn bindgen_test_layout___kernel_fd_set() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fd_set> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fd_set>(), 128usize, @@ -1204,7 +327,7 @@ fn bindgen_test_layout___kernel_fd_set() { concat!("Alignment of ", stringify!(__kernel_fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1243,6 +366,8 @@ pub struct __kernel_fsid_t { } #[test] fn bindgen_test_layout___kernel_fsid_t() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fsid_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fsid_t>(), 8usize, @@ -1254,7 +379,7 @@ fn bindgen_test_layout___kernel_fsid_t() { concat!("Alignment of ", stringify!(__kernel_fsid_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1296,6 +421,8 @@ pub struct pthread_attr_t { } #[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::(), 24usize, @@ -1307,7 +434,7 @@ fn bindgen_test_layout_pthread_attr_t() { concat!("Alignment of ", stringify!(pthread_attr_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1317,7 +444,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_base) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1327,7 +454,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_size) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1337,7 +464,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).guard_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).guard_size) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1347,7 +474,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_policy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_policy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1357,7 +484,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -1374,6 +501,8 @@ pub struct pthread_barrier_t { } #[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, @@ -1385,7 +514,7 @@ fn bindgen_test_layout_pthread_barrier_t() { concat!("Alignment of ", stringify!(pthread_barrier_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1403,6 +532,8 @@ pub struct pthread_cond_t { } #[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::(), 4usize, @@ -1414,7 +545,7 @@ fn bindgen_test_layout_pthread_cond_t() { concat!("Alignment of ", stringify!(pthread_cond_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1433,6 +564,8 @@ pub struct pthread_mutex_t { } #[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::(), 4usize, @@ -1444,7 +577,7 @@ fn bindgen_test_layout_pthread_mutex_t() { concat!("Alignment of ", stringify!(pthread_mutex_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1463,6 +596,8 @@ pub struct pthread_rwlock_t { } #[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::(), 40usize, @@ -1474,7 +609,7 @@ fn bindgen_test_layout_pthread_rwlock_t() { concat!("Alignment of ", stringify!(pthread_rwlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1492,6 +627,8 @@ pub struct pthread_spinlock_t { } #[test] fn bindgen_test_layout_pthread_spinlock_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1503,7 +640,7 @@ fn bindgen_test_layout_pthread_spinlock_t() { concat!("Alignment of ", stringify!(pthread_spinlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1581,10 +718,10 @@ pub struct AAssetDir { pub struct AAsset { _unused: [u8; 0], } -pub const AASSET_MODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AASSET_MODE_RANDOM: ::std::os::raw::c_uint = 1; -pub const AASSET_MODE_STREAMING: ::std::os::raw::c_uint = 2; -pub const AASSET_MODE_BUFFER: ::std::os::raw::c_uint = 3; +pub const AASSET_MODE_UNKNOWN: _bindgen_ty_1 = 0; +pub const AASSET_MODE_RANDOM: _bindgen_ty_1 = 1; +pub const AASSET_MODE_STREAMING: _bindgen_ty_1 = 2; +pub const AASSET_MODE_BUFFER: _bindgen_ty_1 = 3; pub type _bindgen_ty_1 = ::std::os::raw::c_uint; extern "C" { pub fn AAssetManager_openDir( @@ -1660,8 +797,8 @@ extern "C" { extern "C" { pub fn AAsset_isAllocated(asset: *mut AAsset) -> ::std::os::raw::c_int; } -pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; +pub type va_list = __builtin_va_list; #[repr(C)] pub struct JavaVMAttachArgs { pub version: jint, @@ -1670,6 +807,8 @@ pub struct JavaVMAttachArgs { } #[test] fn bindgen_test_layout_JavaVMAttachArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -1681,7 +820,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { concat!("Alignment of ", stringify!(JavaVMAttachArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1691,7 +830,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1701,7 +840,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).group as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).group) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1719,6 +858,8 @@ pub struct JavaVMOption { } #[test] fn bindgen_test_layout_JavaVMOption() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1730,7 +871,7 @@ fn bindgen_test_layout_JavaVMOption() { concat!("Alignment of ", stringify!(JavaVMOption)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).optionString as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).optionString) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1740,7 +881,7 @@ fn bindgen_test_layout_JavaVMOption() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).extraInfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extraInfo) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1759,6 +900,8 @@ pub struct JavaVMInitArgs { } #[test] fn bindgen_test_layout_JavaVMInitArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -1770,7 +913,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { concat!("Alignment of ", stringify!(JavaVMInitArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1780,7 +923,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).nOptions as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nOptions) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1790,7 +933,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).options as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).options) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1800,9 +943,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ignoreUnrecognized as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ignoreUnrecognized) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1815,10 +956,10 @@ fn bindgen_test_layout_JavaVMInitArgs() { extern "C" { pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager; } -pub const ANDROID_BITMAP_RESULT_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: ::std::os::raw::c_int = -1; -pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: ::std::os::raw::c_int = -2; -pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: ::std::os::raw::c_int = -3; +pub const ANDROID_BITMAP_RESULT_SUCCESS: _bindgen_ty_2 = 0; +pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: _bindgen_ty_2 = -1; +pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: _bindgen_ty_2 = -2; +pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: _bindgen_ty_2 = -3; pub type _bindgen_ty_2 = ::std::os::raw::c_int; impl AndroidBitmapFormat { pub const ANDROID_BITMAP_FORMAT_NONE: AndroidBitmapFormat = AndroidBitmapFormat(0); @@ -1844,13 +985,13 @@ impl AndroidBitmapFormat { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AndroidBitmapFormat(pub ::std::os::raw::c_uint); -pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: ::std::os::raw::c_uint = 0; -pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: ::std::os::raw::c_uint = 1; -pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: ::std::os::raw::c_uint = 2; -pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: ::std::os::raw::c_uint = 3; -pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: ::std::os::raw::c_uint = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: _bindgen_ty_3 = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: _bindgen_ty_3 = 1; +pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: _bindgen_ty_3 = 2; +pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: _bindgen_ty_3 = 3; +pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: _bindgen_ty_3 = 0; pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: ::std::os::raw::c_int = -2147483648; +pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: _bindgen_ty_4 = -2147483648; pub type _bindgen_ty_4 = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1863,6 +1004,8 @@ pub struct AndroidBitmapInfo { } #[test] fn bindgen_test_layout_AndroidBitmapInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -1874,7 +1017,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { concat!("Alignment of ", stringify!(AndroidBitmapInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1884,7 +1027,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1894,7 +1037,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1904,7 +1047,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1914,7 +1057,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2111,92 +1254,92 @@ extern "C" { pub struct AConfiguration { _unused: [u8; 0], } -pub const ACONFIGURATION_ORIENTATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_ORIENTATION_PORT: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_ORIENTATION_LAND: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_ORIENTATION_SQUARE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_TOUCHSCREEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_TOUCHSCREEN_FINGER: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_DENSITY_DEFAULT: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_DENSITY_LOW: ::std::os::raw::c_uint = 120; -pub const ACONFIGURATION_DENSITY_MEDIUM: ::std::os::raw::c_uint = 160; -pub const ACONFIGURATION_DENSITY_TV: ::std::os::raw::c_uint = 213; -pub const ACONFIGURATION_DENSITY_HIGH: ::std::os::raw::c_uint = 240; -pub const ACONFIGURATION_DENSITY_XHIGH: ::std::os::raw::c_uint = 320; -pub const ACONFIGURATION_DENSITY_XXHIGH: ::std::os::raw::c_uint = 480; -pub const ACONFIGURATION_DENSITY_XXXHIGH: ::std::os::raw::c_uint = 640; -pub const ACONFIGURATION_DENSITY_ANY: ::std::os::raw::c_uint = 65534; -pub const ACONFIGURATION_DENSITY_NONE: ::std::os::raw::c_uint = 65535; -pub const ACONFIGURATION_KEYBOARD_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYBOARD_NOKEYS: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYBOARD_QWERTY: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYBOARD_12KEY: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVIGATION_NONAV: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVIGATION_DPAD: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_NAVIGATION_TRACKBALL: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_WHEEL: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_KEYSHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYSHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYSHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYSHIDDEN_SOFT: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENSIZE_SMALL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENSIZE_NORMAL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_LARGE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_SCREENSIZE_XLARGE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_SCREENLONG_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENLONG_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENLONG_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENROUND_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENROUND_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENROUND_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_HDR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_HDR_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_HDR_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_TYPE_DESK: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_CAR: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: ::std::os::raw::c_uint = 5; -pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: ::std::os::raw::c_uint = 6; -pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: ::std::os::raw::c_uint = 7; -pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_NIGHT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_NIGHT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_LTR: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_LAYOUTDIR_RTL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_MCC: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_MNC: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_LOCALE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_TOUCHSCREEN: ::std::os::raw::c_uint = 8; -pub const ACONFIGURATION_KEYBOARD: ::std::os::raw::c_uint = 16; -pub const ACONFIGURATION_KEYBOARD_HIDDEN: ::std::os::raw::c_uint = 32; -pub const ACONFIGURATION_NAVIGATION: ::std::os::raw::c_uint = 64; -pub const ACONFIGURATION_ORIENTATION: ::std::os::raw::c_uint = 128; -pub const ACONFIGURATION_DENSITY: ::std::os::raw::c_uint = 256; -pub const ACONFIGURATION_SCREEN_SIZE: ::std::os::raw::c_uint = 512; -pub const ACONFIGURATION_VERSION: ::std::os::raw::c_uint = 1024; -pub const ACONFIGURATION_SCREEN_LAYOUT: ::std::os::raw::c_uint = 2048; -pub const ACONFIGURATION_UI_MODE: ::std::os::raw::c_uint = 4096; -pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: ::std::os::raw::c_uint = 8192; -pub const ACONFIGURATION_LAYOUTDIR: ::std::os::raw::c_uint = 16384; -pub const ACONFIGURATION_SCREEN_ROUND: ::std::os::raw::c_uint = 32768; -pub const ACONFIGURATION_COLOR_MODE: ::std::os::raw::c_uint = 65536; -pub const ACONFIGURATION_MNC_ZERO: ::std::os::raw::c_uint = 65535; +pub const ACONFIGURATION_ORIENTATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_ORIENTATION_PORT: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_ORIENTATION_LAND: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_ORIENTATION_SQUARE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_TOUCHSCREEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_TOUCHSCREEN_FINGER: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_DENSITY_DEFAULT: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_DENSITY_LOW: _bindgen_ty_5 = 120; +pub const ACONFIGURATION_DENSITY_MEDIUM: _bindgen_ty_5 = 160; +pub const ACONFIGURATION_DENSITY_TV: _bindgen_ty_5 = 213; +pub const ACONFIGURATION_DENSITY_HIGH: _bindgen_ty_5 = 240; +pub const ACONFIGURATION_DENSITY_XHIGH: _bindgen_ty_5 = 320; +pub const ACONFIGURATION_DENSITY_XXHIGH: _bindgen_ty_5 = 480; +pub const ACONFIGURATION_DENSITY_XXXHIGH: _bindgen_ty_5 = 640; +pub const ACONFIGURATION_DENSITY_ANY: _bindgen_ty_5 = 65534; +pub const ACONFIGURATION_DENSITY_NONE: _bindgen_ty_5 = 65535; +pub const ACONFIGURATION_KEYBOARD_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYBOARD_NOKEYS: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYBOARD_QWERTY: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYBOARD_12KEY: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVIGATION_NONAV: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVIGATION_DPAD: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_NAVIGATION_TRACKBALL: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_WHEEL: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_KEYSHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYSHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYSHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYSHIDDEN_SOFT: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENSIZE_SMALL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENSIZE_NORMAL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_LARGE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_SCREENSIZE_XLARGE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_SCREENLONG_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENLONG_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENLONG_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENROUND_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENROUND_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENROUND_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_HDR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_HDR_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_HDR_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_TYPE_DESK: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_CAR: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: _bindgen_ty_5 = 5; +pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: _bindgen_ty_5 = 6; +pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: _bindgen_ty_5 = 7; +pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_NIGHT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_NIGHT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_LTR: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_LAYOUTDIR_RTL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_MCC: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_MNC: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_LOCALE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_TOUCHSCREEN: _bindgen_ty_5 = 8; +pub const ACONFIGURATION_KEYBOARD: _bindgen_ty_5 = 16; +pub const ACONFIGURATION_KEYBOARD_HIDDEN: _bindgen_ty_5 = 32; +pub const ACONFIGURATION_NAVIGATION: _bindgen_ty_5 = 64; +pub const ACONFIGURATION_ORIENTATION: _bindgen_ty_5 = 128; +pub const ACONFIGURATION_DENSITY: _bindgen_ty_5 = 256; +pub const ACONFIGURATION_SCREEN_SIZE: _bindgen_ty_5 = 512; +pub const ACONFIGURATION_VERSION: _bindgen_ty_5 = 1024; +pub const ACONFIGURATION_SCREEN_LAYOUT: _bindgen_ty_5 = 2048; +pub const ACONFIGURATION_UI_MODE: _bindgen_ty_5 = 4096; +pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: _bindgen_ty_5 = 8192; +pub const ACONFIGURATION_LAYOUTDIR: _bindgen_ty_5 = 16384; +pub const ACONFIGURATION_SCREEN_ROUND: _bindgen_ty_5 = 32768; +pub const ACONFIGURATION_COLOR_MODE: _bindgen_ty_5 = 65536; +pub const ACONFIGURATION_MNC_ZERO: _bindgen_ty_5 = 65535; pub type _bindgen_ty_5 = ::std::os::raw::c_uint; extern "C" { pub fn AConfiguration_new() -> *mut AConfiguration; @@ -2369,6 +1512,8 @@ pub struct imaxdiv_t { } #[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, @@ -2380,7 +1525,7 @@ fn bindgen_test_layout_imaxdiv_t() { concat!("Alignment of ", stringify!(imaxdiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2390,7 +1535,7 @@ fn bindgen_test_layout_imaxdiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2578,16 +1723,16 @@ impl ADataSpace { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ADataSpace(pub ::std::os::raw::c_uint); -pub const ANDROID_DLEXT_RESERVED_ADDRESS: ::std::os::raw::c_uint = 1; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: ::std::os::raw::c_uint = 2; -pub const ANDROID_DLEXT_WRITE_RELRO: ::std::os::raw::c_uint = 4; -pub const ANDROID_DLEXT_USE_RELRO: ::std::os::raw::c_uint = 8; -pub const ANDROID_DLEXT_USE_LIBRARY_FD: ::std::os::raw::c_uint = 16; -pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: ::std::os::raw::c_uint = 32; -pub const ANDROID_DLEXT_FORCE_LOAD: ::std::os::raw::c_uint = 64; -pub const ANDROID_DLEXT_USE_NAMESPACE: ::std::os::raw::c_uint = 512; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: ::std::os::raw::c_uint = 1024; -pub const ANDROID_DLEXT_VALID_FLAG_BITS: ::std::os::raw::c_uint = 1663; +pub const ANDROID_DLEXT_RESERVED_ADDRESS: _bindgen_ty_6 = 1; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: _bindgen_ty_6 = 2; +pub const ANDROID_DLEXT_WRITE_RELRO: _bindgen_ty_6 = 4; +pub const ANDROID_DLEXT_USE_RELRO: _bindgen_ty_6 = 8; +pub const ANDROID_DLEXT_USE_LIBRARY_FD: _bindgen_ty_6 = 16; +pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: _bindgen_ty_6 = 32; +pub const ANDROID_DLEXT_FORCE_LOAD: _bindgen_ty_6 = 64; +pub const ANDROID_DLEXT_USE_NAMESPACE: _bindgen_ty_6 = 512; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: _bindgen_ty_6 = 1024; +pub const ANDROID_DLEXT_VALID_FLAG_BITS: _bindgen_ty_6 = 1663; pub type _bindgen_ty_6 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2607,6 +1752,8 @@ pub struct android_dlextinfo { } #[test] fn bindgen_test_layout_android_dlextinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 36usize, @@ -2618,7 +1765,7 @@ fn bindgen_test_layout_android_dlextinfo() { concat!("Alignment of ", stringify!(android_dlextinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2628,7 +1775,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_addr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2638,7 +1785,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_size) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2648,7 +1795,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).relro_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).relro_fd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2658,7 +1805,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).library_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2668,9 +1815,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_fd_offset as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd_offset) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2680,9 +1825,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_namespace as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_namespace) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2801,33 +1944,809 @@ impl android_fdsan_error_level { #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; + pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level( + new_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level_from_property( + default_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; +} +extern "C" { + pub fn AFileDescriptor_getFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AFileDescriptor_setFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + fd: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFont { + _unused: [u8; 0], +} +pub const AFONT_WEIGHT_MIN: _bindgen_ty_7 = 0; +pub const AFONT_WEIGHT_THIN: _bindgen_ty_7 = 100; +pub const AFONT_WEIGHT_EXTRA_LIGHT: _bindgen_ty_7 = 200; +pub const AFONT_WEIGHT_LIGHT: _bindgen_ty_7 = 300; +pub const AFONT_WEIGHT_NORMAL: _bindgen_ty_7 = 400; +pub const AFONT_WEIGHT_MEDIUM: _bindgen_ty_7 = 500; +pub const AFONT_WEIGHT_SEMI_BOLD: _bindgen_ty_7 = 600; +pub const AFONT_WEIGHT_BOLD: _bindgen_ty_7 = 700; +pub const AFONT_WEIGHT_EXTRA_BOLD: _bindgen_ty_7 = 800; +pub const AFONT_WEIGHT_BLACK: _bindgen_ty_7 = 900; +pub const AFONT_WEIGHT_MAX: _bindgen_ty_7 = 1000; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFont_close(font: *mut AFont); +} +extern "C" { + pub fn AFont_getFontFilePath(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getWeight(font: *const AFont) -> u16; +} +extern "C" { + pub fn AFont_isItalic(font: *const AFont) -> bool; +} +extern "C" { + pub fn AFont_getLocale(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getCollectionIndex(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisCount(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisTag(font: *const AFont, axisIndex: u32) -> u32; +} +extern "C" { + pub fn AFont_getAxisValue(font: *const AFont, axisIndex: u32) -> f32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFontMatcher { + _unused: [u8; 0], +} +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_DIRECT: u32 = 16384; +pub const O_LARGEFILE: u32 = 32768; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_TMPFILE_MASK: u32 = 4259904; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_GETLK64: u32 = 12; +pub const F_SETLK64: u32 = 13; +pub const F_SETLKW64: u32 = 14; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SOCK_IOC_TYPE: u32 = 137; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCETHTOOL: u32 = 35142; +pub const SIOCGMIIPHY: u32 = 35143; +pub const SIOCGMIIREG: u32 = 35144; +pub const SIOCSMIIREG: u32 = 35145; +pub const SIOCWANDEV: u32 = 35146; +pub const SIOCOUTQNSD: u32 = 35147; +pub const SIOCGSKNS: u32 = 35148; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCGIFVLAN: u32 = 35202; +pub const SIOCSIFVLAN: u32 = 35203; +pub const SIOCBONDENSLAVE: u32 = 35216; +pub const SIOCBONDRELEASE: u32 = 35217; +pub const SIOCBONDSETHWADDR: u32 = 35218; +pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; +pub const SIOCBONDINFOQUERY: u32 = 35220; +pub const SIOCBONDCHANGEACTIVE: u32 = 35221; +pub const SIOCBRADDBR: u32 = 35232; +pub const SIOCBRDELBR: u32 = 35233; +pub const SIOCBRADDIF: u32 = 35234; +pub const SIOCBRDELIF: u32 = 35235; +pub const SIOCSHWTSTAMP: u32 = 35248; +pub const SIOCGHWTSTAMP: u32 = 35249; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const SOCK_DCCP: u32 = 6; +pub const SOCK_PACKET: u32 = 10; +pub const SOCK_CLOEXEC: u32 = 524288; +pub const SOCK_NONBLOCK: u32 = 2048; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_LOCAL: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_ROUTE: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_MAX: u32 = 43; +pub const PF_UNSPEC: u32 = 0; +pub const PF_UNIX: u32 = 1; +pub const PF_LOCAL: u32 = 1; +pub const PF_INET: u32 = 2; +pub const PF_AX25: u32 = 3; +pub const PF_IPX: u32 = 4; +pub const PF_APPLETALK: u32 = 5; +pub const PF_NETROM: u32 = 6; +pub const PF_BRIDGE: u32 = 7; +pub const PF_ATMPVC: u32 = 8; +pub const PF_X25: u32 = 9; +pub const PF_INET6: u32 = 10; +pub const PF_ROSE: u32 = 11; +pub const PF_DECnet: u32 = 12; +pub const PF_NETBEUI: u32 = 13; +pub const PF_SECURITY: u32 = 14; +pub const PF_KEY: u32 = 15; +pub const PF_NETLINK: u32 = 16; +pub const PF_ROUTE: u32 = 16; +pub const PF_PACKET: u32 = 17; +pub const PF_ASH: u32 = 18; +pub const PF_ECONET: u32 = 19; +pub const PF_ATMSVC: u32 = 20; +pub const PF_RDS: u32 = 21; +pub const PF_SNA: u32 = 22; +pub const PF_IRDA: u32 = 23; +pub const PF_PPPOX: u32 = 24; +pub const PF_WANPIPE: u32 = 25; +pub const PF_LLC: u32 = 26; +pub const PF_CAN: u32 = 29; +pub const PF_TIPC: u32 = 30; +pub const PF_BLUETOOTH: u32 = 31; +pub const PF_IUCV: u32 = 32; +pub const PF_RXRPC: u32 = 33; +pub const PF_ISDN: u32 = 34; +pub const PF_PHONET: u32 = 35; +pub const PF_IEEE802154: u32 = 36; +pub const PF_CAIF: u32 = 37; +pub const PF_ALG: u32 = 38; +pub const PF_NFC: u32 = 39; +pub const PF_VSOCK: u32 = 40; +pub const PF_KCM: u32 = 41; +pub const PF_QIPCRTR: u32 = 42; +pub const PF_MAX: u32 = 43; +pub const SOMAXCONN: u32 = 128; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_TRYHARD: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_DONTWAIT: u32 = 64; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_WAITFORONE: u32 = 65536; +pub const MSG_BATCH: u32 = 262144; +pub const MSG_FASTOPEN: u32 = 536870912; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const MSG_EOF: u32 = 512; +pub const MSG_CMSG_COMPAT: u32 = 0; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const IPX_TYPE: u32 = 1; +pub const _PATH_HEQUIV: &[u8; 24] = b"/system/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 18] = b"/system/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 21] = b"/system/etc/networks\0"; +pub const _PATH_PROTOCOLS: &[u8; 22] = b"/system/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 21] = b"/system/etc/services\0"; +pub const NETDB_INTERNAL: i32 = -1; +pub const NETDB_SUCCESS: u32 = 0; +pub const HOST_NOT_FOUND: u32 = 1; +pub const TRY_AGAIN: u32 = 2; +pub const NO_RECOVERY: u32 = 3; +pub const NO_DATA: u32 = 4; +pub const NO_ADDRESS: u32 = 4; +pub const EAI_ADDRFAMILY: u32 = 1; +pub const EAI_AGAIN: u32 = 2; +pub const EAI_BADFLAGS: u32 = 3; +pub const EAI_FAIL: u32 = 4; +pub const EAI_FAMILY: u32 = 5; +pub const EAI_MEMORY: u32 = 6; +pub const EAI_NODATA: u32 = 7; +pub const EAI_NONAME: u32 = 8; +pub const EAI_SERVICE: u32 = 9; +pub const EAI_SOCKTYPE: u32 = 10; +pub const EAI_SYSTEM: u32 = 11; +pub const EAI_BADHINTS: u32 = 12; +pub const EAI_PROTOCOL: u32 = 13; +pub const EAI_OVERFLOW: u32 = 14; +pub const EAI_MAX: u32 = 15; +pub const AI_PASSIVE: u32 = 1; +pub const AI_CANONNAME: u32 = 2; +pub const AI_NUMERICHOST: u32 = 4; +pub const AI_NUMERICSERV: u32 = 8; +pub const AI_ALL: u32 = 256; +pub const AI_V4MAPPED_CFG: u32 = 512; +pub const AI_ADDRCONFIG: u32 = 1024; +pub const AI_V4MAPPED: u32 = 2048; +pub const AI_DEFAULT: u32 = 1536; +pub const NI_MAXHOST: u32 = 1025; +pub const NI_MAXSERV: u32 = 32; +pub const NI_NOFQDN: u32 = 1; +pub const NI_NUMERICHOST: u32 = 2; +pub const NI_NAMEREQD: u32 = 4; +pub const NI_NUMERICSERV: u32 = 8; +pub const NI_DGRAM: u32 = 16; +pub const SCOPE_DELIMITER: u8 = 37u8; +pub const IPPORT_RESERVED: u32 = 1024; +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 P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 1024; +pub const EOF: i32 = -1; +pub const FOPEN_MAX: u32 = 20; +pub const FILENAME_MAX: u32 = 4096; +pub const L_tmpnam: u32 = 4096; +pub const TMP_MAX: u32 = 308915776; +pub const P_tmpdir: &[u8; 6] = b"/tmp/\0"; +pub const L_ctermid: u32 = 1024; +pub const STRUCT_MALLINFO_DECLARED: u32 = 1; +pub const M_DECAY_TIME: i32 = -100; +pub const M_PURGE: i32 = -101; +pub const M_MEMTAG_TUNING: i32 = -102; +pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; +pub const M_MEMTAG_TUNING_UAF: u32 = 1; +pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; +pub const M_CACHE_COUNT_MAX: i32 = -200; +pub const M_CACHE_SIZE_MAX: i32 = -201; +pub const M_TSDS_COUNT_MAX: i32 = -202; +pub const M_BIONIC_ZERO_INIT: i32 = -203; +pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; +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 PASS_MAX: u32 = 128; +pub const NL_ARGMAX: u32 = 9; +pub const NL_LANGMAX: u32 = 14; +pub const NL_MSGMAX: u32 = 32767; +pub const NL_NMAX: u32 = 1; +pub const NL_SETMAX: u32 = 255; +pub const NL_TEXTMAX: u32 = 255; +pub const CHAR_BIT: u32 = 8; +pub const LONG_BIT: u32 = 32; +pub const WORD_BIT: u32 = 32; +pub const SCHAR_MAX: u32 = 127; +pub const SCHAR_MIN: i32 = -128; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MAX: u32 = 127; +pub const CHAR_MIN: i32 = -128; +pub const USHRT_MAX: u32 = 65535; +pub const SHRT_MAX: u32 = 32767; +pub const SHRT_MIN: i32 = -32768; +pub const UINT_MAX: u32 = 4294967295; +pub const INT_MAX: u32 = 2147483647; +pub const INT_MIN: i32 = -2147483648; +pub const ULONG_MAX: u32 = 4294967295; +pub const LONG_MAX: u32 = 2147483647; +pub const LONG_MIN: i32 = -2147483648; +pub const ULLONG_MAX: i32 = -1; +pub const LLONG_MAX: u64 = 9223372036854775807; +pub const LLONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MAX: u64 = 9223372036854775807; +pub const ULONG_LONG_MAX: i32 = -1; +pub const UID_MAX: u32 = 4294967295; +pub const GID_MAX: u32 = 4294967295; +pub const SIZE_T_MAX: u32 = 4294967295; +pub const SSIZE_MAX: u32 = 2147483647; +pub const MB_LEN_MAX: u32 = 4; +pub const NZERO: u32 = 20; +pub const IOV_MAX: u32 = 1024; +pub const SEM_VALUE_MAX: u32 = 1073741823; +pub const _POSIX_VERSION: u32 = 200809; +pub const _POSIX2_VERSION: u32 = 200809; +pub const _XOPEN_VERSION: u32 = 700; +pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; +pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; +pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; +pub const _POSIX_CPUTIME: u32 = 200809; +pub const _POSIX_FSYNC: u32 = 200809; +pub const _POSIX_IPV6: u32 = 200809; +pub const _POSIX_MAPPED_FILES: u32 = 200809; +pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; +pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; +pub const _POSIX_MESSAGE_PASSING: i32 = -1; +pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; +pub const _POSIX_NO_TRUNC: u32 = 1; +pub const _POSIX_PRIORITIZED_IO: i32 = -1; +pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_RAW_SOCKETS: u32 = 200809; +pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; +pub const _POSIX_REGEXP: u32 = 1; +pub const _POSIX_SAVED_IDS: u32 = 1; +pub const _POSIX_SEMAPHORES: u32 = 200809; +pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_SHELL: u32 = 1; +pub const _POSIX_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; +pub const _POSIX_THREAD_CPUTIME: u32 = 200809; +pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; +pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; +pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_THREADS: u32 = 200809; +pub const _POSIX_TIMERS: u32 = 200809; +pub const _POSIX_TRACE: i32 = -1; +pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; +pub const _POSIX_TRACE_INHERIT: i32 = -1; +pub const _POSIX_TRACE_LOG: i32 = -1; +pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_VDISABLE: u8 = 0u8; +pub const _POSIX2_C_BIND: u32 = 200809; +pub const _POSIX2_C_DEV: i32 = -1; +pub const _POSIX2_CHAR_TERM: u32 = 200809; +pub const _POSIX2_FORT_DEV: i32 = -1; +pub const _POSIX2_FORT_RUN: i32 = -1; +pub const _POSIX2_LOCALEDEF: i32 = -1; +pub const _POSIX2_SW_DEV: i32 = -1; +pub const _POSIX2_UPE: i32 = -1; +pub const _POSIX_V7_ILP32_OFF32: u32 = 1; +pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; +pub const _POSIX_V7_LP64_OFF64: i32 = -1; +pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; +pub const _XOPEN_CRYPT: i32 = -1; +pub const _XOPEN_ENH_I18N: u32 = 1; +pub const _XOPEN_LEGACY: i32 = -1; +pub const _XOPEN_REALTIME: u32 = 1; +pub const _XOPEN_REALTIME_THREADS: u32 = 1; +pub const _XOPEN_SHM: u32 = 1; +pub const _XOPEN_STREAMS: i32 = -1; +pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; +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_SS_REPL_MAX: u32 = 4; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; +pub const _POSIX_TRACE_NAME_MAX: u32 = 8; +pub const _POSIX_TRACE_SYS_MAX: u32 = 8; +pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +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_CHARCLASS_NAME_MAX: u32 = 14; +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 _XOPEN_IOV_MAX: u32 = 16; +pub const _XOPEN_NAME_MAX: u32 = 255; +pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const HOST_NAME_MAX: u32 = 255; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const TTY_NAME_MAX: u32 = 32; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const FP_INFINITE: u32 = 1; +pub const FP_NAN: u32 = 2; +pub const FP_NORMAL: u32 = 4; +pub const FP_SUBNORMAL: u32 = 8; +pub const FP_ZERO: u32 = 16; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; +pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; +pub const ASENSOR_INVALID: i32 = -1; +pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const AFAMILY_VARIANT_DEFAULT: _bindgen_ty_8 = 0; +pub const AFAMILY_VARIANT_COMPACT: _bindgen_ty_8 = 1; +pub const AFAMILY_VARIANT_ELEGANT: _bindgen_ty_8 = 2; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFontMatcher_create() -> *mut AFontMatcher; } extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_destroy(matcher: *mut AFontMatcher); } extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_setStyle(matcher: *mut AFontMatcher, weight: u16, italic: bool); } extern "C" { - pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; + pub fn AFontMatcher_setLocales( + matcher: *mut AFontMatcher, + languageTags: *const ::std::os::raw::c_char, + ); } extern "C" { - pub fn AFileDescriptor_getFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - ) -> ::std::os::raw::c_int; + pub fn AFontMatcher_setFamilyVariant(matcher: *mut AFontMatcher, familyVariant: u32); } extern "C" { - pub fn AFileDescriptor_setFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - fd: ::std::os::raw::c_int, - ); + pub fn AFontMatcher_match( + matcher: *const AFontMatcher, + familyName: *const ::std::os::raw::c_char, + text: *const u16, + textLength: u32, + runLengthOut: *mut u32, + ) -> *mut AFont; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2839,6 +2758,8 @@ pub struct ARect { } #[test] fn bindgen_test_layout_ARect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -2850,7 +2771,7 @@ fn bindgen_test_layout_ARect() { concat!("Alignment of ", stringify!(ARect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2860,7 +2781,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2870,7 +2791,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2880,7 +2801,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3120,6 +3041,8 @@ pub struct AHardwareBuffer_Desc { } #[test] fn bindgen_test_layout_AHardwareBuffer_Desc() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3131,7 +3054,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { concat!("Alignment of ", stringify!(AHardwareBuffer_Desc)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3141,7 +3064,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3151,7 +3074,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).layers as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3161,7 +3084,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3171,7 +3094,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usage as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usage) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3181,7 +3104,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3191,7 +3114,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu0) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -3201,7 +3124,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu1) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3220,6 +3143,9 @@ pub struct AHardwareBuffer_Plane { } #[test] fn bindgen_test_layout_AHardwareBuffer_Plane() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -3231,7 +3157,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { concat!("Alignment of ", stringify!(AHardwareBuffer_Plane)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3241,9 +3167,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pixelStride as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pixelStride) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3253,7 +3177,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rowStride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rowStride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3271,6 +3195,9 @@ pub struct AHardwareBuffer_Planes { } #[test] fn bindgen_test_layout_AHardwareBuffer_Planes() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 52usize, @@ -3282,9 +3209,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { concat!("Alignment of ", stringify!(AHardwareBuffer_Planes)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).planeCount as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).planeCount) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3294,7 +3219,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).planes as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).planes) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3410,6 +3335,8 @@ pub struct AColor_xy { } #[test] fn bindgen_test_layout_AColor_xy() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3421,7 +3348,7 @@ fn bindgen_test_layout_AColor_xy() { concat!("Alignment of ", stringify!(AColor_xy)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3431,7 +3358,7 @@ fn bindgen_test_layout_AColor_xy() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3453,6 +3380,9 @@ pub struct AHdrMetadata_smpte2086 { } #[test] fn bindgen_test_layout_AHdrMetadata_smpte2086() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3464,10 +3394,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { concat!("Alignment of ", stringify!(AHdrMetadata_smpte2086)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryRed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryRed) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3477,10 +3404,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryGreen as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryGreen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3490,10 +3414,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryBlue as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryBlue) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3503,9 +3424,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).whitePoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).whitePoint) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3515,9 +3434,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxLuminance) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3527,9 +3444,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).minLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).minLuminance) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -3547,6 +3462,9 @@ pub struct AHdrMetadata_cta861_3 { } #[test] fn bindgen_test_layout_AHdrMetadata_cta861_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3558,10 +3476,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { concat!("Alignment of ", stringify!(AHdrMetadata_cta861_3)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxContentLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxContentLightLevel) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3571,10 +3486,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxFrameAverageLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxFrameAverageLightLevel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3584,19 +3496,19 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); } -pub const ANDROID_IMAGE_DECODER_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_IMAGE_DECODER_INCOMPLETE: ::std::os::raw::c_int = -1; -pub const ANDROID_IMAGE_DECODER_ERROR: ::std::os::raw::c_int = -2; -pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: ::std::os::raw::c_int = -3; -pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: ::std::os::raw::c_int = -4; -pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: ::std::os::raw::c_int = -5; -pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: ::std::os::raw::c_int = -6; -pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: ::std::os::raw::c_int = -7; -pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: ::std::os::raw::c_int = -8; -pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: ::std::os::raw::c_int = -9; -pub const ANDROID_IMAGE_DECODER_FINISHED: ::std::os::raw::c_int = -10; -pub const ANDROID_IMAGE_DECODER_INVALID_STATE: ::std::os::raw::c_int = -11; -pub type _bindgen_ty_7 = ::std::os::raw::c_int; +pub const ANDROID_IMAGE_DECODER_SUCCESS: _bindgen_ty_9 = 0; +pub const ANDROID_IMAGE_DECODER_INCOMPLETE: _bindgen_ty_9 = -1; +pub const ANDROID_IMAGE_DECODER_ERROR: _bindgen_ty_9 = -2; +pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: _bindgen_ty_9 = -3; +pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: _bindgen_ty_9 = -4; +pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: _bindgen_ty_9 = -5; +pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: _bindgen_ty_9 = -6; +pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: _bindgen_ty_9 = -7; +pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: _bindgen_ty_9 = -8; +pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: _bindgen_ty_9 = -9; +pub const ANDROID_IMAGE_DECODER_FINISHED: _bindgen_ty_9 = -10; +pub const ANDROID_IMAGE_DECODER_INVALID_STATE: _bindgen_ty_9 = -11; +pub type _bindgen_ty_9 = ::std::os::raw::c_int; extern "C" { pub fn AImageDecoder_resultToString( arg1: ::std::os::raw::c_int, @@ -3714,8 +3626,8 @@ extern "C" { extern "C" { pub fn AImageDecoder_isAnimated(decoder: *mut AImageDecoder) -> bool; } -pub const ANDROID_IMAGE_DECODER_INFINITE: ::std::os::raw::c_uint = 2147483647; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_INFINITE: _bindgen_ty_10 = 2147483647; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoder_getRepeatCount(decoder: *mut AImageDecoder) -> i32; } @@ -3752,16 +3664,16 @@ extern "C" { pub fn AImageDecoderFrameInfo_hasAlphaWithinBounds(info: *const AImageDecoderFrameInfo) -> bool; } -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: ::std::os::raw::c_uint = 2; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: _bindgen_ty_11 = 1; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: _bindgen_ty_11 = 2; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: _bindgen_ty_11 = 3; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getDisposeOp(info: *const AImageDecoderFrameInfo) -> i32; } -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: _bindgen_ty_12 = 1; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: _bindgen_ty_12 = 2; +pub type _bindgen_ty_12 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getBlendOp(info: *const AImageDecoderFrameInfo) -> i32; } @@ -3771,296 +3683,296 @@ extern "C" { handleInternally: bool, ); } -pub const AKEYCODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AKEYCODE_SOFT_LEFT: ::std::os::raw::c_uint = 1; -pub const AKEYCODE_SOFT_RIGHT: ::std::os::raw::c_uint = 2; -pub const AKEYCODE_HOME: ::std::os::raw::c_uint = 3; -pub const AKEYCODE_BACK: ::std::os::raw::c_uint = 4; -pub const AKEYCODE_CALL: ::std::os::raw::c_uint = 5; -pub const AKEYCODE_ENDCALL: ::std::os::raw::c_uint = 6; -pub const AKEYCODE_0: ::std::os::raw::c_uint = 7; -pub const AKEYCODE_1: ::std::os::raw::c_uint = 8; -pub const AKEYCODE_2: ::std::os::raw::c_uint = 9; -pub const AKEYCODE_3: ::std::os::raw::c_uint = 10; -pub const AKEYCODE_4: ::std::os::raw::c_uint = 11; -pub const AKEYCODE_5: ::std::os::raw::c_uint = 12; -pub const AKEYCODE_6: ::std::os::raw::c_uint = 13; -pub const AKEYCODE_7: ::std::os::raw::c_uint = 14; -pub const AKEYCODE_8: ::std::os::raw::c_uint = 15; -pub const AKEYCODE_9: ::std::os::raw::c_uint = 16; -pub const AKEYCODE_STAR: ::std::os::raw::c_uint = 17; -pub const AKEYCODE_POUND: ::std::os::raw::c_uint = 18; -pub const AKEYCODE_DPAD_UP: ::std::os::raw::c_uint = 19; -pub const AKEYCODE_DPAD_DOWN: ::std::os::raw::c_uint = 20; -pub const AKEYCODE_DPAD_LEFT: ::std::os::raw::c_uint = 21; -pub const AKEYCODE_DPAD_RIGHT: ::std::os::raw::c_uint = 22; -pub const AKEYCODE_DPAD_CENTER: ::std::os::raw::c_uint = 23; -pub const AKEYCODE_VOLUME_UP: ::std::os::raw::c_uint = 24; -pub const AKEYCODE_VOLUME_DOWN: ::std::os::raw::c_uint = 25; -pub const AKEYCODE_POWER: ::std::os::raw::c_uint = 26; -pub const AKEYCODE_CAMERA: ::std::os::raw::c_uint = 27; -pub const AKEYCODE_CLEAR: ::std::os::raw::c_uint = 28; -pub const AKEYCODE_A: ::std::os::raw::c_uint = 29; -pub const AKEYCODE_B: ::std::os::raw::c_uint = 30; -pub const AKEYCODE_C: ::std::os::raw::c_uint = 31; -pub const AKEYCODE_D: ::std::os::raw::c_uint = 32; -pub const AKEYCODE_E: ::std::os::raw::c_uint = 33; -pub const AKEYCODE_F: ::std::os::raw::c_uint = 34; -pub const AKEYCODE_G: ::std::os::raw::c_uint = 35; -pub const AKEYCODE_H: ::std::os::raw::c_uint = 36; -pub const AKEYCODE_I: ::std::os::raw::c_uint = 37; -pub const AKEYCODE_J: ::std::os::raw::c_uint = 38; -pub const AKEYCODE_K: ::std::os::raw::c_uint = 39; -pub const AKEYCODE_L: ::std::os::raw::c_uint = 40; -pub const AKEYCODE_M: ::std::os::raw::c_uint = 41; -pub const AKEYCODE_N: ::std::os::raw::c_uint = 42; -pub const AKEYCODE_O: ::std::os::raw::c_uint = 43; -pub const AKEYCODE_P: ::std::os::raw::c_uint = 44; -pub const AKEYCODE_Q: ::std::os::raw::c_uint = 45; -pub const AKEYCODE_R: ::std::os::raw::c_uint = 46; -pub const AKEYCODE_S: ::std::os::raw::c_uint = 47; -pub const AKEYCODE_T: ::std::os::raw::c_uint = 48; -pub const AKEYCODE_U: ::std::os::raw::c_uint = 49; -pub const AKEYCODE_V: ::std::os::raw::c_uint = 50; -pub const AKEYCODE_W: ::std::os::raw::c_uint = 51; -pub const AKEYCODE_X: ::std::os::raw::c_uint = 52; -pub const AKEYCODE_Y: ::std::os::raw::c_uint = 53; -pub const AKEYCODE_Z: ::std::os::raw::c_uint = 54; -pub const AKEYCODE_COMMA: ::std::os::raw::c_uint = 55; -pub const AKEYCODE_PERIOD: ::std::os::raw::c_uint = 56; -pub const AKEYCODE_ALT_LEFT: ::std::os::raw::c_uint = 57; -pub const AKEYCODE_ALT_RIGHT: ::std::os::raw::c_uint = 58; -pub const AKEYCODE_SHIFT_LEFT: ::std::os::raw::c_uint = 59; -pub const AKEYCODE_SHIFT_RIGHT: ::std::os::raw::c_uint = 60; -pub const AKEYCODE_TAB: ::std::os::raw::c_uint = 61; -pub const AKEYCODE_SPACE: ::std::os::raw::c_uint = 62; -pub const AKEYCODE_SYM: ::std::os::raw::c_uint = 63; -pub const AKEYCODE_EXPLORER: ::std::os::raw::c_uint = 64; -pub const AKEYCODE_ENVELOPE: ::std::os::raw::c_uint = 65; -pub const AKEYCODE_ENTER: ::std::os::raw::c_uint = 66; -pub const AKEYCODE_DEL: ::std::os::raw::c_uint = 67; -pub const AKEYCODE_GRAVE: ::std::os::raw::c_uint = 68; -pub const AKEYCODE_MINUS: ::std::os::raw::c_uint = 69; -pub const AKEYCODE_EQUALS: ::std::os::raw::c_uint = 70; -pub const AKEYCODE_LEFT_BRACKET: ::std::os::raw::c_uint = 71; -pub const AKEYCODE_RIGHT_BRACKET: ::std::os::raw::c_uint = 72; -pub const AKEYCODE_BACKSLASH: ::std::os::raw::c_uint = 73; -pub const AKEYCODE_SEMICOLON: ::std::os::raw::c_uint = 74; -pub const AKEYCODE_APOSTROPHE: ::std::os::raw::c_uint = 75; -pub const AKEYCODE_SLASH: ::std::os::raw::c_uint = 76; -pub const AKEYCODE_AT: ::std::os::raw::c_uint = 77; -pub const AKEYCODE_NUM: ::std::os::raw::c_uint = 78; -pub const AKEYCODE_HEADSETHOOK: ::std::os::raw::c_uint = 79; -pub const AKEYCODE_FOCUS: ::std::os::raw::c_uint = 80; -pub const AKEYCODE_PLUS: ::std::os::raw::c_uint = 81; -pub const AKEYCODE_MENU: ::std::os::raw::c_uint = 82; -pub const AKEYCODE_NOTIFICATION: ::std::os::raw::c_uint = 83; -pub const AKEYCODE_SEARCH: ::std::os::raw::c_uint = 84; -pub const AKEYCODE_MEDIA_PLAY_PAUSE: ::std::os::raw::c_uint = 85; -pub const AKEYCODE_MEDIA_STOP: ::std::os::raw::c_uint = 86; -pub const AKEYCODE_MEDIA_NEXT: ::std::os::raw::c_uint = 87; -pub const AKEYCODE_MEDIA_PREVIOUS: ::std::os::raw::c_uint = 88; -pub const AKEYCODE_MEDIA_REWIND: ::std::os::raw::c_uint = 89; -pub const AKEYCODE_MEDIA_FAST_FORWARD: ::std::os::raw::c_uint = 90; -pub const AKEYCODE_MUTE: ::std::os::raw::c_uint = 91; -pub const AKEYCODE_PAGE_UP: ::std::os::raw::c_uint = 92; -pub const AKEYCODE_PAGE_DOWN: ::std::os::raw::c_uint = 93; -pub const AKEYCODE_PICTSYMBOLS: ::std::os::raw::c_uint = 94; -pub const AKEYCODE_SWITCH_CHARSET: ::std::os::raw::c_uint = 95; -pub const AKEYCODE_BUTTON_A: ::std::os::raw::c_uint = 96; -pub const AKEYCODE_BUTTON_B: ::std::os::raw::c_uint = 97; -pub const AKEYCODE_BUTTON_C: ::std::os::raw::c_uint = 98; -pub const AKEYCODE_BUTTON_X: ::std::os::raw::c_uint = 99; -pub const AKEYCODE_BUTTON_Y: ::std::os::raw::c_uint = 100; -pub const AKEYCODE_BUTTON_Z: ::std::os::raw::c_uint = 101; -pub const AKEYCODE_BUTTON_L1: ::std::os::raw::c_uint = 102; -pub const AKEYCODE_BUTTON_R1: ::std::os::raw::c_uint = 103; -pub const AKEYCODE_BUTTON_L2: ::std::os::raw::c_uint = 104; -pub const AKEYCODE_BUTTON_R2: ::std::os::raw::c_uint = 105; -pub const AKEYCODE_BUTTON_THUMBL: ::std::os::raw::c_uint = 106; -pub const AKEYCODE_BUTTON_THUMBR: ::std::os::raw::c_uint = 107; -pub const AKEYCODE_BUTTON_START: ::std::os::raw::c_uint = 108; -pub const AKEYCODE_BUTTON_SELECT: ::std::os::raw::c_uint = 109; -pub const AKEYCODE_BUTTON_MODE: ::std::os::raw::c_uint = 110; -pub const AKEYCODE_ESCAPE: ::std::os::raw::c_uint = 111; -pub const AKEYCODE_FORWARD_DEL: ::std::os::raw::c_uint = 112; -pub const AKEYCODE_CTRL_LEFT: ::std::os::raw::c_uint = 113; -pub const AKEYCODE_CTRL_RIGHT: ::std::os::raw::c_uint = 114; -pub const AKEYCODE_CAPS_LOCK: ::std::os::raw::c_uint = 115; -pub const AKEYCODE_SCROLL_LOCK: ::std::os::raw::c_uint = 116; -pub const AKEYCODE_META_LEFT: ::std::os::raw::c_uint = 117; -pub const AKEYCODE_META_RIGHT: ::std::os::raw::c_uint = 118; -pub const AKEYCODE_FUNCTION: ::std::os::raw::c_uint = 119; -pub const AKEYCODE_SYSRQ: ::std::os::raw::c_uint = 120; -pub const AKEYCODE_BREAK: ::std::os::raw::c_uint = 121; -pub const AKEYCODE_MOVE_HOME: ::std::os::raw::c_uint = 122; -pub const AKEYCODE_MOVE_END: ::std::os::raw::c_uint = 123; -pub const AKEYCODE_INSERT: ::std::os::raw::c_uint = 124; -pub const AKEYCODE_FORWARD: ::std::os::raw::c_uint = 125; -pub const AKEYCODE_MEDIA_PLAY: ::std::os::raw::c_uint = 126; -pub const AKEYCODE_MEDIA_PAUSE: ::std::os::raw::c_uint = 127; -pub const AKEYCODE_MEDIA_CLOSE: ::std::os::raw::c_uint = 128; -pub const AKEYCODE_MEDIA_EJECT: ::std::os::raw::c_uint = 129; -pub const AKEYCODE_MEDIA_RECORD: ::std::os::raw::c_uint = 130; -pub const AKEYCODE_F1: ::std::os::raw::c_uint = 131; -pub const AKEYCODE_F2: ::std::os::raw::c_uint = 132; -pub const AKEYCODE_F3: ::std::os::raw::c_uint = 133; -pub const AKEYCODE_F4: ::std::os::raw::c_uint = 134; -pub const AKEYCODE_F5: ::std::os::raw::c_uint = 135; -pub const AKEYCODE_F6: ::std::os::raw::c_uint = 136; -pub const AKEYCODE_F7: ::std::os::raw::c_uint = 137; -pub const AKEYCODE_F8: ::std::os::raw::c_uint = 138; -pub const AKEYCODE_F9: ::std::os::raw::c_uint = 139; -pub const AKEYCODE_F10: ::std::os::raw::c_uint = 140; -pub const AKEYCODE_F11: ::std::os::raw::c_uint = 141; -pub const AKEYCODE_F12: ::std::os::raw::c_uint = 142; -pub const AKEYCODE_NUM_LOCK: ::std::os::raw::c_uint = 143; -pub const AKEYCODE_NUMPAD_0: ::std::os::raw::c_uint = 144; -pub const AKEYCODE_NUMPAD_1: ::std::os::raw::c_uint = 145; -pub const AKEYCODE_NUMPAD_2: ::std::os::raw::c_uint = 146; -pub const AKEYCODE_NUMPAD_3: ::std::os::raw::c_uint = 147; -pub const AKEYCODE_NUMPAD_4: ::std::os::raw::c_uint = 148; -pub const AKEYCODE_NUMPAD_5: ::std::os::raw::c_uint = 149; -pub const AKEYCODE_NUMPAD_6: ::std::os::raw::c_uint = 150; -pub const AKEYCODE_NUMPAD_7: ::std::os::raw::c_uint = 151; -pub const AKEYCODE_NUMPAD_8: ::std::os::raw::c_uint = 152; -pub const AKEYCODE_NUMPAD_9: ::std::os::raw::c_uint = 153; -pub const AKEYCODE_NUMPAD_DIVIDE: ::std::os::raw::c_uint = 154; -pub const AKEYCODE_NUMPAD_MULTIPLY: ::std::os::raw::c_uint = 155; -pub const AKEYCODE_NUMPAD_SUBTRACT: ::std::os::raw::c_uint = 156; -pub const AKEYCODE_NUMPAD_ADD: ::std::os::raw::c_uint = 157; -pub const AKEYCODE_NUMPAD_DOT: ::std::os::raw::c_uint = 158; -pub const AKEYCODE_NUMPAD_COMMA: ::std::os::raw::c_uint = 159; -pub const AKEYCODE_NUMPAD_ENTER: ::std::os::raw::c_uint = 160; -pub const AKEYCODE_NUMPAD_EQUALS: ::std::os::raw::c_uint = 161; -pub const AKEYCODE_NUMPAD_LEFT_PAREN: ::std::os::raw::c_uint = 162; -pub const AKEYCODE_NUMPAD_RIGHT_PAREN: ::std::os::raw::c_uint = 163; -pub const AKEYCODE_VOLUME_MUTE: ::std::os::raw::c_uint = 164; -pub const AKEYCODE_INFO: ::std::os::raw::c_uint = 165; -pub const AKEYCODE_CHANNEL_UP: ::std::os::raw::c_uint = 166; -pub const AKEYCODE_CHANNEL_DOWN: ::std::os::raw::c_uint = 167; -pub const AKEYCODE_ZOOM_IN: ::std::os::raw::c_uint = 168; -pub const AKEYCODE_ZOOM_OUT: ::std::os::raw::c_uint = 169; -pub const AKEYCODE_TV: ::std::os::raw::c_uint = 170; -pub const AKEYCODE_WINDOW: ::std::os::raw::c_uint = 171; -pub const AKEYCODE_GUIDE: ::std::os::raw::c_uint = 172; -pub const AKEYCODE_DVR: ::std::os::raw::c_uint = 173; -pub const AKEYCODE_BOOKMARK: ::std::os::raw::c_uint = 174; -pub const AKEYCODE_CAPTIONS: ::std::os::raw::c_uint = 175; -pub const AKEYCODE_SETTINGS: ::std::os::raw::c_uint = 176; -pub const AKEYCODE_TV_POWER: ::std::os::raw::c_uint = 177; -pub const AKEYCODE_TV_INPUT: ::std::os::raw::c_uint = 178; -pub const AKEYCODE_STB_POWER: ::std::os::raw::c_uint = 179; -pub const AKEYCODE_STB_INPUT: ::std::os::raw::c_uint = 180; -pub const AKEYCODE_AVR_POWER: ::std::os::raw::c_uint = 181; -pub const AKEYCODE_AVR_INPUT: ::std::os::raw::c_uint = 182; -pub const AKEYCODE_PROG_RED: ::std::os::raw::c_uint = 183; -pub const AKEYCODE_PROG_GREEN: ::std::os::raw::c_uint = 184; -pub const AKEYCODE_PROG_YELLOW: ::std::os::raw::c_uint = 185; -pub const AKEYCODE_PROG_BLUE: ::std::os::raw::c_uint = 186; -pub const AKEYCODE_APP_SWITCH: ::std::os::raw::c_uint = 187; -pub const AKEYCODE_BUTTON_1: ::std::os::raw::c_uint = 188; -pub const AKEYCODE_BUTTON_2: ::std::os::raw::c_uint = 189; -pub const AKEYCODE_BUTTON_3: ::std::os::raw::c_uint = 190; -pub const AKEYCODE_BUTTON_4: ::std::os::raw::c_uint = 191; -pub const AKEYCODE_BUTTON_5: ::std::os::raw::c_uint = 192; -pub const AKEYCODE_BUTTON_6: ::std::os::raw::c_uint = 193; -pub const AKEYCODE_BUTTON_7: ::std::os::raw::c_uint = 194; -pub const AKEYCODE_BUTTON_8: ::std::os::raw::c_uint = 195; -pub const AKEYCODE_BUTTON_9: ::std::os::raw::c_uint = 196; -pub const AKEYCODE_BUTTON_10: ::std::os::raw::c_uint = 197; -pub const AKEYCODE_BUTTON_11: ::std::os::raw::c_uint = 198; -pub const AKEYCODE_BUTTON_12: ::std::os::raw::c_uint = 199; -pub const AKEYCODE_BUTTON_13: ::std::os::raw::c_uint = 200; -pub const AKEYCODE_BUTTON_14: ::std::os::raw::c_uint = 201; -pub const AKEYCODE_BUTTON_15: ::std::os::raw::c_uint = 202; -pub const AKEYCODE_BUTTON_16: ::std::os::raw::c_uint = 203; -pub const AKEYCODE_LANGUAGE_SWITCH: ::std::os::raw::c_uint = 204; -pub const AKEYCODE_MANNER_MODE: ::std::os::raw::c_uint = 205; -pub const AKEYCODE_3D_MODE: ::std::os::raw::c_uint = 206; -pub const AKEYCODE_CONTACTS: ::std::os::raw::c_uint = 207; -pub const AKEYCODE_CALENDAR: ::std::os::raw::c_uint = 208; -pub const AKEYCODE_MUSIC: ::std::os::raw::c_uint = 209; -pub const AKEYCODE_CALCULATOR: ::std::os::raw::c_uint = 210; -pub const AKEYCODE_ZENKAKU_HANKAKU: ::std::os::raw::c_uint = 211; -pub const AKEYCODE_EISU: ::std::os::raw::c_uint = 212; -pub const AKEYCODE_MUHENKAN: ::std::os::raw::c_uint = 213; -pub const AKEYCODE_HENKAN: ::std::os::raw::c_uint = 214; -pub const AKEYCODE_KATAKANA_HIRAGANA: ::std::os::raw::c_uint = 215; -pub const AKEYCODE_YEN: ::std::os::raw::c_uint = 216; -pub const AKEYCODE_RO: ::std::os::raw::c_uint = 217; -pub const AKEYCODE_KANA: ::std::os::raw::c_uint = 218; -pub const AKEYCODE_ASSIST: ::std::os::raw::c_uint = 219; -pub const AKEYCODE_BRIGHTNESS_DOWN: ::std::os::raw::c_uint = 220; -pub const AKEYCODE_BRIGHTNESS_UP: ::std::os::raw::c_uint = 221; -pub const AKEYCODE_MEDIA_AUDIO_TRACK: ::std::os::raw::c_uint = 222; -pub const AKEYCODE_SLEEP: ::std::os::raw::c_uint = 223; -pub const AKEYCODE_WAKEUP: ::std::os::raw::c_uint = 224; -pub const AKEYCODE_PAIRING: ::std::os::raw::c_uint = 225; -pub const AKEYCODE_MEDIA_TOP_MENU: ::std::os::raw::c_uint = 226; -pub const AKEYCODE_11: ::std::os::raw::c_uint = 227; -pub const AKEYCODE_12: ::std::os::raw::c_uint = 228; -pub const AKEYCODE_LAST_CHANNEL: ::std::os::raw::c_uint = 229; -pub const AKEYCODE_TV_DATA_SERVICE: ::std::os::raw::c_uint = 230; -pub const AKEYCODE_VOICE_ASSIST: ::std::os::raw::c_uint = 231; -pub const AKEYCODE_TV_RADIO_SERVICE: ::std::os::raw::c_uint = 232; -pub const AKEYCODE_TV_TELETEXT: ::std::os::raw::c_uint = 233; -pub const AKEYCODE_TV_NUMBER_ENTRY: ::std::os::raw::c_uint = 234; -pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: ::std::os::raw::c_uint = 235; -pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: ::std::os::raw::c_uint = 236; -pub const AKEYCODE_TV_SATELLITE: ::std::os::raw::c_uint = 237; -pub const AKEYCODE_TV_SATELLITE_BS: ::std::os::raw::c_uint = 238; -pub const AKEYCODE_TV_SATELLITE_CS: ::std::os::raw::c_uint = 239; -pub const AKEYCODE_TV_SATELLITE_SERVICE: ::std::os::raw::c_uint = 240; -pub const AKEYCODE_TV_NETWORK: ::std::os::raw::c_uint = 241; -pub const AKEYCODE_TV_ANTENNA_CABLE: ::std::os::raw::c_uint = 242; -pub const AKEYCODE_TV_INPUT_HDMI_1: ::std::os::raw::c_uint = 243; -pub const AKEYCODE_TV_INPUT_HDMI_2: ::std::os::raw::c_uint = 244; -pub const AKEYCODE_TV_INPUT_HDMI_3: ::std::os::raw::c_uint = 245; -pub const AKEYCODE_TV_INPUT_HDMI_4: ::std::os::raw::c_uint = 246; -pub const AKEYCODE_TV_INPUT_COMPOSITE_1: ::std::os::raw::c_uint = 247; -pub const AKEYCODE_TV_INPUT_COMPOSITE_2: ::std::os::raw::c_uint = 248; -pub const AKEYCODE_TV_INPUT_COMPONENT_1: ::std::os::raw::c_uint = 249; -pub const AKEYCODE_TV_INPUT_COMPONENT_2: ::std::os::raw::c_uint = 250; -pub const AKEYCODE_TV_INPUT_VGA_1: ::std::os::raw::c_uint = 251; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION: ::std::os::raw::c_uint = 252; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: ::std::os::raw::c_uint = 253; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: ::std::os::raw::c_uint = 254; -pub const AKEYCODE_TV_ZOOM_MODE: ::std::os::raw::c_uint = 255; -pub const AKEYCODE_TV_CONTENTS_MENU: ::std::os::raw::c_uint = 256; -pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: ::std::os::raw::c_uint = 257; -pub const AKEYCODE_TV_TIMER_PROGRAMMING: ::std::os::raw::c_uint = 258; -pub const AKEYCODE_HELP: ::std::os::raw::c_uint = 259; -pub const AKEYCODE_NAVIGATE_PREVIOUS: ::std::os::raw::c_uint = 260; -pub const AKEYCODE_NAVIGATE_NEXT: ::std::os::raw::c_uint = 261; -pub const AKEYCODE_NAVIGATE_IN: ::std::os::raw::c_uint = 262; -pub const AKEYCODE_NAVIGATE_OUT: ::std::os::raw::c_uint = 263; -pub const AKEYCODE_STEM_PRIMARY: ::std::os::raw::c_uint = 264; -pub const AKEYCODE_STEM_1: ::std::os::raw::c_uint = 265; -pub const AKEYCODE_STEM_2: ::std::os::raw::c_uint = 266; -pub const AKEYCODE_STEM_3: ::std::os::raw::c_uint = 267; -pub const AKEYCODE_DPAD_UP_LEFT: ::std::os::raw::c_uint = 268; -pub const AKEYCODE_DPAD_DOWN_LEFT: ::std::os::raw::c_uint = 269; -pub const AKEYCODE_DPAD_UP_RIGHT: ::std::os::raw::c_uint = 270; -pub const AKEYCODE_DPAD_DOWN_RIGHT: ::std::os::raw::c_uint = 271; -pub const AKEYCODE_MEDIA_SKIP_FORWARD: ::std::os::raw::c_uint = 272; -pub const AKEYCODE_MEDIA_SKIP_BACKWARD: ::std::os::raw::c_uint = 273; -pub const AKEYCODE_MEDIA_STEP_FORWARD: ::std::os::raw::c_uint = 274; -pub const AKEYCODE_MEDIA_STEP_BACKWARD: ::std::os::raw::c_uint = 275; -pub const AKEYCODE_SOFT_SLEEP: ::std::os::raw::c_uint = 276; -pub const AKEYCODE_CUT: ::std::os::raw::c_uint = 277; -pub const AKEYCODE_COPY: ::std::os::raw::c_uint = 278; -pub const AKEYCODE_PASTE: ::std::os::raw::c_uint = 279; -pub const AKEYCODE_SYSTEM_NAVIGATION_UP: ::std::os::raw::c_uint = 280; -pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: ::std::os::raw::c_uint = 281; -pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: ::std::os::raw::c_uint = 282; -pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: ::std::os::raw::c_uint = 283; -pub const AKEYCODE_ALL_APPS: ::std::os::raw::c_uint = 284; -pub const AKEYCODE_REFRESH: ::std::os::raw::c_uint = 285; -pub const AKEYCODE_THUMBS_UP: ::std::os::raw::c_uint = 286; -pub const AKEYCODE_THUMBS_DOWN: ::std::os::raw::c_uint = 287; -pub const AKEYCODE_PROFILE_SWITCH: ::std::os::raw::c_uint = 288; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +pub const AKEYCODE_UNKNOWN: _bindgen_ty_13 = 0; +pub const AKEYCODE_SOFT_LEFT: _bindgen_ty_13 = 1; +pub const AKEYCODE_SOFT_RIGHT: _bindgen_ty_13 = 2; +pub const AKEYCODE_HOME: _bindgen_ty_13 = 3; +pub const AKEYCODE_BACK: _bindgen_ty_13 = 4; +pub const AKEYCODE_CALL: _bindgen_ty_13 = 5; +pub const AKEYCODE_ENDCALL: _bindgen_ty_13 = 6; +pub const AKEYCODE_0: _bindgen_ty_13 = 7; +pub const AKEYCODE_1: _bindgen_ty_13 = 8; +pub const AKEYCODE_2: _bindgen_ty_13 = 9; +pub const AKEYCODE_3: _bindgen_ty_13 = 10; +pub const AKEYCODE_4: _bindgen_ty_13 = 11; +pub const AKEYCODE_5: _bindgen_ty_13 = 12; +pub const AKEYCODE_6: _bindgen_ty_13 = 13; +pub const AKEYCODE_7: _bindgen_ty_13 = 14; +pub const AKEYCODE_8: _bindgen_ty_13 = 15; +pub const AKEYCODE_9: _bindgen_ty_13 = 16; +pub const AKEYCODE_STAR: _bindgen_ty_13 = 17; +pub const AKEYCODE_POUND: _bindgen_ty_13 = 18; +pub const AKEYCODE_DPAD_UP: _bindgen_ty_13 = 19; +pub const AKEYCODE_DPAD_DOWN: _bindgen_ty_13 = 20; +pub const AKEYCODE_DPAD_LEFT: _bindgen_ty_13 = 21; +pub const AKEYCODE_DPAD_RIGHT: _bindgen_ty_13 = 22; +pub const AKEYCODE_DPAD_CENTER: _bindgen_ty_13 = 23; +pub const AKEYCODE_VOLUME_UP: _bindgen_ty_13 = 24; +pub const AKEYCODE_VOLUME_DOWN: _bindgen_ty_13 = 25; +pub const AKEYCODE_POWER: _bindgen_ty_13 = 26; +pub const AKEYCODE_CAMERA: _bindgen_ty_13 = 27; +pub const AKEYCODE_CLEAR: _bindgen_ty_13 = 28; +pub const AKEYCODE_A: _bindgen_ty_13 = 29; +pub const AKEYCODE_B: _bindgen_ty_13 = 30; +pub const AKEYCODE_C: _bindgen_ty_13 = 31; +pub const AKEYCODE_D: _bindgen_ty_13 = 32; +pub const AKEYCODE_E: _bindgen_ty_13 = 33; +pub const AKEYCODE_F: _bindgen_ty_13 = 34; +pub const AKEYCODE_G: _bindgen_ty_13 = 35; +pub const AKEYCODE_H: _bindgen_ty_13 = 36; +pub const AKEYCODE_I: _bindgen_ty_13 = 37; +pub const AKEYCODE_J: _bindgen_ty_13 = 38; +pub const AKEYCODE_K: _bindgen_ty_13 = 39; +pub const AKEYCODE_L: _bindgen_ty_13 = 40; +pub const AKEYCODE_M: _bindgen_ty_13 = 41; +pub const AKEYCODE_N: _bindgen_ty_13 = 42; +pub const AKEYCODE_O: _bindgen_ty_13 = 43; +pub const AKEYCODE_P: _bindgen_ty_13 = 44; +pub const AKEYCODE_Q: _bindgen_ty_13 = 45; +pub const AKEYCODE_R: _bindgen_ty_13 = 46; +pub const AKEYCODE_S: _bindgen_ty_13 = 47; +pub const AKEYCODE_T: _bindgen_ty_13 = 48; +pub const AKEYCODE_U: _bindgen_ty_13 = 49; +pub const AKEYCODE_V: _bindgen_ty_13 = 50; +pub const AKEYCODE_W: _bindgen_ty_13 = 51; +pub const AKEYCODE_X: _bindgen_ty_13 = 52; +pub const AKEYCODE_Y: _bindgen_ty_13 = 53; +pub const AKEYCODE_Z: _bindgen_ty_13 = 54; +pub const AKEYCODE_COMMA: _bindgen_ty_13 = 55; +pub const AKEYCODE_PERIOD: _bindgen_ty_13 = 56; +pub const AKEYCODE_ALT_LEFT: _bindgen_ty_13 = 57; +pub const AKEYCODE_ALT_RIGHT: _bindgen_ty_13 = 58; +pub const AKEYCODE_SHIFT_LEFT: _bindgen_ty_13 = 59; +pub const AKEYCODE_SHIFT_RIGHT: _bindgen_ty_13 = 60; +pub const AKEYCODE_TAB: _bindgen_ty_13 = 61; +pub const AKEYCODE_SPACE: _bindgen_ty_13 = 62; +pub const AKEYCODE_SYM: _bindgen_ty_13 = 63; +pub const AKEYCODE_EXPLORER: _bindgen_ty_13 = 64; +pub const AKEYCODE_ENVELOPE: _bindgen_ty_13 = 65; +pub const AKEYCODE_ENTER: _bindgen_ty_13 = 66; +pub const AKEYCODE_DEL: _bindgen_ty_13 = 67; +pub const AKEYCODE_GRAVE: _bindgen_ty_13 = 68; +pub const AKEYCODE_MINUS: _bindgen_ty_13 = 69; +pub const AKEYCODE_EQUALS: _bindgen_ty_13 = 70; +pub const AKEYCODE_LEFT_BRACKET: _bindgen_ty_13 = 71; +pub const AKEYCODE_RIGHT_BRACKET: _bindgen_ty_13 = 72; +pub const AKEYCODE_BACKSLASH: _bindgen_ty_13 = 73; +pub const AKEYCODE_SEMICOLON: _bindgen_ty_13 = 74; +pub const AKEYCODE_APOSTROPHE: _bindgen_ty_13 = 75; +pub const AKEYCODE_SLASH: _bindgen_ty_13 = 76; +pub const AKEYCODE_AT: _bindgen_ty_13 = 77; +pub const AKEYCODE_NUM: _bindgen_ty_13 = 78; +pub const AKEYCODE_HEADSETHOOK: _bindgen_ty_13 = 79; +pub const AKEYCODE_FOCUS: _bindgen_ty_13 = 80; +pub const AKEYCODE_PLUS: _bindgen_ty_13 = 81; +pub const AKEYCODE_MENU: _bindgen_ty_13 = 82; +pub const AKEYCODE_NOTIFICATION: _bindgen_ty_13 = 83; +pub const AKEYCODE_SEARCH: _bindgen_ty_13 = 84; +pub const AKEYCODE_MEDIA_PLAY_PAUSE: _bindgen_ty_13 = 85; +pub const AKEYCODE_MEDIA_STOP: _bindgen_ty_13 = 86; +pub const AKEYCODE_MEDIA_NEXT: _bindgen_ty_13 = 87; +pub const AKEYCODE_MEDIA_PREVIOUS: _bindgen_ty_13 = 88; +pub const AKEYCODE_MEDIA_REWIND: _bindgen_ty_13 = 89; +pub const AKEYCODE_MEDIA_FAST_FORWARD: _bindgen_ty_13 = 90; +pub const AKEYCODE_MUTE: _bindgen_ty_13 = 91; +pub const AKEYCODE_PAGE_UP: _bindgen_ty_13 = 92; +pub const AKEYCODE_PAGE_DOWN: _bindgen_ty_13 = 93; +pub const AKEYCODE_PICTSYMBOLS: _bindgen_ty_13 = 94; +pub const AKEYCODE_SWITCH_CHARSET: _bindgen_ty_13 = 95; +pub const AKEYCODE_BUTTON_A: _bindgen_ty_13 = 96; +pub const AKEYCODE_BUTTON_B: _bindgen_ty_13 = 97; +pub const AKEYCODE_BUTTON_C: _bindgen_ty_13 = 98; +pub const AKEYCODE_BUTTON_X: _bindgen_ty_13 = 99; +pub const AKEYCODE_BUTTON_Y: _bindgen_ty_13 = 100; +pub const AKEYCODE_BUTTON_Z: _bindgen_ty_13 = 101; +pub const AKEYCODE_BUTTON_L1: _bindgen_ty_13 = 102; +pub const AKEYCODE_BUTTON_R1: _bindgen_ty_13 = 103; +pub const AKEYCODE_BUTTON_L2: _bindgen_ty_13 = 104; +pub const AKEYCODE_BUTTON_R2: _bindgen_ty_13 = 105; +pub const AKEYCODE_BUTTON_THUMBL: _bindgen_ty_13 = 106; +pub const AKEYCODE_BUTTON_THUMBR: _bindgen_ty_13 = 107; +pub const AKEYCODE_BUTTON_START: _bindgen_ty_13 = 108; +pub const AKEYCODE_BUTTON_SELECT: _bindgen_ty_13 = 109; +pub const AKEYCODE_BUTTON_MODE: _bindgen_ty_13 = 110; +pub const AKEYCODE_ESCAPE: _bindgen_ty_13 = 111; +pub const AKEYCODE_FORWARD_DEL: _bindgen_ty_13 = 112; +pub const AKEYCODE_CTRL_LEFT: _bindgen_ty_13 = 113; +pub const AKEYCODE_CTRL_RIGHT: _bindgen_ty_13 = 114; +pub const AKEYCODE_CAPS_LOCK: _bindgen_ty_13 = 115; +pub const AKEYCODE_SCROLL_LOCK: _bindgen_ty_13 = 116; +pub const AKEYCODE_META_LEFT: _bindgen_ty_13 = 117; +pub const AKEYCODE_META_RIGHT: _bindgen_ty_13 = 118; +pub const AKEYCODE_FUNCTION: _bindgen_ty_13 = 119; +pub const AKEYCODE_SYSRQ: _bindgen_ty_13 = 120; +pub const AKEYCODE_BREAK: _bindgen_ty_13 = 121; +pub const AKEYCODE_MOVE_HOME: _bindgen_ty_13 = 122; +pub const AKEYCODE_MOVE_END: _bindgen_ty_13 = 123; +pub const AKEYCODE_INSERT: _bindgen_ty_13 = 124; +pub const AKEYCODE_FORWARD: _bindgen_ty_13 = 125; +pub const AKEYCODE_MEDIA_PLAY: _bindgen_ty_13 = 126; +pub const AKEYCODE_MEDIA_PAUSE: _bindgen_ty_13 = 127; +pub const AKEYCODE_MEDIA_CLOSE: _bindgen_ty_13 = 128; +pub const AKEYCODE_MEDIA_EJECT: _bindgen_ty_13 = 129; +pub const AKEYCODE_MEDIA_RECORD: _bindgen_ty_13 = 130; +pub const AKEYCODE_F1: _bindgen_ty_13 = 131; +pub const AKEYCODE_F2: _bindgen_ty_13 = 132; +pub const AKEYCODE_F3: _bindgen_ty_13 = 133; +pub const AKEYCODE_F4: _bindgen_ty_13 = 134; +pub const AKEYCODE_F5: _bindgen_ty_13 = 135; +pub const AKEYCODE_F6: _bindgen_ty_13 = 136; +pub const AKEYCODE_F7: _bindgen_ty_13 = 137; +pub const AKEYCODE_F8: _bindgen_ty_13 = 138; +pub const AKEYCODE_F9: _bindgen_ty_13 = 139; +pub const AKEYCODE_F10: _bindgen_ty_13 = 140; +pub const AKEYCODE_F11: _bindgen_ty_13 = 141; +pub const AKEYCODE_F12: _bindgen_ty_13 = 142; +pub const AKEYCODE_NUM_LOCK: _bindgen_ty_13 = 143; +pub const AKEYCODE_NUMPAD_0: _bindgen_ty_13 = 144; +pub const AKEYCODE_NUMPAD_1: _bindgen_ty_13 = 145; +pub const AKEYCODE_NUMPAD_2: _bindgen_ty_13 = 146; +pub const AKEYCODE_NUMPAD_3: _bindgen_ty_13 = 147; +pub const AKEYCODE_NUMPAD_4: _bindgen_ty_13 = 148; +pub const AKEYCODE_NUMPAD_5: _bindgen_ty_13 = 149; +pub const AKEYCODE_NUMPAD_6: _bindgen_ty_13 = 150; +pub const AKEYCODE_NUMPAD_7: _bindgen_ty_13 = 151; +pub const AKEYCODE_NUMPAD_8: _bindgen_ty_13 = 152; +pub const AKEYCODE_NUMPAD_9: _bindgen_ty_13 = 153; +pub const AKEYCODE_NUMPAD_DIVIDE: _bindgen_ty_13 = 154; +pub const AKEYCODE_NUMPAD_MULTIPLY: _bindgen_ty_13 = 155; +pub const AKEYCODE_NUMPAD_SUBTRACT: _bindgen_ty_13 = 156; +pub const AKEYCODE_NUMPAD_ADD: _bindgen_ty_13 = 157; +pub const AKEYCODE_NUMPAD_DOT: _bindgen_ty_13 = 158; +pub const AKEYCODE_NUMPAD_COMMA: _bindgen_ty_13 = 159; +pub const AKEYCODE_NUMPAD_ENTER: _bindgen_ty_13 = 160; +pub const AKEYCODE_NUMPAD_EQUALS: _bindgen_ty_13 = 161; +pub const AKEYCODE_NUMPAD_LEFT_PAREN: _bindgen_ty_13 = 162; +pub const AKEYCODE_NUMPAD_RIGHT_PAREN: _bindgen_ty_13 = 163; +pub const AKEYCODE_VOLUME_MUTE: _bindgen_ty_13 = 164; +pub const AKEYCODE_INFO: _bindgen_ty_13 = 165; +pub const AKEYCODE_CHANNEL_UP: _bindgen_ty_13 = 166; +pub const AKEYCODE_CHANNEL_DOWN: _bindgen_ty_13 = 167; +pub const AKEYCODE_ZOOM_IN: _bindgen_ty_13 = 168; +pub const AKEYCODE_ZOOM_OUT: _bindgen_ty_13 = 169; +pub const AKEYCODE_TV: _bindgen_ty_13 = 170; +pub const AKEYCODE_WINDOW: _bindgen_ty_13 = 171; +pub const AKEYCODE_GUIDE: _bindgen_ty_13 = 172; +pub const AKEYCODE_DVR: _bindgen_ty_13 = 173; +pub const AKEYCODE_BOOKMARK: _bindgen_ty_13 = 174; +pub const AKEYCODE_CAPTIONS: _bindgen_ty_13 = 175; +pub const AKEYCODE_SETTINGS: _bindgen_ty_13 = 176; +pub const AKEYCODE_TV_POWER: _bindgen_ty_13 = 177; +pub const AKEYCODE_TV_INPUT: _bindgen_ty_13 = 178; +pub const AKEYCODE_STB_POWER: _bindgen_ty_13 = 179; +pub const AKEYCODE_STB_INPUT: _bindgen_ty_13 = 180; +pub const AKEYCODE_AVR_POWER: _bindgen_ty_13 = 181; +pub const AKEYCODE_AVR_INPUT: _bindgen_ty_13 = 182; +pub const AKEYCODE_PROG_RED: _bindgen_ty_13 = 183; +pub const AKEYCODE_PROG_GREEN: _bindgen_ty_13 = 184; +pub const AKEYCODE_PROG_YELLOW: _bindgen_ty_13 = 185; +pub const AKEYCODE_PROG_BLUE: _bindgen_ty_13 = 186; +pub const AKEYCODE_APP_SWITCH: _bindgen_ty_13 = 187; +pub const AKEYCODE_BUTTON_1: _bindgen_ty_13 = 188; +pub const AKEYCODE_BUTTON_2: _bindgen_ty_13 = 189; +pub const AKEYCODE_BUTTON_3: _bindgen_ty_13 = 190; +pub const AKEYCODE_BUTTON_4: _bindgen_ty_13 = 191; +pub const AKEYCODE_BUTTON_5: _bindgen_ty_13 = 192; +pub const AKEYCODE_BUTTON_6: _bindgen_ty_13 = 193; +pub const AKEYCODE_BUTTON_7: _bindgen_ty_13 = 194; +pub const AKEYCODE_BUTTON_8: _bindgen_ty_13 = 195; +pub const AKEYCODE_BUTTON_9: _bindgen_ty_13 = 196; +pub const AKEYCODE_BUTTON_10: _bindgen_ty_13 = 197; +pub const AKEYCODE_BUTTON_11: _bindgen_ty_13 = 198; +pub const AKEYCODE_BUTTON_12: _bindgen_ty_13 = 199; +pub const AKEYCODE_BUTTON_13: _bindgen_ty_13 = 200; +pub const AKEYCODE_BUTTON_14: _bindgen_ty_13 = 201; +pub const AKEYCODE_BUTTON_15: _bindgen_ty_13 = 202; +pub const AKEYCODE_BUTTON_16: _bindgen_ty_13 = 203; +pub const AKEYCODE_LANGUAGE_SWITCH: _bindgen_ty_13 = 204; +pub const AKEYCODE_MANNER_MODE: _bindgen_ty_13 = 205; +pub const AKEYCODE_3D_MODE: _bindgen_ty_13 = 206; +pub const AKEYCODE_CONTACTS: _bindgen_ty_13 = 207; +pub const AKEYCODE_CALENDAR: _bindgen_ty_13 = 208; +pub const AKEYCODE_MUSIC: _bindgen_ty_13 = 209; +pub const AKEYCODE_CALCULATOR: _bindgen_ty_13 = 210; +pub const AKEYCODE_ZENKAKU_HANKAKU: _bindgen_ty_13 = 211; +pub const AKEYCODE_EISU: _bindgen_ty_13 = 212; +pub const AKEYCODE_MUHENKAN: _bindgen_ty_13 = 213; +pub const AKEYCODE_HENKAN: _bindgen_ty_13 = 214; +pub const AKEYCODE_KATAKANA_HIRAGANA: _bindgen_ty_13 = 215; +pub const AKEYCODE_YEN: _bindgen_ty_13 = 216; +pub const AKEYCODE_RO: _bindgen_ty_13 = 217; +pub const AKEYCODE_KANA: _bindgen_ty_13 = 218; +pub const AKEYCODE_ASSIST: _bindgen_ty_13 = 219; +pub const AKEYCODE_BRIGHTNESS_DOWN: _bindgen_ty_13 = 220; +pub const AKEYCODE_BRIGHTNESS_UP: _bindgen_ty_13 = 221; +pub const AKEYCODE_MEDIA_AUDIO_TRACK: _bindgen_ty_13 = 222; +pub const AKEYCODE_SLEEP: _bindgen_ty_13 = 223; +pub const AKEYCODE_WAKEUP: _bindgen_ty_13 = 224; +pub const AKEYCODE_PAIRING: _bindgen_ty_13 = 225; +pub const AKEYCODE_MEDIA_TOP_MENU: _bindgen_ty_13 = 226; +pub const AKEYCODE_11: _bindgen_ty_13 = 227; +pub const AKEYCODE_12: _bindgen_ty_13 = 228; +pub const AKEYCODE_LAST_CHANNEL: _bindgen_ty_13 = 229; +pub const AKEYCODE_TV_DATA_SERVICE: _bindgen_ty_13 = 230; +pub const AKEYCODE_VOICE_ASSIST: _bindgen_ty_13 = 231; +pub const AKEYCODE_TV_RADIO_SERVICE: _bindgen_ty_13 = 232; +pub const AKEYCODE_TV_TELETEXT: _bindgen_ty_13 = 233; +pub const AKEYCODE_TV_NUMBER_ENTRY: _bindgen_ty_13 = 234; +pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: _bindgen_ty_13 = 235; +pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: _bindgen_ty_13 = 236; +pub const AKEYCODE_TV_SATELLITE: _bindgen_ty_13 = 237; +pub const AKEYCODE_TV_SATELLITE_BS: _bindgen_ty_13 = 238; +pub const AKEYCODE_TV_SATELLITE_CS: _bindgen_ty_13 = 239; +pub const AKEYCODE_TV_SATELLITE_SERVICE: _bindgen_ty_13 = 240; +pub const AKEYCODE_TV_NETWORK: _bindgen_ty_13 = 241; +pub const AKEYCODE_TV_ANTENNA_CABLE: _bindgen_ty_13 = 242; +pub const AKEYCODE_TV_INPUT_HDMI_1: _bindgen_ty_13 = 243; +pub const AKEYCODE_TV_INPUT_HDMI_2: _bindgen_ty_13 = 244; +pub const AKEYCODE_TV_INPUT_HDMI_3: _bindgen_ty_13 = 245; +pub const AKEYCODE_TV_INPUT_HDMI_4: _bindgen_ty_13 = 246; +pub const AKEYCODE_TV_INPUT_COMPOSITE_1: _bindgen_ty_13 = 247; +pub const AKEYCODE_TV_INPUT_COMPOSITE_2: _bindgen_ty_13 = 248; +pub const AKEYCODE_TV_INPUT_COMPONENT_1: _bindgen_ty_13 = 249; +pub const AKEYCODE_TV_INPUT_COMPONENT_2: _bindgen_ty_13 = 250; +pub const AKEYCODE_TV_INPUT_VGA_1: _bindgen_ty_13 = 251; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION: _bindgen_ty_13 = 252; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: _bindgen_ty_13 = 253; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: _bindgen_ty_13 = 254; +pub const AKEYCODE_TV_ZOOM_MODE: _bindgen_ty_13 = 255; +pub const AKEYCODE_TV_CONTENTS_MENU: _bindgen_ty_13 = 256; +pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: _bindgen_ty_13 = 257; +pub const AKEYCODE_TV_TIMER_PROGRAMMING: _bindgen_ty_13 = 258; +pub const AKEYCODE_HELP: _bindgen_ty_13 = 259; +pub const AKEYCODE_NAVIGATE_PREVIOUS: _bindgen_ty_13 = 260; +pub const AKEYCODE_NAVIGATE_NEXT: _bindgen_ty_13 = 261; +pub const AKEYCODE_NAVIGATE_IN: _bindgen_ty_13 = 262; +pub const AKEYCODE_NAVIGATE_OUT: _bindgen_ty_13 = 263; +pub const AKEYCODE_STEM_PRIMARY: _bindgen_ty_13 = 264; +pub const AKEYCODE_STEM_1: _bindgen_ty_13 = 265; +pub const AKEYCODE_STEM_2: _bindgen_ty_13 = 266; +pub const AKEYCODE_STEM_3: _bindgen_ty_13 = 267; +pub const AKEYCODE_DPAD_UP_LEFT: _bindgen_ty_13 = 268; +pub const AKEYCODE_DPAD_DOWN_LEFT: _bindgen_ty_13 = 269; +pub const AKEYCODE_DPAD_UP_RIGHT: _bindgen_ty_13 = 270; +pub const AKEYCODE_DPAD_DOWN_RIGHT: _bindgen_ty_13 = 271; +pub const AKEYCODE_MEDIA_SKIP_FORWARD: _bindgen_ty_13 = 272; +pub const AKEYCODE_MEDIA_SKIP_BACKWARD: _bindgen_ty_13 = 273; +pub const AKEYCODE_MEDIA_STEP_FORWARD: _bindgen_ty_13 = 274; +pub const AKEYCODE_MEDIA_STEP_BACKWARD: _bindgen_ty_13 = 275; +pub const AKEYCODE_SOFT_SLEEP: _bindgen_ty_13 = 276; +pub const AKEYCODE_CUT: _bindgen_ty_13 = 277; +pub const AKEYCODE_COPY: _bindgen_ty_13 = 278; +pub const AKEYCODE_PASTE: _bindgen_ty_13 = 279; +pub const AKEYCODE_SYSTEM_NAVIGATION_UP: _bindgen_ty_13 = 280; +pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: _bindgen_ty_13 = 281; +pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: _bindgen_ty_13 = 282; +pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: _bindgen_ty_13 = 283; +pub const AKEYCODE_ALL_APPS: _bindgen_ty_13 = 284; +pub const AKEYCODE_REFRESH: _bindgen_ty_13 = 285; +pub const AKEYCODE_THUMBS_UP: _bindgen_ty_13 = 286; +pub const AKEYCODE_THUMBS_DOWN: _bindgen_ty_13 = 287; +pub const AKEYCODE_PROFILE_SWITCH: _bindgen_ty_13 = 288; +pub type _bindgen_ty_13 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ALooper { @@ -4069,28 +3981,28 @@ pub struct ALooper { extern "C" { pub fn ALooper_forThread() -> *mut ALooper; } -pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; +pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: _bindgen_ty_14 = 1; +pub type _bindgen_ty_14 = ::std::os::raw::c_uint; extern "C" { pub fn ALooper_prepare(opts: ::std::os::raw::c_int) -> *mut ALooper; } -pub const ALOOPER_POLL_WAKE: ::std::os::raw::c_int = -1; -pub const ALOOPER_POLL_CALLBACK: ::std::os::raw::c_int = -2; -pub const ALOOPER_POLL_TIMEOUT: ::std::os::raw::c_int = -3; -pub const ALOOPER_POLL_ERROR: ::std::os::raw::c_int = -4; -pub type _bindgen_ty_13 = ::std::os::raw::c_int; +pub const ALOOPER_POLL_WAKE: _bindgen_ty_15 = -1; +pub const ALOOPER_POLL_CALLBACK: _bindgen_ty_15 = -2; +pub const ALOOPER_POLL_TIMEOUT: _bindgen_ty_15 = -3; +pub const ALOOPER_POLL_ERROR: _bindgen_ty_15 = -4; +pub type _bindgen_ty_15 = ::std::os::raw::c_int; extern "C" { pub fn ALooper_acquire(looper: *mut ALooper); } extern "C" { pub fn ALooper_release(looper: *mut ALooper); } -pub const ALOOPER_EVENT_INPUT: ::std::os::raw::c_uint = 1; -pub const ALOOPER_EVENT_OUTPUT: ::std::os::raw::c_uint = 2; -pub const ALOOPER_EVENT_ERROR: ::std::os::raw::c_uint = 4; -pub const ALOOPER_EVENT_HANGUP: ::std::os::raw::c_uint = 8; -pub const ALOOPER_EVENT_INVALID: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; +pub const ALOOPER_EVENT_INPUT: _bindgen_ty_16 = 1; +pub const ALOOPER_EVENT_OUTPUT: _bindgen_ty_16 = 2; +pub const ALOOPER_EVENT_ERROR: _bindgen_ty_16 = 4; +pub const ALOOPER_EVENT_HANGUP: _bindgen_ty_16 = 8; +pub const ALOOPER_EVENT_INVALID: _bindgen_ty_16 = 16; +pub type _bindgen_ty_16 = ::std::os::raw::c_uint; pub type ALooper_callbackFunc = ::std::option::Option< unsafe extern "C" fn( fd: ::std::os::raw::c_int, @@ -4133,143 +4045,143 @@ extern "C" { fd: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AKEY_STATE_UNKNOWN: ::std::os::raw::c_int = -1; -pub const AKEY_STATE_UP: ::std::os::raw::c_int = 0; -pub const AKEY_STATE_DOWN: ::std::os::raw::c_int = 1; -pub const AKEY_STATE_VIRTUAL: ::std::os::raw::c_int = 2; -pub type _bindgen_ty_15 = ::std::os::raw::c_int; -pub const AMETA_NONE: ::std::os::raw::c_uint = 0; -pub const AMETA_ALT_ON: ::std::os::raw::c_uint = 2; -pub const AMETA_ALT_LEFT_ON: ::std::os::raw::c_uint = 16; -pub const AMETA_ALT_RIGHT_ON: ::std::os::raw::c_uint = 32; -pub const AMETA_SHIFT_ON: ::std::os::raw::c_uint = 1; -pub const AMETA_SHIFT_LEFT_ON: ::std::os::raw::c_uint = 64; -pub const AMETA_SHIFT_RIGHT_ON: ::std::os::raw::c_uint = 128; -pub const AMETA_SYM_ON: ::std::os::raw::c_uint = 4; -pub const AMETA_FUNCTION_ON: ::std::os::raw::c_uint = 8; -pub const AMETA_CTRL_ON: ::std::os::raw::c_uint = 4096; -pub const AMETA_CTRL_LEFT_ON: ::std::os::raw::c_uint = 8192; -pub const AMETA_CTRL_RIGHT_ON: ::std::os::raw::c_uint = 16384; -pub const AMETA_META_ON: ::std::os::raw::c_uint = 65536; -pub const AMETA_META_LEFT_ON: ::std::os::raw::c_uint = 131072; -pub const AMETA_META_RIGHT_ON: ::std::os::raw::c_uint = 262144; -pub const AMETA_CAPS_LOCK_ON: ::std::os::raw::c_uint = 1048576; -pub const AMETA_NUM_LOCK_ON: ::std::os::raw::c_uint = 2097152; -pub const AMETA_SCROLL_LOCK_ON: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; +pub const AKEY_STATE_UNKNOWN: _bindgen_ty_17 = -1; +pub const AKEY_STATE_UP: _bindgen_ty_17 = 0; +pub const AKEY_STATE_DOWN: _bindgen_ty_17 = 1; +pub const AKEY_STATE_VIRTUAL: _bindgen_ty_17 = 2; +pub type _bindgen_ty_17 = ::std::os::raw::c_int; +pub const AMETA_NONE: _bindgen_ty_18 = 0; +pub const AMETA_ALT_ON: _bindgen_ty_18 = 2; +pub const AMETA_ALT_LEFT_ON: _bindgen_ty_18 = 16; +pub const AMETA_ALT_RIGHT_ON: _bindgen_ty_18 = 32; +pub const AMETA_SHIFT_ON: _bindgen_ty_18 = 1; +pub const AMETA_SHIFT_LEFT_ON: _bindgen_ty_18 = 64; +pub const AMETA_SHIFT_RIGHT_ON: _bindgen_ty_18 = 128; +pub const AMETA_SYM_ON: _bindgen_ty_18 = 4; +pub const AMETA_FUNCTION_ON: _bindgen_ty_18 = 8; +pub const AMETA_CTRL_ON: _bindgen_ty_18 = 4096; +pub const AMETA_CTRL_LEFT_ON: _bindgen_ty_18 = 8192; +pub const AMETA_CTRL_RIGHT_ON: _bindgen_ty_18 = 16384; +pub const AMETA_META_ON: _bindgen_ty_18 = 65536; +pub const AMETA_META_LEFT_ON: _bindgen_ty_18 = 131072; +pub const AMETA_META_RIGHT_ON: _bindgen_ty_18 = 262144; +pub const AMETA_CAPS_LOCK_ON: _bindgen_ty_18 = 1048576; +pub const AMETA_NUM_LOCK_ON: _bindgen_ty_18 = 2097152; +pub const AMETA_SCROLL_LOCK_ON: _bindgen_ty_18 = 4194304; +pub type _bindgen_ty_18 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AInputEvent { _unused: [u8; 0], } -pub const AINPUT_EVENT_TYPE_KEY: ::std::os::raw::c_uint = 1; -pub const AINPUT_EVENT_TYPE_MOTION: ::std::os::raw::c_uint = 2; -pub const AINPUT_EVENT_TYPE_FOCUS: ::std::os::raw::c_uint = 3; -pub const AINPUT_EVENT_TYPE_CAPTURE: ::std::os::raw::c_uint = 4; -pub const AINPUT_EVENT_TYPE_DRAG: ::std::os::raw::c_uint = 5; -pub const AINPUT_EVENT_TYPE_TOUCH_MODE: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AKEY_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_ACTION_MULTIPLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_FLAG_WOKE_HERE: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: ::std::os::raw::c_uint = 2; -pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: ::std::os::raw::c_uint = 4; -pub const AKEY_EVENT_FLAG_FROM_SYSTEM: ::std::os::raw::c_uint = 8; -pub const AKEY_EVENT_FLAG_EDITOR_ACTION: ::std::os::raw::c_uint = 16; -pub const AKEY_EVENT_FLAG_CANCELED: ::std::os::raw::c_uint = 32; -pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: ::std::os::raw::c_uint = 64; -pub const AKEY_EVENT_FLAG_LONG_PRESS: ::std::os::raw::c_uint = 128; -pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: ::std::os::raw::c_uint = 256; -pub const AKEY_EVENT_FLAG_TRACKING: ::std::os::raw::c_uint = 512; -pub const AKEY_EVENT_FLAG_FALLBACK: ::std::os::raw::c_uint = 1024; +pub const AINPUT_EVENT_TYPE_KEY: _bindgen_ty_19 = 1; +pub const AINPUT_EVENT_TYPE_MOTION: _bindgen_ty_19 = 2; +pub const AINPUT_EVENT_TYPE_FOCUS: _bindgen_ty_19 = 3; +pub const AINPUT_EVENT_TYPE_CAPTURE: _bindgen_ty_19 = 4; +pub const AINPUT_EVENT_TYPE_DRAG: _bindgen_ty_19 = 5; +pub const AINPUT_EVENT_TYPE_TOUCH_MODE: _bindgen_ty_19 = 6; pub type _bindgen_ty_19 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_ACTION_MASK: ::std::os::raw::c_uint = 255; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: ::std::os::raw::c_uint = 65280; -pub const AMOTION_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_ACTION_MOVE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_ACTION_CANCEL: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_ACTION_OUTSIDE: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_ACTION_POINTER_DOWN: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_ACTION_POINTER_UP: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_ACTION_HOVER_MOVE: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_ACTION_SCROLL: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_ACTION_HOVER_ENTER: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_ACTION_HOVER_EXIT: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: ::std::os::raw::c_uint = 12; +pub const AKEY_EVENT_ACTION_DOWN: _bindgen_ty_20 = 0; +pub const AKEY_EVENT_ACTION_UP: _bindgen_ty_20 = 1; +pub const AKEY_EVENT_ACTION_MULTIPLE: _bindgen_ty_20 = 2; pub type _bindgen_ty_20 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: ::std::os::raw::c_uint = 1; +pub const AKEY_EVENT_FLAG_WOKE_HERE: _bindgen_ty_21 = 1; +pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: _bindgen_ty_21 = 2; +pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: _bindgen_ty_21 = 4; +pub const AKEY_EVENT_FLAG_FROM_SYSTEM: _bindgen_ty_21 = 8; +pub const AKEY_EVENT_FLAG_EDITOR_ACTION: _bindgen_ty_21 = 16; +pub const AKEY_EVENT_FLAG_CANCELED: _bindgen_ty_21 = 32; +pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: _bindgen_ty_21 = 64; +pub const AKEY_EVENT_FLAG_LONG_PRESS: _bindgen_ty_21 = 128; +pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: _bindgen_ty_21 = 256; +pub const AKEY_EVENT_FLAG_TRACKING: _bindgen_ty_21 = 512; +pub const AKEY_EVENT_FLAG_FALLBACK: _bindgen_ty_21 = 1024; pub type _bindgen_ty_21 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_EDGE_FLAG_NONE: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_EDGE_FLAG_TOP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_EDGE_FLAG_LEFT: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: ::std::os::raw::c_uint = 8; +pub const AMOTION_EVENT_ACTION_MASK: _bindgen_ty_22 = 255; +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: _bindgen_ty_22 = 65280; +pub const AMOTION_EVENT_ACTION_DOWN: _bindgen_ty_22 = 0; +pub const AMOTION_EVENT_ACTION_UP: _bindgen_ty_22 = 1; +pub const AMOTION_EVENT_ACTION_MOVE: _bindgen_ty_22 = 2; +pub const AMOTION_EVENT_ACTION_CANCEL: _bindgen_ty_22 = 3; +pub const AMOTION_EVENT_ACTION_OUTSIDE: _bindgen_ty_22 = 4; +pub const AMOTION_EVENT_ACTION_POINTER_DOWN: _bindgen_ty_22 = 5; +pub const AMOTION_EVENT_ACTION_POINTER_UP: _bindgen_ty_22 = 6; +pub const AMOTION_EVENT_ACTION_HOVER_MOVE: _bindgen_ty_22 = 7; +pub const AMOTION_EVENT_ACTION_SCROLL: _bindgen_ty_22 = 8; +pub const AMOTION_EVENT_ACTION_HOVER_ENTER: _bindgen_ty_22 = 9; +pub const AMOTION_EVENT_ACTION_HOVER_EXIT: _bindgen_ty_22 = 10; +pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: _bindgen_ty_22 = 11; +pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: _bindgen_ty_22 = 12; pub type _bindgen_ty_22 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_AXIS_X: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_AXIS_Y: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_AXIS_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_AXIS_SIZE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_AXIS_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_AXIS_ORIENTATION: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_AXIS_VSCROLL: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_AXIS_HSCROLL: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_AXIS_Z: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_AXIS_RX: ::std::os::raw::c_uint = 12; -pub const AMOTION_EVENT_AXIS_RY: ::std::os::raw::c_uint = 13; -pub const AMOTION_EVENT_AXIS_RZ: ::std::os::raw::c_uint = 14; -pub const AMOTION_EVENT_AXIS_HAT_X: ::std::os::raw::c_uint = 15; -pub const AMOTION_EVENT_AXIS_HAT_Y: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_AXIS_LTRIGGER: ::std::os::raw::c_uint = 17; -pub const AMOTION_EVENT_AXIS_RTRIGGER: ::std::os::raw::c_uint = 18; -pub const AMOTION_EVENT_AXIS_THROTTLE: ::std::os::raw::c_uint = 19; -pub const AMOTION_EVENT_AXIS_RUDDER: ::std::os::raw::c_uint = 20; -pub const AMOTION_EVENT_AXIS_WHEEL: ::std::os::raw::c_uint = 21; -pub const AMOTION_EVENT_AXIS_GAS: ::std::os::raw::c_uint = 22; -pub const AMOTION_EVENT_AXIS_BRAKE: ::std::os::raw::c_uint = 23; -pub const AMOTION_EVENT_AXIS_DISTANCE: ::std::os::raw::c_uint = 24; -pub const AMOTION_EVENT_AXIS_TILT: ::std::os::raw::c_uint = 25; -pub const AMOTION_EVENT_AXIS_SCROLL: ::std::os::raw::c_uint = 26; -pub const AMOTION_EVENT_AXIS_RELATIVE_X: ::std::os::raw::c_uint = 27; -pub const AMOTION_EVENT_AXIS_RELATIVE_Y: ::std::os::raw::c_uint = 28; -pub const AMOTION_EVENT_AXIS_GENERIC_1: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_AXIS_GENERIC_2: ::std::os::raw::c_uint = 33; -pub const AMOTION_EVENT_AXIS_GENERIC_3: ::std::os::raw::c_uint = 34; -pub const AMOTION_EVENT_AXIS_GENERIC_4: ::std::os::raw::c_uint = 35; -pub const AMOTION_EVENT_AXIS_GENERIC_5: ::std::os::raw::c_uint = 36; -pub const AMOTION_EVENT_AXIS_GENERIC_6: ::std::os::raw::c_uint = 37; -pub const AMOTION_EVENT_AXIS_GENERIC_7: ::std::os::raw::c_uint = 38; -pub const AMOTION_EVENT_AXIS_GENERIC_8: ::std::os::raw::c_uint = 39; -pub const AMOTION_EVENT_AXIS_GENERIC_9: ::std::os::raw::c_uint = 40; -pub const AMOTION_EVENT_AXIS_GENERIC_10: ::std::os::raw::c_uint = 41; -pub const AMOTION_EVENT_AXIS_GENERIC_11: ::std::os::raw::c_uint = 42; -pub const AMOTION_EVENT_AXIS_GENERIC_12: ::std::os::raw::c_uint = 43; -pub const AMOTION_EVENT_AXIS_GENERIC_13: ::std::os::raw::c_uint = 44; -pub const AMOTION_EVENT_AXIS_GENERIC_14: ::std::os::raw::c_uint = 45; -pub const AMOTION_EVENT_AXIS_GENERIC_15: ::std::os::raw::c_uint = 46; -pub const AMOTION_EVENT_AXIS_GENERIC_16: ::std::os::raw::c_uint = 47; +pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: _bindgen_ty_23 = 1; pub type _bindgen_ty_23 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_BUTTON_PRIMARY: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_BUTTON_SECONDARY: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_BUTTON_TERTIARY: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_BUTTON_BACK: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_BUTTON_FORWARD: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: ::std::os::raw::c_uint = 64; +pub const AMOTION_EVENT_EDGE_FLAG_NONE: _bindgen_ty_24 = 0; +pub const AMOTION_EVENT_EDGE_FLAG_TOP: _bindgen_ty_24 = 1; +pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: _bindgen_ty_24 = 2; +pub const AMOTION_EVENT_EDGE_FLAG_LEFT: _bindgen_ty_24 = 4; +pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: _bindgen_ty_24 = 8; pub type _bindgen_ty_24 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_TOOL_TYPE_FINGER: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_TOOL_TYPE_ERASER: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_TOOL_TYPE_PALM: ::std::os::raw::c_uint = 5; +pub const AMOTION_EVENT_AXIS_X: _bindgen_ty_25 = 0; +pub const AMOTION_EVENT_AXIS_Y: _bindgen_ty_25 = 1; +pub const AMOTION_EVENT_AXIS_PRESSURE: _bindgen_ty_25 = 2; +pub const AMOTION_EVENT_AXIS_SIZE: _bindgen_ty_25 = 3; +pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: _bindgen_ty_25 = 4; +pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: _bindgen_ty_25 = 5; +pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: _bindgen_ty_25 = 6; +pub const AMOTION_EVENT_AXIS_TOOL_MINOR: _bindgen_ty_25 = 7; +pub const AMOTION_EVENT_AXIS_ORIENTATION: _bindgen_ty_25 = 8; +pub const AMOTION_EVENT_AXIS_VSCROLL: _bindgen_ty_25 = 9; +pub const AMOTION_EVENT_AXIS_HSCROLL: _bindgen_ty_25 = 10; +pub const AMOTION_EVENT_AXIS_Z: _bindgen_ty_25 = 11; +pub const AMOTION_EVENT_AXIS_RX: _bindgen_ty_25 = 12; +pub const AMOTION_EVENT_AXIS_RY: _bindgen_ty_25 = 13; +pub const AMOTION_EVENT_AXIS_RZ: _bindgen_ty_25 = 14; +pub const AMOTION_EVENT_AXIS_HAT_X: _bindgen_ty_25 = 15; +pub const AMOTION_EVENT_AXIS_HAT_Y: _bindgen_ty_25 = 16; +pub const AMOTION_EVENT_AXIS_LTRIGGER: _bindgen_ty_25 = 17; +pub const AMOTION_EVENT_AXIS_RTRIGGER: _bindgen_ty_25 = 18; +pub const AMOTION_EVENT_AXIS_THROTTLE: _bindgen_ty_25 = 19; +pub const AMOTION_EVENT_AXIS_RUDDER: _bindgen_ty_25 = 20; +pub const AMOTION_EVENT_AXIS_WHEEL: _bindgen_ty_25 = 21; +pub const AMOTION_EVENT_AXIS_GAS: _bindgen_ty_25 = 22; +pub const AMOTION_EVENT_AXIS_BRAKE: _bindgen_ty_25 = 23; +pub const AMOTION_EVENT_AXIS_DISTANCE: _bindgen_ty_25 = 24; +pub const AMOTION_EVENT_AXIS_TILT: _bindgen_ty_25 = 25; +pub const AMOTION_EVENT_AXIS_SCROLL: _bindgen_ty_25 = 26; +pub const AMOTION_EVENT_AXIS_RELATIVE_X: _bindgen_ty_25 = 27; +pub const AMOTION_EVENT_AXIS_RELATIVE_Y: _bindgen_ty_25 = 28; +pub const AMOTION_EVENT_AXIS_GENERIC_1: _bindgen_ty_25 = 32; +pub const AMOTION_EVENT_AXIS_GENERIC_2: _bindgen_ty_25 = 33; +pub const AMOTION_EVENT_AXIS_GENERIC_3: _bindgen_ty_25 = 34; +pub const AMOTION_EVENT_AXIS_GENERIC_4: _bindgen_ty_25 = 35; +pub const AMOTION_EVENT_AXIS_GENERIC_5: _bindgen_ty_25 = 36; +pub const AMOTION_EVENT_AXIS_GENERIC_6: _bindgen_ty_25 = 37; +pub const AMOTION_EVENT_AXIS_GENERIC_7: _bindgen_ty_25 = 38; +pub const AMOTION_EVENT_AXIS_GENERIC_8: _bindgen_ty_25 = 39; +pub const AMOTION_EVENT_AXIS_GENERIC_9: _bindgen_ty_25 = 40; +pub const AMOTION_EVENT_AXIS_GENERIC_10: _bindgen_ty_25 = 41; +pub const AMOTION_EVENT_AXIS_GENERIC_11: _bindgen_ty_25 = 42; +pub const AMOTION_EVENT_AXIS_GENERIC_12: _bindgen_ty_25 = 43; +pub const AMOTION_EVENT_AXIS_GENERIC_13: _bindgen_ty_25 = 44; +pub const AMOTION_EVENT_AXIS_GENERIC_14: _bindgen_ty_25 = 45; +pub const AMOTION_EVENT_AXIS_GENERIC_15: _bindgen_ty_25 = 46; +pub const AMOTION_EVENT_AXIS_GENERIC_16: _bindgen_ty_25 = 47; pub type _bindgen_ty_25 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_BUTTON_PRIMARY: _bindgen_ty_26 = 1; +pub const AMOTION_EVENT_BUTTON_SECONDARY: _bindgen_ty_26 = 2; +pub const AMOTION_EVENT_BUTTON_TERTIARY: _bindgen_ty_26 = 4; +pub const AMOTION_EVENT_BUTTON_BACK: _bindgen_ty_26 = 8; +pub const AMOTION_EVENT_BUTTON_FORWARD: _bindgen_ty_26 = 16; +pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: _bindgen_ty_26 = 32; +pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: _bindgen_ty_26 = 64; +pub type _bindgen_ty_26 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: _bindgen_ty_27 = 0; +pub const AMOTION_EVENT_TOOL_TYPE_FINGER: _bindgen_ty_27 = 1; +pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: _bindgen_ty_27 = 2; +pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: _bindgen_ty_27 = 3; +pub const AMOTION_EVENT_TOOL_TYPE_ERASER: _bindgen_ty_27 = 4; +pub const AMOTION_EVENT_TOOL_TYPE_PALM: _bindgen_ty_27 = 5; +pub type _bindgen_ty_27 = ::std::os::raw::c_uint; impl AMotionClassification { pub const AMOTION_EVENT_CLASSIFICATION_NONE: AMotionClassification = AMotionClassification(0); } @@ -4284,46 +4196,46 @@ impl AMotionClassification { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AMotionClassification(pub u32); -pub const AINPUT_SOURCE_CLASS_MASK: ::std::os::raw::c_uint = 255; -pub const AINPUT_SOURCE_CLASS_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_CLASS_BUTTON: ::std::os::raw::c_uint = 1; -pub const AINPUT_SOURCE_CLASS_POINTER: ::std::os::raw::c_uint = 2; -pub const AINPUT_SOURCE_CLASS_NAVIGATION: ::std::os::raw::c_uint = 4; -pub const AINPUT_SOURCE_CLASS_POSITION: ::std::os::raw::c_uint = 8; -pub const AINPUT_SOURCE_CLASS_JOYSTICK: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_26 = ::std::os::raw::c_uint; -pub const AINPUT_SOURCE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_KEYBOARD: ::std::os::raw::c_uint = 257; -pub const AINPUT_SOURCE_DPAD: ::std::os::raw::c_uint = 513; -pub const AINPUT_SOURCE_GAMEPAD: ::std::os::raw::c_uint = 1025; -pub const AINPUT_SOURCE_TOUCHSCREEN: ::std::os::raw::c_uint = 4098; -pub const AINPUT_SOURCE_MOUSE: ::std::os::raw::c_uint = 8194; -pub const AINPUT_SOURCE_STYLUS: ::std::os::raw::c_uint = 16386; -pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: ::std::os::raw::c_uint = 49154; -pub const AINPUT_SOURCE_TRACKBALL: ::std::os::raw::c_uint = 65540; -pub const AINPUT_SOURCE_MOUSE_RELATIVE: ::std::os::raw::c_uint = 131076; -pub const AINPUT_SOURCE_TOUCHPAD: ::std::os::raw::c_uint = 1048584; -pub const AINPUT_SOURCE_TOUCH_NAVIGATION: ::std::os::raw::c_uint = 2097152; -pub const AINPUT_SOURCE_JOYSTICK: ::std::os::raw::c_uint = 16777232; -pub const AINPUT_SOURCE_HDMI: ::std::os::raw::c_uint = 33554433; -pub const AINPUT_SOURCE_SENSOR: ::std::os::raw::c_uint = 67108864; -pub const AINPUT_SOURCE_ROTARY_ENCODER: ::std::os::raw::c_uint = 4194304; -pub const AINPUT_SOURCE_ANY: ::std::os::raw::c_uint = 4294967040; -pub type _bindgen_ty_27 = ::std::os::raw::c_uint; -pub const AINPUT_KEYBOARD_TYPE_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: ::std::os::raw::c_uint = 1; -pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: ::std::os::raw::c_uint = 2; +pub const AINPUT_SOURCE_CLASS_MASK: _bindgen_ty_28 = 255; +pub const AINPUT_SOURCE_CLASS_NONE: _bindgen_ty_28 = 0; +pub const AINPUT_SOURCE_CLASS_BUTTON: _bindgen_ty_28 = 1; +pub const AINPUT_SOURCE_CLASS_POINTER: _bindgen_ty_28 = 2; +pub const AINPUT_SOURCE_CLASS_NAVIGATION: _bindgen_ty_28 = 4; +pub const AINPUT_SOURCE_CLASS_POSITION: _bindgen_ty_28 = 8; +pub const AINPUT_SOURCE_CLASS_JOYSTICK: _bindgen_ty_28 = 16; pub type _bindgen_ty_28 = ::std::os::raw::c_uint; -pub const AINPUT_MOTION_RANGE_X: ::std::os::raw::c_uint = 0; -pub const AINPUT_MOTION_RANGE_Y: ::std::os::raw::c_uint = 1; -pub const AINPUT_MOTION_RANGE_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AINPUT_MOTION_RANGE_SIZE: ::std::os::raw::c_uint = 3; -pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AINPUT_MOTION_RANGE_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AINPUT_MOTION_RANGE_ORIENTATION: ::std::os::raw::c_uint = 8; +pub const AINPUT_SOURCE_UNKNOWN: _bindgen_ty_29 = 0; +pub const AINPUT_SOURCE_KEYBOARD: _bindgen_ty_29 = 257; +pub const AINPUT_SOURCE_DPAD: _bindgen_ty_29 = 513; +pub const AINPUT_SOURCE_GAMEPAD: _bindgen_ty_29 = 1025; +pub const AINPUT_SOURCE_TOUCHSCREEN: _bindgen_ty_29 = 4098; +pub const AINPUT_SOURCE_MOUSE: _bindgen_ty_29 = 8194; +pub const AINPUT_SOURCE_STYLUS: _bindgen_ty_29 = 16386; +pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: _bindgen_ty_29 = 49154; +pub const AINPUT_SOURCE_TRACKBALL: _bindgen_ty_29 = 65540; +pub const AINPUT_SOURCE_MOUSE_RELATIVE: _bindgen_ty_29 = 131076; +pub const AINPUT_SOURCE_TOUCHPAD: _bindgen_ty_29 = 1048584; +pub const AINPUT_SOURCE_TOUCH_NAVIGATION: _bindgen_ty_29 = 2097152; +pub const AINPUT_SOURCE_JOYSTICK: _bindgen_ty_29 = 16777232; +pub const AINPUT_SOURCE_HDMI: _bindgen_ty_29 = 33554433; +pub const AINPUT_SOURCE_SENSOR: _bindgen_ty_29 = 67108864; +pub const AINPUT_SOURCE_ROTARY_ENCODER: _bindgen_ty_29 = 4194304; +pub const AINPUT_SOURCE_ANY: _bindgen_ty_29 = 4294967040; pub type _bindgen_ty_29 = ::std::os::raw::c_uint; +pub const AINPUT_KEYBOARD_TYPE_NONE: _bindgen_ty_30 = 0; +pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: _bindgen_ty_30 = 1; +pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: _bindgen_ty_30 = 2; +pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const AINPUT_MOTION_RANGE_X: _bindgen_ty_31 = 0; +pub const AINPUT_MOTION_RANGE_Y: _bindgen_ty_31 = 1; +pub const AINPUT_MOTION_RANGE_PRESSURE: _bindgen_ty_31 = 2; +pub const AINPUT_MOTION_RANGE_SIZE: _bindgen_ty_31 = 3; +pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: _bindgen_ty_31 = 4; +pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: _bindgen_ty_31 = 5; +pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: _bindgen_ty_31 = 6; +pub const AINPUT_MOTION_RANGE_TOOL_MINOR: _bindgen_ty_31 = 7; +pub const AINPUT_MOTION_RANGE_ORIENTATION: _bindgen_ty_31 = 8; +pub type _bindgen_ty_31 = ::std::os::raw::c_uint; extern "C" { pub fn AInputEvent_getType(event: *const AInputEvent) -> i32; } @@ -4663,7 +4575,7 @@ extern "C" { tag: *const ::std::os::raw::c_char, fmt: *const ::std::os::raw::c_char, ... - ); + ) -> !; } impl log_id { pub const LOG_ID_MIN: log_id = log_id(0); @@ -4732,6 +4644,9 @@ pub struct __android_log_message { } #[test] fn bindgen_test_layout___android_log_message() { + const UNINIT: ::std::mem::MaybeUninit<__android_log_message> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__android_log_message>(), 28usize, @@ -4743,9 +4658,7 @@ fn bindgen_test_layout___android_log_message() { concat!("Alignment of ", stringify!(__android_log_message)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__android_log_message>())).struct_size as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).struct_size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4755,7 +4668,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).buffer_id as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).buffer_id) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -4765,7 +4678,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4775,7 +4688,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4785,7 +4698,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).file as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4795,7 +4708,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).line as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -4805,7 +4718,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).message as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -4838,7 +4751,7 @@ extern "C" { pub fn __android_log_call_aborter(abort_message: *const ::std::os::raw::c_char); } extern "C" { - pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char); + pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char) -> !; } extern "C" { pub fn __android_log_is_loggable( @@ -4875,6 +4788,8 @@ pub struct flock { } #[test] fn bindgen_test_layout_flock() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -4886,7 +4801,7 @@ fn bindgen_test_layout_flock() { concat!("Alignment of ", stringify!(flock)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4896,7 +4811,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -4906,7 +4821,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -4916,7 +4831,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4926,7 +4841,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4947,6 +4862,8 @@ pub struct flock64 { } #[test] fn bindgen_test_layout_flock64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -4958,7 +4875,7 @@ fn bindgen_test_layout_flock64() { concat!("Alignment of ", stringify!(flock64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4968,7 +4885,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -4978,7 +4895,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -4988,7 +4905,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4998,7 +4915,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5016,6 +4933,8 @@ pub struct f_owner_ex { } #[test] fn bindgen_test_layout_f_owner_ex() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5027,7 +4946,7 @@ fn bindgen_test_layout_f_owner_ex() { concat!("Alignment of ", stringify!(f_owner_ex)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5037,7 +4956,7 @@ fn bindgen_test_layout_f_owner_ex() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5055,6 +4974,8 @@ pub struct iovec { } #[test] fn bindgen_test_layout_iovec() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5066,7 +4987,7 @@ fn bindgen_test_layout_iovec() { concat!("Alignment of ", stringify!(iovec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_base) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5076,7 +4997,7 @@ fn bindgen_test_layout_iovec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_len) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5087,10 +5008,10 @@ fn bindgen_test_layout_iovec() { ); } pub type sa_family_t = ::std::os::raw::c_ushort; -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const SHUT_RD: _bindgen_ty_32 = 0; +pub const SHUT_WR: _bindgen_ty_32 = 1; +pub const SHUT_RDWR: _bindgen_ty_32 = 2; +pub type _bindgen_ty_32 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr { @@ -5099,6 +5020,8 @@ pub struct sockaddr { } #[test] fn bindgen_test_layout_sockaddr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5110,7 +5033,7 @@ fn bindgen_test_layout_sockaddr() { concat!("Alignment of ", stringify!(sockaddr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5120,7 +5043,7 @@ fn bindgen_test_layout_sockaddr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5149,6 +5072,9 @@ pub struct sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sockaddr_storage__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::(), 128usize, @@ -5166,10 +5092,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ss_family - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5179,10 +5102,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5194,6 +5114,9 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -5205,9 +5128,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { concat!("Alignment of ", stringify!(sockaddr_storage__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__align as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5238,6 +5159,8 @@ pub struct linger { } #[test] fn bindgen_test_layout_linger() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5249,7 +5172,7 @@ fn bindgen_test_layout_linger() { concat!("Alignment of ", stringify!(linger)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_onoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_onoff) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5259,7 +5182,7 @@ fn bindgen_test_layout_linger() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_linger as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_linger) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5282,6 +5205,8 @@ pub struct msghdr { } #[test] fn bindgen_test_layout_msghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -5293,7 +5218,7 @@ fn bindgen_test_layout_msghdr() { concat!("Alignment of ", stringify!(msghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5303,7 +5228,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_namelen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_namelen) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5313,7 +5238,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iov as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iov) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5323,7 +5248,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iovlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iovlen) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5333,7 +5258,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_control as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_control) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5343,7 +5268,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_controllen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_controllen) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5353,7 +5278,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_flags) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5371,6 +5296,8 @@ pub struct mmsghdr { } #[test] fn bindgen_test_layout_mmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5382,7 +5309,7 @@ fn bindgen_test_layout_mmsghdr() { concat!("Alignment of ", stringify!(mmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5392,7 +5319,7 @@ fn bindgen_test_layout_mmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_len) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -5411,6 +5338,8 @@ pub struct cmsghdr { } #[test] fn bindgen_test_layout_cmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5422,7 +5351,7 @@ fn bindgen_test_layout_cmsghdr() { concat!("Alignment of ", stringify!(cmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5432,7 +5361,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_level as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_level) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5442,7 +5371,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_type) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5464,6 +5393,8 @@ pub struct ucred { } #[test] fn bindgen_test_layout_ucred() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5475,7 +5406,7 @@ fn bindgen_test_layout_ucred() { concat!("Alignment of ", stringify!(ucred)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5485,7 +5416,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5495,7 +5426,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gid) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5671,6 +5602,8 @@ pub struct hostent { } #[test] fn bindgen_test_layout_hostent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -5682,7 +5615,7 @@ fn bindgen_test_layout_hostent() { concat!("Alignment of ", stringify!(hostent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5692,7 +5625,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5702,7 +5635,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addrtype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5712,7 +5645,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_length) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5722,7 +5655,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addr_list as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addr_list) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5742,6 +5675,8 @@ pub struct netent { } #[test] fn bindgen_test_layout_netent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5753,7 +5688,7 @@ fn bindgen_test_layout_netent() { concat!("Alignment of ", stringify!(netent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5763,7 +5698,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5773,7 +5708,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_addrtype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5783,7 +5718,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_net as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_net) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5803,6 +5738,8 @@ pub struct servent { } #[test] fn bindgen_test_layout_servent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5814,7 +5751,7 @@ fn bindgen_test_layout_servent() { concat!("Alignment of ", stringify!(servent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5824,7 +5761,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5834,7 +5771,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_port as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_port) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5844,7 +5781,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_proto) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5863,6 +5800,8 @@ pub struct protoent { } #[test] fn bindgen_test_layout_protoent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5874,7 +5813,7 @@ fn bindgen_test_layout_protoent() { concat!("Alignment of ", stringify!(protoent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5884,7 +5823,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_aliases) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5894,7 +5833,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_proto) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5918,6 +5857,8 @@ pub struct addrinfo { } #[test] fn bindgen_test_layout_addrinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5929,7 +5870,7 @@ fn bindgen_test_layout_addrinfo() { concat!("Alignment of ", stringify!(addrinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5939,7 +5880,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_family) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5949,7 +5890,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_socktype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_socktype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5959,7 +5900,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_protocol as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_protocol) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5969,7 +5910,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addrlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addrlen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5979,7 +5920,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_canonname as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_canonname) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5989,7 +5930,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5999,7 +5940,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_next as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_next) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6614,6 +6555,8 @@ pub struct mallinfo { } #[test] fn bindgen_test_layout_mallinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -6625,7 +6568,7 @@ fn bindgen_test_layout_mallinfo() { concat!("Alignment of ", stringify!(mallinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6635,7 +6578,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6645,7 +6588,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6655,7 +6598,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6665,7 +6608,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6675,7 +6618,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -6685,7 +6628,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6695,7 +6638,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6705,7 +6648,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6715,7 +6658,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -6744,6 +6687,8 @@ pub struct mallinfo2 { } #[test] fn bindgen_test_layout_mallinfo2() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -6755,7 +6700,7 @@ fn bindgen_test_layout_mallinfo2() { concat!("Alignment of ", stringify!(mallinfo2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6765,7 +6710,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -6775,7 +6720,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6785,7 +6730,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6795,7 +6740,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6805,7 +6750,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -6815,7 +6760,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6825,7 +6770,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -6835,7 +6780,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6845,7 +6790,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -6923,13 +6868,13 @@ pub struct __locale_t { } pub type locale_t = *mut __locale_t; extern "C" { - pub fn abort(); + pub fn abort() -> !; } extern "C" { - pub fn exit(__status: ::std::os::raw::c_int); + pub fn exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { - pub fn _Exit(__status: ::std::os::raw::c_int); + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn atexit(__fn: ::std::option::Option) -> ::std::os::raw::c_int; @@ -6940,7 +6885,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub fn quick_exit(__status: ::std::os::raw::c_int); + pub fn quick_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; @@ -7191,6 +7136,8 @@ pub struct div_t { } #[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, @@ -7202,7 +7149,7 @@ fn bindgen_test_layout_div_t() { concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7212,7 +7159,7 @@ fn bindgen_test_layout_div_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7233,6 +7180,8 @@ pub struct ldiv_t { } #[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::(), 8usize, @@ -7244,7 +7193,7 @@ fn bindgen_test_layout_ldiv_t() { concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7254,7 +7203,7 @@ fn bindgen_test_layout_ldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7278,6 +7227,8 @@ pub struct lldiv_t { } #[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, @@ -7289,7 +7240,7 @@ fn bindgen_test_layout_lldiv_t() { concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7299,7 +7250,7 @@ fn bindgen_test_layout_lldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7567,6 +7518,8 @@ pub struct ANativeWindow_Buffer { } #[test] fn bindgen_test_layout_ANativeWindow_Buffer() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 44usize, @@ -7578,7 +7531,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { concat!("Alignment of ", stringify!(ANativeWindow_Buffer)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7588,7 +7541,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7598,7 +7551,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7608,7 +7561,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7618,7 +7571,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bits) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7628,7 +7581,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -7735,6 +7688,8 @@ pub struct ANativeActivity { } #[test] fn bindgen_test_layout_ANativeActivity() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -7746,7 +7701,7 @@ fn bindgen_test_layout_ANativeActivity() { concat!("Alignment of ", stringify!(ANativeActivity)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).callbacks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).callbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7756,7 +7711,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vm) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7766,7 +7721,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).env) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7776,7 +7731,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).clazz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).clazz) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7786,9 +7741,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).internalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).internalDataPath) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7798,9 +7751,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).externalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).externalDataPath) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -7810,7 +7761,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sdkVersion as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sdkVersion) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7820,7 +7771,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).instance as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).instance) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -7830,7 +7781,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).assetManager as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).assetManager) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -7840,7 +7791,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obbPath as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obbPath) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -7894,6 +7845,9 @@ pub struct ANativeActivityCallbacks { } #[test] fn bindgen_test_layout_ANativeActivityCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -7905,9 +7859,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { concat!("Alignment of ", stringify!(ANativeActivityCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onStart as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onStart) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7917,9 +7869,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onResume as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onResume) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7929,10 +7879,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onSaveInstanceState as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onSaveInstanceState) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7942,9 +7889,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onPause as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPause) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7954,7 +7899,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).onStop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).onStop) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7964,9 +7909,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDestroy as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDestroy) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -7976,10 +7919,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onWindowFocusChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onWindowFocusChanged) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7989,10 +7929,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowCreated) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -8002,10 +7939,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowResized as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowResized) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -8015,10 +7949,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowRedrawNeeded - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowRedrawNeeded) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -8028,10 +7959,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowDestroyed) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -8041,10 +7969,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueCreated) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -8054,10 +7979,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueDestroyed) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -8067,10 +7989,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onContentRectChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onContentRectChanged) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -8080,10 +7999,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onConfigurationChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onConfigurationChanged) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -8093,9 +8009,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onLowMemory as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onLowMemory) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -8132,15 +8046,15 @@ extern "C" { removeFlags: u32, ); } -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_31 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: _bindgen_ty_33 = 1; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: _bindgen_ty_33 = 2; +pub type _bindgen_ty_33 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_showSoftInput(activity: *mut ANativeActivity, flags: u32); } -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_32 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: _bindgen_ty_34 = 1; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: _bindgen_ty_34 = 2; +pub type _bindgen_ty_34 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_hideSoftInput(activity: *mut ANativeActivity, flags: u32); } @@ -8651,10 +8565,10 @@ impl ResultCode { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ResultCode(pub ::std::os::raw::c_uint); -pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: ::std::os::raw::c_uint = 128; -pub type _bindgen_ty_33 = ::std::os::raw::c_uint; -pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: ::std::os::raw::c_uint = 32; -pub type _bindgen_ty_34 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: _bindgen_ty_35 = 128; +pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: _bindgen_ty_36 = 32; +pub type _bindgen_ty_36 = ::std::os::raw::c_uint; impl DurationCode { pub const ANEURALNETWORKS_DURATION_ON_HARDWARE: DurationCode = DurationCode(0); } @@ -8714,6 +8628,9 @@ pub struct ANeuralNetworksSymmPerChannelQuantParams { } #[test] fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -8731,10 +8648,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).channelDim - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).channelDim) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8744,10 +8658,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scaleCount - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scaleCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8757,10 +8668,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scales as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scales) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8786,6 +8694,9 @@ pub struct ANeuralNetworksOperandType { } #[test] fn bindgen_test_layout_ANeuralNetworksOperandType() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -8797,9 +8708,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { concat!("Alignment of ", stringify!(ANeuralNetworksOperandType)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8809,10 +8718,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensionCount as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensionCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8822,9 +8728,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensions as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensions) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8834,9 +8738,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scale as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scale) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -8846,9 +8748,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).zeroPoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).zeroPoint) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -9299,8 +9199,8 @@ extern "C" { pub struct AObbInfo { _unused: [u8; 0], } -pub const AOBBINFO_OVERLAY: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const AOBBINFO_OVERLAY: _bindgen_ty_37 = 1; +pub type _bindgen_ty_37 = ::std::os::raw::c_uint; extern "C" { pub fn AObbScanner_getObbInfo(filename: *const ::std::os::raw::c_char) -> *mut AObbInfo; } @@ -9316,13 +9216,13 @@ extern "C" { extern "C" { pub fn AObbInfo_getFlags(obbInfo: *mut AObbInfo) -> i32; } -pub const PERMISSION_MANAGER_PERMISSION_GRANTED: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_PERMISSION_DENIED: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_36 = ::std::os::raw::c_int; -pub const PERMISSION_MANAGER_STATUS_OK: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: ::std::os::raw::c_int = -1; -pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: ::std::os::raw::c_int = -2; -pub type _bindgen_ty_37 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_PERMISSION_GRANTED: _bindgen_ty_38 = 0; +pub const PERMISSION_MANAGER_PERMISSION_DENIED: _bindgen_ty_38 = -1; +pub type _bindgen_ty_38 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_STATUS_OK: _bindgen_ty_39 = 0; +pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: _bindgen_ty_39 = -1; +pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: _bindgen_ty_39 = -2; +pub type _bindgen_ty_39 = ::std::os::raw::c_int; extern "C" { pub fn APermissionManager_checkPermission( permission: *const ::std::os::raw::c_char, @@ -9701,70 +9601,70 @@ extern "C" { extern "C" { pub fn yn(__n: ::std::os::raw::c_int, __x: f64) -> f64; } -pub const ASENSOR_TYPE_INVALID: ::std::os::raw::c_int = -1; -pub const ASENSOR_TYPE_ACCELEROMETER: ::std::os::raw::c_int = 1; -pub const ASENSOR_TYPE_MAGNETIC_FIELD: ::std::os::raw::c_int = 2; -pub const ASENSOR_TYPE_GYROSCOPE: ::std::os::raw::c_int = 4; -pub const ASENSOR_TYPE_LIGHT: ::std::os::raw::c_int = 5; -pub const ASENSOR_TYPE_PRESSURE: ::std::os::raw::c_int = 6; -pub const ASENSOR_TYPE_PROXIMITY: ::std::os::raw::c_int = 8; -pub const ASENSOR_TYPE_GRAVITY: ::std::os::raw::c_int = 9; -pub const ASENSOR_TYPE_LINEAR_ACCELERATION: ::std::os::raw::c_int = 10; -pub const ASENSOR_TYPE_ROTATION_VECTOR: ::std::os::raw::c_int = 11; -pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: ::std::os::raw::c_int = 12; -pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: ::std::os::raw::c_int = 13; -pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: ::std::os::raw::c_int = 14; -pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: ::std::os::raw::c_int = 15; -pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: ::std::os::raw::c_int = 16; -pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: ::std::os::raw::c_int = 17; -pub const ASENSOR_TYPE_STEP_DETECTOR: ::std::os::raw::c_int = 18; -pub const ASENSOR_TYPE_STEP_COUNTER: ::std::os::raw::c_int = 19; -pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: ::std::os::raw::c_int = 20; -pub const ASENSOR_TYPE_HEART_RATE: ::std::os::raw::c_int = 21; -pub const ASENSOR_TYPE_POSE_6DOF: ::std::os::raw::c_int = 28; -pub const ASENSOR_TYPE_STATIONARY_DETECT: ::std::os::raw::c_int = 29; -pub const ASENSOR_TYPE_MOTION_DETECT: ::std::os::raw::c_int = 30; -pub const ASENSOR_TYPE_HEART_BEAT: ::std::os::raw::c_int = 31; -pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: ::std::os::raw::c_int = 32; -pub const ASENSOR_TYPE_ADDITIONAL_INFO: ::std::os::raw::c_int = 33; -pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: ::std::os::raw::c_int = 34; -pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: ::std::os::raw::c_int = 35; -pub const ASENSOR_TYPE_HINGE_ANGLE: ::std::os::raw::c_int = 36; -pub const ASENSOR_TYPE_HEAD_TRACKER: ::std::os::raw::c_int = 37; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: ::std::os::raw::c_int = 38; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: ::std::os::raw::c_int = 39; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 40; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 41; -pub const ASENSOR_TYPE_HEADING: ::std::os::raw::c_int = 42; -pub type _bindgen_ty_38 = ::std::os::raw::c_int; -pub const ASENSOR_STATUS_NO_CONTACT: ::std::os::raw::c_int = -1; -pub const ASENSOR_STATUS_UNRELIABLE: ::std::os::raw::c_int = 0; -pub const ASENSOR_STATUS_ACCURACY_LOW: ::std::os::raw::c_int = 1; -pub const ASENSOR_STATUS_ACCURACY_MEDIUM: ::std::os::raw::c_int = 2; -pub const ASENSOR_STATUS_ACCURACY_HIGH: ::std::os::raw::c_int = 3; -pub type _bindgen_ty_39 = ::std::os::raw::c_int; -pub const AREPORTING_MODE_INVALID: ::std::os::raw::c_int = -1; -pub const AREPORTING_MODE_CONTINUOUS: ::std::os::raw::c_int = 0; -pub const AREPORTING_MODE_ON_CHANGE: ::std::os::raw::c_int = 1; -pub const AREPORTING_MODE_ONE_SHOT: ::std::os::raw::c_int = 2; -pub const AREPORTING_MODE_SPECIAL_TRIGGER: ::std::os::raw::c_int = 3; +pub const ASENSOR_TYPE_INVALID: _bindgen_ty_40 = -1; +pub const ASENSOR_TYPE_ACCELEROMETER: _bindgen_ty_40 = 1; +pub const ASENSOR_TYPE_MAGNETIC_FIELD: _bindgen_ty_40 = 2; +pub const ASENSOR_TYPE_GYROSCOPE: _bindgen_ty_40 = 4; +pub const ASENSOR_TYPE_LIGHT: _bindgen_ty_40 = 5; +pub const ASENSOR_TYPE_PRESSURE: _bindgen_ty_40 = 6; +pub const ASENSOR_TYPE_PROXIMITY: _bindgen_ty_40 = 8; +pub const ASENSOR_TYPE_GRAVITY: _bindgen_ty_40 = 9; +pub const ASENSOR_TYPE_LINEAR_ACCELERATION: _bindgen_ty_40 = 10; +pub const ASENSOR_TYPE_ROTATION_VECTOR: _bindgen_ty_40 = 11; +pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: _bindgen_ty_40 = 12; +pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: _bindgen_ty_40 = 13; +pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: _bindgen_ty_40 = 14; +pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: _bindgen_ty_40 = 15; +pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: _bindgen_ty_40 = 16; +pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: _bindgen_ty_40 = 17; +pub const ASENSOR_TYPE_STEP_DETECTOR: _bindgen_ty_40 = 18; +pub const ASENSOR_TYPE_STEP_COUNTER: _bindgen_ty_40 = 19; +pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: _bindgen_ty_40 = 20; +pub const ASENSOR_TYPE_HEART_RATE: _bindgen_ty_40 = 21; +pub const ASENSOR_TYPE_POSE_6DOF: _bindgen_ty_40 = 28; +pub const ASENSOR_TYPE_STATIONARY_DETECT: _bindgen_ty_40 = 29; +pub const ASENSOR_TYPE_MOTION_DETECT: _bindgen_ty_40 = 30; +pub const ASENSOR_TYPE_HEART_BEAT: _bindgen_ty_40 = 31; +pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: _bindgen_ty_40 = 32; +pub const ASENSOR_TYPE_ADDITIONAL_INFO: _bindgen_ty_40 = 33; +pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: _bindgen_ty_40 = 34; +pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: _bindgen_ty_40 = 35; +pub const ASENSOR_TYPE_HINGE_ANGLE: _bindgen_ty_40 = 36; +pub const ASENSOR_TYPE_HEAD_TRACKER: _bindgen_ty_40 = 37; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: _bindgen_ty_40 = 38; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: _bindgen_ty_40 = 39; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 40; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 41; +pub const ASENSOR_TYPE_HEADING: _bindgen_ty_40 = 42; pub type _bindgen_ty_40 = ::std::os::raw::c_int; -pub const ASENSOR_DIRECT_RATE_STOP: ::std::os::raw::c_uint = 0; -pub const ASENSOR_DIRECT_RATE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_RATE_FAST: ::std::os::raw::c_uint = 2; -pub const ASENSOR_DIRECT_RATE_VERY_FAST: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_41 = ::std::os::raw::c_uint; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_42 = ::std::os::raw::c_uint; -pub const ASENSOR_ADDITIONAL_INFO_BEGIN: ::std::os::raw::c_uint = 0; -pub const ASENSOR_ADDITIONAL_INFO_END: ::std::os::raw::c_uint = 1; -pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: ::std::os::raw::c_uint = 65536; -pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: ::std::os::raw::c_uint = 65537; -pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: ::std::os::raw::c_uint = 65538; -pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: ::std::os::raw::c_uint = 65539; -pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: ::std::os::raw::c_uint = 65540; +pub const ASENSOR_STATUS_NO_CONTACT: _bindgen_ty_41 = -1; +pub const ASENSOR_STATUS_UNRELIABLE: _bindgen_ty_41 = 0; +pub const ASENSOR_STATUS_ACCURACY_LOW: _bindgen_ty_41 = 1; +pub const ASENSOR_STATUS_ACCURACY_MEDIUM: _bindgen_ty_41 = 2; +pub const ASENSOR_STATUS_ACCURACY_HIGH: _bindgen_ty_41 = 3; +pub type _bindgen_ty_41 = ::std::os::raw::c_int; +pub const AREPORTING_MODE_INVALID: _bindgen_ty_42 = -1; +pub const AREPORTING_MODE_CONTINUOUS: _bindgen_ty_42 = 0; +pub const AREPORTING_MODE_ON_CHANGE: _bindgen_ty_42 = 1; +pub const AREPORTING_MODE_ONE_SHOT: _bindgen_ty_42 = 2; +pub const AREPORTING_MODE_SPECIAL_TRIGGER: _bindgen_ty_42 = 3; +pub type _bindgen_ty_42 = ::std::os::raw::c_int; +pub const ASENSOR_DIRECT_RATE_STOP: _bindgen_ty_43 = 0; +pub const ASENSOR_DIRECT_RATE_NORMAL: _bindgen_ty_43 = 1; +pub const ASENSOR_DIRECT_RATE_FAST: _bindgen_ty_43 = 2; +pub const ASENSOR_DIRECT_RATE_VERY_FAST: _bindgen_ty_43 = 3; pub type _bindgen_ty_43 = ::std::os::raw::c_uint; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: _bindgen_ty_44 = 1; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: _bindgen_ty_44 = 2; +pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const ASENSOR_ADDITIONAL_INFO_BEGIN: _bindgen_ty_45 = 0; +pub const ASENSOR_ADDITIONAL_INFO_END: _bindgen_ty_45 = 1; +pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: _bindgen_ty_45 = 65536; +pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: _bindgen_ty_45 = 65537; +pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: _bindgen_ty_45 = 65538; +pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: _bindgen_ty_45 = 65539; +pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: _bindgen_ty_45 = 65540; +pub type _bindgen_ty_45 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct ASensorVector { @@ -9788,6 +9688,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -9805,10 +9708,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9818,10 +9718,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -9831,10 +9728,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -9853,6 +9747,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -9870,10 +9767,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).azimuth - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).azimuth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9883,10 +9777,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pitch as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pitch) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -9896,10 +9787,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).roll as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).roll) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -9911,6 +9799,9 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -9922,7 +9813,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorVector__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9934,6 +9825,8 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorVector() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -9945,7 +9838,7 @@ fn bindgen_test_layout_ASensorVector() { concat!("Alignment of ", stringify!(ASensorVector)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -9955,7 +9848,7 @@ fn bindgen_test_layout_ASensorVector() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 13usize, concat!( "Offset of field: ", @@ -9973,6 +9866,8 @@ pub struct AMetaDataEvent { } #[test] fn bindgen_test_layout_AMetaDataEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -9984,7 +9879,7 @@ fn bindgen_test_layout_AMetaDataEvent() { concat!("Alignment of ", stringify!(AMetaDataEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).what as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).what) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -9994,7 +9889,7 @@ fn bindgen_test_layout_AMetaDataEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10025,6 +9920,9 @@ pub struct AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__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::(), 12usize, @@ -10042,10 +9940,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10055,10 +9950,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10068,10 +9960,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10083,6 +9972,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10097,10 +9989,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10125,6 +10014,9 @@ pub struct AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10142,10 +10034,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10155,10 +10044,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10168,10 +10054,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10183,6 +10066,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10197,9 +10083,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10230,6 +10114,8 @@ pub struct AHeartRateEvent { } #[test] fn bindgen_test_layout_AHeartRateEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10241,7 +10127,7 @@ fn bindgen_test_layout_AHeartRateEvent() { concat!("Alignment of ", stringify!(AHeartRateEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bpm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bpm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10251,7 +10137,7 @@ fn bindgen_test_layout_AHeartRateEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10269,6 +10155,8 @@ pub struct ADynamicSensorEvent { } #[test] fn bindgen_test_layout_ADynamicSensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10280,7 +10168,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { concat!("Alignment of ", stringify!(ADynamicSensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).connected as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).connected) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10290,7 +10178,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).handle as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).handle) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10315,6 +10203,9 @@ pub union AAdditionalInfoEvent__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -10329,10 +10220,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_int32 as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_int32) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10342,10 +10230,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_float as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10357,6 +10242,8 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -10368,7 +10255,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { concat!("Alignment of ", stringify!(AAdditionalInfoEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10378,7 +10265,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).serial as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10401,6 +10288,8 @@ pub struct AHeadTrackerEvent { } #[test] fn bindgen_test_layout_AHeadTrackerEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -10412,7 +10301,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { concat!("Alignment of ", stringify!(AHeadTrackerEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rx) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10422,7 +10311,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ry as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ry) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10432,7 +10321,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rz) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10442,7 +10331,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vx) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10452,7 +10341,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -10462,7 +10351,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vz) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -10472,9 +10361,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).discontinuity_count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).discontinuity_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -10505,6 +10392,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__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::(), 12usize, @@ -10522,10 +10412,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10535,10 +10422,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10548,10 +10432,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10563,6 +10444,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10577,10 +10461,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).calib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).calib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10605,6 +10486,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10622,10 +10506,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10635,10 +10516,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10648,10 +10526,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10663,6 +10538,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10677,10 +10555,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10725,6 +10600,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10742,10 +10621,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10755,10 +10631,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10768,10 +10641,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10783,6 +10653,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10799,11 +10672,8 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { stringify!(ALimitedAxesImuUncalibratedEvent__bindgen_ty_1) ) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib - as *const _ as usize - }, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10828,6 +10698,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10845,10 +10719,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10858,10 +10729,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10871,10 +10739,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10886,6 +10751,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10903,10 +10771,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10931,6 +10796,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10948,10 +10817,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10961,10 +10827,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10974,10 +10837,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10989,6 +10849,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11006,10 +10869,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11043,6 +10903,8 @@ pub struct AHeadingEvent { } #[test] fn bindgen_test_layout_AHeadingEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -11054,7 +10916,7 @@ fn bindgen_test_layout_AHeadingEvent() { concat!("Alignment of ", stringify!(AHeadingEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).heading as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11064,7 +10926,7 @@ fn bindgen_test_layout_AHeadingEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).accuracy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).accuracy) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11119,6 +10981,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11136,10 +11001,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11149,10 +11011,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).vector as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).vector) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11162,10 +11021,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).acceleration - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11175,10 +11031,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).gyro as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11188,10 +11041,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).magnetic - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11201,10 +11051,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).temperature - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).temperature) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11214,10 +11061,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).distance - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).distance) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11227,10 +11071,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).light as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).light) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11240,10 +11081,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pressure - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pressure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11253,10 +11091,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).relative_humidity - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).relative_humidity) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11266,10 +11101,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_acceleration as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11279,10 +11111,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalibrated_gyro - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11292,10 +11121,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_magnetic as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11305,10 +11131,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).meta_data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).meta_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11318,10 +11141,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heart_rate - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heart_rate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11331,10 +11151,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dynamic_sensor_meta - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dynamic_sensor_meta) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11344,10 +11161,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).additional_info - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).additional_info) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11357,10 +11171,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).head_tracker - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).head_tracker) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11370,10 +11181,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).limited_axes_imu - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).limited_axes_imu) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11384,8 +11192,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .limited_axes_imu_uncalibrated as *const _ as usize + ::std::ptr::addr_of!((*ptr).limited_axes_imu_uncalibrated) as usize - ptr as usize }, 0usize, concat!( @@ -11396,10 +11203,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heading as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11417,6 +11221,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11434,10 +11241,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11447,10 +11251,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).step_counter - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).step_counter) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11462,6 +11263,9 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -11473,7 +11277,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorEvent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u64_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11485,6 +11289,8 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 104usize, @@ -11496,7 +11302,7 @@ fn bindgen_test_layout_ASensorEvent() { concat!("Alignment of ", stringify!(ASensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11506,7 +11312,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11516,7 +11322,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11526,7 +11332,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -11536,7 +11342,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -11546,7 +11352,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -11556,7 +11362,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", @@ -11774,15 +11580,15 @@ extern "C" { pub struct AStorageManager { _unused: [u8; 0], } -pub const AOBB_STATE_MOUNTED: ::std::os::raw::c_uint = 1; -pub const AOBB_STATE_UNMOUNTED: ::std::os::raw::c_uint = 2; -pub const AOBB_STATE_ERROR_INTERNAL: ::std::os::raw::c_uint = 20; -pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: ::std::os::raw::c_uint = 21; -pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: ::std::os::raw::c_uint = 22; -pub const AOBB_STATE_ERROR_NOT_MOUNTED: ::std::os::raw::c_uint = 23; -pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: ::std::os::raw::c_uint = 24; -pub const AOBB_STATE_ERROR_PERMISSION_DENIED: ::std::os::raw::c_uint = 25; -pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const AOBB_STATE_MOUNTED: _bindgen_ty_46 = 1; +pub const AOBB_STATE_UNMOUNTED: _bindgen_ty_46 = 2; +pub const AOBB_STATE_ERROR_INTERNAL: _bindgen_ty_46 = 20; +pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: _bindgen_ty_46 = 21; +pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: _bindgen_ty_46 = 22; +pub const AOBB_STATE_ERROR_NOT_MOUNTED: _bindgen_ty_46 = 23; +pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: _bindgen_ty_46 = 24; +pub const AOBB_STATE_ERROR_PERMISSION_DENIED: _bindgen_ty_46 = 25; +pub type _bindgen_ty_46 = ::std::os::raw::c_uint; extern "C" { pub fn AStorageManager_new() -> *mut AStorageManager; } @@ -11872,6 +11678,8 @@ pub struct sync_merge_data { } #[test] fn bindgen_test_layout_sync_merge_data() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -11883,7 +11691,7 @@ fn bindgen_test_layout_sync_merge_data() { concat!("Alignment of ", stringify!(sync_merge_data)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11893,7 +11701,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fd2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fd2) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -11903,7 +11711,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fence) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -11913,7 +11721,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -11923,7 +11731,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -11944,6 +11752,8 @@ pub struct sync_fence_info { } #[test] fn bindgen_test_layout_sync_fence_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -11955,7 +11765,7 @@ fn bindgen_test_layout_sync_fence_info() { concat!("Alignment of ", stringify!(sync_fence_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obj_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obj_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11965,7 +11775,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).driver_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).driver_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -11975,7 +11785,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -11985,7 +11795,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -11995,7 +11805,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp_ns as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp_ns) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -12017,6 +11827,8 @@ pub struct sync_file_info { } #[test] fn bindgen_test_layout_sync_file_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -12028,7 +11840,7 @@ fn bindgen_test_layout_sync_file_info() { concat!("Alignment of ", stringify!(sync_file_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12038,7 +11850,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12048,7 +11860,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12058,7 +11870,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).num_fences as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).num_fences) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12068,7 +11880,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12078,7 +11890,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sync_fence_info as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sync_fence_info) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -12088,6 +11900,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); } +pub const SYNC_IOC_MAGIC: u8 = 62u8; extern "C" { pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; } @@ -12097,6 +11910,198 @@ extern "C" { extern "C" { pub fn sync_file_info_free(info: *mut sync_file_info); } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASystemFontIterator { + _unused: [u8; 0], +} +pub const PAGE_SIZE: u32 = 4096; +pub const PAGE_MASK: i32 = -4096; +pub const UPAGES: u32 = 1; +pub const FD_SETSIZE: u32 = 1024; +pub const CLOCKS_PER_SEC: u32 = 1000000; +pub const TIME_UTC: u32 = 1; +pub const AAUDIO_UNSPECIFIED: u32 = 0; +pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; +pub const PROPERTY_VENDOR: &[u8; 7] = b"vendor\0"; +pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; +pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; +pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; +pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +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_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const FP_XSTATE_MAGIC1: u32 = 1179670611; +pub const FP_XSTATE_MAGIC2: u32 = 1179670597; +pub const X86_FXSR_MAGIC: u32 = 0; +pub const _KERNEL_NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const __SIGRTMIN: u32 = 32; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const NSIGSEGV: u32 = 9; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +extern "C" { + pub fn ASystemFontIterator_open() -> *mut ASystemFontIterator; +} +extern "C" { + pub fn ASystemFontIterator_close(iterator: *mut ASystemFontIterator); +} +extern "C" { + pub fn ASystemFontIterator_next(iterator: *mut ASystemFontIterator) -> *mut AFont; +} extern "C" { pub fn ATrace_isEnabled() -> bool; } @@ -12115,30 +12120,30 @@ extern "C" { extern "C" { pub fn ATrace_setCounter(counterName: *const ::std::os::raw::c_char, counterValue: i64); } -pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: ::std::os::raw::c_uint = 1; -pub const AWINDOW_FLAG_DIM_BEHIND: ::std::os::raw::c_uint = 2; -pub const AWINDOW_FLAG_BLUR_BEHIND: ::std::os::raw::c_uint = 4; -pub const AWINDOW_FLAG_NOT_FOCUSABLE: ::std::os::raw::c_uint = 8; -pub const AWINDOW_FLAG_NOT_TOUCHABLE: ::std::os::raw::c_uint = 16; -pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: ::std::os::raw::c_uint = 32; -pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: ::std::os::raw::c_uint = 64; -pub const AWINDOW_FLAG_KEEP_SCREEN_ON: ::std::os::raw::c_uint = 128; -pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: ::std::os::raw::c_uint = 256; -pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: ::std::os::raw::c_uint = 512; -pub const AWINDOW_FLAG_FULLSCREEN: ::std::os::raw::c_uint = 1024; -pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: ::std::os::raw::c_uint = 2048; -pub const AWINDOW_FLAG_DITHER: ::std::os::raw::c_uint = 4096; -pub const AWINDOW_FLAG_SECURE: ::std::os::raw::c_uint = 8192; -pub const AWINDOW_FLAG_SCALED: ::std::os::raw::c_uint = 16384; -pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: ::std::os::raw::c_uint = 32768; -pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: ::std::os::raw::c_uint = 65536; -pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: ::std::os::raw::c_uint = 131072; -pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: ::std::os::raw::c_uint = 262144; -pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: ::std::os::raw::c_uint = 524288; -pub const AWINDOW_FLAG_SHOW_WALLPAPER: ::std::os::raw::c_uint = 1048576; -pub const AWINDOW_FLAG_TURN_SCREEN_ON: ::std::os::raw::c_uint = 2097152; -pub const AWINDOW_FLAG_DISMISS_KEYGUARD: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_45 = ::std::os::raw::c_uint; +pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: _bindgen_ty_47 = 1; +pub const AWINDOW_FLAG_DIM_BEHIND: _bindgen_ty_47 = 2; +pub const AWINDOW_FLAG_BLUR_BEHIND: _bindgen_ty_47 = 4; +pub const AWINDOW_FLAG_NOT_FOCUSABLE: _bindgen_ty_47 = 8; +pub const AWINDOW_FLAG_NOT_TOUCHABLE: _bindgen_ty_47 = 16; +pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: _bindgen_ty_47 = 32; +pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: _bindgen_ty_47 = 64; +pub const AWINDOW_FLAG_KEEP_SCREEN_ON: _bindgen_ty_47 = 128; +pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: _bindgen_ty_47 = 256; +pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: _bindgen_ty_47 = 512; +pub const AWINDOW_FLAG_FULLSCREEN: _bindgen_ty_47 = 1024; +pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: _bindgen_ty_47 = 2048; +pub const AWINDOW_FLAG_DITHER: _bindgen_ty_47 = 4096; +pub const AWINDOW_FLAG_SECURE: _bindgen_ty_47 = 8192; +pub const AWINDOW_FLAG_SCALED: _bindgen_ty_47 = 16384; +pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: _bindgen_ty_47 = 32768; +pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: _bindgen_ty_47 = 65536; +pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: _bindgen_ty_47 = 131072; +pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: _bindgen_ty_47 = 262144; +pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: _bindgen_ty_47 = 524288; +pub const AWINDOW_FLAG_SHOW_WALLPAPER: _bindgen_ty_47 = 1048576; +pub const AWINDOW_FLAG_TURN_SCREEN_ON: _bindgen_ty_47 = 2097152; +pub const AWINDOW_FLAG_DISMISS_KEYGUARD: _bindgen_ty_47 = 4194304; +pub type _bindgen_ty_47 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { @@ -12147,6 +12152,8 @@ pub struct __kernel_timespec { } #[test] fn bindgen_test_layout___kernel_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_timespec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_timespec>(), 16usize, @@ -12158,7 +12165,7 @@ fn bindgen_test_layout___kernel_timespec() { concat!("Alignment of ", stringify!(__kernel_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12168,7 +12175,7 @@ fn bindgen_test_layout___kernel_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12186,6 +12193,8 @@ pub struct __kernel_itimerspec { } #[test] fn bindgen_test_layout___kernel_itimerspec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_itimerspec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_itimerspec>(), 32usize, @@ -12197,7 +12206,7 @@ fn bindgen_test_layout___kernel_itimerspec() { concat!("Alignment of ", stringify!(__kernel_itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12207,7 +12216,7 @@ fn bindgen_test_layout___kernel_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12225,6 +12234,9 @@ pub struct __kernel_old_timespec { } #[test] fn bindgen_test_layout___kernel_old_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_old_timespec> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_old_timespec>(), 8usize, @@ -12236,7 +12248,7 @@ fn bindgen_test_layout___kernel_old_timespec() { concat!("Alignment of ", stringify!(__kernel_old_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12246,7 +12258,7 @@ fn bindgen_test_layout___kernel_old_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12264,6 +12276,9 @@ pub struct __kernel_sock_timeval { } #[test] fn bindgen_test_layout___kernel_sock_timeval() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sock_timeval> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sock_timeval>(), 16usize, @@ -12275,7 +12290,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { concat!("Alignment of ", stringify!(__kernel_sock_timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12285,7 +12300,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12303,6 +12318,8 @@ pub struct timespec { } #[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::(), 8usize, @@ -12314,7 +12331,7 @@ fn bindgen_test_layout_timespec() { concat!("Alignment of ", stringify!(timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12324,7 +12341,7 @@ fn bindgen_test_layout_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12342,6 +12359,8 @@ pub struct timeval { } #[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::(), 8usize, @@ -12353,7 +12372,7 @@ fn bindgen_test_layout_timeval() { concat!("Alignment of ", stringify!(timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12363,7 +12382,7 @@ fn bindgen_test_layout_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12381,6 +12400,8 @@ pub struct itimerspec { } #[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::(), 16usize, @@ -12392,7 +12413,7 @@ fn bindgen_test_layout_itimerspec() { concat!("Alignment of ", stringify!(itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12402,7 +12423,7 @@ fn bindgen_test_layout_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12420,6 +12441,8 @@ pub struct itimerval { } #[test] fn bindgen_test_layout_itimerval() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -12431,7 +12454,7 @@ fn bindgen_test_layout_itimerval() { concat!("Alignment of ", stringify!(itimerval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12441,7 +12464,7 @@ fn bindgen_test_layout_itimerval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12459,6 +12482,8 @@ pub struct timezone { } #[test] fn bindgen_test_layout_timezone() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -12470,7 +12495,7 @@ fn bindgen_test_layout_timezone() { concat!("Alignment of ", stringify!(timezone)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_minuteswest as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_minuteswest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12480,7 +12505,7 @@ fn bindgen_test_layout_timezone() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_dsttime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_dsttime) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12501,6 +12526,8 @@ pub struct _fpx_sw_bytes { } #[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, @@ -12512,7 +12539,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { concat!("Alignment of ", stringify!(_fpx_sw_bytes)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).magic1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12522,7 +12549,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).extended_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extended_size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12532,7 +12559,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xfeatures as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xfeatures) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12542,7 +12569,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xstate_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xstate_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12552,7 +12579,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -12570,6 +12597,8 @@ pub struct _fpreg { } #[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, @@ -12581,7 +12610,7 @@ fn bindgen_test_layout__fpreg() { concat!("Alignment of ", stringify!(_fpreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12591,7 +12620,7 @@ fn bindgen_test_layout__fpreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12610,6 +12639,8 @@ pub struct _fpxreg { } #[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, @@ -12621,7 +12652,7 @@ fn bindgen_test_layout__fpxreg() { concat!("Alignment of ", stringify!(_fpxreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12631,7 +12662,7 @@ fn bindgen_test_layout__fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12641,7 +12672,7 @@ fn bindgen_test_layout__fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -12658,6 +12689,8 @@ pub struct _xmmreg { } #[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, @@ -12669,7 +12702,7 @@ fn bindgen_test_layout__xmmreg() { concat!("Alignment of ", stringify!(_xmmreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xmmreg>())).element as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12708,6 +12741,9 @@ pub union _fpstate_32__bindgen_ty_1 { } #[test] fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32__bindgen_ty_1>(), 176usize, @@ -12719,9 +12755,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { concat!("Alignment of ", stringify!(_fpstate_32__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_1>())).padding1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).padding1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12731,9 +12765,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_1>())).padding as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12751,6 +12783,9 @@ pub union _fpstate_32__bindgen_ty_2 { } #[test] fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32__bindgen_ty_2>(), 48usize, @@ -12761,10 +12796,8 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { 4usize, concat!("Alignment of ", stringify!(_fpstate_32__bindgen_ty_2)) ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_2>())).padding2 as *const _ as usize - }, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).padding2) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12774,9 +12807,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_2>())).sw_reserved as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sw_reserved) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12788,6 +12819,8 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { } #[test] fn bindgen_test_layout__fpstate_32() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32>(), 624usize, @@ -12799,7 +12832,7 @@ fn bindgen_test_layout__fpstate_32() { concat!("Alignment of ", stringify!(_fpstate_32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).cw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cw) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12809,7 +12842,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).sw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12819,7 +12852,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12829,7 +12862,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).ipoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ipoff) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -12839,7 +12872,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).cssel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cssel) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12849,7 +12882,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).dataoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dataoff) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -12859,7 +12892,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).datasel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datasel) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -12869,7 +12902,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -12879,7 +12912,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 108usize, concat!( "Offset of field: ", @@ -12889,7 +12922,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 110usize, concat!( "Offset of field: ", @@ -12899,7 +12932,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._fxsr_env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fxsr_env) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -12909,7 +12942,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -12919,7 +12952,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 140usize, concat!( "Offset of field: ", @@ -12929,7 +12962,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._fxsr_st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fxsr_st) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -12939,7 +12972,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._xmm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._xmm) as usize - ptr as usize }, 272usize, concat!( "Offset of field: ", @@ -12973,6 +13006,9 @@ pub union _fpstate_64__bindgen_ty_1 { } #[test] fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_64__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_64__bindgen_ty_1>(), 48usize, @@ -12984,9 +13020,7 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { concat!("Alignment of ", stringify!(_fpstate_64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_64__bindgen_ty_1>())).reserved3 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved3) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12996,9 +13030,7 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_64__bindgen_ty_1>())).sw_reserved as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sw_reserved) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13010,6 +13042,8 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { } #[test] fn bindgen_test_layout__fpstate_64() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_64> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_64>(), 512usize, @@ -13021,7 +13055,7 @@ fn bindgen_test_layout__fpstate_64() { concat!("Alignment of ", stringify!(_fpstate_64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13031,7 +13065,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -13041,7 +13075,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).twd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).twd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13051,7 +13085,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).fop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -13061,7 +13095,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13071,7 +13105,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).rdp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13081,7 +13115,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13091,7 +13125,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).mxcsr_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -13101,7 +13135,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).st_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_space) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13111,7 +13145,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).xmm_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xmm_space) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -13121,7 +13155,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).reserved2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved2) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", @@ -13140,6 +13174,8 @@ pub struct _header { } #[test] fn bindgen_test_layout__header() { + const UNINIT: ::std::mem::MaybeUninit<_header> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_header>(), 64usize, @@ -13151,7 +13187,7 @@ fn bindgen_test_layout__header() { concat!("Alignment of ", stringify!(_header)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).xfeatures as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xfeatures) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13161,7 +13197,7 @@ fn bindgen_test_layout__header() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13171,7 +13207,7 @@ fn bindgen_test_layout__header() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).reserved2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved2) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13188,6 +13224,8 @@ pub struct _ymmh_state { } #[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, @@ -13199,7 +13237,7 @@ fn bindgen_test_layout__ymmh_state() { concat!("Alignment of ", stringify!(_ymmh_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_ymmh_state>())).ymmh_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ymmh_space) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13218,6 +13256,8 @@ pub struct _xstate { } #[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>(), 944usize, @@ -13229,7 +13269,7 @@ fn bindgen_test_layout__xstate() { concat!("Alignment of ", stringify!(_xstate)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13239,7 +13279,7 @@ fn bindgen_test_layout__xstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).xstate_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xstate_hdr) as usize - ptr as usize }, 624usize, concat!( "Offset of field: ", @@ -13249,7 +13289,7 @@ fn bindgen_test_layout__xstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).ymmh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ymmh) as usize - ptr as usize }, 688usize, concat!( "Offset of field: ", @@ -13293,6 +13333,8 @@ pub struct sigcontext_32 { } #[test] fn bindgen_test_layout_sigcontext_32() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 88usize, @@ -13304,7 +13346,7 @@ fn bindgen_test_layout_sigcontext_32() { concat!("Alignment of ", stringify!(sigcontext_32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13314,7 +13356,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__gsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__gsh) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -13324,7 +13366,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13334,7 +13376,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__fsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__fsh) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -13344,7 +13386,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).es as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).es) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13354,7 +13396,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__esh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__esh) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -13364,7 +13406,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ds) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13374,7 +13416,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__dsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__dsh) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", @@ -13384,7 +13426,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).di as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).di) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13394,7 +13436,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).si as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).si) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -13404,7 +13446,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bp) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13414,7 +13456,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -13424,7 +13466,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bx) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13434,7 +13476,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).dx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dx) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -13444,7 +13486,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cx) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -13454,7 +13496,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ax) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -13464,7 +13506,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -13474,7 +13516,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -13484,7 +13526,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -13494,7 +13536,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -13504,7 +13546,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__csh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__csh) as usize - ptr as usize }, 62usize, concat!( "Offset of field: ", @@ -13514,7 +13556,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -13524,7 +13566,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp_at_signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp_at_signal) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -13534,7 +13576,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -13544,7 +13586,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__ssh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__ssh) as usize - ptr as usize }, 74usize, concat!( "Offset of field: ", @@ -13554,7 +13596,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -13564,7 +13606,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -13574,7 +13616,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", @@ -13618,6 +13660,8 @@ pub struct sigcontext_64 { } #[test] fn bindgen_test_layout_sigcontext_64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, @@ -13629,7 +13673,7 @@ fn bindgen_test_layout_sigcontext_64() { concat!("Alignment of ", stringify!(sigcontext_64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r8 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r8) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13639,7 +13683,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r9 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r9) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13649,7 +13693,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r10 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r10) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13659,7 +13703,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r11 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r11) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13669,7 +13713,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r12 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r12) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13679,7 +13723,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r13 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r13) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -13689,7 +13733,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r14 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r14) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -13699,7 +13743,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r15 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r15) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -13709,7 +13753,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).di as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).di) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -13719,7 +13763,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).si as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).si) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -13729,7 +13773,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bp) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -13739,7 +13783,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bx) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -13749,7 +13793,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).dx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dx) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -13759,7 +13803,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ax) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -13769,7 +13813,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cx) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -13779,7 +13823,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -13789,7 +13833,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", @@ -13799,7 +13843,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -13809,7 +13853,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -13819,7 +13863,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 146usize, concat!( "Offset of field: ", @@ -13829,7 +13873,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", @@ -13839,7 +13883,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 150usize, concat!( "Offset of field: ", @@ -13849,7 +13893,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", @@ -13859,7 +13903,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -13869,7 +13913,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", @@ -13879,7 +13923,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -13889,7 +13933,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -13899,7 +13943,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -13943,6 +13987,8 @@ pub struct sigcontext { } #[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::(), 88usize, @@ -13954,7 +14000,7 @@ fn bindgen_test_layout_sigcontext() { concat!("Alignment of ", stringify!(sigcontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13964,7 +14010,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__gsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__gsh) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -13974,7 +14020,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13984,7 +14030,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__fsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__fsh) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -13994,7 +14040,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).es as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).es) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14004,7 +14050,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__esh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__esh) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -14014,7 +14060,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ds) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14024,7 +14070,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__dsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__dsh) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", @@ -14034,7 +14080,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).edi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).edi) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14044,7 +14090,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esi) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -14054,7 +14100,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ebp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ebp) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14064,7 +14110,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esp) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -14074,7 +14120,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ebx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ebx) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -14084,7 +14130,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).edx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).edx) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -14094,7 +14140,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ecx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ecx) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -14104,7 +14150,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eax) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -14114,7 +14160,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -14124,7 +14170,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -14134,7 +14180,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eip) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -14144,7 +14190,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -14154,7 +14200,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__csh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__csh) as usize - ptr as usize }, 62usize, concat!( "Offset of field: ", @@ -14164,7 +14210,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eflags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eflags) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -14174,7 +14220,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esp_at_signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esp_at_signal) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -14184,7 +14230,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -14194,7 +14240,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__ssh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__ssh) as usize - ptr as usize }, 74usize, concat!( "Offset of field: ", @@ -14204,7 +14250,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -14214,7 +14260,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -14224,7 +14270,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", @@ -14234,6 +14280,9 @@ fn bindgen_test_layout_sigcontext() { ) ); } +pub const _KERNEL__NSIG: u32 = 64; +pub const _NSIG: u32 = 65; +pub const NSIG: u32 = 65; pub type sigset_t = ::std::os::raw::c_ulong; pub type __signalfn_t = ::std::option::Option; pub type __sighandler_t = __signalfn_t; @@ -14261,6 +14310,9 @@ pub union __kernel_sigaction__bindgen_ty_1 { } #[test] fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction__bindgen_ty_1>(), 4usize, @@ -14275,10 +14327,7 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__kernel_sigaction__bindgen_ty_1>()))._sa_handler as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14288,10 +14337,7 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__kernel_sigaction__bindgen_ty_1>()))._sa_sigaction as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14303,6 +14349,8 @@ fn bindgen_test_layout___kernel_sigaction__bindgen_ty_1() { } #[test] fn bindgen_test_layout___kernel_sigaction() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction>(), 16usize, @@ -14314,7 +14362,7 @@ fn bindgen_test_layout___kernel_sigaction() { concat!("Alignment of ", stringify!(__kernel_sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>()))._u as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._u) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14324,7 +14372,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14334,7 +14382,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14344,7 +14392,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14359,10 +14407,12 @@ fn bindgen_test_layout___kernel_sigaction() { pub struct sigaltstack { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_flags: ::std::os::raw::c_int, - pub ss_size: size_t, + pub ss_size: __kernel_size_t, } #[test] fn bindgen_test_layout_sigaltstack() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -14374,7 +14424,7 @@ fn bindgen_test_layout_sigaltstack() { concat!("Alignment of ", stringify!(sigaltstack)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14384,7 +14434,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14394,7 +14444,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14413,6 +14463,8 @@ pub union sigval { } #[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::(), 4usize, @@ -14424,7 +14476,7 @@ fn bindgen_test_layout_sigval() { concat!("Alignment of ", stringify!(sigval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14434,7 +14486,7 @@ fn bindgen_test_layout_sigval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14464,6 +14516,9 @@ pub struct __sifields__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_1>(), 8usize, @@ -14475,7 +14530,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14485,7 +14540,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14505,6 +14560,9 @@ pub struct __sifields__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_2>(), 16usize, @@ -14516,7 +14574,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14526,9 +14584,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._overrun as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._overrun) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14538,9 +14594,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14550,9 +14604,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sys_private as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sys_private) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14571,6 +14623,9 @@ pub struct __sifields__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_3>(), 12usize, @@ -14582,7 +14637,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_3)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14592,7 +14647,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14602,9 +14657,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14625,6 +14678,9 @@ pub struct __sifields__bindgen_ty_4 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_4() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_4> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_4>(), 20usize, @@ -14636,7 +14692,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_4)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14646,7 +14702,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14656,9 +14712,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._status as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._status) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14668,7 +14722,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._utime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._utime) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -14678,7 +14732,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._stime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._stime) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14712,6 +14766,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(), 12usize, @@ -14729,10 +14786,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>())) - ._dummy_bnd as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14742,10 +14796,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._lower - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._lower) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14755,10 +14806,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._upper - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._upper) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14776,6 +14824,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>(), 8usize, @@ -14793,10 +14844,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>())) - ._dummy_pkey as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14806,10 +14854,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>()))._pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._pkey) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14827,6 +14872,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>(), 8usize, @@ -14844,10 +14892,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14857,10 +14902,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._type - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._type) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14872,6 +14914,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1>(), 12usize, @@ -14889,10 +14934,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._trapno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._trapno) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14902,10 +14944,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_lsb as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_lsb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14915,10 +14954,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_bnd as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14928,10 +14964,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14941,10 +14974,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._perf as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._perf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14956,6 +14986,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5>(), 16usize, @@ -14967,7 +15000,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_5)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_5>()))._addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14985,6 +15018,9 @@ pub struct __sifields__bindgen_ty_6 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_6() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_6> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_6>(), 8usize, @@ -14996,7 +15032,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_6)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._band as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._band) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15006,7 +15042,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15025,6 +15061,9 @@ pub struct __sifields__bindgen_ty_7 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_7() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_7> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_7>(), 12usize, @@ -15036,9 +15075,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_7)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._call_addr as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._call_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15048,9 +15085,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._syscall as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._syscall) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15060,7 +15095,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._arch as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._arch) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15072,6 +15107,8 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { } #[test] fn bindgen_test_layout___sifields() { + const UNINIT: ::std::mem::MaybeUninit<__sifields> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields>(), 20usize, @@ -15083,7 +15120,7 @@ fn bindgen_test_layout___sifields() { concat!("Alignment of ", stringify!(__sifields)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._kill as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._kill) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15093,7 +15130,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._timer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._timer) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15103,7 +15140,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._rt as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._rt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15113,7 +15150,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigchld as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigchld) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15123,7 +15160,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigfault as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigfault) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15133,7 +15170,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigpoll as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigpoll) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15143,7 +15180,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigsys as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15174,6 +15211,9 @@ pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_siginfo__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::(), 32usize, @@ -15188,10 +15228,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_signo as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15201,10 +15238,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_errno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15214,10 +15248,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_code as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15227,10 +15258,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sifields as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sifields) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15242,6 +15270,9 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_siginfo__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -15253,7 +15284,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1() { concat!("Alignment of ", stringify!(siginfo__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._si_pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._si_pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15300,6 +15331,9 @@ pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { } #[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::(), 8usize, @@ -15317,10 +15351,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._function as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._function) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15330,10 +15361,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._attribute as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._attribute) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15345,6 +15373,9 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { } #[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::(), 52usize, @@ -15356,7 +15387,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15366,7 +15397,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15376,9 +15407,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sigev_thread as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_thread) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15390,6 +15419,8 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { } #[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, @@ -15401,7 +15432,7 @@ fn bindgen_test_layout_sigevent() { concat!("Alignment of ", stringify!(sigevent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15411,7 +15442,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15421,7 +15452,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15431,7 +15462,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._sigev_un as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_un) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15452,6 +15483,8 @@ pub struct sigset64_t { } #[test] fn bindgen_test_layout_sigset64_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -15463,7 +15496,7 @@ fn bindgen_test_layout_sigset64_t() { concat!("Alignment of ", stringify!(sigset64_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15495,6 +15528,9 @@ pub union sigaction__bindgen_ty_1 { } #[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::(), 4usize, @@ -15506,9 +15542,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15518,9 +15552,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15532,6 +15564,8 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { } #[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::(), 16usize, @@ -15543,7 +15577,7 @@ fn bindgen_test_layout_sigaction() { concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15553,7 +15587,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15563,7 +15597,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15595,6 +15629,9 @@ pub union sigaction64__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sigaction64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -15606,9 +15643,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15618,9 +15653,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15632,6 +15665,8 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sigaction64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -15643,7 +15678,7 @@ fn bindgen_test_layout_sigaction64() { concat!("Alignment of ", stringify!(sigaction64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15653,7 +15688,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15663,7 +15698,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15687,6 +15722,8 @@ pub struct user_fpregs_struct { } #[test] fn bindgen_test_layout_user_fpregs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 108usize, @@ -15698,7 +15735,7 @@ fn bindgen_test_layout_user_fpregs_struct() { concat!("Alignment of ", stringify!(user_fpregs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15708,7 +15745,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15718,7 +15755,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).twd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).twd) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15728,7 +15765,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fip) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15738,7 +15775,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fcs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fcs) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15748,7 +15785,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).foo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -15758,7 +15795,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fos as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fos) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15768,7 +15805,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_space) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -15797,6 +15834,8 @@ pub struct user_fpxregs_struct { } #[test] fn bindgen_test_layout_user_fpxregs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 512usize, @@ -15808,7 +15847,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { concat!("Alignment of ", stringify!(user_fpxregs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15818,7 +15857,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -15828,7 +15867,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).twd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).twd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15838,7 +15877,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -15848,7 +15887,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15858,7 +15897,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fcs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fcs) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15868,7 +15907,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).foo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15878,7 +15917,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fos as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fos) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -15888,7 +15927,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15898,7 +15937,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -15908,7 +15947,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_space) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -15918,7 +15957,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xmm_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xmm_space) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -15928,7 +15967,7 @@ fn bindgen_test_layout_user_fpxregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 288usize, concat!( "Offset of field: ", @@ -15961,6 +16000,8 @@ pub struct user_regs_struct { } #[test] fn bindgen_test_layout_user_regs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 68usize, @@ -15972,7 +16013,7 @@ fn bindgen_test_layout_user_regs_struct() { concat!("Alignment of ", stringify!(user_regs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ebx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ebx) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15982,7 +16023,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ecx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ecx) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15992,7 +16033,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).edx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).edx) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16002,7 +16043,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esi) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -16012,7 +16053,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).edi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).edi) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -16022,7 +16063,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ebp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ebp) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -16032,7 +16073,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eax) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -16042,7 +16083,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xds) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -16052,7 +16093,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xes as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xes) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -16062,7 +16103,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xfs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xfs) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -16072,7 +16113,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xgs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xgs) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -16082,7 +16123,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).orig_eax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).orig_eax) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -16092,7 +16133,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eip) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -16102,7 +16143,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xcs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xcs) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -16112,7 +16153,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eflags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eflags) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -16122,7 +16163,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).esp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).esp) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -16132,7 +16173,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xss) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -16163,6 +16204,8 @@ pub struct user { } #[test] fn bindgen_test_layout_user() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 284usize, @@ -16174,7 +16217,7 @@ fn bindgen_test_layout_user() { concat!("Alignment of ", stringify!(user)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).regs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16184,7 +16227,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fpvalid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fpvalid) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -16194,7 +16237,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).i387 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).i387) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -16204,7 +16247,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_tsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_tsize) as usize - ptr as usize }, 180usize, concat!( "Offset of field: ", @@ -16214,7 +16257,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_dsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_dsize) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -16224,7 +16267,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ssize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ssize) as usize - ptr as usize }, 188usize, concat!( "Offset of field: ", @@ -16234,7 +16277,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_code as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_code) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -16244,7 +16287,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_stack) as usize - ptr as usize }, 196usize, concat!( "Offset of field: ", @@ -16254,7 +16297,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).signal) as usize - ptr as usize }, 200usize, concat!( "Offset of field: ", @@ -16264,7 +16307,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 204usize, concat!( "Offset of field: ", @@ -16274,7 +16317,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ar0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ar0) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", @@ -16284,7 +16327,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fpstate) as usize - ptr as usize }, 212usize, concat!( "Offset of field: ", @@ -16294,7 +16337,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 216usize, concat!( "Offset of field: ", @@ -16304,7 +16347,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_comm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_comm) as usize - ptr as usize }, 220usize, concat!( "Offset of field: ", @@ -16314,7 +16357,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_debugreg as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_debugreg) as usize - ptr as usize }, 252usize, concat!( "Offset of field: ", @@ -16324,27 +16367,27 @@ fn bindgen_test_layout_user() { ) ); } -pub const REG_GS: ::std::os::raw::c_uint = 0; -pub const REG_FS: ::std::os::raw::c_uint = 1; -pub const REG_ES: ::std::os::raw::c_uint = 2; -pub const REG_DS: ::std::os::raw::c_uint = 3; -pub const REG_EDI: ::std::os::raw::c_uint = 4; -pub const REG_ESI: ::std::os::raw::c_uint = 5; -pub const REG_EBP: ::std::os::raw::c_uint = 6; -pub const REG_ESP: ::std::os::raw::c_uint = 7; -pub const REG_EBX: ::std::os::raw::c_uint = 8; -pub const REG_EDX: ::std::os::raw::c_uint = 9; -pub const REG_ECX: ::std::os::raw::c_uint = 10; -pub const REG_EAX: ::std::os::raw::c_uint = 11; -pub const REG_TRAPNO: ::std::os::raw::c_uint = 12; -pub const REG_ERR: ::std::os::raw::c_uint = 13; -pub const REG_EIP: ::std::os::raw::c_uint = 14; -pub const REG_CS: ::std::os::raw::c_uint = 15; -pub const REG_EFL: ::std::os::raw::c_uint = 16; -pub const REG_UESP: ::std::os::raw::c_uint = 17; -pub const REG_SS: ::std::os::raw::c_uint = 18; -pub const NGREG: ::std::os::raw::c_uint = 19; -pub type _bindgen_ty_46 = ::std::os::raw::c_uint; +pub const REG_GS: _bindgen_ty_48 = 0; +pub const REG_FS: _bindgen_ty_48 = 1; +pub const REG_ES: _bindgen_ty_48 = 2; +pub const REG_DS: _bindgen_ty_48 = 3; +pub const REG_EDI: _bindgen_ty_48 = 4; +pub const REG_ESI: _bindgen_ty_48 = 5; +pub const REG_EBP: _bindgen_ty_48 = 6; +pub const REG_ESP: _bindgen_ty_48 = 7; +pub const REG_EBX: _bindgen_ty_48 = 8; +pub const REG_EDX: _bindgen_ty_48 = 9; +pub const REG_ECX: _bindgen_ty_48 = 10; +pub const REG_EAX: _bindgen_ty_48 = 11; +pub const REG_TRAPNO: _bindgen_ty_48 = 12; +pub const REG_ERR: _bindgen_ty_48 = 13; +pub const REG_EIP: _bindgen_ty_48 = 14; +pub const REG_CS: _bindgen_ty_48 = 15; +pub const REG_EFL: _bindgen_ty_48 = 16; +pub const REG_UESP: _bindgen_ty_48 = 17; +pub const REG_SS: _bindgen_ty_48 = 18; +pub const NGREG: _bindgen_ty_48 = 19; +pub type _bindgen_ty_48 = ::std::os::raw::c_uint; pub type greg_t = ::std::os::raw::c_int; pub type gregset_t = [greg_t; 19usize]; #[repr(C)] @@ -16355,6 +16398,8 @@ pub struct _libc_fpreg { } #[test] fn bindgen_test_layout__libc_fpreg() { + const UNINIT: ::std::mem::MaybeUninit<_libc_fpreg> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_libc_fpreg>(), 10usize, @@ -16366,7 +16411,7 @@ fn bindgen_test_layout__libc_fpreg() { concat!("Alignment of ", stringify!(_libc_fpreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16376,7 +16421,7 @@ fn bindgen_test_layout__libc_fpreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16401,6 +16446,8 @@ pub struct _libc_fpstate { } #[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>(), 112usize, @@ -16412,7 +16459,7 @@ fn bindgen_test_layout__libc_fpstate() { concat!("Alignment of ", stringify!(_libc_fpstate)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).cw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cw) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16422,7 +16469,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).sw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -16432,7 +16479,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16442,7 +16489,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).ipoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ipoff) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -16452,7 +16499,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).cssel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cssel) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -16462,7 +16509,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).dataoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dataoff) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -16472,7 +16519,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).datasel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datasel) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -16482,7 +16529,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>()))._st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -16492,7 +16539,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 108usize, concat!( "Offset of field: ", @@ -16513,6 +16560,8 @@ pub struct mcontext_t { } #[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::(), 88usize, @@ -16524,7 +16573,7 @@ fn bindgen_test_layout_mcontext_t() { concat!("Alignment of ", stringify!(mcontext_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16534,7 +16583,7 @@ fn bindgen_test_layout_mcontext_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpregs) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -16544,7 +16593,7 @@ fn bindgen_test_layout_mcontext_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -16554,7 +16603,7 @@ fn bindgen_test_layout_mcontext_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", @@ -16588,6 +16637,9 @@ pub struct ucontext__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ucontext__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, @@ -16605,10 +16657,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16618,10 +16667,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__padding_rt_sigset - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__padding_rt_sigset) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -16633,6 +16679,9 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -16644,9 +16693,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { concat!("Alignment of ", stringify!(ucontext__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask64 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16658,6 +16705,8 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 228usize, @@ -16669,7 +16718,7 @@ fn bindgen_test_layout_ucontext() { concat!("Alignment of ", stringify!(ucontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16679,7 +16728,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_link as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -16689,7 +16738,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16699,7 +16748,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_mcontext as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -16709,7 +16758,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__fpregs_mem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__fpregs_mem) as usize - ptr as usize }, 116usize, concat!( "Offset of field: ", @@ -16943,6 +16992,8 @@ pub struct fd_set { } #[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, @@ -16954,7 +17005,7 @@ fn bindgen_test_layout_fd_set() { concat!("Alignment of ", stringify!(fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -17057,6 +17108,8 @@ pub struct tm { } #[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::(), 44usize, @@ -17068,7 +17121,7 @@ fn bindgen_test_layout_tm() { concat!("Alignment of ", stringify!(tm)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -17078,7 +17131,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_min as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -17088,7 +17141,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_hour as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -17098,7 +17151,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -17108,7 +17161,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mon as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -17118,7 +17171,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_year as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -17128,7 +17181,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_wday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -17138,7 +17191,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_yday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -17148,7 +17201,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_isdst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -17158,7 +17211,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_gmtoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -17168,7 +17221,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_zone as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -17317,161 +17370,161 @@ extern "C" { __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AAUDIO_DIRECTION_OUTPUT: ::std::os::raw::c_uint = 0; -pub const AAUDIO_DIRECTION_INPUT: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_47 = ::std::os::raw::c_uint; +pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; +pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; +pub type _bindgen_ty_49 = ::std::os::raw::c_uint; pub type aaudio_direction_t = i32; -pub const AAUDIO_FORMAT_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_FORMAT_UNSPECIFIED: ::std::os::raw::c_int = 0; -pub const AAUDIO_FORMAT_PCM_I16: ::std::os::raw::c_int = 1; -pub const AAUDIO_FORMAT_PCM_FLOAT: ::std::os::raw::c_int = 2; -pub const AAUDIO_FORMAT_PCM_I24_PACKED: ::std::os::raw::c_int = 3; -pub const AAUDIO_FORMAT_PCM_I32: ::std::os::raw::c_int = 4; -pub type _bindgen_ty_48 = ::std::os::raw::c_int; +pub const AAUDIO_FORMAT_INVALID: _bindgen_ty_50 = -1; +pub const AAUDIO_FORMAT_UNSPECIFIED: _bindgen_ty_50 = 0; +pub const AAUDIO_FORMAT_PCM_I16: _bindgen_ty_50 = 1; +pub const AAUDIO_FORMAT_PCM_FLOAT: _bindgen_ty_50 = 2; +pub const AAUDIO_FORMAT_PCM_I24_PACKED: _bindgen_ty_50 = 3; +pub const AAUDIO_FORMAT_PCM_I32: _bindgen_ty_50 = 4; +pub type _bindgen_ty_50 = ::std::os::raw::c_int; pub type aaudio_format_t = i32; -pub const AAUDIO_OK: ::std::os::raw::c_int = 0; -pub const AAUDIO_ERROR_BASE: ::std::os::raw::c_int = -900; -pub const AAUDIO_ERROR_DISCONNECTED: ::std::os::raw::c_int = -899; -pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: ::std::os::raw::c_int = -898; -pub const AAUDIO_ERROR_INTERNAL: ::std::os::raw::c_int = -896; -pub const AAUDIO_ERROR_INVALID_STATE: ::std::os::raw::c_int = -895; -pub const AAUDIO_ERROR_INVALID_HANDLE: ::std::os::raw::c_int = -892; -pub const AAUDIO_ERROR_UNIMPLEMENTED: ::std::os::raw::c_int = -890; -pub const AAUDIO_ERROR_UNAVAILABLE: ::std::os::raw::c_int = -889; -pub const AAUDIO_ERROR_NO_FREE_HANDLES: ::std::os::raw::c_int = -888; -pub const AAUDIO_ERROR_NO_MEMORY: ::std::os::raw::c_int = -887; -pub const AAUDIO_ERROR_NULL: ::std::os::raw::c_int = -886; -pub const AAUDIO_ERROR_TIMEOUT: ::std::os::raw::c_int = -885; -pub const AAUDIO_ERROR_WOULD_BLOCK: ::std::os::raw::c_int = -884; -pub const AAUDIO_ERROR_INVALID_FORMAT: ::std::os::raw::c_int = -883; -pub const AAUDIO_ERROR_OUT_OF_RANGE: ::std::os::raw::c_int = -882; -pub const AAUDIO_ERROR_NO_SERVICE: ::std::os::raw::c_int = -881; -pub const AAUDIO_ERROR_INVALID_RATE: ::std::os::raw::c_int = -880; -pub type _bindgen_ty_49 = ::std::os::raw::c_int; +pub const AAUDIO_OK: _bindgen_ty_51 = 0; +pub const AAUDIO_ERROR_BASE: _bindgen_ty_51 = -900; +pub const AAUDIO_ERROR_DISCONNECTED: _bindgen_ty_51 = -899; +pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: _bindgen_ty_51 = -898; +pub const AAUDIO_ERROR_INTERNAL: _bindgen_ty_51 = -896; +pub const AAUDIO_ERROR_INVALID_STATE: _bindgen_ty_51 = -895; +pub const AAUDIO_ERROR_INVALID_HANDLE: _bindgen_ty_51 = -892; +pub const AAUDIO_ERROR_UNIMPLEMENTED: _bindgen_ty_51 = -890; +pub const AAUDIO_ERROR_UNAVAILABLE: _bindgen_ty_51 = -889; +pub const AAUDIO_ERROR_NO_FREE_HANDLES: _bindgen_ty_51 = -888; +pub const AAUDIO_ERROR_NO_MEMORY: _bindgen_ty_51 = -887; +pub const AAUDIO_ERROR_NULL: _bindgen_ty_51 = -886; +pub const AAUDIO_ERROR_TIMEOUT: _bindgen_ty_51 = -885; +pub const AAUDIO_ERROR_WOULD_BLOCK: _bindgen_ty_51 = -884; +pub const AAUDIO_ERROR_INVALID_FORMAT: _bindgen_ty_51 = -883; +pub const AAUDIO_ERROR_OUT_OF_RANGE: _bindgen_ty_51 = -882; +pub const AAUDIO_ERROR_NO_SERVICE: _bindgen_ty_51 = -881; +pub const AAUDIO_ERROR_INVALID_RATE: _bindgen_ty_51 = -880; +pub type _bindgen_ty_51 = ::std::os::raw::c_int; pub type aaudio_result_t = i32; -pub const AAUDIO_STREAM_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 0; -pub const AAUDIO_STREAM_STATE_UNKNOWN: ::std::os::raw::c_uint = 1; -pub const AAUDIO_STREAM_STATE_OPEN: ::std::os::raw::c_uint = 2; -pub const AAUDIO_STREAM_STATE_STARTING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_STREAM_STATE_STARTED: ::std::os::raw::c_uint = 4; -pub const AAUDIO_STREAM_STATE_PAUSING: ::std::os::raw::c_uint = 5; -pub const AAUDIO_STREAM_STATE_PAUSED: ::std::os::raw::c_uint = 6; -pub const AAUDIO_STREAM_STATE_FLUSHING: ::std::os::raw::c_uint = 7; -pub const AAUDIO_STREAM_STATE_FLUSHED: ::std::os::raw::c_uint = 8; -pub const AAUDIO_STREAM_STATE_STOPPING: ::std::os::raw::c_uint = 9; -pub const AAUDIO_STREAM_STATE_STOPPED: ::std::os::raw::c_uint = 10; -pub const AAUDIO_STREAM_STATE_CLOSING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_STREAM_STATE_CLOSED: ::std::os::raw::c_uint = 12; -pub const AAUDIO_STREAM_STATE_DISCONNECTED: ::std::os::raw::c_uint = 13; -pub type _bindgen_ty_50 = ::std::os::raw::c_uint; +pub const AAUDIO_STREAM_STATE_UNINITIALIZED: _bindgen_ty_52 = 0; +pub const AAUDIO_STREAM_STATE_UNKNOWN: _bindgen_ty_52 = 1; +pub const AAUDIO_STREAM_STATE_OPEN: _bindgen_ty_52 = 2; +pub const AAUDIO_STREAM_STATE_STARTING: _bindgen_ty_52 = 3; +pub const AAUDIO_STREAM_STATE_STARTED: _bindgen_ty_52 = 4; +pub const AAUDIO_STREAM_STATE_PAUSING: _bindgen_ty_52 = 5; +pub const AAUDIO_STREAM_STATE_PAUSED: _bindgen_ty_52 = 6; +pub const AAUDIO_STREAM_STATE_FLUSHING: _bindgen_ty_52 = 7; +pub const AAUDIO_STREAM_STATE_FLUSHED: _bindgen_ty_52 = 8; +pub const AAUDIO_STREAM_STATE_STOPPING: _bindgen_ty_52 = 9; +pub const AAUDIO_STREAM_STATE_STOPPED: _bindgen_ty_52 = 10; +pub const AAUDIO_STREAM_STATE_CLOSING: _bindgen_ty_52 = 11; +pub const AAUDIO_STREAM_STATE_CLOSED: _bindgen_ty_52 = 12; +pub const AAUDIO_STREAM_STATE_DISCONNECTED: _bindgen_ty_52 = 13; +pub type _bindgen_ty_52 = ::std::os::raw::c_uint; pub type aaudio_stream_state_t = i32; -pub const AAUDIO_SHARING_MODE_EXCLUSIVE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_SHARING_MODE_SHARED: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_51 = ::std::os::raw::c_uint; +pub const AAUDIO_SHARING_MODE_EXCLUSIVE: _bindgen_ty_53 = 0; +pub const AAUDIO_SHARING_MODE_SHARED: _bindgen_ty_53 = 1; +pub type _bindgen_ty_53 = ::std::os::raw::c_uint; pub type aaudio_sharing_mode_t = i32; -pub const AAUDIO_PERFORMANCE_MODE_NONE: ::std::os::raw::c_uint = 10; -pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: ::std::os::raw::c_uint = 12; -pub type _bindgen_ty_52 = ::std::os::raw::c_uint; +pub const AAUDIO_PERFORMANCE_MODE_NONE: _bindgen_ty_54 = 10; +pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: _bindgen_ty_54 = 11; +pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: _bindgen_ty_54 = 12; +pub type _bindgen_ty_54 = ::std::os::raw::c_uint; pub type aaudio_performance_mode_t = i32; -pub const AAUDIO_USAGE_MEDIA: ::std::os::raw::c_uint = 1; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 2; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_USAGE_ALARM: ::std::os::raw::c_uint = 4; -pub const AAUDIO_USAGE_NOTIFICATION: ::std::os::raw::c_uint = 5; -pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: ::std::os::raw::c_uint = 6; -pub const AAUDIO_USAGE_NOTIFICATION_EVENT: ::std::os::raw::c_uint = 10; -pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: ::std::os::raw::c_uint = 11; -pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: ::std::os::raw::c_uint = 12; -pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: ::std::os::raw::c_uint = 13; -pub const AAUDIO_USAGE_GAME: ::std::os::raw::c_uint = 14; -pub const AAUDIO_USAGE_ASSISTANT: ::std::os::raw::c_uint = 16; -pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: ::std::os::raw::c_uint = 1000; -pub const AAUDIO_SYSTEM_USAGE_SAFETY: ::std::os::raw::c_uint = 1001; -pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: ::std::os::raw::c_uint = 1002; -pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: ::std::os::raw::c_uint = 1003; -pub type _bindgen_ty_53 = ::std::os::raw::c_uint; +pub const AAUDIO_USAGE_MEDIA: _bindgen_ty_55 = 1; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION: _bindgen_ty_55 = 2; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: _bindgen_ty_55 = 3; +pub const AAUDIO_USAGE_ALARM: _bindgen_ty_55 = 4; +pub const AAUDIO_USAGE_NOTIFICATION: _bindgen_ty_55 = 5; +pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: _bindgen_ty_55 = 6; +pub const AAUDIO_USAGE_NOTIFICATION_EVENT: _bindgen_ty_55 = 10; +pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: _bindgen_ty_55 = 11; +pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: _bindgen_ty_55 = 12; +pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: _bindgen_ty_55 = 13; +pub const AAUDIO_USAGE_GAME: _bindgen_ty_55 = 14; +pub const AAUDIO_USAGE_ASSISTANT: _bindgen_ty_55 = 16; +pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: _bindgen_ty_55 = 1000; +pub const AAUDIO_SYSTEM_USAGE_SAFETY: _bindgen_ty_55 = 1001; +pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: _bindgen_ty_55 = 1002; +pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: _bindgen_ty_55 = 1003; +pub type _bindgen_ty_55 = ::std::os::raw::c_uint; pub type aaudio_usage_t = i32; -pub const AAUDIO_CONTENT_TYPE_SPEECH: ::std::os::raw::c_uint = 1; -pub const AAUDIO_CONTENT_TYPE_MUSIC: ::std::os::raw::c_uint = 2; -pub const AAUDIO_CONTENT_TYPE_MOVIE: ::std::os::raw::c_uint = 3; -pub const AAUDIO_CONTENT_TYPE_SONIFICATION: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_54 = ::std::os::raw::c_uint; +pub const AAUDIO_CONTENT_TYPE_SPEECH: _bindgen_ty_56 = 1; +pub const AAUDIO_CONTENT_TYPE_MUSIC: _bindgen_ty_56 = 2; +pub const AAUDIO_CONTENT_TYPE_MOVIE: _bindgen_ty_56 = 3; +pub const AAUDIO_CONTENT_TYPE_SONIFICATION: _bindgen_ty_56 = 4; +pub type _bindgen_ty_56 = ::std::os::raw::c_uint; pub type aaudio_content_type_t = i32; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: ::std::os::raw::c_uint = 1; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_55 = ::std::os::raw::c_uint; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: _bindgen_ty_57 = 1; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: _bindgen_ty_57 = 2; +pub type _bindgen_ty_57 = ::std::os::raw::c_uint; pub type aaudio_spatialization_behavior_t = i32; -pub const AAUDIO_INPUT_PRESET_GENERIC: ::std::os::raw::c_uint = 1; -pub const AAUDIO_INPUT_PRESET_CAMCORDER: ::std::os::raw::c_uint = 5; -pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: ::std::os::raw::c_uint = 6; -pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 7; -pub const AAUDIO_INPUT_PRESET_UNPROCESSED: ::std::os::raw::c_uint = 9; -pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: ::std::os::raw::c_uint = 10; -pub type _bindgen_ty_56 = ::std::os::raw::c_uint; +pub const AAUDIO_INPUT_PRESET_GENERIC: _bindgen_ty_58 = 1; +pub const AAUDIO_INPUT_PRESET_CAMCORDER: _bindgen_ty_58 = 5; +pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: _bindgen_ty_58 = 6; +pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: _bindgen_ty_58 = 7; +pub const AAUDIO_INPUT_PRESET_UNPROCESSED: _bindgen_ty_58 = 9; +pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: _bindgen_ty_58 = 10; +pub type _bindgen_ty_58 = ::std::os::raw::c_uint; pub type aaudio_input_preset_t = i32; -pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: ::std::os::raw::c_uint = 1; -pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: ::std::os::raw::c_uint = 2; -pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_57 = ::std::os::raw::c_uint; +pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: _bindgen_ty_59 = 1; +pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: _bindgen_ty_59 = 2; +pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: _bindgen_ty_59 = 3; +pub type _bindgen_ty_59 = ::std::os::raw::c_uint; pub type aaudio_allowed_capture_policy_t = i32; -pub const AAUDIO_SESSION_ID_NONE: ::std::os::raw::c_int = -1; -pub const AAUDIO_SESSION_ID_ALLOCATE: ::std::os::raw::c_int = 0; -pub type _bindgen_ty_58 = ::std::os::raw::c_int; +pub const AAUDIO_SESSION_ID_NONE: _bindgen_ty_60 = -1; +pub const AAUDIO_SESSION_ID_ALLOCATE: _bindgen_ty_60 = 0; +pub type _bindgen_ty_60 = ::std::os::raw::c_int; pub type aaudio_session_id_t = i32; -pub const AAUDIO_CHANNEL_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_CHANNEL_FRONT_LEFT: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_FRONT_RIGHT: ::std::os::raw::c_int = 2; -pub const AAUDIO_CHANNEL_FRONT_CENTER: ::std::os::raw::c_int = 4; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY: ::std::os::raw::c_int = 8; -pub const AAUDIO_CHANNEL_BACK_LEFT: ::std::os::raw::c_int = 16; -pub const AAUDIO_CHANNEL_BACK_RIGHT: ::std::os::raw::c_int = 32; -pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: ::std::os::raw::c_int = 64; -pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: ::std::os::raw::c_int = 128; -pub const AAUDIO_CHANNEL_BACK_CENTER: ::std::os::raw::c_int = 256; -pub const AAUDIO_CHANNEL_SIDE_LEFT: ::std::os::raw::c_int = 512; -pub const AAUDIO_CHANNEL_SIDE_RIGHT: ::std::os::raw::c_int = 1024; -pub const AAUDIO_CHANNEL_TOP_CENTER: ::std::os::raw::c_int = 2048; -pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: ::std::os::raw::c_int = 4096; -pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: ::std::os::raw::c_int = 8192; -pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: ::std::os::raw::c_int = 16384; -pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: ::std::os::raw::c_int = 32768; -pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: ::std::os::raw::c_int = 65536; -pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: ::std::os::raw::c_int = 131072; -pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: ::std::os::raw::c_int = 262144; -pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: ::std::os::raw::c_int = 524288; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: ::std::os::raw::c_int = 1048576; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: ::std::os::raw::c_int = 2097152; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: ::std::os::raw::c_int = 4194304; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: ::std::os::raw::c_int = 8388608; -pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: ::std::os::raw::c_int = 16777216; -pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: ::std::os::raw::c_int = 33554432; -pub const AAUDIO_CHANNEL_MONO: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_STEREO: ::std::os::raw::c_int = 3; -pub const AAUDIO_CHANNEL_2POINT1: ::std::os::raw::c_int = 11; -pub const AAUDIO_CHANNEL_TRI: ::std::os::raw::c_int = 7; -pub const AAUDIO_CHANNEL_TRI_BACK: ::std::os::raw::c_int = 259; -pub const AAUDIO_CHANNEL_3POINT1: ::std::os::raw::c_int = 15; -pub const AAUDIO_CHANNEL_2POINT0POINT2: ::std::os::raw::c_int = 786435; -pub const AAUDIO_CHANNEL_2POINT1POINT2: ::std::os::raw::c_int = 786443; -pub const AAUDIO_CHANNEL_3POINT0POINT2: ::std::os::raw::c_int = 786439; -pub const AAUDIO_CHANNEL_3POINT1POINT2: ::std::os::raw::c_int = 786447; -pub const AAUDIO_CHANNEL_QUAD: ::std::os::raw::c_int = 51; -pub const AAUDIO_CHANNEL_QUAD_SIDE: ::std::os::raw::c_int = 1539; -pub const AAUDIO_CHANNEL_SURROUND: ::std::os::raw::c_int = 263; -pub const AAUDIO_CHANNEL_PENTA: ::std::os::raw::c_int = 55; -pub const AAUDIO_CHANNEL_5POINT1: ::std::os::raw::c_int = 63; -pub const AAUDIO_CHANNEL_5POINT1_SIDE: ::std::os::raw::c_int = 1551; -pub const AAUDIO_CHANNEL_6POINT1: ::std::os::raw::c_int = 319; -pub const AAUDIO_CHANNEL_7POINT1: ::std::os::raw::c_int = 1599; -pub const AAUDIO_CHANNEL_5POINT1POINT2: ::std::os::raw::c_int = 786495; -pub const AAUDIO_CHANNEL_5POINT1POINT4: ::std::os::raw::c_int = 184383; -pub const AAUDIO_CHANNEL_7POINT1POINT2: ::std::os::raw::c_int = 788031; -pub const AAUDIO_CHANNEL_7POINT1POINT4: ::std::os::raw::c_int = 185919; -pub const AAUDIO_CHANNEL_9POINT1POINT4: ::std::os::raw::c_int = 50517567; -pub const AAUDIO_CHANNEL_9POINT1POINT6: ::std::os::raw::c_int = 51303999; -pub const AAUDIO_CHANNEL_FRONT_BACK: ::std::os::raw::c_int = 260; -pub type _bindgen_ty_59 = ::std::os::raw::c_int; +pub const AAUDIO_CHANNEL_INVALID: _bindgen_ty_61 = -1; +pub const AAUDIO_CHANNEL_FRONT_LEFT: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_FRONT_RIGHT: _bindgen_ty_61 = 2; +pub const AAUDIO_CHANNEL_FRONT_CENTER: _bindgen_ty_61 = 4; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY: _bindgen_ty_61 = 8; +pub const AAUDIO_CHANNEL_BACK_LEFT: _bindgen_ty_61 = 16; +pub const AAUDIO_CHANNEL_BACK_RIGHT: _bindgen_ty_61 = 32; +pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: _bindgen_ty_61 = 64; +pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: _bindgen_ty_61 = 128; +pub const AAUDIO_CHANNEL_BACK_CENTER: _bindgen_ty_61 = 256; +pub const AAUDIO_CHANNEL_SIDE_LEFT: _bindgen_ty_61 = 512; +pub const AAUDIO_CHANNEL_SIDE_RIGHT: _bindgen_ty_61 = 1024; +pub const AAUDIO_CHANNEL_TOP_CENTER: _bindgen_ty_61 = 2048; +pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: _bindgen_ty_61 = 4096; +pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: _bindgen_ty_61 = 8192; +pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: _bindgen_ty_61 = 16384; +pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: _bindgen_ty_61 = 32768; +pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: _bindgen_ty_61 = 65536; +pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: _bindgen_ty_61 = 131072; +pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: _bindgen_ty_61 = 262144; +pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: _bindgen_ty_61 = 524288; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: _bindgen_ty_61 = 1048576; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: _bindgen_ty_61 = 2097152; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: _bindgen_ty_61 = 4194304; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: _bindgen_ty_61 = 8388608; +pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: _bindgen_ty_61 = 16777216; +pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: _bindgen_ty_61 = 33554432; +pub const AAUDIO_CHANNEL_MONO: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_STEREO: _bindgen_ty_61 = 3; +pub const AAUDIO_CHANNEL_2POINT1: _bindgen_ty_61 = 11; +pub const AAUDIO_CHANNEL_TRI: _bindgen_ty_61 = 7; +pub const AAUDIO_CHANNEL_TRI_BACK: _bindgen_ty_61 = 259; +pub const AAUDIO_CHANNEL_3POINT1: _bindgen_ty_61 = 15; +pub const AAUDIO_CHANNEL_2POINT0POINT2: _bindgen_ty_61 = 786435; +pub const AAUDIO_CHANNEL_2POINT1POINT2: _bindgen_ty_61 = 786443; +pub const AAUDIO_CHANNEL_3POINT0POINT2: _bindgen_ty_61 = 786439; +pub const AAUDIO_CHANNEL_3POINT1POINT2: _bindgen_ty_61 = 786447; +pub const AAUDIO_CHANNEL_QUAD: _bindgen_ty_61 = 51; +pub const AAUDIO_CHANNEL_QUAD_SIDE: _bindgen_ty_61 = 1539; +pub const AAUDIO_CHANNEL_SURROUND: _bindgen_ty_61 = 263; +pub const AAUDIO_CHANNEL_PENTA: _bindgen_ty_61 = 55; +pub const AAUDIO_CHANNEL_5POINT1: _bindgen_ty_61 = 63; +pub const AAUDIO_CHANNEL_5POINT1_SIDE: _bindgen_ty_61 = 1551; +pub const AAUDIO_CHANNEL_6POINT1: _bindgen_ty_61 = 319; +pub const AAUDIO_CHANNEL_7POINT1: _bindgen_ty_61 = 1599; +pub const AAUDIO_CHANNEL_5POINT1POINT2: _bindgen_ty_61 = 786495; +pub const AAUDIO_CHANNEL_5POINT1POINT4: _bindgen_ty_61 = 184383; +pub const AAUDIO_CHANNEL_7POINT1POINT2: _bindgen_ty_61 = 788031; +pub const AAUDIO_CHANNEL_7POINT1POINT4: _bindgen_ty_61 = 185919; +pub const AAUDIO_CHANNEL_9POINT1POINT4: _bindgen_ty_61 = 50517567; +pub const AAUDIO_CHANNEL_9POINT1POINT6: _bindgen_ty_61 = 51303999; +pub const AAUDIO_CHANNEL_FRONT_BACK: _bindgen_ty_61 = 260; +pub type _bindgen_ty_61 = ::std::os::raw::c_int; pub type aaudio_channel_mask_t = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -17602,9 +17655,9 @@ extern "C" { privacySensitive: bool, ); } -pub const AAUDIO_CALLBACK_RESULT_CONTINUE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_CALLBACK_RESULT_STOP: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_60 = ::std::os::raw::c_uint; +pub const AAUDIO_CALLBACK_RESULT_CONTINUE: _bindgen_ty_62 = 0; +pub const AAUDIO_CALLBACK_RESULT_STOP: _bindgen_ty_62 = 1; +pub type _bindgen_ty_62 = ::std::os::raw::c_uint; pub type aaudio_data_callback_result_t = i32; pub type AAudioStream_dataCallback = ::std::option::Option< unsafe extern "C" fn( @@ -17896,13 +17949,13 @@ pub struct AMidiInputPort { pub struct AMidiOutputPort { _unused: [u8; 0], } -pub const AMIDI_OPCODE_DATA: ::std::os::raw::c_uint = 1; -pub const AMIDI_OPCODE_FLUSH: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_61 = ::std::os::raw::c_uint; -pub const AMIDI_DEVICE_TYPE_USB: ::std::os::raw::c_uint = 1; -pub const AMIDI_DEVICE_TYPE_VIRTUAL: ::std::os::raw::c_uint = 2; -pub const AMIDI_DEVICE_TYPE_BLUETOOTH: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_62 = ::std::os::raw::c_uint; +pub const AMIDI_OPCODE_DATA: _bindgen_ty_63 = 1; +pub const AMIDI_OPCODE_FLUSH: _bindgen_ty_63 = 2; +pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const AMIDI_DEVICE_TYPE_USB: _bindgen_ty_64 = 1; +pub const AMIDI_DEVICE_TYPE_VIRTUAL: _bindgen_ty_64 = 2; +pub const AMIDI_DEVICE_TYPE_BLUETOOTH: _bindgen_ty_64 = 3; +pub type _bindgen_ty_64 = ::std::os::raw::c_uint; impl AMidiDevice_Protocol { pub const AMIDI_DEVICE_PROTOCOL_UMP_USE_MIDI_CI: AMidiDevice_Protocol = AMidiDevice_Protocol(0); } @@ -21083,14 +21136,14 @@ pub use self::acamera_metadata_enum_acamera_automotive_lens_facing as acamera_me pub struct ACameraMetadata { _unused: [u8; 0], } -pub const ACAMERA_TYPE_BYTE: ::std::os::raw::c_uint = 0; -pub const ACAMERA_TYPE_INT32: ::std::os::raw::c_uint = 1; -pub const ACAMERA_TYPE_FLOAT: ::std::os::raw::c_uint = 2; -pub const ACAMERA_TYPE_INT64: ::std::os::raw::c_uint = 3; -pub const ACAMERA_TYPE_DOUBLE: ::std::os::raw::c_uint = 4; -pub const ACAMERA_TYPE_RATIONAL: ::std::os::raw::c_uint = 5; -pub const ACAMERA_NUM_TYPES: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const ACAMERA_TYPE_BYTE: _bindgen_ty_65 = 0; +pub const ACAMERA_TYPE_INT32: _bindgen_ty_65 = 1; +pub const ACAMERA_TYPE_FLOAT: _bindgen_ty_65 = 2; +pub const ACAMERA_TYPE_INT64: _bindgen_ty_65 = 3; +pub const ACAMERA_TYPE_DOUBLE: _bindgen_ty_65 = 4; +pub const ACAMERA_TYPE_RATIONAL: _bindgen_ty_65 = 5; +pub const ACAMERA_NUM_TYPES: _bindgen_ty_65 = 6; +pub type _bindgen_ty_65 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraMetadata_rational { @@ -21099,6 +21152,9 @@ pub struct ACameraMetadata_rational { } #[test] fn bindgen_test_layout_ACameraMetadata_rational() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21110,9 +21166,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { concat!("Alignment of ", stringify!(ACameraMetadata_rational)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).numerator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).numerator) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21122,9 +21176,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).denominator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).denominator) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21154,6 +21206,9 @@ pub union ACameraMetadata_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -21168,9 +21223,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21180,10 +21233,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21193,9 +21243,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21205,10 +21253,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21218,9 +21263,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21230,9 +21273,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21244,6 +21285,9 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21255,7 +21299,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21265,7 +21309,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21275,7 +21319,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21285,7 +21329,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21315,6 +21359,9 @@ pub union ACameraMetadata_const_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -21332,10 +21379,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21345,10 +21389,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21358,10 +21399,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21371,10 +21409,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21384,10 +21419,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21397,10 +21429,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21412,6 +21441,9 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21423,7 +21455,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_const_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21433,9 +21465,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21445,9 +21475,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21457,9 +21485,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21699,6 +21725,9 @@ pub struct ACameraCaptureSession_stateCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -21716,10 +21745,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21729,10 +21755,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onClosed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onClosed) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21742,10 +21765,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onReady as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onReady) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21755,10 +21775,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onActive as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onActive) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21768,9 +21785,9 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); } -pub const CAPTURE_FAILURE_REASON_FLUSHED: ::std::os::raw::c_uint = 0; -pub const CAPTURE_FAILURE_REASON_ERROR: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_64 = ::std::os::raw::c_uint; +pub const CAPTURE_FAILURE_REASON_FLUSHED: _bindgen_ty_66 = 0; +pub const CAPTURE_FAILURE_REASON_ERROR: _bindgen_ty_66 = 1; +pub type _bindgen_ty_66 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraCaptureFailure { @@ -21781,6 +21798,9 @@ pub struct ACameraCaptureFailure { } #[test] fn bindgen_test_layout_ACameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -21792,9 +21812,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { concat!("Alignment of ", stringify!(ACameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).frameNumber as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).frameNumber) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21804,7 +21822,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reason as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21814,9 +21832,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sequenceId as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sequenceId) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21826,9 +21842,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wasImageCaptured as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).wasImageCaptured) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21900,6 +21914,9 @@ pub struct ACameraCaptureSession_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -21917,10 +21934,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21930,10 +21944,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21943,10 +21954,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21956,10 +21964,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -21969,10 +21974,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21982,10 +21984,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -21995,10 +21994,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22008,10 +22004,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -22021,8 +22014,8 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); } -pub const CAPTURE_SEQUENCE_ID_NONE: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_65 = ::std::os::raw::c_int; +pub const CAPTURE_SEQUENCE_ID_NONE: _bindgen_ty_67 = -1; +pub type _bindgen_ty_67 = ::std::os::raw::c_int; extern "C" { pub fn ACameraCaptureSession_close(session: *mut ACameraCaptureSession); } @@ -22095,6 +22088,9 @@ pub struct ALogicalCameraCaptureFailure { } #[test] fn bindgen_test_layout_ALogicalCameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22106,10 +22102,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { concat!("Alignment of ", stringify!(ALogicalCameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).captureFailure as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).captureFailure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22119,10 +22112,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).physicalCameraId as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).physicalCameraId) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -22154,6 +22144,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -22171,10 +22164,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22184,10 +22174,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22197,10 +22184,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22211,8 +22195,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( @@ -22224,8 +22207,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 16usize, concat!( @@ -22236,10 +22218,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -22249,10 +22228,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22262,10 +22238,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -22316,6 +22289,9 @@ pub struct ACameraCaptureSession_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -22333,10 +22309,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22346,10 +22319,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22359,10 +22329,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22372,10 +22339,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -22385,10 +22349,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22398,10 +22359,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -22411,10 +22369,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22424,10 +22379,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -22451,6 +22403,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -22468,10 +22423,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22481,10 +22433,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22494,10 +22443,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22508,8 +22454,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 12usize, concat!( @@ -22521,8 +22466,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 16usize, concat!( @@ -22533,10 +22477,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -22546,10 +22487,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22559,10 +22497,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -22616,6 +22551,8 @@ pub struct ACameraIdList { } #[test] fn bindgen_test_layout_ACameraIdList() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -22627,7 +22564,7 @@ fn bindgen_test_layout_ACameraIdList() { concat!("Alignment of ", stringify!(ACameraIdList)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numCameras as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numCameras) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22637,7 +22574,7 @@ fn bindgen_test_layout_ACameraIdList() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cameraIds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cameraIds) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22647,12 +22584,12 @@ fn bindgen_test_layout_ACameraIdList() { ) ); } -pub const ERROR_CAMERA_IN_USE: ::std::os::raw::c_uint = 1; -pub const ERROR_MAX_CAMERAS_IN_USE: ::std::os::raw::c_uint = 2; -pub const ERROR_CAMERA_DISABLED: ::std::os::raw::c_uint = 3; -pub const ERROR_CAMERA_DEVICE: ::std::os::raw::c_uint = 4; -pub const ERROR_CAMERA_SERVICE: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_66 = ::std::os::raw::c_uint; +pub const ERROR_CAMERA_IN_USE: _bindgen_ty_68 = 1; +pub const ERROR_MAX_CAMERAS_IN_USE: _bindgen_ty_68 = 2; +pub const ERROR_CAMERA_DISABLED: _bindgen_ty_68 = 3; +pub const ERROR_CAMERA_DEVICE: _bindgen_ty_68 = 4; +pub const ERROR_CAMERA_SERVICE: _bindgen_ty_68 = 5; +pub type _bindgen_ty_68 = ::std::os::raw::c_uint; pub type ACameraDevice_StateCallback = ::std::option::Option< unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, device: *mut ACameraDevice), >; @@ -22672,6 +22609,9 @@ pub struct ACameraDevice_StateCallbacks { } #[test] fn bindgen_test_layout_ACameraDevice_StateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -22683,9 +22623,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { concat!("Alignment of ", stringify!(ACameraDevice_StateCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22695,10 +22633,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDisconnected as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDisconnected) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22708,9 +22643,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onError as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onError) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22890,6 +22823,9 @@ pub struct ACameraManager_AvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_AvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -22904,10 +22840,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22917,10 +22850,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -22930,10 +22860,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraUnavailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraUnavailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22984,6 +22911,9 @@ pub struct ACameraManager_ExtendedAvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -23001,10 +22931,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .availabilityCallbacks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).availabilityCallbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23015,8 +22942,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onCameraAccessPrioritiesChanged as *const _ as usize + ::std::ptr::addr_of!((*ptr).onCameraAccessPrioritiesChanged) as usize - ptr as usize }, 12usize, concat!( @@ -23027,10 +22953,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraAvailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraAvailable) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23040,10 +22963,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraUnavailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraUnavailable) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -23053,10 +22973,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).reserved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -23148,6 +23065,8 @@ pub struct AImageCropRect { } #[test] fn bindgen_test_layout_AImageCropRect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -23159,7 +23078,7 @@ fn bindgen_test_layout_AImageCropRect() { concat!("Alignment of ", stringify!(AImageCropRect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23169,7 +23088,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -23179,7 +23098,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23189,7 +23108,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -23312,6 +23231,9 @@ pub struct AImageReader_ImageListener { } #[test] fn bindgen_test_layout_AImageReader_ImageListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -23323,9 +23245,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { concat!("Alignment of ", stringify!(AImageReader_ImageListener)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23335,10 +23255,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onImageAvailable as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onImageAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -23393,6 +23310,9 @@ pub struct AImageReader_BufferRemovedListener { } #[test] fn bindgen_test_layout_AImageReader_BufferRemovedListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -23407,10 +23327,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23420,10 +23337,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onBufferRemoved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onBufferRemoved) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24059,6 +23973,9 @@ pub struct AMediaCodecBufferInfo { } #[test] fn bindgen_test_layout_AMediaCodecBufferInfo() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -24070,7 +23987,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { concat!("Alignment of ", stringify!(AMediaCodecBufferInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24080,7 +23997,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24090,10 +24007,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).presentationTimeUs as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).presentationTimeUs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24103,7 +24017,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -24118,14 +24032,14 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { pub struct AMediaCodecCryptoInfo { _unused: [u8; 0], } -pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: ::std::os::raw::c_int = 2; -pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: ::std::os::raw::c_int = 4; -pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: ::std::os::raw::c_int = 8; -pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: ::std::os::raw::c_int = 1; -pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: ::std::os::raw::c_int = -3; -pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: ::std::os::raw::c_int = -2; -pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_67 = ::std::os::raw::c_int; +pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: _bindgen_ty_69 = 2; +pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: _bindgen_ty_69 = 4; +pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: _bindgen_ty_69 = 8; +pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: _bindgen_ty_69 = 1; +pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: _bindgen_ty_69 = -3; +pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: _bindgen_ty_69 = -2; +pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: _bindgen_ty_69 = -1; +pub type _bindgen_ty_69 = ::std::os::raw::c_int; pub type AMediaCodecOnAsyncInputAvailable = ::std::option::Option< unsafe extern "C" fn( codec: *mut AMediaCodec, @@ -24167,6 +24081,9 @@ pub struct AMediaCodecOnAsyncNotifyCallback { } #[test] fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -24181,10 +24098,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncInputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncInputAvailable) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24194,10 +24108,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncOutputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncOutputAvailable) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24207,10 +24118,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncFormatChanged - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncFormatChanged) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24220,10 +24128,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncError as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncError) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -24297,7 +24202,7 @@ extern "C" { __file: *const ::std::os::raw::c_char, __line: ::std::os::raw::c_int, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn __assert2( @@ -24305,7 +24210,7 @@ extern "C" { __line: ::std::os::raw::c_int, __function: *const ::std::os::raw::c_char, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn AMediaCodec_queueInputBuffer( @@ -24444,6 +24349,8 @@ pub struct cryptoinfo_pattern_t { } #[test] fn bindgen_test_layout_cryptoinfo_pattern_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -24455,9 +24362,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { concat!("Alignment of ", stringify!(cryptoinfo_pattern_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).encryptBlocks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).encryptBlocks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24467,7 +24372,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).skipBlocks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).skipBlocks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24617,6 +24522,8 @@ pub struct AMediaDrmByteArray { } #[test] fn bindgen_test_layout_AMediaDrmByteArray() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -24628,7 +24535,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { concat!("Alignment of ", stringify!(AMediaDrmByteArray)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24638,7 +24545,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24709,6 +24616,9 @@ pub struct AMediaDrmKeyValuePair { } #[test] fn bindgen_test_layout_AMediaDrmKeyValuePair() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -24720,7 +24630,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { concat!("Alignment of ", stringify!(AMediaDrmKeyValuePair)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mKey as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mKey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24730,7 +24640,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mValue as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mValue) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24768,6 +24678,8 @@ pub struct AMediaDrmKeyStatus { } #[test] fn bindgen_test_layout_AMediaDrmKeyStatus() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -24779,7 +24691,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { concat!("Alignment of ", stringify!(AMediaDrmKeyStatus)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyId as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyId) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24789,7 +24701,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyType as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyType) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -25127,6 +25039,8 @@ pub struct PsshEntry { } #[test] fn bindgen_test_layout_PsshEntry() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -25138,7 +25052,7 @@ fn bindgen_test_layout_PsshEntry() { concat!("Alignment of ", stringify!(PsshEntry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uuid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uuid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -25148,7 +25062,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).datalen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datalen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -25158,7 +25072,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -25176,6 +25090,8 @@ pub struct PsshInfo { } #[test] fn bindgen_test_layout_PsshInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 4usize, @@ -25187,7 +25103,7 @@ fn bindgen_test_layout_PsshInfo() { concat!("Alignment of ", stringify!(PsshInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numentries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numentries) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -25197,7 +25113,7 @@ fn bindgen_test_layout_PsshInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).entries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).entries) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -25215,9 +25131,9 @@ extern "C" { arg1: *mut AMediaExtractor, ) -> *mut AMediaCodecCryptoInfo; } -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: ::std::os::raw::c_uint = 1; -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_68 = ::std::os::raw::c_uint; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: _bindgen_ty_70 = 1; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: _bindgen_ty_70 = 2; +pub type _bindgen_ty_70 = ::std::os::raw::c_uint; extern "C" { pub fn AMediaExtractor_getFileFormat(arg1: *mut AMediaExtractor) -> *mut AMediaFormat; } diff --git a/ndk-sys/src/ffi_x86_64.rs b/ndk-sys/src/ffi_x86_64.rs index 6271be29..66ac1d41 100644 --- a/ndk-sys/src/ffi_x86_64.rs +++ b/ndk-sys/src/ffi_x86_64.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.66.0 */ #[repr(C)] #[derive(Default)] @@ -35,9 +35,9 @@ pub const __WORDSIZE: u32 = 64; pub const __bos_level: u32 = 0; pub const __ANDROID_NDK__: u32 = 1; pub const __NDK_MAJOR__: u32 = 25; -pub const __NDK_MINOR__: u32 = 0; +pub const __NDK_MINOR__: u32 = 1; pub const __NDK_BETA__: u32 = 0; -pub const __NDK_BUILD__: u32 = 8775105; +pub const __NDK_BUILD__: u32 = 8937393; pub const __NDK_CANARY__: u32 = 0; pub const __ANDROID_API_FUTURE__: u32 = 10000; pub const __ANDROID_API__: u32 = 10000; @@ -59,6 +59,7 @@ pub const __ANDROID_API_Q__: u32 = 29; pub const __ANDROID_API_R__: u32 = 30; pub const __ANDROID_API_S__: u32 = 31; pub const __ANDROID_API_T__: u32 = 33; +pub const __ANDROID_API_U__: u32 = 34; pub const INT8_MIN: i32 = -128; pub const INT8_MAX: u32 = 127; pub const INT_LEAST8_MIN: i32 = -128; @@ -89,1050 +90,166 @@ pub const WINT_MAX: u32 = 4294967295; pub const WINT_MIN: u32 = 0; pub const __BITS_PER_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; -pub const __GNUC_VA_LIST: u32 = 1; +pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; -pub const __bool_true_false_are_defined: u32 = 1; -pub const __PRI_64_prefix: &[u8; 2usize] = b"l\0"; -pub const __PRI_PTR_prefix: &[u8; 2usize] = b"l\0"; -pub const __PRI_FAST_prefix: &[u8; 2usize] = b"l\0"; -pub const PRId8: &[u8; 2usize] = b"d\0"; -pub const PRId16: &[u8; 2usize] = b"d\0"; -pub const PRId32: &[u8; 2usize] = b"d\0"; -pub const PRId64: &[u8; 3usize] = b"ld\0"; -pub const PRIdLEAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST16: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; -pub const PRIdLEAST64: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST8: &[u8; 2usize] = b"d\0"; -pub const PRIdFAST16: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST32: &[u8; 3usize] = b"ld\0"; -pub const PRIdFAST64: &[u8; 3usize] = b"ld\0"; -pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; -pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; -pub const PRIi8: &[u8; 2usize] = b"i\0"; -pub const PRIi16: &[u8; 2usize] = b"i\0"; -pub const PRIi32: &[u8; 2usize] = b"i\0"; -pub const PRIi64: &[u8; 3usize] = b"li\0"; -pub const PRIiLEAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST16: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; -pub const PRIiLEAST64: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST8: &[u8; 2usize] = b"i\0"; -pub const PRIiFAST16: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST32: &[u8; 3usize] = b"li\0"; -pub const PRIiFAST64: &[u8; 3usize] = b"li\0"; -pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; -pub const PRIiPTR: &[u8; 3usize] = b"li\0"; -pub const PRIo8: &[u8; 2usize] = b"o\0"; -pub const PRIo16: &[u8; 2usize] = b"o\0"; -pub const PRIo32: &[u8; 2usize] = b"o\0"; -pub const PRIo64: &[u8; 3usize] = b"lo\0"; -pub const PRIoLEAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST16: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; -pub const PRIoLEAST64: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST8: &[u8; 2usize] = b"o\0"; -pub const PRIoFAST16: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST32: &[u8; 3usize] = b"lo\0"; -pub const PRIoFAST64: &[u8; 3usize] = b"lo\0"; -pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; -pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; -pub const PRIu8: &[u8; 2usize] = b"u\0"; -pub const PRIu16: &[u8; 2usize] = b"u\0"; -pub const PRIu32: &[u8; 2usize] = b"u\0"; -pub const PRIu64: &[u8; 3usize] = b"lu\0"; -pub const PRIuLEAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST16: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; -pub const PRIuLEAST64: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST8: &[u8; 2usize] = b"u\0"; -pub const PRIuFAST16: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST32: &[u8; 3usize] = b"lu\0"; -pub const PRIuFAST64: &[u8; 3usize] = b"lu\0"; -pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; -pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; -pub const PRIx8: &[u8; 2usize] = b"x\0"; -pub const PRIx16: &[u8; 2usize] = b"x\0"; -pub const PRIx32: &[u8; 2usize] = b"x\0"; -pub const PRIx64: &[u8; 3usize] = b"lx\0"; -pub const PRIxLEAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST16: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; -pub const PRIxLEAST64: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST8: &[u8; 2usize] = b"x\0"; -pub const PRIxFAST16: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST32: &[u8; 3usize] = b"lx\0"; -pub const PRIxFAST64: &[u8; 3usize] = b"lx\0"; -pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; -pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; -pub const PRIX8: &[u8; 2usize] = b"X\0"; -pub const PRIX16: &[u8; 2usize] = b"X\0"; -pub const PRIX32: &[u8; 2usize] = b"X\0"; -pub const PRIX64: &[u8; 3usize] = b"lX\0"; -pub const PRIXLEAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST16: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; -pub const PRIXLEAST64: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST8: &[u8; 2usize] = b"X\0"; -pub const PRIXFAST16: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST32: &[u8; 3usize] = b"lX\0"; -pub const PRIXFAST64: &[u8; 3usize] = b"lX\0"; -pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; -pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; -pub const SCNd8: &[u8; 4usize] = b"hhd\0"; -pub const SCNd16: &[u8; 3usize] = b"hd\0"; -pub const SCNd32: &[u8; 2usize] = b"d\0"; -pub const SCNd64: &[u8; 3usize] = b"ld\0"; -pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; -pub const SCNdLEAST64: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNdFAST16: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST32: &[u8; 3usize] = b"ld\0"; -pub const SCNdFAST64: &[u8; 3usize] = b"ld\0"; -pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; -pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; -pub const SCNi8: &[u8; 4usize] = b"hhi\0"; -pub const SCNi16: &[u8; 3usize] = b"hi\0"; -pub const SCNi32: &[u8; 2usize] = b"i\0"; -pub const SCNi64: &[u8; 3usize] = b"li\0"; -pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; -pub const SCNiLEAST64: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNiFAST16: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST32: &[u8; 3usize] = b"li\0"; -pub const SCNiFAST64: &[u8; 3usize] = b"li\0"; -pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; -pub const SCNiPTR: &[u8; 3usize] = b"li\0"; -pub const SCNo8: &[u8; 4usize] = b"hho\0"; -pub const SCNo16: &[u8; 3usize] = b"ho\0"; -pub const SCNo32: &[u8; 2usize] = b"o\0"; -pub const SCNo64: &[u8; 3usize] = b"lo\0"; -pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; -pub const SCNoLEAST64: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNoFAST16: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST32: &[u8; 3usize] = b"lo\0"; -pub const SCNoFAST64: &[u8; 3usize] = b"lo\0"; -pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; -pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; -pub const SCNu8: &[u8; 4usize] = b"hhu\0"; -pub const SCNu16: &[u8; 3usize] = b"hu\0"; -pub const SCNu32: &[u8; 2usize] = b"u\0"; -pub const SCNu64: &[u8; 3usize] = b"lu\0"; -pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; -pub const SCNuLEAST64: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNuFAST16: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST32: &[u8; 3usize] = b"lu\0"; -pub const SCNuFAST64: &[u8; 3usize] = b"lu\0"; -pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; -pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; -pub const SCNx8: &[u8; 4usize] = b"hhx\0"; -pub const SCNx16: &[u8; 3usize] = b"hx\0"; -pub const SCNx32: &[u8; 2usize] = b"x\0"; -pub const SCNx64: &[u8; 3usize] = b"lx\0"; -pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; -pub const SCNxLEAST64: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNxFAST16: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST32: &[u8; 3usize] = b"lx\0"; -pub const SCNxFAST64: &[u8; 3usize] = b"lx\0"; -pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; -pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_DSYNC: u32 = 4096; -pub const FASYNC: u32 = 8192; -pub const O_DIRECT: u32 = 16384; -pub const O_LARGEFILE: u32 = 32768; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_NOATIME: u32 = 262144; -pub const O_CLOEXEC: u32 = 524288; -pub const __O_SYNC: u32 = 1048576; -pub const O_SYNC: u32 = 1052672; -pub const O_PATH: u32 = 2097152; -pub const __O_TMPFILE: u32 = 4194304; -pub const O_TMPFILE: u32 = 4259840; -pub const O_TMPFILE_MASK: u32 = 4259904; -pub const O_NDELAY: u32 = 2048; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const F_SETSIG: u32 = 10; -pub const F_GETSIG: u32 = 11; -pub const F_SETOWN_EX: u32 = 15; -pub const F_GETOWN_EX: u32 = 16; -pub const F_GETOWNER_UIDS: u32 = 17; -pub const F_OFD_GETLK: u32 = 36; -pub const F_OFD_SETLK: u32 = 37; -pub const F_OFD_SETLKW: u32 = 38; -pub const F_OWNER_TID: u32 = 0; -pub const F_OWNER_PID: u32 = 1; -pub const F_OWNER_PGRP: u32 = 2; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const LOCK_MAND: u32 = 32; -pub const LOCK_READ: u32 = 64; -pub const LOCK_WRITE: u32 = 128; -pub const LOCK_RW: u32 = 192; -pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const SOCK_IOC_TYPE: u32 = 137; -pub const SIOCGSTAMP: u32 = 35078; -pub const SIOCGSTAMPNS: u32 = 35079; -pub const SIOCADDRT: u32 = 35083; -pub const SIOCDELRT: u32 = 35084; -pub const SIOCRTMSG: u32 = 35085; -pub const SIOCGIFNAME: u32 = 35088; -pub const SIOCSIFLINK: u32 = 35089; -pub const SIOCGIFCONF: u32 = 35090; -pub const SIOCGIFFLAGS: u32 = 35091; -pub const SIOCSIFFLAGS: u32 = 35092; -pub const SIOCGIFADDR: u32 = 35093; -pub const SIOCSIFADDR: u32 = 35094; -pub const SIOCGIFDSTADDR: u32 = 35095; -pub const SIOCSIFDSTADDR: u32 = 35096; -pub const SIOCGIFBRDADDR: u32 = 35097; -pub const SIOCSIFBRDADDR: u32 = 35098; -pub const SIOCGIFNETMASK: u32 = 35099; -pub const SIOCSIFNETMASK: u32 = 35100; -pub const SIOCGIFMETRIC: u32 = 35101; -pub const SIOCSIFMETRIC: u32 = 35102; -pub const SIOCGIFMEM: u32 = 35103; -pub const SIOCSIFMEM: u32 = 35104; -pub const SIOCGIFMTU: u32 = 35105; -pub const SIOCSIFMTU: u32 = 35106; -pub const SIOCSIFNAME: u32 = 35107; -pub const SIOCSIFHWADDR: u32 = 35108; -pub const SIOCGIFENCAP: u32 = 35109; -pub const SIOCSIFENCAP: u32 = 35110; -pub const SIOCGIFHWADDR: u32 = 35111; -pub const SIOCGIFSLAVE: u32 = 35113; -pub const SIOCSIFSLAVE: u32 = 35120; -pub const SIOCADDMULTI: u32 = 35121; -pub const SIOCDELMULTI: u32 = 35122; -pub const SIOCGIFINDEX: u32 = 35123; -pub const SIOGIFINDEX: u32 = 35123; -pub const SIOCSIFPFLAGS: u32 = 35124; -pub const SIOCGIFPFLAGS: u32 = 35125; -pub const SIOCDIFADDR: u32 = 35126; -pub const SIOCSIFHWBROADCAST: u32 = 35127; -pub const SIOCGIFCOUNT: u32 = 35128; -pub const SIOCGIFBR: u32 = 35136; -pub const SIOCSIFBR: u32 = 35137; -pub const SIOCGIFTXQLEN: u32 = 35138; -pub const SIOCSIFTXQLEN: u32 = 35139; -pub const SIOCETHTOOL: u32 = 35142; -pub const SIOCGMIIPHY: u32 = 35143; -pub const SIOCGMIIREG: u32 = 35144; -pub const SIOCSMIIREG: u32 = 35145; -pub const SIOCWANDEV: u32 = 35146; -pub const SIOCOUTQNSD: u32 = 35147; -pub const SIOCGSKNS: u32 = 35148; -pub const SIOCDARP: u32 = 35155; -pub const SIOCGARP: u32 = 35156; -pub const SIOCSARP: u32 = 35157; -pub const SIOCDRARP: u32 = 35168; -pub const SIOCGRARP: u32 = 35169; -pub const SIOCSRARP: u32 = 35170; -pub const SIOCGIFMAP: u32 = 35184; -pub const SIOCSIFMAP: u32 = 35185; -pub const SIOCADDDLCI: u32 = 35200; -pub const SIOCDELDLCI: u32 = 35201; -pub const SIOCGIFVLAN: u32 = 35202; -pub const SIOCSIFVLAN: u32 = 35203; -pub const SIOCBONDENSLAVE: u32 = 35216; -pub const SIOCBONDRELEASE: u32 = 35217; -pub const SIOCBONDSETHWADDR: u32 = 35218; -pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; -pub const SIOCBONDINFOQUERY: u32 = 35220; -pub const SIOCBONDCHANGEACTIVE: u32 = 35221; -pub const SIOCBRADDBR: u32 = 35232; -pub const SIOCBRDELBR: u32 = 35233; -pub const SIOCBRADDIF: u32 = 35234; -pub const SIOCBRDELIF: u32 = 35235; -pub const SIOCSHWTSTAMP: u32 = 35248; -pub const SIOCGHWTSTAMP: u32 = 35249; -pub const SIOCDEVPRIVATE: u32 = 35312; -pub const SIOCPROTOPRIVATE: u32 = 35296; -pub const UIO_FASTIOV: u32 = 8; -pub const UIO_MAXIOV: u32 = 1024; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const SOCK_DCCP: u32 = 6; -pub const SOCK_PACKET: u32 = 10; -pub const SOCK_CLOEXEC: u32 = 524288; -pub const SOCK_NONBLOCK: u32 = 2048; -pub const SCM_RIGHTS: u32 = 1; -pub const SCM_CREDENTIALS: u32 = 2; -pub const SCM_SECURITY: u32 = 3; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_LOCAL: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_MAX: u32 = 43; -pub const PF_UNSPEC: u32 = 0; -pub const PF_UNIX: u32 = 1; -pub const PF_LOCAL: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_MAX: u32 = 43; -pub const SOMAXCONN: u32 = 128; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_TRYHARD: u32 = 4; -pub const MSG_CTRUNC: u32 = 8; -pub const MSG_PROBE: u32 = 16; -pub const MSG_TRUNC: u32 = 32; -pub const MSG_DONTWAIT: u32 = 64; -pub const MSG_EOR: u32 = 128; -pub const MSG_WAITALL: u32 = 256; -pub const MSG_FIN: u32 = 512; -pub const MSG_SYN: u32 = 1024; -pub const MSG_CONFIRM: u32 = 2048; -pub const MSG_RST: u32 = 4096; -pub const MSG_ERRQUEUE: u32 = 8192; -pub const MSG_NOSIGNAL: u32 = 16384; -pub const MSG_MORE: u32 = 32768; -pub const MSG_WAITFORONE: u32 = 65536; -pub const MSG_BATCH: u32 = 262144; -pub const MSG_FASTOPEN: u32 = 536870912; -pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; -pub const MSG_EOF: u32 = 512; -pub const MSG_CMSG_COMPAT: u32 = 0; -pub const SOL_IP: u32 = 0; -pub const SOL_TCP: u32 = 6; -pub const SOL_UDP: u32 = 17; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const SOL_SCTP: u32 = 132; -pub const SOL_RAW: u32 = 255; -pub const SOL_IPX: u32 = 256; -pub const SOL_AX25: u32 = 257; -pub const SOL_ATALK: u32 = 258; -pub const SOL_NETROM: u32 = 259; -pub const SOL_ROSE: u32 = 260; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const IPX_TYPE: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 24usize] = b"/system/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 18usize] = b"/system/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 21usize] = b"/system/etc/networks\0"; -pub const _PATH_PROTOCOLS: &[u8; 22usize] = b"/system/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 21usize] = b"/system/etc/services\0"; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NO_ADDRESS: u32 = 4; -pub const EAI_ADDRFAMILY: u32 = 1; -pub const EAI_AGAIN: u32 = 2; -pub const EAI_BADFLAGS: u32 = 3; -pub const EAI_FAIL: u32 = 4; -pub const EAI_FAMILY: u32 = 5; -pub const EAI_MEMORY: u32 = 6; -pub const EAI_NODATA: u32 = 7; -pub const EAI_NONAME: u32 = 8; -pub const EAI_SERVICE: u32 = 9; -pub const EAI_SOCKTYPE: u32 = 10; -pub const EAI_SYSTEM: u32 = 11; -pub const EAI_BADHINTS: u32 = 12; -pub const EAI_PROTOCOL: u32 = 13; -pub const EAI_OVERFLOW: u32 = 14; -pub const EAI_MAX: u32 = 15; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_NUMERICSERV: u32 = 8; -pub const AI_ALL: u32 = 256; -pub const AI_V4MAPPED_CFG: u32 = 512; -pub const AI_ADDRCONFIG: u32 = 1024; -pub const AI_V4MAPPED: u32 = 2048; -pub const AI_DEFAULT: u32 = 1536; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NOFQDN: u32 = 1; -pub const NI_NUMERICHOST: u32 = 2; -pub const NI_NAMEREQD: u32 = 4; -pub const NI_NUMERICSERV: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const SCOPE_DELIMITER: u8 = 37u8; -pub const IPPORT_RESERVED: u32 = 1024; -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 P_ALL: u32 = 0; -pub const P_PID: u32 = 1; -pub const P_PGID: u32 = 2; -pub const P_PIDFD: u32 = 3; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 1024; -pub const EOF: i32 = -1; -pub const FOPEN_MAX: u32 = 20; -pub const FILENAME_MAX: u32 = 4096; -pub const L_tmpnam: u32 = 4096; -pub const TMP_MAX: u32 = 308915776; -pub const P_tmpdir: &[u8; 6usize] = b"/tmp/\0"; -pub const L_ctermid: u32 = 1024; -pub const STRUCT_MALLINFO_DECLARED: u32 = 1; -pub const M_DECAY_TIME: i32 = -100; -pub const M_PURGE: i32 = -101; -pub const M_MEMTAG_TUNING: i32 = -102; -pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; -pub const M_MEMTAG_TUNING_UAF: u32 = 1; -pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; -pub const M_CACHE_COUNT_MAX: i32 = -200; -pub const M_CACHE_SIZE_MAX: i32 = -201; -pub const M_TSDS_COUNT_MAX: i32 = -202; -pub const M_BIONIC_ZERO_INIT: i32 = -203; -pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const RAND_MAX: u32 = 2147483647; -pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; -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 PASS_MAX: u32 = 128; -pub const NL_ARGMAX: u32 = 9; -pub const NL_LANGMAX: u32 = 14; -pub const NL_MSGMAX: u32 = 32767; -pub const NL_NMAX: u32 = 1; -pub const NL_SETMAX: u32 = 255; -pub const NL_TEXTMAX: u32 = 255; -pub const CHAR_BIT: u32 = 8; -pub const LONG_BIT: u32 = 64; -pub const WORD_BIT: u32 = 32; -pub const SCHAR_MAX: u32 = 127; -pub const SCHAR_MIN: i32 = -128; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MAX: u32 = 127; -pub const CHAR_MIN: i32 = -128; -pub const USHRT_MAX: u32 = 65535; -pub const SHRT_MAX: u32 = 32767; -pub const SHRT_MIN: i32 = -32768; -pub const UINT_MAX: u32 = 4294967295; -pub const INT_MAX: u32 = 2147483647; -pub const INT_MIN: i32 = -2147483648; -pub const ULONG_MAX: i32 = -1; -pub const LONG_MAX: u64 = 9223372036854775807; -pub const LONG_MIN: i64 = -9223372036854775808; -pub const ULLONG_MAX: i32 = -1; -pub const LLONG_MAX: u64 = 9223372036854775807; -pub const LLONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MIN: i64 = -9223372036854775808; -pub const LONG_LONG_MAX: u64 = 9223372036854775807; -pub const ULONG_LONG_MAX: i32 = -1; -pub const UID_MAX: u32 = 4294967295; -pub const GID_MAX: u32 = 4294967295; -pub const SIZE_T_MAX: i32 = -1; -pub const SSIZE_MAX: u64 = 9223372036854775807; -pub const MB_LEN_MAX: u32 = 4; -pub const NZERO: u32 = 20; -pub const IOV_MAX: u32 = 1024; -pub const SEM_VALUE_MAX: u32 = 1073741823; -pub const _POSIX_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; -pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; -pub const _POSIX_CPUTIME: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: i32 = -1; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: i32 = -1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_CPUTIME: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: i32 = -1; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX2_FORT_DEV: i32 = -1; -pub const _POSIX2_FORT_RUN: i32 = -1; -pub const _POSIX2_LOCALEDEF: i32 = -1; -pub const _POSIX2_SW_DEV: i32 = -1; -pub const _POSIX2_UPE: i32 = -1; -pub const _POSIX_V7_ILP32_OFF32: i32 = -1; -pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: u32 = 1; -pub const _POSIX_V7_LPBIG_OFFBIG: u32 = 1; -pub const _XOPEN_CRYPT: i32 = -1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: i32 = -1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _XOPEN_STREAMS: i32 = -1; -pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; -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_SS_REPL_MAX: u32 = 4; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; -pub const _POSIX_TRACE_NAME_MAX: u32 = 8; -pub const _POSIX_TRACE_SYS_MAX: u32 = 8; -pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -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_CHARCLASS_NAME_MAX: u32 = 14; -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 _XOPEN_IOV_MAX: u32 = 16; -pub const _XOPEN_NAME_MAX: u32 = 255; -pub const _XOPEN_PATH_MAX: u32 = 1024; -pub const HOST_NAME_MAX: u32 = 255; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const TTY_NAME_MAX: u32 = 32; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_KEYS_MAX: u32 = 128; -pub const FP_INFINITE: u32 = 1; -pub const FP_NAN: u32 = 2; -pub const FP_NORMAL: u32 = 4; -pub const FP_SUBNORMAL: u32 = 8; -pub const FP_ZERO: u32 = 16; -pub const FP_ILOGB0: i32 = -2147483647; -pub const FP_ILOGBNAN: u32 = 2147483647; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 2; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; -pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; -pub const ASENSOR_INVALID: i32 = -1; -pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; -pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; -pub const _IOC_NRBITS: u32 = 8; -pub const _IOC_TYPEBITS: u32 = 8; -pub const _IOC_SIZEBITS: u32 = 14; -pub const _IOC_DIRBITS: u32 = 2; -pub const _IOC_NRMASK: u32 = 255; -pub const _IOC_TYPEMASK: u32 = 255; -pub const _IOC_SIZEMASK: u32 = 16383; -pub const _IOC_DIRMASK: u32 = 3; -pub const _IOC_NRSHIFT: u32 = 0; -pub const _IOC_TYPESHIFT: u32 = 8; -pub const _IOC_SIZESHIFT: u32 = 16; -pub const _IOC_DIRSHIFT: u32 = 30; -pub const _IOC_NONE: u32 = 0; -pub const _IOC_WRITE: u32 = 1; -pub const _IOC_READ: u32 = 2; -pub const IOC_IN: u32 = 1073741824; -pub const IOC_OUT: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IOCSIZE_MASK: u32 = 1073676288; -pub const IOCSIZE_SHIFT: u32 = 16; -pub const SYNC_IOC_MAGIC: u8 = 62u8; -pub const ITIMER_REAL: u32 = 0; -pub const ITIMER_VIRTUAL: u32 = 1; -pub const ITIMER_PROF: u32 = 2; -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_SGI_CYCLE: u32 = 10; -pub const CLOCK_TAI: u32 = 11; -pub const MAX_CLOCKS: u32 = 16; -pub const CLOCKS_MASK: u32 = 1; -pub const CLOCKS_MONO: u32 = 1; -pub const TIMER_ABSTIME: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const X86_FXSR_MAGIC: u32 = 0; -pub const _KERNEL_NSIG: u32 = 32; -pub const SIGHUP: u32 = 1; -pub const SIGINT: u32 = 2; -pub const SIGQUIT: u32 = 3; -pub const SIGILL: u32 = 4; -pub const SIGTRAP: u32 = 5; -pub const SIGABRT: u32 = 6; -pub const SIGIOT: u32 = 6; -pub const SIGBUS: u32 = 7; -pub const SIGFPE: u32 = 8; -pub const SIGKILL: u32 = 9; -pub const SIGUSR1: u32 = 10; -pub const SIGSEGV: u32 = 11; -pub const SIGUSR2: u32 = 12; -pub const SIGPIPE: u32 = 13; -pub const SIGALRM: u32 = 14; -pub const SIGTERM: u32 = 15; -pub const SIGSTKFLT: u32 = 16; -pub const SIGCHLD: u32 = 17; -pub const SIGCONT: u32 = 18; -pub const SIGSTOP: u32 = 19; -pub const SIGTSTP: u32 = 20; -pub const SIGTTIN: u32 = 21; -pub const SIGTTOU: u32 = 22; -pub const SIGURG: u32 = 23; -pub const SIGXCPU: u32 = 24; -pub const SIGXFSZ: u32 = 25; -pub const SIGVTALRM: u32 = 26; -pub const SIGPROF: u32 = 27; -pub const SIGWINCH: u32 = 28; -pub const SIGIO: u32 = 29; -pub const SIGPOLL: u32 = 29; -pub const SIGPWR: u32 = 30; -pub const SIGSYS: u32 = 31; -pub const SIGUNUSED: u32 = 31; -pub const __SIGRTMIN: u32 = 32; -pub const SA_RESTORER: u32 = 67108864; -pub const MINSIGSTKSZ: u32 = 2048; -pub const SIGSTKSZ: u32 = 8192; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_UNSUPPORTED: u32 = 1024; -pub const SA_EXPOSE_TAGBITS: u32 = 2048; -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_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SIG_BLOCK: u32 = 0; -pub const SIG_UNBLOCK: u32 = 1; -pub const SIG_SETMASK: u32 = 2; -pub const SI_MAX_SIZE: u32 = 128; -pub const SI_USER: u32 = 0; -pub const SI_KERNEL: u32 = 128; -pub const SI_QUEUE: i32 = -1; -pub const SI_TIMER: i32 = -2; -pub const SI_MESGQ: i32 = -3; -pub const SI_ASYNCIO: i32 = -4; -pub const SI_SIGIO: i32 = -5; -pub const SI_TKILL: i32 = -6; -pub const SI_DETHREAD: i32 = -7; -pub const SI_ASYNCNL: i32 = -60; -pub const ILL_ILLOPC: u32 = 1; -pub const ILL_ILLOPN: u32 = 2; -pub const ILL_ILLADR: u32 = 3; -pub const ILL_ILLTRP: u32 = 4; -pub const ILL_PRVOPC: u32 = 5; -pub const ILL_PRVREG: u32 = 6; -pub const ILL_COPROC: u32 = 7; -pub const ILL_BADSTK: u32 = 8; -pub const ILL_BADIADDR: u32 = 9; -pub const __ILL_BREAK: u32 = 10; -pub const __ILL_BNDMOD: u32 = 11; -pub const NSIGILL: u32 = 11; -pub const FPE_INTDIV: u32 = 1; -pub const FPE_INTOVF: u32 = 2; -pub const FPE_FLTDIV: u32 = 3; -pub const FPE_FLTOVF: u32 = 4; -pub const FPE_FLTUND: u32 = 5; -pub const FPE_FLTRES: u32 = 6; -pub const FPE_FLTINV: u32 = 7; -pub const FPE_FLTSUB: u32 = 8; -pub const __FPE_DECOVF: u32 = 9; -pub const __FPE_DECDIV: u32 = 10; -pub const __FPE_DECERR: u32 = 11; -pub const __FPE_INVASC: u32 = 12; -pub const __FPE_INVDEC: u32 = 13; -pub const FPE_FLTUNK: u32 = 14; -pub const FPE_CONDTRAP: u32 = 15; -pub const NSIGFPE: u32 = 15; -pub const SEGV_MAPERR: u32 = 1; -pub const SEGV_ACCERR: u32 = 2; -pub const SEGV_BNDERR: u32 = 3; -pub const SEGV_PKUERR: u32 = 4; -pub const SEGV_ACCADI: u32 = 5; -pub const SEGV_ADIDERR: u32 = 6; -pub const SEGV_ADIPERR: u32 = 7; -pub const SEGV_MTEAERR: u32 = 8; -pub const SEGV_MTESERR: u32 = 9; -pub const NSIGSEGV: u32 = 9; -pub const BUS_ADRALN: u32 = 1; -pub const BUS_ADRERR: u32 = 2; -pub const BUS_OBJERR: u32 = 3; -pub const BUS_MCEERR_AR: u32 = 4; -pub const BUS_MCEERR_AO: u32 = 5; -pub const NSIGBUS: u32 = 5; -pub const TRAP_BRKPT: u32 = 1; -pub const TRAP_TRACE: u32 = 2; -pub const TRAP_BRANCH: u32 = 3; -pub const TRAP_HWBKPT: u32 = 4; -pub const TRAP_UNK: u32 = 5; -pub const TRAP_PERF: u32 = 6; -pub const NSIGTRAP: u32 = 6; -pub const CLD_EXITED: u32 = 1; -pub const CLD_KILLED: u32 = 2; -pub const CLD_DUMPED: u32 = 3; -pub const CLD_TRAPPED: u32 = 4; -pub const CLD_STOPPED: u32 = 5; -pub const CLD_CONTINUED: u32 = 6; -pub const NSIGCHLD: u32 = 6; -pub const POLL_IN: u32 = 1; -pub const POLL_OUT: u32 = 2; -pub const POLL_MSG: u32 = 3; -pub const POLL_ERR: u32 = 4; -pub const POLL_PRI: u32 = 5; -pub const POLL_HUP: u32 = 6; -pub const NSIGPOLL: u32 = 6; -pub const SYS_SECCOMP: u32 = 1; -pub const SYS_USER_DISPATCH: u32 = 2; -pub const NSIGSYS: u32 = 2; -pub const EMT_TAGOVF: u32 = 1; -pub const NSIGEMT: u32 = 1; -pub const SIGEV_SIGNAL: u32 = 0; -pub const SIGEV_NONE: u32 = 1; -pub const SIGEV_THREAD: u32 = 2; -pub const SIGEV_THREAD_ID: u32 = 4; -pub const SIGEV_MAX_SIZE: u32 = 64; -pub const SS_ONSTACK: u32 = 1; -pub const SS_DISABLE: u32 = 2; -pub const SS_AUTODISARM: u32 = 2147483648; -pub const SS_FLAG_BITS: u32 = 2147483648; -pub const _KERNEL__NSIG: u32 = 64; -pub const _NSIG: u32 = 65; -pub const NSIG: u32 = 65; -pub const PAGE_SIZE: u32 = 4096; -pub const PAGE_MASK: i32 = -4096; -pub const FD_SETSIZE: u32 = 1024; -pub const CLOCKS_PER_SEC: u32 = 1000000; -pub const TIME_UTC: u32 = 1; -pub const AAUDIO_UNSPECIFIED: u32 = 0; -pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; -pub const PROPERTY_VENDOR: &[u8; 7usize] = b"vendor\0"; -pub const PROPERTY_VERSION: &[u8; 8usize] = b"version\0"; -pub const PROPERTY_DESCRIPTION: &[u8; 12usize] = b"description\0"; -pub const PROPERTY_ALGORITHMS: &[u8; 11usize] = b"algorithms\0"; -pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15usize] = b"deviceUniqueId\0"; +pub const __PRI_64_prefix: &[u8; 2] = b"l\0"; +pub const __PRI_PTR_prefix: &[u8; 2] = b"l\0"; +pub const __PRI_FAST_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 PRIdMAX: &[u8; 3] = b"jd\0"; +pub const PRIdPTR: &[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 PRIiMAX: &[u8; 3] = b"ji\0"; +pub const PRIiPTR: &[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 PRIoMAX: &[u8; 3] = b"jo\0"; +pub const PRIoPTR: &[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 PRIuMAX: &[u8; 3] = b"ju\0"; +pub const PRIuPTR: &[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 PRIxMAX: &[u8; 3] = b"jx\0"; +pub const PRIxPTR: &[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 PRIXMAX: &[u8; 3] = b"jX\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 SCNdMAX: &[u8; 3] = b"jd\0"; +pub const SCNdPTR: &[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 SCNiMAX: &[u8; 3] = b"ji\0"; +pub const SCNiPTR: &[u8; 3] = b"li\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 SCNoMAX: &[u8; 3] = b"jo\0"; +pub const SCNoPTR: &[u8; 3] = b"lo\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 SCNuMAX: &[u8; 3] = b"ju\0"; +pub const SCNuPTR: &[u8; 3] = b"lu\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 SCNxMAX: &[u8; 3] = b"jx\0"; +pub const SCNxPTR: &[u8; 3] = b"lx\0"; extern "C" { pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; } @@ -1151,6 +268,8 @@ pub struct max_align_t { } #[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, @@ -1162,9 +281,7 @@ fn bindgen_test_layout_max_align_t() { concat!("Alignment of ", stringify!(max_align_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1174,9 +291,7 @@ fn bindgen_test_layout_max_align_t() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__clang_max_align_nonce2 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1229,6 +344,8 @@ pub struct __kernel_fd_set { } #[test] fn bindgen_test_layout___kernel_fd_set() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fd_set> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fd_set>(), 128usize, @@ -1240,7 +357,7 @@ fn bindgen_test_layout___kernel_fd_set() { concat!("Alignment of ", stringify!(__kernel_fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1279,6 +396,8 @@ pub struct __kernel_fsid_t { } #[test] fn bindgen_test_layout___kernel_fsid_t() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_fsid_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_fsid_t>(), 8usize, @@ -1290,7 +409,7 @@ fn bindgen_test_layout___kernel_fsid_t() { concat!("Alignment of ", stringify!(__kernel_fsid_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).val) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1333,6 +452,8 @@ pub struct pthread_attr_t { } #[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, @@ -1344,7 +465,7 @@ fn bindgen_test_layout_pthread_attr_t() { concat!("Alignment of ", stringify!(pthread_attr_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1354,7 +475,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_base) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1364,7 +485,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stack_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stack_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1374,7 +495,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).guard_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).guard_size) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -1384,7 +505,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_policy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_policy) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -1394,7 +515,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sched_priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sched_priority) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -1404,7 +525,7 @@ fn bindgen_test_layout_pthread_attr_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -1421,6 +542,8 @@ pub struct pthread_barrier_t { } #[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, @@ -1432,7 +555,7 @@ fn bindgen_test_layout_pthread_barrier_t() { concat!("Alignment of ", stringify!(pthread_barrier_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1450,6 +573,8 @@ pub struct pthread_cond_t { } #[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, @@ -1461,7 +586,7 @@ fn bindgen_test_layout_pthread_cond_t() { concat!("Alignment of ", stringify!(pthread_cond_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1480,6 +605,8 @@ pub struct pthread_mutex_t { } #[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, @@ -1491,7 +618,7 @@ fn bindgen_test_layout_pthread_mutex_t() { concat!("Alignment of ", stringify!(pthread_mutex_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1510,6 +637,8 @@ pub struct pthread_rwlock_t { } #[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, @@ -1521,7 +650,7 @@ fn bindgen_test_layout_pthread_rwlock_t() { concat!("Alignment of ", stringify!(pthread_rwlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1539,6 +668,8 @@ pub struct pthread_spinlock_t { } #[test] fn bindgen_test_layout_pthread_spinlock_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -1550,7 +681,7 @@ fn bindgen_test_layout_pthread_spinlock_t() { concat!("Alignment of ", stringify!(pthread_spinlock_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__private as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__private) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1628,10 +759,10 @@ pub struct AAssetDir { pub struct AAsset { _unused: [u8; 0], } -pub const AASSET_MODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AASSET_MODE_RANDOM: ::std::os::raw::c_uint = 1; -pub const AASSET_MODE_STREAMING: ::std::os::raw::c_uint = 2; -pub const AASSET_MODE_BUFFER: ::std::os::raw::c_uint = 3; +pub const AASSET_MODE_UNKNOWN: _bindgen_ty_1 = 0; +pub const AASSET_MODE_RANDOM: _bindgen_ty_1 = 1; +pub const AASSET_MODE_STREAMING: _bindgen_ty_1 = 2; +pub const AASSET_MODE_BUFFER: _bindgen_ty_1 = 3; pub type _bindgen_ty_1 = ::std::os::raw::c_uint; extern "C" { pub fn AAssetManager_openDir( @@ -1707,8 +838,8 @@ extern "C" { extern "C" { pub fn AAsset_isAllocated(asset: *mut AAsset) -> ::std::os::raw::c_int; } -pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; +pub type va_list = __builtin_va_list; #[repr(C)] pub struct JavaVMAttachArgs { pub version: jint, @@ -1717,6 +848,8 @@ pub struct JavaVMAttachArgs { } #[test] fn bindgen_test_layout_JavaVMAttachArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -1728,7 +861,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { concat!("Alignment of ", stringify!(JavaVMAttachArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1738,7 +871,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1748,7 +881,7 @@ fn bindgen_test_layout_JavaVMAttachArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).group as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).group) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1766,6 +899,8 @@ pub struct JavaVMOption { } #[test] fn bindgen_test_layout_JavaVMOption() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -1777,7 +912,7 @@ fn bindgen_test_layout_JavaVMOption() { concat!("Alignment of ", stringify!(JavaVMOption)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).optionString as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).optionString) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1787,7 +922,7 @@ fn bindgen_test_layout_JavaVMOption() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).extraInfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extraInfo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1806,6 +941,8 @@ pub struct JavaVMInitArgs { } #[test] fn bindgen_test_layout_JavaVMInitArgs() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -1817,7 +954,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { concat!("Alignment of ", stringify!(JavaVMInitArgs)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1827,7 +964,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).nOptions as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nOptions) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1837,7 +974,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).options as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).options) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1847,9 +984,7 @@ fn bindgen_test_layout_JavaVMInitArgs() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ignoreUnrecognized as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ignoreUnrecognized) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1862,10 +997,10 @@ fn bindgen_test_layout_JavaVMInitArgs() { extern "C" { pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager; } -pub const ANDROID_BITMAP_RESULT_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: ::std::os::raw::c_int = -1; -pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: ::std::os::raw::c_int = -2; -pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: ::std::os::raw::c_int = -3; +pub const ANDROID_BITMAP_RESULT_SUCCESS: _bindgen_ty_2 = 0; +pub const ANDROID_BITMAP_RESULT_BAD_PARAMETER: _bindgen_ty_2 = -1; +pub const ANDROID_BITMAP_RESULT_JNI_EXCEPTION: _bindgen_ty_2 = -2; +pub const ANDROID_BITMAP_RESULT_ALLOCATION_FAILED: _bindgen_ty_2 = -3; pub type _bindgen_ty_2 = ::std::os::raw::c_int; impl AndroidBitmapFormat { pub const ANDROID_BITMAP_FORMAT_NONE: AndroidBitmapFormat = AndroidBitmapFormat(0); @@ -1891,13 +1026,13 @@ impl AndroidBitmapFormat { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AndroidBitmapFormat(pub ::std::os::raw::c_uint); -pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: ::std::os::raw::c_uint = 0; -pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: ::std::os::raw::c_uint = 1; -pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: ::std::os::raw::c_uint = 2; -pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: ::std::os::raw::c_uint = 3; -pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: ::std::os::raw::c_uint = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_PREMUL: _bindgen_ty_3 = 0; +pub const ANDROID_BITMAP_FLAGS_ALPHA_OPAQUE: _bindgen_ty_3 = 1; +pub const ANDROID_BITMAP_FLAGS_ALPHA_UNPREMUL: _bindgen_ty_3 = 2; +pub const ANDROID_BITMAP_FLAGS_ALPHA_MASK: _bindgen_ty_3 = 3; +pub const ANDROID_BITMAP_FLAGS_ALPHA_SHIFT: _bindgen_ty_3 = 0; pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: ::std::os::raw::c_int = -2147483648; +pub const ANDROID_BITMAP_FLAGS_IS_HARDWARE: _bindgen_ty_4 = -2147483648; pub type _bindgen_ty_4 = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1910,6 +1045,8 @@ pub struct AndroidBitmapInfo { } #[test] fn bindgen_test_layout_AndroidBitmapInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 20usize, @@ -1921,7 +1058,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { concat!("Alignment of ", stringify!(AndroidBitmapInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1931,7 +1068,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -1941,7 +1078,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -1951,7 +1088,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -1961,7 +1098,7 @@ fn bindgen_test_layout_AndroidBitmapInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2158,92 +1295,92 @@ extern "C" { pub struct AConfiguration { _unused: [u8; 0], } -pub const ACONFIGURATION_ORIENTATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_ORIENTATION_PORT: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_ORIENTATION_LAND: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_ORIENTATION_SQUARE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_TOUCHSCREEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_TOUCHSCREEN_FINGER: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_DENSITY_DEFAULT: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_DENSITY_LOW: ::std::os::raw::c_uint = 120; -pub const ACONFIGURATION_DENSITY_MEDIUM: ::std::os::raw::c_uint = 160; -pub const ACONFIGURATION_DENSITY_TV: ::std::os::raw::c_uint = 213; -pub const ACONFIGURATION_DENSITY_HIGH: ::std::os::raw::c_uint = 240; -pub const ACONFIGURATION_DENSITY_XHIGH: ::std::os::raw::c_uint = 320; -pub const ACONFIGURATION_DENSITY_XXHIGH: ::std::os::raw::c_uint = 480; -pub const ACONFIGURATION_DENSITY_XXXHIGH: ::std::os::raw::c_uint = 640; -pub const ACONFIGURATION_DENSITY_ANY: ::std::os::raw::c_uint = 65534; -pub const ACONFIGURATION_DENSITY_NONE: ::std::os::raw::c_uint = 65535; -pub const ACONFIGURATION_KEYBOARD_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYBOARD_NOKEYS: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYBOARD_QWERTY: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYBOARD_12KEY: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVIGATION_NONAV: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVIGATION_DPAD: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_NAVIGATION_TRACKBALL: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVIGATION_WHEEL: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_KEYSHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_KEYSHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_KEYSHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_KEYSHIDDEN_SOFT: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_NAVHIDDEN_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_NAVHIDDEN_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_NAVHIDDEN_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENSIZE_SMALL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENSIZE_NORMAL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENSIZE_LARGE: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_SCREENSIZE_XLARGE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_SCREENLONG_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENLONG_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENLONG_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREENROUND_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREENROUND_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_SCREENROUND_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_HDR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_HDR_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_HDR_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_TYPE_DESK: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_UI_MODE_TYPE_CAR: ::std::os::raw::c_uint = 3; -pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: ::std::os::raw::c_uint = 5; -pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: ::std::os::raw::c_uint = 6; -pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: ::std::os::raw::c_uint = 7; -pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_UI_MODE_NIGHT_NO: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_UI_MODE_NIGHT_YES: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_ANY: ::std::os::raw::c_uint = 0; -pub const ACONFIGURATION_LAYOUTDIR_LTR: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_LAYOUTDIR_RTL: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_MCC: ::std::os::raw::c_uint = 1; -pub const ACONFIGURATION_MNC: ::std::os::raw::c_uint = 2; -pub const ACONFIGURATION_LOCALE: ::std::os::raw::c_uint = 4; -pub const ACONFIGURATION_TOUCHSCREEN: ::std::os::raw::c_uint = 8; -pub const ACONFIGURATION_KEYBOARD: ::std::os::raw::c_uint = 16; -pub const ACONFIGURATION_KEYBOARD_HIDDEN: ::std::os::raw::c_uint = 32; -pub const ACONFIGURATION_NAVIGATION: ::std::os::raw::c_uint = 64; -pub const ACONFIGURATION_ORIENTATION: ::std::os::raw::c_uint = 128; -pub const ACONFIGURATION_DENSITY: ::std::os::raw::c_uint = 256; -pub const ACONFIGURATION_SCREEN_SIZE: ::std::os::raw::c_uint = 512; -pub const ACONFIGURATION_VERSION: ::std::os::raw::c_uint = 1024; -pub const ACONFIGURATION_SCREEN_LAYOUT: ::std::os::raw::c_uint = 2048; -pub const ACONFIGURATION_UI_MODE: ::std::os::raw::c_uint = 4096; -pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: ::std::os::raw::c_uint = 8192; -pub const ACONFIGURATION_LAYOUTDIR: ::std::os::raw::c_uint = 16384; -pub const ACONFIGURATION_SCREEN_ROUND: ::std::os::raw::c_uint = 32768; -pub const ACONFIGURATION_COLOR_MODE: ::std::os::raw::c_uint = 65536; -pub const ACONFIGURATION_MNC_ZERO: ::std::os::raw::c_uint = 65535; +pub const ACONFIGURATION_ORIENTATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_ORIENTATION_PORT: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_ORIENTATION_LAND: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_ORIENTATION_SQUARE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_TOUCHSCREEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_TOUCHSCREEN_NOTOUCH: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_TOUCHSCREEN_STYLUS: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_TOUCHSCREEN_FINGER: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_DENSITY_DEFAULT: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_DENSITY_LOW: _bindgen_ty_5 = 120; +pub const ACONFIGURATION_DENSITY_MEDIUM: _bindgen_ty_5 = 160; +pub const ACONFIGURATION_DENSITY_TV: _bindgen_ty_5 = 213; +pub const ACONFIGURATION_DENSITY_HIGH: _bindgen_ty_5 = 240; +pub const ACONFIGURATION_DENSITY_XHIGH: _bindgen_ty_5 = 320; +pub const ACONFIGURATION_DENSITY_XXHIGH: _bindgen_ty_5 = 480; +pub const ACONFIGURATION_DENSITY_XXXHIGH: _bindgen_ty_5 = 640; +pub const ACONFIGURATION_DENSITY_ANY: _bindgen_ty_5 = 65534; +pub const ACONFIGURATION_DENSITY_NONE: _bindgen_ty_5 = 65535; +pub const ACONFIGURATION_KEYBOARD_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYBOARD_NOKEYS: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYBOARD_QWERTY: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYBOARD_12KEY: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVIGATION_NONAV: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVIGATION_DPAD: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_NAVIGATION_TRACKBALL: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVIGATION_WHEEL: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_KEYSHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_KEYSHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_KEYSHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_KEYSHIDDEN_SOFT: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_NAVHIDDEN_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_NAVHIDDEN_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_NAVHIDDEN_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENSIZE_SMALL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENSIZE_NORMAL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENSIZE_LARGE: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_SCREENSIZE_XLARGE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_SCREENLONG_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENLONG_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENLONG_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREENROUND_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREENROUND_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_SCREENROUND_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_WIDE_COLOR_GAMUT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_HDR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_HDR_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_HDR_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_TYPE_NORMAL: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_TYPE_DESK: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_UI_MODE_TYPE_CAR: _bindgen_ty_5 = 3; +pub const ACONFIGURATION_UI_MODE_TYPE_TELEVISION: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_UI_MODE_TYPE_APPLIANCE: _bindgen_ty_5 = 5; +pub const ACONFIGURATION_UI_MODE_TYPE_WATCH: _bindgen_ty_5 = 6; +pub const ACONFIGURATION_UI_MODE_TYPE_VR_HEADSET: _bindgen_ty_5 = 7; +pub const ACONFIGURATION_UI_MODE_NIGHT_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_UI_MODE_NIGHT_NO: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_UI_MODE_NIGHT_YES: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SCREEN_HEIGHT_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_ANY: _bindgen_ty_5 = 0; +pub const ACONFIGURATION_LAYOUTDIR_LTR: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_LAYOUTDIR_RTL: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_MCC: _bindgen_ty_5 = 1; +pub const ACONFIGURATION_MNC: _bindgen_ty_5 = 2; +pub const ACONFIGURATION_LOCALE: _bindgen_ty_5 = 4; +pub const ACONFIGURATION_TOUCHSCREEN: _bindgen_ty_5 = 8; +pub const ACONFIGURATION_KEYBOARD: _bindgen_ty_5 = 16; +pub const ACONFIGURATION_KEYBOARD_HIDDEN: _bindgen_ty_5 = 32; +pub const ACONFIGURATION_NAVIGATION: _bindgen_ty_5 = 64; +pub const ACONFIGURATION_ORIENTATION: _bindgen_ty_5 = 128; +pub const ACONFIGURATION_DENSITY: _bindgen_ty_5 = 256; +pub const ACONFIGURATION_SCREEN_SIZE: _bindgen_ty_5 = 512; +pub const ACONFIGURATION_VERSION: _bindgen_ty_5 = 1024; +pub const ACONFIGURATION_SCREEN_LAYOUT: _bindgen_ty_5 = 2048; +pub const ACONFIGURATION_UI_MODE: _bindgen_ty_5 = 4096; +pub const ACONFIGURATION_SMALLEST_SCREEN_SIZE: _bindgen_ty_5 = 8192; +pub const ACONFIGURATION_LAYOUTDIR: _bindgen_ty_5 = 16384; +pub const ACONFIGURATION_SCREEN_ROUND: _bindgen_ty_5 = 32768; +pub const ACONFIGURATION_COLOR_MODE: _bindgen_ty_5 = 65536; +pub const ACONFIGURATION_MNC_ZERO: _bindgen_ty_5 = 65535; pub type _bindgen_ty_5 = ::std::os::raw::c_uint; extern "C" { pub fn AConfiguration_new() -> *mut AConfiguration; @@ -2416,6 +1553,8 @@ pub struct imaxdiv_t { } #[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, @@ -2427,7 +1566,7 @@ fn bindgen_test_layout_imaxdiv_t() { concat!("Alignment of ", stringify!(imaxdiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2437,7 +1576,7 @@ fn bindgen_test_layout_imaxdiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2625,16 +1764,16 @@ impl ADataSpace { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ADataSpace(pub ::std::os::raw::c_uint); -pub const ANDROID_DLEXT_RESERVED_ADDRESS: ::std::os::raw::c_uint = 1; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: ::std::os::raw::c_uint = 2; -pub const ANDROID_DLEXT_WRITE_RELRO: ::std::os::raw::c_uint = 4; -pub const ANDROID_DLEXT_USE_RELRO: ::std::os::raw::c_uint = 8; -pub const ANDROID_DLEXT_USE_LIBRARY_FD: ::std::os::raw::c_uint = 16; -pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: ::std::os::raw::c_uint = 32; -pub const ANDROID_DLEXT_FORCE_LOAD: ::std::os::raw::c_uint = 64; -pub const ANDROID_DLEXT_USE_NAMESPACE: ::std::os::raw::c_uint = 512; -pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: ::std::os::raw::c_uint = 1024; -pub const ANDROID_DLEXT_VALID_FLAG_BITS: ::std::os::raw::c_uint = 1663; +pub const ANDROID_DLEXT_RESERVED_ADDRESS: _bindgen_ty_6 = 1; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_HINT: _bindgen_ty_6 = 2; +pub const ANDROID_DLEXT_WRITE_RELRO: _bindgen_ty_6 = 4; +pub const ANDROID_DLEXT_USE_RELRO: _bindgen_ty_6 = 8; +pub const ANDROID_DLEXT_USE_LIBRARY_FD: _bindgen_ty_6 = 16; +pub const ANDROID_DLEXT_USE_LIBRARY_FD_OFFSET: _bindgen_ty_6 = 32; +pub const ANDROID_DLEXT_FORCE_LOAD: _bindgen_ty_6 = 64; +pub const ANDROID_DLEXT_USE_NAMESPACE: _bindgen_ty_6 = 512; +pub const ANDROID_DLEXT_RESERVED_ADDRESS_RECURSIVE: _bindgen_ty_6 = 1024; +pub const ANDROID_DLEXT_VALID_FLAG_BITS: _bindgen_ty_6 = 1663; pub type _bindgen_ty_6 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2654,6 +1793,8 @@ pub struct android_dlextinfo { } #[test] fn bindgen_test_layout_android_dlextinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -2665,7 +1806,7 @@ fn bindgen_test_layout_android_dlextinfo() { concat!("Alignment of ", stringify!(android_dlextinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2675,7 +1816,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_addr) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2685,7 +1826,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2695,7 +1836,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).relro_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).relro_fd) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2705,7 +1846,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).library_fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -2715,9 +1856,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_fd_offset as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_fd_offset) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2727,9 +1866,7 @@ fn bindgen_test_layout_android_dlextinfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).library_namespace as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).library_namespace) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -2848,33 +1985,816 @@ impl android_fdsan_error_level { #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct android_fdsan_error_level(pub ::std::os::raw::c_uint); extern "C" { - pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; + pub fn android_fdsan_get_error_level() -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level( + new_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn android_fdsan_set_error_level_from_property( + default_level: android_fdsan_error_level, + ) -> android_fdsan_error_level; +} +extern "C" { + pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; +} +extern "C" { + pub fn AFileDescriptor_getFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AFileDescriptor_setFd( + env: *mut JNIEnv, + fileDescriptor: jobject, + fd: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFont { + _unused: [u8; 0], +} +pub const AFONT_WEIGHT_MIN: _bindgen_ty_7 = 0; +pub const AFONT_WEIGHT_THIN: _bindgen_ty_7 = 100; +pub const AFONT_WEIGHT_EXTRA_LIGHT: _bindgen_ty_7 = 200; +pub const AFONT_WEIGHT_LIGHT: _bindgen_ty_7 = 300; +pub const AFONT_WEIGHT_NORMAL: _bindgen_ty_7 = 400; +pub const AFONT_WEIGHT_MEDIUM: _bindgen_ty_7 = 500; +pub const AFONT_WEIGHT_SEMI_BOLD: _bindgen_ty_7 = 600; +pub const AFONT_WEIGHT_BOLD: _bindgen_ty_7 = 700; +pub const AFONT_WEIGHT_EXTRA_BOLD: _bindgen_ty_7 = 800; +pub const AFONT_WEIGHT_BLACK: _bindgen_ty_7 = 900; +pub const AFONT_WEIGHT_MAX: _bindgen_ty_7 = 1000; +pub type _bindgen_ty_7 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFont_close(font: *mut AFont); +} +extern "C" { + pub fn AFont_getFontFilePath(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getWeight(font: *const AFont) -> u16; +} +extern "C" { + pub fn AFont_isItalic(font: *const AFont) -> bool; +} +extern "C" { + pub fn AFont_getLocale(font: *const AFont) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn AFont_getCollectionIndex(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisCount(font: *const AFont) -> size_t; +} +extern "C" { + pub fn AFont_getAxisTag(font: *const AFont, axisIndex: u32) -> u32; +} +extern "C" { + pub fn AFont_getAxisValue(font: *const AFont, axisIndex: u32) -> f32; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AFontMatcher { + _unused: [u8; 0], +} +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT: u32 = 8; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_DIRECT: u32 = 16384; +pub const O_LARGEFILE: u32 = 32768; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_TMPFILE_MASK: u32 = 4259904; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SOCK_IOC_TYPE: u32 = 137; +pub const SIOCGSTAMP: u32 = 35078; +pub const SIOCGSTAMPNS: u32 = 35079; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCETHTOOL: u32 = 35142; +pub const SIOCGMIIPHY: u32 = 35143; +pub const SIOCGMIIREG: u32 = 35144; +pub const SIOCSMIIREG: u32 = 35145; +pub const SIOCWANDEV: u32 = 35146; +pub const SIOCOUTQNSD: u32 = 35147; +pub const SIOCGSKNS: u32 = 35148; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCGIFVLAN: u32 = 35202; +pub const SIOCSIFVLAN: u32 = 35203; +pub const SIOCBONDENSLAVE: u32 = 35216; +pub const SIOCBONDRELEASE: u32 = 35217; +pub const SIOCBONDSETHWADDR: u32 = 35218; +pub const SIOCBONDSLAVEINFOQUERY: u32 = 35219; +pub const SIOCBONDINFOQUERY: u32 = 35220; +pub const SIOCBONDCHANGEACTIVE: u32 = 35221; +pub const SIOCBRADDBR: u32 = 35232; +pub const SIOCBRDELBR: u32 = 35233; +pub const SIOCBRADDIF: u32 = 35234; +pub const SIOCBRDELIF: u32 = 35235; +pub const SIOCSHWTSTAMP: u32 = 35248; +pub const SIOCGHWTSTAMP: u32 = 35249; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const SOCK_DCCP: u32 = 6; +pub const SOCK_PACKET: u32 = 10; +pub const SOCK_CLOEXEC: u32 = 524288; +pub const SOCK_NONBLOCK: u32 = 2048; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_LOCAL: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_ROUTE: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_MAX: u32 = 43; +pub const PF_UNSPEC: u32 = 0; +pub const PF_UNIX: u32 = 1; +pub const PF_LOCAL: u32 = 1; +pub const PF_INET: u32 = 2; +pub const PF_AX25: u32 = 3; +pub const PF_IPX: u32 = 4; +pub const PF_APPLETALK: u32 = 5; +pub const PF_NETROM: u32 = 6; +pub const PF_BRIDGE: u32 = 7; +pub const PF_ATMPVC: u32 = 8; +pub const PF_X25: u32 = 9; +pub const PF_INET6: u32 = 10; +pub const PF_ROSE: u32 = 11; +pub const PF_DECnet: u32 = 12; +pub const PF_NETBEUI: u32 = 13; +pub const PF_SECURITY: u32 = 14; +pub const PF_KEY: u32 = 15; +pub const PF_NETLINK: u32 = 16; +pub const PF_ROUTE: u32 = 16; +pub const PF_PACKET: u32 = 17; +pub const PF_ASH: u32 = 18; +pub const PF_ECONET: u32 = 19; +pub const PF_ATMSVC: u32 = 20; +pub const PF_RDS: u32 = 21; +pub const PF_SNA: u32 = 22; +pub const PF_IRDA: u32 = 23; +pub const PF_PPPOX: u32 = 24; +pub const PF_WANPIPE: u32 = 25; +pub const PF_LLC: u32 = 26; +pub const PF_CAN: u32 = 29; +pub const PF_TIPC: u32 = 30; +pub const PF_BLUETOOTH: u32 = 31; +pub const PF_IUCV: u32 = 32; +pub const PF_RXRPC: u32 = 33; +pub const PF_ISDN: u32 = 34; +pub const PF_PHONET: u32 = 35; +pub const PF_IEEE802154: u32 = 36; +pub const PF_CAIF: u32 = 37; +pub const PF_ALG: u32 = 38; +pub const PF_NFC: u32 = 39; +pub const PF_VSOCK: u32 = 40; +pub const PF_KCM: u32 = 41; +pub const PF_QIPCRTR: u32 = 42; +pub const PF_MAX: u32 = 43; +pub const SOMAXCONN: u32 = 128; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_TRYHARD: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_DONTWAIT: u32 = 64; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_WAITFORONE: u32 = 65536; +pub const MSG_BATCH: u32 = 262144; +pub const MSG_FASTOPEN: u32 = 536870912; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const MSG_EOF: u32 = 512; +pub const MSG_CMSG_COMPAT: u32 = 0; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const IPX_TYPE: u32 = 1; +pub const _PATH_HEQUIV: &[u8; 24] = b"/system/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 18] = b"/system/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 21] = b"/system/etc/networks\0"; +pub const _PATH_PROTOCOLS: &[u8; 22] = b"/system/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 21] = b"/system/etc/services\0"; +pub const NETDB_INTERNAL: i32 = -1; +pub const NETDB_SUCCESS: u32 = 0; +pub const HOST_NOT_FOUND: u32 = 1; +pub const TRY_AGAIN: u32 = 2; +pub const NO_RECOVERY: u32 = 3; +pub const NO_DATA: u32 = 4; +pub const NO_ADDRESS: u32 = 4; +pub const EAI_ADDRFAMILY: u32 = 1; +pub const EAI_AGAIN: u32 = 2; +pub const EAI_BADFLAGS: u32 = 3; +pub const EAI_FAIL: u32 = 4; +pub const EAI_FAMILY: u32 = 5; +pub const EAI_MEMORY: u32 = 6; +pub const EAI_NODATA: u32 = 7; +pub const EAI_NONAME: u32 = 8; +pub const EAI_SERVICE: u32 = 9; +pub const EAI_SOCKTYPE: u32 = 10; +pub const EAI_SYSTEM: u32 = 11; +pub const EAI_BADHINTS: u32 = 12; +pub const EAI_PROTOCOL: u32 = 13; +pub const EAI_OVERFLOW: u32 = 14; +pub const EAI_MAX: u32 = 15; +pub const AI_PASSIVE: u32 = 1; +pub const AI_CANONNAME: u32 = 2; +pub const AI_NUMERICHOST: u32 = 4; +pub const AI_NUMERICSERV: u32 = 8; +pub const AI_ALL: u32 = 256; +pub const AI_V4MAPPED_CFG: u32 = 512; +pub const AI_ADDRCONFIG: u32 = 1024; +pub const AI_V4MAPPED: u32 = 2048; +pub const AI_DEFAULT: u32 = 1536; +pub const NI_MAXHOST: u32 = 1025; +pub const NI_MAXSERV: u32 = 32; +pub const NI_NOFQDN: u32 = 1; +pub const NI_NUMERICHOST: u32 = 2; +pub const NI_NAMEREQD: u32 = 4; +pub const NI_NUMERICSERV: u32 = 8; +pub const NI_DGRAM: u32 = 16; +pub const SCOPE_DELIMITER: u8 = 37u8; +pub const IPPORT_RESERVED: u32 = 1024; +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 P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const _IOFBF: u32 = 0; +pub const _IOLBF: u32 = 1; +pub const _IONBF: u32 = 2; +pub const BUFSIZ: u32 = 1024; +pub const EOF: i32 = -1; +pub const FOPEN_MAX: u32 = 20; +pub const FILENAME_MAX: u32 = 4096; +pub const L_tmpnam: u32 = 4096; +pub const TMP_MAX: u32 = 308915776; +pub const P_tmpdir: &[u8; 6] = b"/tmp/\0"; +pub const L_ctermid: u32 = 1024; +pub const STRUCT_MALLINFO_DECLARED: u32 = 1; +pub const M_DECAY_TIME: i32 = -100; +pub const M_PURGE: i32 = -101; +pub const M_MEMTAG_TUNING: i32 = -102; +pub const M_MEMTAG_TUNING_BUFFER_OVERFLOW: u32 = 0; +pub const M_MEMTAG_TUNING_UAF: u32 = 1; +pub const M_THREAD_DISABLE_MEM_INIT: i32 = -103; +pub const M_CACHE_COUNT_MAX: i32 = -200; +pub const M_CACHE_SIZE_MAX: i32 = -201; +pub const M_TSDS_COUNT_MAX: i32 = -202; +pub const M_BIONIC_ZERO_INIT: i32 = -203; +pub const M_BIONIC_SET_HEAP_TAGGING_LEVEL: i32 = -204; +pub const EXIT_FAILURE: u32 = 1; +pub const EXIT_SUCCESS: u32 = 0; +pub const RAND_MAX: u32 = 2147483647; +pub const __NNAPI_FL5_MIN_ANDROID_API__: u32 = 31; +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 PASS_MAX: u32 = 128; +pub const NL_ARGMAX: u32 = 9; +pub const NL_LANGMAX: u32 = 14; +pub const NL_MSGMAX: u32 = 32767; +pub const NL_NMAX: u32 = 1; +pub const NL_SETMAX: u32 = 255; +pub const NL_TEXTMAX: u32 = 255; +pub const CHAR_BIT: u32 = 8; +pub const LONG_BIT: u32 = 64; +pub const WORD_BIT: u32 = 32; +pub const SCHAR_MAX: u32 = 127; +pub const SCHAR_MIN: i32 = -128; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MAX: u32 = 127; +pub const CHAR_MIN: i32 = -128; +pub const USHRT_MAX: u32 = 65535; +pub const SHRT_MAX: u32 = 32767; +pub const SHRT_MIN: i32 = -32768; +pub const UINT_MAX: u32 = 4294967295; +pub const INT_MAX: u32 = 2147483647; +pub const INT_MIN: i32 = -2147483648; +pub const ULONG_MAX: i32 = -1; +pub const LONG_MAX: u64 = 9223372036854775807; +pub const LONG_MIN: i64 = -9223372036854775808; +pub const ULLONG_MAX: i32 = -1; +pub const LLONG_MAX: u64 = 9223372036854775807; +pub const LLONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MIN: i64 = -9223372036854775808; +pub const LONG_LONG_MAX: u64 = 9223372036854775807; +pub const ULONG_LONG_MAX: i32 = -1; +pub const UID_MAX: u32 = 4294967295; +pub const GID_MAX: u32 = 4294967295; +pub const SIZE_T_MAX: i32 = -1; +pub const SSIZE_MAX: u64 = 9223372036854775807; +pub const MB_LEN_MAX: u32 = 4; +pub const NZERO: u32 = 20; +pub const IOV_MAX: u32 = 1024; +pub const SEM_VALUE_MAX: u32 = 1073741823; +pub const _POSIX_VERSION: u32 = 200809; +pub const _POSIX2_VERSION: u32 = 200809; +pub const _XOPEN_VERSION: u32 = 700; +pub const __BIONIC_POSIX_FEATURE_MISSING: i32 = -1; +pub const _POSIX_ASYNCHRONOUS_IO: i32 = -1; +pub const _POSIX_CHOWN_RESTRICTED: u32 = 1; +pub const _POSIX_CPUTIME: u32 = 200809; +pub const _POSIX_FSYNC: u32 = 200809; +pub const _POSIX_IPV6: u32 = 200809; +pub const _POSIX_MAPPED_FILES: u32 = 200809; +pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; +pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; +pub const _POSIX_MESSAGE_PASSING: i32 = -1; +pub const _POSIX_MONOTONIC_CLOCK: u32 = 200809; +pub const _POSIX_NO_TRUNC: u32 = 1; +pub const _POSIX_PRIORITIZED_IO: i32 = -1; +pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_RAW_SOCKETS: u32 = 200809; +pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; +pub const _POSIX_REGEXP: u32 = 1; +pub const _POSIX_SAVED_IDS: u32 = 1; +pub const _POSIX_SEMAPHORES: u32 = 200809; +pub const _POSIX_SHARED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_SHELL: u32 = 1; +pub const _POSIX_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; +pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; +pub const _POSIX_THREAD_CPUTIME: u32 = 200809; +pub const _POSIX_THREAD_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; +pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; +pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: i32 = -1; +pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; +pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; +pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; +pub const _POSIX_THREADS: u32 = 200809; +pub const _POSIX_TIMERS: u32 = 200809; +pub const _POSIX_TRACE: i32 = -1; +pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; +pub const _POSIX_TRACE_INHERIT: i32 = -1; +pub const _POSIX_TRACE_LOG: i32 = -1; +pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; +pub const _POSIX_VDISABLE: u8 = 0u8; +pub const _POSIX2_C_BIND: u32 = 200809; +pub const _POSIX2_C_DEV: i32 = -1; +pub const _POSIX2_CHAR_TERM: u32 = 200809; +pub const _POSIX2_FORT_DEV: i32 = -1; +pub const _POSIX2_FORT_RUN: i32 = -1; +pub const _POSIX2_LOCALEDEF: i32 = -1; +pub const _POSIX2_SW_DEV: i32 = -1; +pub const _POSIX2_UPE: i32 = -1; +pub const _POSIX_V7_ILP32_OFF32: i32 = -1; +pub const _POSIX_V7_ILP32_OFFBIG: i32 = -1; +pub const _POSIX_V7_LP64_OFF64: u32 = 1; +pub const _POSIX_V7_LPBIG_OFFBIG: u32 = 1; +pub const _XOPEN_CRYPT: i32 = -1; +pub const _XOPEN_ENH_I18N: u32 = 1; +pub const _XOPEN_LEGACY: i32 = -1; +pub const _XOPEN_REALTIME: u32 = 1; +pub const _XOPEN_REALTIME_THREADS: u32 = 1; +pub const _XOPEN_SHM: u32 = 1; +pub const _XOPEN_STREAMS: i32 = -1; +pub const _XOPEN_UNIX: 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_CLOCKRES_MIN: u32 = 20000000; +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_SS_REPL_MAX: u32 = 4; +pub const _POSIX_SYMLINK_MAX: u32 = 255; +pub const _POSIX_SYMLOOP_MAX: u32 = 8; +pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; +pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; +pub const _POSIX_TIMER_MAX: u32 = 32; +pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30; +pub const _POSIX_TRACE_NAME_MAX: u32 = 8; +pub const _POSIX_TRACE_SYS_MAX: u32 = 8; +pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32; +pub const _POSIX_TTY_NAME_MAX: u32 = 9; +pub const _POSIX_TZNAME_MAX: u32 = 6; +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_CHARCLASS_NAME_MAX: u32 = 14; +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 _XOPEN_IOV_MAX: u32 = 16; +pub const _XOPEN_NAME_MAX: u32 = 255; +pub const _XOPEN_PATH_MAX: u32 = 1024; +pub const HOST_NAME_MAX: u32 = 255; +pub const LOGIN_NAME_MAX: u32 = 256; +pub const TTY_NAME_MAX: u32 = 32; +pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; +pub const PTHREAD_KEYS_MAX: u32 = 128; +pub const FP_INFINITE: u32 = 1; +pub const FP_NAN: u32 = 2; +pub const FP_NORMAL: u32 = 4; +pub const FP_SUBNORMAL: u32 = 8; +pub const FP_ZERO: u32 = 16; +pub const FP_ILOGB0: i32 = -2147483647; +pub const FP_ILOGBNAN: u32 = 2147483647; +pub const MATH_ERRNO: u32 = 1; +pub const MATH_ERREXCEPT: u32 = 2; +pub const math_errhandling: u32 = 2; +pub const M_E: f64 = 2.718281828459045; +pub const M_LOG2E: f64 = 1.4426950408889634; +pub const M_LOG10E: f64 = 0.4342944819032518; +pub const M_LN2: f64 = 0.6931471805599453; +pub const M_LN10: f64 = 2.302585092994046; +pub const M_PI: f64 = 3.141592653589793; +pub const M_PI_2: f64 = 1.5707963267948966; +pub const M_PI_4: f64 = 0.7853981633974483; +pub const M_1_PI: f64 = 0.3183098861837907; +pub const M_2_PI: f64 = 0.6366197723675814; +pub const M_2_SQRTPI: f64 = 1.1283791670955126; +pub const M_SQRT2: f64 = 1.4142135623730951; +pub const M_SQRT1_2: f64 = 0.7071067811865476; +pub const ASENSOR_FIFO_COUNT_INVALID: i32 = -1; +pub const ASENSOR_DELAY_INVALID: i32 = -2147483648; +pub const ASENSOR_INVALID: i32 = -1; +pub const ASENSOR_STANDARD_GRAVITY: f64 = 9.80665; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MAX: f64 = 60.0; +pub const ASENSOR_MAGNETIC_FIELD_EARTH_MIN: f64 = 30.0; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const AFAMILY_VARIANT_DEFAULT: _bindgen_ty_8 = 0; +pub const AFAMILY_VARIANT_COMPACT: _bindgen_ty_8 = 1; +pub const AFAMILY_VARIANT_ELEGANT: _bindgen_ty_8 = 2; +pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +extern "C" { + pub fn AFontMatcher_create() -> *mut AFontMatcher; } extern "C" { - pub fn android_fdsan_set_error_level( - new_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_destroy(matcher: *mut AFontMatcher); } extern "C" { - pub fn android_fdsan_set_error_level_from_property( - default_level: android_fdsan_error_level, - ) -> android_fdsan_error_level; + pub fn AFontMatcher_setStyle(matcher: *mut AFontMatcher, weight: u16, italic: bool); } extern "C" { - pub fn AFileDescriptor_create(env: *mut JNIEnv) -> jobject; + pub fn AFontMatcher_setLocales( + matcher: *mut AFontMatcher, + languageTags: *const ::std::os::raw::c_char, + ); } extern "C" { - pub fn AFileDescriptor_getFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - ) -> ::std::os::raw::c_int; + pub fn AFontMatcher_setFamilyVariant(matcher: *mut AFontMatcher, familyVariant: u32); } extern "C" { - pub fn AFileDescriptor_setFd( - env: *mut JNIEnv, - fileDescriptor: jobject, - fd: ::std::os::raw::c_int, - ); + pub fn AFontMatcher_match( + matcher: *const AFontMatcher, + familyName: *const ::std::os::raw::c_char, + text: *const u16, + textLength: u32, + runLengthOut: *mut u32, + ) -> *mut AFont; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -2886,6 +2806,8 @@ pub struct ARect { } #[test] fn bindgen_test_layout_ARect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -2897,7 +2819,7 @@ fn bindgen_test_layout_ARect() { concat!("Alignment of ", stringify!(ARect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2907,7 +2829,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2917,7 +2839,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2927,7 +2849,7 @@ fn bindgen_test_layout_ARect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3167,6 +3089,8 @@ pub struct AHardwareBuffer_Desc { } #[test] fn bindgen_test_layout_AHardwareBuffer_Desc() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3178,7 +3102,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { concat!("Alignment of ", stringify!(AHardwareBuffer_Desc)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3188,7 +3112,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3198,7 +3122,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).layers as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).layers) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3208,7 +3132,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3218,7 +3142,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usage as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usage) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3228,7 +3152,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3238,7 +3162,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu0) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -3248,7 +3172,7 @@ fn bindgen_test_layout_AHardwareBuffer_Desc() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rfu1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rfu1) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3267,6 +3191,9 @@ pub struct AHardwareBuffer_Plane { } #[test] fn bindgen_test_layout_AHardwareBuffer_Plane() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -3278,7 +3205,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { concat!("Alignment of ", stringify!(AHardwareBuffer_Plane)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3288,9 +3215,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pixelStride as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pixelStride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3300,7 +3225,7 @@ fn bindgen_test_layout_AHardwareBuffer_Plane() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rowStride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rowStride) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -3318,6 +3243,9 @@ pub struct AHardwareBuffer_Planes { } #[test] fn bindgen_test_layout_AHardwareBuffer_Planes() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 72usize, @@ -3329,9 +3257,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { concat!("Alignment of ", stringify!(AHardwareBuffer_Planes)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).planeCount as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).planeCount) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3341,7 +3267,7 @@ fn bindgen_test_layout_AHardwareBuffer_Planes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).planes as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).planes) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3457,6 +3383,8 @@ pub struct AColor_xy { } #[test] fn bindgen_test_layout_AColor_xy() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3468,7 +3396,7 @@ fn bindgen_test_layout_AColor_xy() { concat!("Alignment of ", stringify!(AColor_xy)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3478,7 +3406,7 @@ fn bindgen_test_layout_AColor_xy() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3500,6 +3428,9 @@ pub struct AHdrMetadata_smpte2086 { } #[test] fn bindgen_test_layout_AHdrMetadata_smpte2086() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 40usize, @@ -3511,10 +3442,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { concat!("Alignment of ", stringify!(AHdrMetadata_smpte2086)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryRed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryRed) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3524,10 +3452,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryGreen as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryGreen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -3537,10 +3462,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).displayPrimaryBlue as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).displayPrimaryBlue) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -3550,9 +3472,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).whitePoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).whitePoint) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -3562,9 +3482,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxLuminance) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -3574,9 +3492,7 @@ fn bindgen_test_layout_AHdrMetadata_smpte2086() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).minLuminance as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).minLuminance) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -3594,6 +3510,9 @@ pub struct AHdrMetadata_cta861_3 { } #[test] fn bindgen_test_layout_AHdrMetadata_cta861_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -3605,10 +3524,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { concat!("Alignment of ", stringify!(AHdrMetadata_cta861_3)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxContentLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxContentLightLevel) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -3618,10 +3534,7 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).maxFrameAverageLightLevel as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).maxFrameAverageLightLevel) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -3631,19 +3544,19 @@ fn bindgen_test_layout_AHdrMetadata_cta861_3() { ) ); } -pub const ANDROID_IMAGE_DECODER_SUCCESS: ::std::os::raw::c_int = 0; -pub const ANDROID_IMAGE_DECODER_INCOMPLETE: ::std::os::raw::c_int = -1; -pub const ANDROID_IMAGE_DECODER_ERROR: ::std::os::raw::c_int = -2; -pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: ::std::os::raw::c_int = -3; -pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: ::std::os::raw::c_int = -4; -pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: ::std::os::raw::c_int = -5; -pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: ::std::os::raw::c_int = -6; -pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: ::std::os::raw::c_int = -7; -pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: ::std::os::raw::c_int = -8; -pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: ::std::os::raw::c_int = -9; -pub const ANDROID_IMAGE_DECODER_FINISHED: ::std::os::raw::c_int = -10; -pub const ANDROID_IMAGE_DECODER_INVALID_STATE: ::std::os::raw::c_int = -11; -pub type _bindgen_ty_7 = ::std::os::raw::c_int; +pub const ANDROID_IMAGE_DECODER_SUCCESS: _bindgen_ty_9 = 0; +pub const ANDROID_IMAGE_DECODER_INCOMPLETE: _bindgen_ty_9 = -1; +pub const ANDROID_IMAGE_DECODER_ERROR: _bindgen_ty_9 = -2; +pub const ANDROID_IMAGE_DECODER_INVALID_CONVERSION: _bindgen_ty_9 = -3; +pub const ANDROID_IMAGE_DECODER_INVALID_SCALE: _bindgen_ty_9 = -4; +pub const ANDROID_IMAGE_DECODER_BAD_PARAMETER: _bindgen_ty_9 = -5; +pub const ANDROID_IMAGE_DECODER_INVALID_INPUT: _bindgen_ty_9 = -6; +pub const ANDROID_IMAGE_DECODER_SEEK_ERROR: _bindgen_ty_9 = -7; +pub const ANDROID_IMAGE_DECODER_INTERNAL_ERROR: _bindgen_ty_9 = -8; +pub const ANDROID_IMAGE_DECODER_UNSUPPORTED_FORMAT: _bindgen_ty_9 = -9; +pub const ANDROID_IMAGE_DECODER_FINISHED: _bindgen_ty_9 = -10; +pub const ANDROID_IMAGE_DECODER_INVALID_STATE: _bindgen_ty_9 = -11; +pub type _bindgen_ty_9 = ::std::os::raw::c_int; extern "C" { pub fn AImageDecoder_resultToString( arg1: ::std::os::raw::c_int, @@ -3761,8 +3674,8 @@ extern "C" { extern "C" { pub fn AImageDecoder_isAnimated(decoder: *mut AImageDecoder) -> bool; } -pub const ANDROID_IMAGE_DECODER_INFINITE: ::std::os::raw::c_uint = 2147483647; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_INFINITE: _bindgen_ty_10 = 2147483647; +pub type _bindgen_ty_10 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoder_getRepeatCount(decoder: *mut AImageDecoder) -> i32; } @@ -3799,16 +3712,16 @@ extern "C" { pub fn AImageDecoderFrameInfo_hasAlphaWithinBounds(info: *const AImageDecoderFrameInfo) -> bool; } -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: ::std::os::raw::c_uint = 2; -pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_NONE: _bindgen_ty_11 = 1; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_BACKGROUND: _bindgen_ty_11 = 2; +pub const ANDROID_IMAGE_DECODER_DISPOSE_OP_PREVIOUS: _bindgen_ty_11 = 3; +pub type _bindgen_ty_11 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getDisposeOp(info: *const AImageDecoderFrameInfo) -> i32; } -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: ::std::os::raw::c_uint = 1; -pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_10 = ::std::os::raw::c_uint; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC: _bindgen_ty_12 = 1; +pub const ANDROID_IMAGE_DECODER_BLEND_OP_SRC_OVER: _bindgen_ty_12 = 2; +pub type _bindgen_ty_12 = ::std::os::raw::c_uint; extern "C" { pub fn AImageDecoderFrameInfo_getBlendOp(info: *const AImageDecoderFrameInfo) -> i32; } @@ -3818,296 +3731,296 @@ extern "C" { handleInternally: bool, ); } -pub const AKEYCODE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AKEYCODE_SOFT_LEFT: ::std::os::raw::c_uint = 1; -pub const AKEYCODE_SOFT_RIGHT: ::std::os::raw::c_uint = 2; -pub const AKEYCODE_HOME: ::std::os::raw::c_uint = 3; -pub const AKEYCODE_BACK: ::std::os::raw::c_uint = 4; -pub const AKEYCODE_CALL: ::std::os::raw::c_uint = 5; -pub const AKEYCODE_ENDCALL: ::std::os::raw::c_uint = 6; -pub const AKEYCODE_0: ::std::os::raw::c_uint = 7; -pub const AKEYCODE_1: ::std::os::raw::c_uint = 8; -pub const AKEYCODE_2: ::std::os::raw::c_uint = 9; -pub const AKEYCODE_3: ::std::os::raw::c_uint = 10; -pub const AKEYCODE_4: ::std::os::raw::c_uint = 11; -pub const AKEYCODE_5: ::std::os::raw::c_uint = 12; -pub const AKEYCODE_6: ::std::os::raw::c_uint = 13; -pub const AKEYCODE_7: ::std::os::raw::c_uint = 14; -pub const AKEYCODE_8: ::std::os::raw::c_uint = 15; -pub const AKEYCODE_9: ::std::os::raw::c_uint = 16; -pub const AKEYCODE_STAR: ::std::os::raw::c_uint = 17; -pub const AKEYCODE_POUND: ::std::os::raw::c_uint = 18; -pub const AKEYCODE_DPAD_UP: ::std::os::raw::c_uint = 19; -pub const AKEYCODE_DPAD_DOWN: ::std::os::raw::c_uint = 20; -pub const AKEYCODE_DPAD_LEFT: ::std::os::raw::c_uint = 21; -pub const AKEYCODE_DPAD_RIGHT: ::std::os::raw::c_uint = 22; -pub const AKEYCODE_DPAD_CENTER: ::std::os::raw::c_uint = 23; -pub const AKEYCODE_VOLUME_UP: ::std::os::raw::c_uint = 24; -pub const AKEYCODE_VOLUME_DOWN: ::std::os::raw::c_uint = 25; -pub const AKEYCODE_POWER: ::std::os::raw::c_uint = 26; -pub const AKEYCODE_CAMERA: ::std::os::raw::c_uint = 27; -pub const AKEYCODE_CLEAR: ::std::os::raw::c_uint = 28; -pub const AKEYCODE_A: ::std::os::raw::c_uint = 29; -pub const AKEYCODE_B: ::std::os::raw::c_uint = 30; -pub const AKEYCODE_C: ::std::os::raw::c_uint = 31; -pub const AKEYCODE_D: ::std::os::raw::c_uint = 32; -pub const AKEYCODE_E: ::std::os::raw::c_uint = 33; -pub const AKEYCODE_F: ::std::os::raw::c_uint = 34; -pub const AKEYCODE_G: ::std::os::raw::c_uint = 35; -pub const AKEYCODE_H: ::std::os::raw::c_uint = 36; -pub const AKEYCODE_I: ::std::os::raw::c_uint = 37; -pub const AKEYCODE_J: ::std::os::raw::c_uint = 38; -pub const AKEYCODE_K: ::std::os::raw::c_uint = 39; -pub const AKEYCODE_L: ::std::os::raw::c_uint = 40; -pub const AKEYCODE_M: ::std::os::raw::c_uint = 41; -pub const AKEYCODE_N: ::std::os::raw::c_uint = 42; -pub const AKEYCODE_O: ::std::os::raw::c_uint = 43; -pub const AKEYCODE_P: ::std::os::raw::c_uint = 44; -pub const AKEYCODE_Q: ::std::os::raw::c_uint = 45; -pub const AKEYCODE_R: ::std::os::raw::c_uint = 46; -pub const AKEYCODE_S: ::std::os::raw::c_uint = 47; -pub const AKEYCODE_T: ::std::os::raw::c_uint = 48; -pub const AKEYCODE_U: ::std::os::raw::c_uint = 49; -pub const AKEYCODE_V: ::std::os::raw::c_uint = 50; -pub const AKEYCODE_W: ::std::os::raw::c_uint = 51; -pub const AKEYCODE_X: ::std::os::raw::c_uint = 52; -pub const AKEYCODE_Y: ::std::os::raw::c_uint = 53; -pub const AKEYCODE_Z: ::std::os::raw::c_uint = 54; -pub const AKEYCODE_COMMA: ::std::os::raw::c_uint = 55; -pub const AKEYCODE_PERIOD: ::std::os::raw::c_uint = 56; -pub const AKEYCODE_ALT_LEFT: ::std::os::raw::c_uint = 57; -pub const AKEYCODE_ALT_RIGHT: ::std::os::raw::c_uint = 58; -pub const AKEYCODE_SHIFT_LEFT: ::std::os::raw::c_uint = 59; -pub const AKEYCODE_SHIFT_RIGHT: ::std::os::raw::c_uint = 60; -pub const AKEYCODE_TAB: ::std::os::raw::c_uint = 61; -pub const AKEYCODE_SPACE: ::std::os::raw::c_uint = 62; -pub const AKEYCODE_SYM: ::std::os::raw::c_uint = 63; -pub const AKEYCODE_EXPLORER: ::std::os::raw::c_uint = 64; -pub const AKEYCODE_ENVELOPE: ::std::os::raw::c_uint = 65; -pub const AKEYCODE_ENTER: ::std::os::raw::c_uint = 66; -pub const AKEYCODE_DEL: ::std::os::raw::c_uint = 67; -pub const AKEYCODE_GRAVE: ::std::os::raw::c_uint = 68; -pub const AKEYCODE_MINUS: ::std::os::raw::c_uint = 69; -pub const AKEYCODE_EQUALS: ::std::os::raw::c_uint = 70; -pub const AKEYCODE_LEFT_BRACKET: ::std::os::raw::c_uint = 71; -pub const AKEYCODE_RIGHT_BRACKET: ::std::os::raw::c_uint = 72; -pub const AKEYCODE_BACKSLASH: ::std::os::raw::c_uint = 73; -pub const AKEYCODE_SEMICOLON: ::std::os::raw::c_uint = 74; -pub const AKEYCODE_APOSTROPHE: ::std::os::raw::c_uint = 75; -pub const AKEYCODE_SLASH: ::std::os::raw::c_uint = 76; -pub const AKEYCODE_AT: ::std::os::raw::c_uint = 77; -pub const AKEYCODE_NUM: ::std::os::raw::c_uint = 78; -pub const AKEYCODE_HEADSETHOOK: ::std::os::raw::c_uint = 79; -pub const AKEYCODE_FOCUS: ::std::os::raw::c_uint = 80; -pub const AKEYCODE_PLUS: ::std::os::raw::c_uint = 81; -pub const AKEYCODE_MENU: ::std::os::raw::c_uint = 82; -pub const AKEYCODE_NOTIFICATION: ::std::os::raw::c_uint = 83; -pub const AKEYCODE_SEARCH: ::std::os::raw::c_uint = 84; -pub const AKEYCODE_MEDIA_PLAY_PAUSE: ::std::os::raw::c_uint = 85; -pub const AKEYCODE_MEDIA_STOP: ::std::os::raw::c_uint = 86; -pub const AKEYCODE_MEDIA_NEXT: ::std::os::raw::c_uint = 87; -pub const AKEYCODE_MEDIA_PREVIOUS: ::std::os::raw::c_uint = 88; -pub const AKEYCODE_MEDIA_REWIND: ::std::os::raw::c_uint = 89; -pub const AKEYCODE_MEDIA_FAST_FORWARD: ::std::os::raw::c_uint = 90; -pub const AKEYCODE_MUTE: ::std::os::raw::c_uint = 91; -pub const AKEYCODE_PAGE_UP: ::std::os::raw::c_uint = 92; -pub const AKEYCODE_PAGE_DOWN: ::std::os::raw::c_uint = 93; -pub const AKEYCODE_PICTSYMBOLS: ::std::os::raw::c_uint = 94; -pub const AKEYCODE_SWITCH_CHARSET: ::std::os::raw::c_uint = 95; -pub const AKEYCODE_BUTTON_A: ::std::os::raw::c_uint = 96; -pub const AKEYCODE_BUTTON_B: ::std::os::raw::c_uint = 97; -pub const AKEYCODE_BUTTON_C: ::std::os::raw::c_uint = 98; -pub const AKEYCODE_BUTTON_X: ::std::os::raw::c_uint = 99; -pub const AKEYCODE_BUTTON_Y: ::std::os::raw::c_uint = 100; -pub const AKEYCODE_BUTTON_Z: ::std::os::raw::c_uint = 101; -pub const AKEYCODE_BUTTON_L1: ::std::os::raw::c_uint = 102; -pub const AKEYCODE_BUTTON_R1: ::std::os::raw::c_uint = 103; -pub const AKEYCODE_BUTTON_L2: ::std::os::raw::c_uint = 104; -pub const AKEYCODE_BUTTON_R2: ::std::os::raw::c_uint = 105; -pub const AKEYCODE_BUTTON_THUMBL: ::std::os::raw::c_uint = 106; -pub const AKEYCODE_BUTTON_THUMBR: ::std::os::raw::c_uint = 107; -pub const AKEYCODE_BUTTON_START: ::std::os::raw::c_uint = 108; -pub const AKEYCODE_BUTTON_SELECT: ::std::os::raw::c_uint = 109; -pub const AKEYCODE_BUTTON_MODE: ::std::os::raw::c_uint = 110; -pub const AKEYCODE_ESCAPE: ::std::os::raw::c_uint = 111; -pub const AKEYCODE_FORWARD_DEL: ::std::os::raw::c_uint = 112; -pub const AKEYCODE_CTRL_LEFT: ::std::os::raw::c_uint = 113; -pub const AKEYCODE_CTRL_RIGHT: ::std::os::raw::c_uint = 114; -pub const AKEYCODE_CAPS_LOCK: ::std::os::raw::c_uint = 115; -pub const AKEYCODE_SCROLL_LOCK: ::std::os::raw::c_uint = 116; -pub const AKEYCODE_META_LEFT: ::std::os::raw::c_uint = 117; -pub const AKEYCODE_META_RIGHT: ::std::os::raw::c_uint = 118; -pub const AKEYCODE_FUNCTION: ::std::os::raw::c_uint = 119; -pub const AKEYCODE_SYSRQ: ::std::os::raw::c_uint = 120; -pub const AKEYCODE_BREAK: ::std::os::raw::c_uint = 121; -pub const AKEYCODE_MOVE_HOME: ::std::os::raw::c_uint = 122; -pub const AKEYCODE_MOVE_END: ::std::os::raw::c_uint = 123; -pub const AKEYCODE_INSERT: ::std::os::raw::c_uint = 124; -pub const AKEYCODE_FORWARD: ::std::os::raw::c_uint = 125; -pub const AKEYCODE_MEDIA_PLAY: ::std::os::raw::c_uint = 126; -pub const AKEYCODE_MEDIA_PAUSE: ::std::os::raw::c_uint = 127; -pub const AKEYCODE_MEDIA_CLOSE: ::std::os::raw::c_uint = 128; -pub const AKEYCODE_MEDIA_EJECT: ::std::os::raw::c_uint = 129; -pub const AKEYCODE_MEDIA_RECORD: ::std::os::raw::c_uint = 130; -pub const AKEYCODE_F1: ::std::os::raw::c_uint = 131; -pub const AKEYCODE_F2: ::std::os::raw::c_uint = 132; -pub const AKEYCODE_F3: ::std::os::raw::c_uint = 133; -pub const AKEYCODE_F4: ::std::os::raw::c_uint = 134; -pub const AKEYCODE_F5: ::std::os::raw::c_uint = 135; -pub const AKEYCODE_F6: ::std::os::raw::c_uint = 136; -pub const AKEYCODE_F7: ::std::os::raw::c_uint = 137; -pub const AKEYCODE_F8: ::std::os::raw::c_uint = 138; -pub const AKEYCODE_F9: ::std::os::raw::c_uint = 139; -pub const AKEYCODE_F10: ::std::os::raw::c_uint = 140; -pub const AKEYCODE_F11: ::std::os::raw::c_uint = 141; -pub const AKEYCODE_F12: ::std::os::raw::c_uint = 142; -pub const AKEYCODE_NUM_LOCK: ::std::os::raw::c_uint = 143; -pub const AKEYCODE_NUMPAD_0: ::std::os::raw::c_uint = 144; -pub const AKEYCODE_NUMPAD_1: ::std::os::raw::c_uint = 145; -pub const AKEYCODE_NUMPAD_2: ::std::os::raw::c_uint = 146; -pub const AKEYCODE_NUMPAD_3: ::std::os::raw::c_uint = 147; -pub const AKEYCODE_NUMPAD_4: ::std::os::raw::c_uint = 148; -pub const AKEYCODE_NUMPAD_5: ::std::os::raw::c_uint = 149; -pub const AKEYCODE_NUMPAD_6: ::std::os::raw::c_uint = 150; -pub const AKEYCODE_NUMPAD_7: ::std::os::raw::c_uint = 151; -pub const AKEYCODE_NUMPAD_8: ::std::os::raw::c_uint = 152; -pub const AKEYCODE_NUMPAD_9: ::std::os::raw::c_uint = 153; -pub const AKEYCODE_NUMPAD_DIVIDE: ::std::os::raw::c_uint = 154; -pub const AKEYCODE_NUMPAD_MULTIPLY: ::std::os::raw::c_uint = 155; -pub const AKEYCODE_NUMPAD_SUBTRACT: ::std::os::raw::c_uint = 156; -pub const AKEYCODE_NUMPAD_ADD: ::std::os::raw::c_uint = 157; -pub const AKEYCODE_NUMPAD_DOT: ::std::os::raw::c_uint = 158; -pub const AKEYCODE_NUMPAD_COMMA: ::std::os::raw::c_uint = 159; -pub const AKEYCODE_NUMPAD_ENTER: ::std::os::raw::c_uint = 160; -pub const AKEYCODE_NUMPAD_EQUALS: ::std::os::raw::c_uint = 161; -pub const AKEYCODE_NUMPAD_LEFT_PAREN: ::std::os::raw::c_uint = 162; -pub const AKEYCODE_NUMPAD_RIGHT_PAREN: ::std::os::raw::c_uint = 163; -pub const AKEYCODE_VOLUME_MUTE: ::std::os::raw::c_uint = 164; -pub const AKEYCODE_INFO: ::std::os::raw::c_uint = 165; -pub const AKEYCODE_CHANNEL_UP: ::std::os::raw::c_uint = 166; -pub const AKEYCODE_CHANNEL_DOWN: ::std::os::raw::c_uint = 167; -pub const AKEYCODE_ZOOM_IN: ::std::os::raw::c_uint = 168; -pub const AKEYCODE_ZOOM_OUT: ::std::os::raw::c_uint = 169; -pub const AKEYCODE_TV: ::std::os::raw::c_uint = 170; -pub const AKEYCODE_WINDOW: ::std::os::raw::c_uint = 171; -pub const AKEYCODE_GUIDE: ::std::os::raw::c_uint = 172; -pub const AKEYCODE_DVR: ::std::os::raw::c_uint = 173; -pub const AKEYCODE_BOOKMARK: ::std::os::raw::c_uint = 174; -pub const AKEYCODE_CAPTIONS: ::std::os::raw::c_uint = 175; -pub const AKEYCODE_SETTINGS: ::std::os::raw::c_uint = 176; -pub const AKEYCODE_TV_POWER: ::std::os::raw::c_uint = 177; -pub const AKEYCODE_TV_INPUT: ::std::os::raw::c_uint = 178; -pub const AKEYCODE_STB_POWER: ::std::os::raw::c_uint = 179; -pub const AKEYCODE_STB_INPUT: ::std::os::raw::c_uint = 180; -pub const AKEYCODE_AVR_POWER: ::std::os::raw::c_uint = 181; -pub const AKEYCODE_AVR_INPUT: ::std::os::raw::c_uint = 182; -pub const AKEYCODE_PROG_RED: ::std::os::raw::c_uint = 183; -pub const AKEYCODE_PROG_GREEN: ::std::os::raw::c_uint = 184; -pub const AKEYCODE_PROG_YELLOW: ::std::os::raw::c_uint = 185; -pub const AKEYCODE_PROG_BLUE: ::std::os::raw::c_uint = 186; -pub const AKEYCODE_APP_SWITCH: ::std::os::raw::c_uint = 187; -pub const AKEYCODE_BUTTON_1: ::std::os::raw::c_uint = 188; -pub const AKEYCODE_BUTTON_2: ::std::os::raw::c_uint = 189; -pub const AKEYCODE_BUTTON_3: ::std::os::raw::c_uint = 190; -pub const AKEYCODE_BUTTON_4: ::std::os::raw::c_uint = 191; -pub const AKEYCODE_BUTTON_5: ::std::os::raw::c_uint = 192; -pub const AKEYCODE_BUTTON_6: ::std::os::raw::c_uint = 193; -pub const AKEYCODE_BUTTON_7: ::std::os::raw::c_uint = 194; -pub const AKEYCODE_BUTTON_8: ::std::os::raw::c_uint = 195; -pub const AKEYCODE_BUTTON_9: ::std::os::raw::c_uint = 196; -pub const AKEYCODE_BUTTON_10: ::std::os::raw::c_uint = 197; -pub const AKEYCODE_BUTTON_11: ::std::os::raw::c_uint = 198; -pub const AKEYCODE_BUTTON_12: ::std::os::raw::c_uint = 199; -pub const AKEYCODE_BUTTON_13: ::std::os::raw::c_uint = 200; -pub const AKEYCODE_BUTTON_14: ::std::os::raw::c_uint = 201; -pub const AKEYCODE_BUTTON_15: ::std::os::raw::c_uint = 202; -pub const AKEYCODE_BUTTON_16: ::std::os::raw::c_uint = 203; -pub const AKEYCODE_LANGUAGE_SWITCH: ::std::os::raw::c_uint = 204; -pub const AKEYCODE_MANNER_MODE: ::std::os::raw::c_uint = 205; -pub const AKEYCODE_3D_MODE: ::std::os::raw::c_uint = 206; -pub const AKEYCODE_CONTACTS: ::std::os::raw::c_uint = 207; -pub const AKEYCODE_CALENDAR: ::std::os::raw::c_uint = 208; -pub const AKEYCODE_MUSIC: ::std::os::raw::c_uint = 209; -pub const AKEYCODE_CALCULATOR: ::std::os::raw::c_uint = 210; -pub const AKEYCODE_ZENKAKU_HANKAKU: ::std::os::raw::c_uint = 211; -pub const AKEYCODE_EISU: ::std::os::raw::c_uint = 212; -pub const AKEYCODE_MUHENKAN: ::std::os::raw::c_uint = 213; -pub const AKEYCODE_HENKAN: ::std::os::raw::c_uint = 214; -pub const AKEYCODE_KATAKANA_HIRAGANA: ::std::os::raw::c_uint = 215; -pub const AKEYCODE_YEN: ::std::os::raw::c_uint = 216; -pub const AKEYCODE_RO: ::std::os::raw::c_uint = 217; -pub const AKEYCODE_KANA: ::std::os::raw::c_uint = 218; -pub const AKEYCODE_ASSIST: ::std::os::raw::c_uint = 219; -pub const AKEYCODE_BRIGHTNESS_DOWN: ::std::os::raw::c_uint = 220; -pub const AKEYCODE_BRIGHTNESS_UP: ::std::os::raw::c_uint = 221; -pub const AKEYCODE_MEDIA_AUDIO_TRACK: ::std::os::raw::c_uint = 222; -pub const AKEYCODE_SLEEP: ::std::os::raw::c_uint = 223; -pub const AKEYCODE_WAKEUP: ::std::os::raw::c_uint = 224; -pub const AKEYCODE_PAIRING: ::std::os::raw::c_uint = 225; -pub const AKEYCODE_MEDIA_TOP_MENU: ::std::os::raw::c_uint = 226; -pub const AKEYCODE_11: ::std::os::raw::c_uint = 227; -pub const AKEYCODE_12: ::std::os::raw::c_uint = 228; -pub const AKEYCODE_LAST_CHANNEL: ::std::os::raw::c_uint = 229; -pub const AKEYCODE_TV_DATA_SERVICE: ::std::os::raw::c_uint = 230; -pub const AKEYCODE_VOICE_ASSIST: ::std::os::raw::c_uint = 231; -pub const AKEYCODE_TV_RADIO_SERVICE: ::std::os::raw::c_uint = 232; -pub const AKEYCODE_TV_TELETEXT: ::std::os::raw::c_uint = 233; -pub const AKEYCODE_TV_NUMBER_ENTRY: ::std::os::raw::c_uint = 234; -pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: ::std::os::raw::c_uint = 235; -pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: ::std::os::raw::c_uint = 236; -pub const AKEYCODE_TV_SATELLITE: ::std::os::raw::c_uint = 237; -pub const AKEYCODE_TV_SATELLITE_BS: ::std::os::raw::c_uint = 238; -pub const AKEYCODE_TV_SATELLITE_CS: ::std::os::raw::c_uint = 239; -pub const AKEYCODE_TV_SATELLITE_SERVICE: ::std::os::raw::c_uint = 240; -pub const AKEYCODE_TV_NETWORK: ::std::os::raw::c_uint = 241; -pub const AKEYCODE_TV_ANTENNA_CABLE: ::std::os::raw::c_uint = 242; -pub const AKEYCODE_TV_INPUT_HDMI_1: ::std::os::raw::c_uint = 243; -pub const AKEYCODE_TV_INPUT_HDMI_2: ::std::os::raw::c_uint = 244; -pub const AKEYCODE_TV_INPUT_HDMI_3: ::std::os::raw::c_uint = 245; -pub const AKEYCODE_TV_INPUT_HDMI_4: ::std::os::raw::c_uint = 246; -pub const AKEYCODE_TV_INPUT_COMPOSITE_1: ::std::os::raw::c_uint = 247; -pub const AKEYCODE_TV_INPUT_COMPOSITE_2: ::std::os::raw::c_uint = 248; -pub const AKEYCODE_TV_INPUT_COMPONENT_1: ::std::os::raw::c_uint = 249; -pub const AKEYCODE_TV_INPUT_COMPONENT_2: ::std::os::raw::c_uint = 250; -pub const AKEYCODE_TV_INPUT_VGA_1: ::std::os::raw::c_uint = 251; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION: ::std::os::raw::c_uint = 252; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: ::std::os::raw::c_uint = 253; -pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: ::std::os::raw::c_uint = 254; -pub const AKEYCODE_TV_ZOOM_MODE: ::std::os::raw::c_uint = 255; -pub const AKEYCODE_TV_CONTENTS_MENU: ::std::os::raw::c_uint = 256; -pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: ::std::os::raw::c_uint = 257; -pub const AKEYCODE_TV_TIMER_PROGRAMMING: ::std::os::raw::c_uint = 258; -pub const AKEYCODE_HELP: ::std::os::raw::c_uint = 259; -pub const AKEYCODE_NAVIGATE_PREVIOUS: ::std::os::raw::c_uint = 260; -pub const AKEYCODE_NAVIGATE_NEXT: ::std::os::raw::c_uint = 261; -pub const AKEYCODE_NAVIGATE_IN: ::std::os::raw::c_uint = 262; -pub const AKEYCODE_NAVIGATE_OUT: ::std::os::raw::c_uint = 263; -pub const AKEYCODE_STEM_PRIMARY: ::std::os::raw::c_uint = 264; -pub const AKEYCODE_STEM_1: ::std::os::raw::c_uint = 265; -pub const AKEYCODE_STEM_2: ::std::os::raw::c_uint = 266; -pub const AKEYCODE_STEM_3: ::std::os::raw::c_uint = 267; -pub const AKEYCODE_DPAD_UP_LEFT: ::std::os::raw::c_uint = 268; -pub const AKEYCODE_DPAD_DOWN_LEFT: ::std::os::raw::c_uint = 269; -pub const AKEYCODE_DPAD_UP_RIGHT: ::std::os::raw::c_uint = 270; -pub const AKEYCODE_DPAD_DOWN_RIGHT: ::std::os::raw::c_uint = 271; -pub const AKEYCODE_MEDIA_SKIP_FORWARD: ::std::os::raw::c_uint = 272; -pub const AKEYCODE_MEDIA_SKIP_BACKWARD: ::std::os::raw::c_uint = 273; -pub const AKEYCODE_MEDIA_STEP_FORWARD: ::std::os::raw::c_uint = 274; -pub const AKEYCODE_MEDIA_STEP_BACKWARD: ::std::os::raw::c_uint = 275; -pub const AKEYCODE_SOFT_SLEEP: ::std::os::raw::c_uint = 276; -pub const AKEYCODE_CUT: ::std::os::raw::c_uint = 277; -pub const AKEYCODE_COPY: ::std::os::raw::c_uint = 278; -pub const AKEYCODE_PASTE: ::std::os::raw::c_uint = 279; -pub const AKEYCODE_SYSTEM_NAVIGATION_UP: ::std::os::raw::c_uint = 280; -pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: ::std::os::raw::c_uint = 281; -pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: ::std::os::raw::c_uint = 282; -pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: ::std::os::raw::c_uint = 283; -pub const AKEYCODE_ALL_APPS: ::std::os::raw::c_uint = 284; -pub const AKEYCODE_REFRESH: ::std::os::raw::c_uint = 285; -pub const AKEYCODE_THUMBS_UP: ::std::os::raw::c_uint = 286; -pub const AKEYCODE_THUMBS_DOWN: ::std::os::raw::c_uint = 287; -pub const AKEYCODE_PROFILE_SWITCH: ::std::os::raw::c_uint = 288; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; +pub const AKEYCODE_UNKNOWN: _bindgen_ty_13 = 0; +pub const AKEYCODE_SOFT_LEFT: _bindgen_ty_13 = 1; +pub const AKEYCODE_SOFT_RIGHT: _bindgen_ty_13 = 2; +pub const AKEYCODE_HOME: _bindgen_ty_13 = 3; +pub const AKEYCODE_BACK: _bindgen_ty_13 = 4; +pub const AKEYCODE_CALL: _bindgen_ty_13 = 5; +pub const AKEYCODE_ENDCALL: _bindgen_ty_13 = 6; +pub const AKEYCODE_0: _bindgen_ty_13 = 7; +pub const AKEYCODE_1: _bindgen_ty_13 = 8; +pub const AKEYCODE_2: _bindgen_ty_13 = 9; +pub const AKEYCODE_3: _bindgen_ty_13 = 10; +pub const AKEYCODE_4: _bindgen_ty_13 = 11; +pub const AKEYCODE_5: _bindgen_ty_13 = 12; +pub const AKEYCODE_6: _bindgen_ty_13 = 13; +pub const AKEYCODE_7: _bindgen_ty_13 = 14; +pub const AKEYCODE_8: _bindgen_ty_13 = 15; +pub const AKEYCODE_9: _bindgen_ty_13 = 16; +pub const AKEYCODE_STAR: _bindgen_ty_13 = 17; +pub const AKEYCODE_POUND: _bindgen_ty_13 = 18; +pub const AKEYCODE_DPAD_UP: _bindgen_ty_13 = 19; +pub const AKEYCODE_DPAD_DOWN: _bindgen_ty_13 = 20; +pub const AKEYCODE_DPAD_LEFT: _bindgen_ty_13 = 21; +pub const AKEYCODE_DPAD_RIGHT: _bindgen_ty_13 = 22; +pub const AKEYCODE_DPAD_CENTER: _bindgen_ty_13 = 23; +pub const AKEYCODE_VOLUME_UP: _bindgen_ty_13 = 24; +pub const AKEYCODE_VOLUME_DOWN: _bindgen_ty_13 = 25; +pub const AKEYCODE_POWER: _bindgen_ty_13 = 26; +pub const AKEYCODE_CAMERA: _bindgen_ty_13 = 27; +pub const AKEYCODE_CLEAR: _bindgen_ty_13 = 28; +pub const AKEYCODE_A: _bindgen_ty_13 = 29; +pub const AKEYCODE_B: _bindgen_ty_13 = 30; +pub const AKEYCODE_C: _bindgen_ty_13 = 31; +pub const AKEYCODE_D: _bindgen_ty_13 = 32; +pub const AKEYCODE_E: _bindgen_ty_13 = 33; +pub const AKEYCODE_F: _bindgen_ty_13 = 34; +pub const AKEYCODE_G: _bindgen_ty_13 = 35; +pub const AKEYCODE_H: _bindgen_ty_13 = 36; +pub const AKEYCODE_I: _bindgen_ty_13 = 37; +pub const AKEYCODE_J: _bindgen_ty_13 = 38; +pub const AKEYCODE_K: _bindgen_ty_13 = 39; +pub const AKEYCODE_L: _bindgen_ty_13 = 40; +pub const AKEYCODE_M: _bindgen_ty_13 = 41; +pub const AKEYCODE_N: _bindgen_ty_13 = 42; +pub const AKEYCODE_O: _bindgen_ty_13 = 43; +pub const AKEYCODE_P: _bindgen_ty_13 = 44; +pub const AKEYCODE_Q: _bindgen_ty_13 = 45; +pub const AKEYCODE_R: _bindgen_ty_13 = 46; +pub const AKEYCODE_S: _bindgen_ty_13 = 47; +pub const AKEYCODE_T: _bindgen_ty_13 = 48; +pub const AKEYCODE_U: _bindgen_ty_13 = 49; +pub const AKEYCODE_V: _bindgen_ty_13 = 50; +pub const AKEYCODE_W: _bindgen_ty_13 = 51; +pub const AKEYCODE_X: _bindgen_ty_13 = 52; +pub const AKEYCODE_Y: _bindgen_ty_13 = 53; +pub const AKEYCODE_Z: _bindgen_ty_13 = 54; +pub const AKEYCODE_COMMA: _bindgen_ty_13 = 55; +pub const AKEYCODE_PERIOD: _bindgen_ty_13 = 56; +pub const AKEYCODE_ALT_LEFT: _bindgen_ty_13 = 57; +pub const AKEYCODE_ALT_RIGHT: _bindgen_ty_13 = 58; +pub const AKEYCODE_SHIFT_LEFT: _bindgen_ty_13 = 59; +pub const AKEYCODE_SHIFT_RIGHT: _bindgen_ty_13 = 60; +pub const AKEYCODE_TAB: _bindgen_ty_13 = 61; +pub const AKEYCODE_SPACE: _bindgen_ty_13 = 62; +pub const AKEYCODE_SYM: _bindgen_ty_13 = 63; +pub const AKEYCODE_EXPLORER: _bindgen_ty_13 = 64; +pub const AKEYCODE_ENVELOPE: _bindgen_ty_13 = 65; +pub const AKEYCODE_ENTER: _bindgen_ty_13 = 66; +pub const AKEYCODE_DEL: _bindgen_ty_13 = 67; +pub const AKEYCODE_GRAVE: _bindgen_ty_13 = 68; +pub const AKEYCODE_MINUS: _bindgen_ty_13 = 69; +pub const AKEYCODE_EQUALS: _bindgen_ty_13 = 70; +pub const AKEYCODE_LEFT_BRACKET: _bindgen_ty_13 = 71; +pub const AKEYCODE_RIGHT_BRACKET: _bindgen_ty_13 = 72; +pub const AKEYCODE_BACKSLASH: _bindgen_ty_13 = 73; +pub const AKEYCODE_SEMICOLON: _bindgen_ty_13 = 74; +pub const AKEYCODE_APOSTROPHE: _bindgen_ty_13 = 75; +pub const AKEYCODE_SLASH: _bindgen_ty_13 = 76; +pub const AKEYCODE_AT: _bindgen_ty_13 = 77; +pub const AKEYCODE_NUM: _bindgen_ty_13 = 78; +pub const AKEYCODE_HEADSETHOOK: _bindgen_ty_13 = 79; +pub const AKEYCODE_FOCUS: _bindgen_ty_13 = 80; +pub const AKEYCODE_PLUS: _bindgen_ty_13 = 81; +pub const AKEYCODE_MENU: _bindgen_ty_13 = 82; +pub const AKEYCODE_NOTIFICATION: _bindgen_ty_13 = 83; +pub const AKEYCODE_SEARCH: _bindgen_ty_13 = 84; +pub const AKEYCODE_MEDIA_PLAY_PAUSE: _bindgen_ty_13 = 85; +pub const AKEYCODE_MEDIA_STOP: _bindgen_ty_13 = 86; +pub const AKEYCODE_MEDIA_NEXT: _bindgen_ty_13 = 87; +pub const AKEYCODE_MEDIA_PREVIOUS: _bindgen_ty_13 = 88; +pub const AKEYCODE_MEDIA_REWIND: _bindgen_ty_13 = 89; +pub const AKEYCODE_MEDIA_FAST_FORWARD: _bindgen_ty_13 = 90; +pub const AKEYCODE_MUTE: _bindgen_ty_13 = 91; +pub const AKEYCODE_PAGE_UP: _bindgen_ty_13 = 92; +pub const AKEYCODE_PAGE_DOWN: _bindgen_ty_13 = 93; +pub const AKEYCODE_PICTSYMBOLS: _bindgen_ty_13 = 94; +pub const AKEYCODE_SWITCH_CHARSET: _bindgen_ty_13 = 95; +pub const AKEYCODE_BUTTON_A: _bindgen_ty_13 = 96; +pub const AKEYCODE_BUTTON_B: _bindgen_ty_13 = 97; +pub const AKEYCODE_BUTTON_C: _bindgen_ty_13 = 98; +pub const AKEYCODE_BUTTON_X: _bindgen_ty_13 = 99; +pub const AKEYCODE_BUTTON_Y: _bindgen_ty_13 = 100; +pub const AKEYCODE_BUTTON_Z: _bindgen_ty_13 = 101; +pub const AKEYCODE_BUTTON_L1: _bindgen_ty_13 = 102; +pub const AKEYCODE_BUTTON_R1: _bindgen_ty_13 = 103; +pub const AKEYCODE_BUTTON_L2: _bindgen_ty_13 = 104; +pub const AKEYCODE_BUTTON_R2: _bindgen_ty_13 = 105; +pub const AKEYCODE_BUTTON_THUMBL: _bindgen_ty_13 = 106; +pub const AKEYCODE_BUTTON_THUMBR: _bindgen_ty_13 = 107; +pub const AKEYCODE_BUTTON_START: _bindgen_ty_13 = 108; +pub const AKEYCODE_BUTTON_SELECT: _bindgen_ty_13 = 109; +pub const AKEYCODE_BUTTON_MODE: _bindgen_ty_13 = 110; +pub const AKEYCODE_ESCAPE: _bindgen_ty_13 = 111; +pub const AKEYCODE_FORWARD_DEL: _bindgen_ty_13 = 112; +pub const AKEYCODE_CTRL_LEFT: _bindgen_ty_13 = 113; +pub const AKEYCODE_CTRL_RIGHT: _bindgen_ty_13 = 114; +pub const AKEYCODE_CAPS_LOCK: _bindgen_ty_13 = 115; +pub const AKEYCODE_SCROLL_LOCK: _bindgen_ty_13 = 116; +pub const AKEYCODE_META_LEFT: _bindgen_ty_13 = 117; +pub const AKEYCODE_META_RIGHT: _bindgen_ty_13 = 118; +pub const AKEYCODE_FUNCTION: _bindgen_ty_13 = 119; +pub const AKEYCODE_SYSRQ: _bindgen_ty_13 = 120; +pub const AKEYCODE_BREAK: _bindgen_ty_13 = 121; +pub const AKEYCODE_MOVE_HOME: _bindgen_ty_13 = 122; +pub const AKEYCODE_MOVE_END: _bindgen_ty_13 = 123; +pub const AKEYCODE_INSERT: _bindgen_ty_13 = 124; +pub const AKEYCODE_FORWARD: _bindgen_ty_13 = 125; +pub const AKEYCODE_MEDIA_PLAY: _bindgen_ty_13 = 126; +pub const AKEYCODE_MEDIA_PAUSE: _bindgen_ty_13 = 127; +pub const AKEYCODE_MEDIA_CLOSE: _bindgen_ty_13 = 128; +pub const AKEYCODE_MEDIA_EJECT: _bindgen_ty_13 = 129; +pub const AKEYCODE_MEDIA_RECORD: _bindgen_ty_13 = 130; +pub const AKEYCODE_F1: _bindgen_ty_13 = 131; +pub const AKEYCODE_F2: _bindgen_ty_13 = 132; +pub const AKEYCODE_F3: _bindgen_ty_13 = 133; +pub const AKEYCODE_F4: _bindgen_ty_13 = 134; +pub const AKEYCODE_F5: _bindgen_ty_13 = 135; +pub const AKEYCODE_F6: _bindgen_ty_13 = 136; +pub const AKEYCODE_F7: _bindgen_ty_13 = 137; +pub const AKEYCODE_F8: _bindgen_ty_13 = 138; +pub const AKEYCODE_F9: _bindgen_ty_13 = 139; +pub const AKEYCODE_F10: _bindgen_ty_13 = 140; +pub const AKEYCODE_F11: _bindgen_ty_13 = 141; +pub const AKEYCODE_F12: _bindgen_ty_13 = 142; +pub const AKEYCODE_NUM_LOCK: _bindgen_ty_13 = 143; +pub const AKEYCODE_NUMPAD_0: _bindgen_ty_13 = 144; +pub const AKEYCODE_NUMPAD_1: _bindgen_ty_13 = 145; +pub const AKEYCODE_NUMPAD_2: _bindgen_ty_13 = 146; +pub const AKEYCODE_NUMPAD_3: _bindgen_ty_13 = 147; +pub const AKEYCODE_NUMPAD_4: _bindgen_ty_13 = 148; +pub const AKEYCODE_NUMPAD_5: _bindgen_ty_13 = 149; +pub const AKEYCODE_NUMPAD_6: _bindgen_ty_13 = 150; +pub const AKEYCODE_NUMPAD_7: _bindgen_ty_13 = 151; +pub const AKEYCODE_NUMPAD_8: _bindgen_ty_13 = 152; +pub const AKEYCODE_NUMPAD_9: _bindgen_ty_13 = 153; +pub const AKEYCODE_NUMPAD_DIVIDE: _bindgen_ty_13 = 154; +pub const AKEYCODE_NUMPAD_MULTIPLY: _bindgen_ty_13 = 155; +pub const AKEYCODE_NUMPAD_SUBTRACT: _bindgen_ty_13 = 156; +pub const AKEYCODE_NUMPAD_ADD: _bindgen_ty_13 = 157; +pub const AKEYCODE_NUMPAD_DOT: _bindgen_ty_13 = 158; +pub const AKEYCODE_NUMPAD_COMMA: _bindgen_ty_13 = 159; +pub const AKEYCODE_NUMPAD_ENTER: _bindgen_ty_13 = 160; +pub const AKEYCODE_NUMPAD_EQUALS: _bindgen_ty_13 = 161; +pub const AKEYCODE_NUMPAD_LEFT_PAREN: _bindgen_ty_13 = 162; +pub const AKEYCODE_NUMPAD_RIGHT_PAREN: _bindgen_ty_13 = 163; +pub const AKEYCODE_VOLUME_MUTE: _bindgen_ty_13 = 164; +pub const AKEYCODE_INFO: _bindgen_ty_13 = 165; +pub const AKEYCODE_CHANNEL_UP: _bindgen_ty_13 = 166; +pub const AKEYCODE_CHANNEL_DOWN: _bindgen_ty_13 = 167; +pub const AKEYCODE_ZOOM_IN: _bindgen_ty_13 = 168; +pub const AKEYCODE_ZOOM_OUT: _bindgen_ty_13 = 169; +pub const AKEYCODE_TV: _bindgen_ty_13 = 170; +pub const AKEYCODE_WINDOW: _bindgen_ty_13 = 171; +pub const AKEYCODE_GUIDE: _bindgen_ty_13 = 172; +pub const AKEYCODE_DVR: _bindgen_ty_13 = 173; +pub const AKEYCODE_BOOKMARK: _bindgen_ty_13 = 174; +pub const AKEYCODE_CAPTIONS: _bindgen_ty_13 = 175; +pub const AKEYCODE_SETTINGS: _bindgen_ty_13 = 176; +pub const AKEYCODE_TV_POWER: _bindgen_ty_13 = 177; +pub const AKEYCODE_TV_INPUT: _bindgen_ty_13 = 178; +pub const AKEYCODE_STB_POWER: _bindgen_ty_13 = 179; +pub const AKEYCODE_STB_INPUT: _bindgen_ty_13 = 180; +pub const AKEYCODE_AVR_POWER: _bindgen_ty_13 = 181; +pub const AKEYCODE_AVR_INPUT: _bindgen_ty_13 = 182; +pub const AKEYCODE_PROG_RED: _bindgen_ty_13 = 183; +pub const AKEYCODE_PROG_GREEN: _bindgen_ty_13 = 184; +pub const AKEYCODE_PROG_YELLOW: _bindgen_ty_13 = 185; +pub const AKEYCODE_PROG_BLUE: _bindgen_ty_13 = 186; +pub const AKEYCODE_APP_SWITCH: _bindgen_ty_13 = 187; +pub const AKEYCODE_BUTTON_1: _bindgen_ty_13 = 188; +pub const AKEYCODE_BUTTON_2: _bindgen_ty_13 = 189; +pub const AKEYCODE_BUTTON_3: _bindgen_ty_13 = 190; +pub const AKEYCODE_BUTTON_4: _bindgen_ty_13 = 191; +pub const AKEYCODE_BUTTON_5: _bindgen_ty_13 = 192; +pub const AKEYCODE_BUTTON_6: _bindgen_ty_13 = 193; +pub const AKEYCODE_BUTTON_7: _bindgen_ty_13 = 194; +pub const AKEYCODE_BUTTON_8: _bindgen_ty_13 = 195; +pub const AKEYCODE_BUTTON_9: _bindgen_ty_13 = 196; +pub const AKEYCODE_BUTTON_10: _bindgen_ty_13 = 197; +pub const AKEYCODE_BUTTON_11: _bindgen_ty_13 = 198; +pub const AKEYCODE_BUTTON_12: _bindgen_ty_13 = 199; +pub const AKEYCODE_BUTTON_13: _bindgen_ty_13 = 200; +pub const AKEYCODE_BUTTON_14: _bindgen_ty_13 = 201; +pub const AKEYCODE_BUTTON_15: _bindgen_ty_13 = 202; +pub const AKEYCODE_BUTTON_16: _bindgen_ty_13 = 203; +pub const AKEYCODE_LANGUAGE_SWITCH: _bindgen_ty_13 = 204; +pub const AKEYCODE_MANNER_MODE: _bindgen_ty_13 = 205; +pub const AKEYCODE_3D_MODE: _bindgen_ty_13 = 206; +pub const AKEYCODE_CONTACTS: _bindgen_ty_13 = 207; +pub const AKEYCODE_CALENDAR: _bindgen_ty_13 = 208; +pub const AKEYCODE_MUSIC: _bindgen_ty_13 = 209; +pub const AKEYCODE_CALCULATOR: _bindgen_ty_13 = 210; +pub const AKEYCODE_ZENKAKU_HANKAKU: _bindgen_ty_13 = 211; +pub const AKEYCODE_EISU: _bindgen_ty_13 = 212; +pub const AKEYCODE_MUHENKAN: _bindgen_ty_13 = 213; +pub const AKEYCODE_HENKAN: _bindgen_ty_13 = 214; +pub const AKEYCODE_KATAKANA_HIRAGANA: _bindgen_ty_13 = 215; +pub const AKEYCODE_YEN: _bindgen_ty_13 = 216; +pub const AKEYCODE_RO: _bindgen_ty_13 = 217; +pub const AKEYCODE_KANA: _bindgen_ty_13 = 218; +pub const AKEYCODE_ASSIST: _bindgen_ty_13 = 219; +pub const AKEYCODE_BRIGHTNESS_DOWN: _bindgen_ty_13 = 220; +pub const AKEYCODE_BRIGHTNESS_UP: _bindgen_ty_13 = 221; +pub const AKEYCODE_MEDIA_AUDIO_TRACK: _bindgen_ty_13 = 222; +pub const AKEYCODE_SLEEP: _bindgen_ty_13 = 223; +pub const AKEYCODE_WAKEUP: _bindgen_ty_13 = 224; +pub const AKEYCODE_PAIRING: _bindgen_ty_13 = 225; +pub const AKEYCODE_MEDIA_TOP_MENU: _bindgen_ty_13 = 226; +pub const AKEYCODE_11: _bindgen_ty_13 = 227; +pub const AKEYCODE_12: _bindgen_ty_13 = 228; +pub const AKEYCODE_LAST_CHANNEL: _bindgen_ty_13 = 229; +pub const AKEYCODE_TV_DATA_SERVICE: _bindgen_ty_13 = 230; +pub const AKEYCODE_VOICE_ASSIST: _bindgen_ty_13 = 231; +pub const AKEYCODE_TV_RADIO_SERVICE: _bindgen_ty_13 = 232; +pub const AKEYCODE_TV_TELETEXT: _bindgen_ty_13 = 233; +pub const AKEYCODE_TV_NUMBER_ENTRY: _bindgen_ty_13 = 234; +pub const AKEYCODE_TV_TERRESTRIAL_ANALOG: _bindgen_ty_13 = 235; +pub const AKEYCODE_TV_TERRESTRIAL_DIGITAL: _bindgen_ty_13 = 236; +pub const AKEYCODE_TV_SATELLITE: _bindgen_ty_13 = 237; +pub const AKEYCODE_TV_SATELLITE_BS: _bindgen_ty_13 = 238; +pub const AKEYCODE_TV_SATELLITE_CS: _bindgen_ty_13 = 239; +pub const AKEYCODE_TV_SATELLITE_SERVICE: _bindgen_ty_13 = 240; +pub const AKEYCODE_TV_NETWORK: _bindgen_ty_13 = 241; +pub const AKEYCODE_TV_ANTENNA_CABLE: _bindgen_ty_13 = 242; +pub const AKEYCODE_TV_INPUT_HDMI_1: _bindgen_ty_13 = 243; +pub const AKEYCODE_TV_INPUT_HDMI_2: _bindgen_ty_13 = 244; +pub const AKEYCODE_TV_INPUT_HDMI_3: _bindgen_ty_13 = 245; +pub const AKEYCODE_TV_INPUT_HDMI_4: _bindgen_ty_13 = 246; +pub const AKEYCODE_TV_INPUT_COMPOSITE_1: _bindgen_ty_13 = 247; +pub const AKEYCODE_TV_INPUT_COMPOSITE_2: _bindgen_ty_13 = 248; +pub const AKEYCODE_TV_INPUT_COMPONENT_1: _bindgen_ty_13 = 249; +pub const AKEYCODE_TV_INPUT_COMPONENT_2: _bindgen_ty_13 = 250; +pub const AKEYCODE_TV_INPUT_VGA_1: _bindgen_ty_13 = 251; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION: _bindgen_ty_13 = 252; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: _bindgen_ty_13 = 253; +pub const AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: _bindgen_ty_13 = 254; +pub const AKEYCODE_TV_ZOOM_MODE: _bindgen_ty_13 = 255; +pub const AKEYCODE_TV_CONTENTS_MENU: _bindgen_ty_13 = 256; +pub const AKEYCODE_TV_MEDIA_CONTEXT_MENU: _bindgen_ty_13 = 257; +pub const AKEYCODE_TV_TIMER_PROGRAMMING: _bindgen_ty_13 = 258; +pub const AKEYCODE_HELP: _bindgen_ty_13 = 259; +pub const AKEYCODE_NAVIGATE_PREVIOUS: _bindgen_ty_13 = 260; +pub const AKEYCODE_NAVIGATE_NEXT: _bindgen_ty_13 = 261; +pub const AKEYCODE_NAVIGATE_IN: _bindgen_ty_13 = 262; +pub const AKEYCODE_NAVIGATE_OUT: _bindgen_ty_13 = 263; +pub const AKEYCODE_STEM_PRIMARY: _bindgen_ty_13 = 264; +pub const AKEYCODE_STEM_1: _bindgen_ty_13 = 265; +pub const AKEYCODE_STEM_2: _bindgen_ty_13 = 266; +pub const AKEYCODE_STEM_3: _bindgen_ty_13 = 267; +pub const AKEYCODE_DPAD_UP_LEFT: _bindgen_ty_13 = 268; +pub const AKEYCODE_DPAD_DOWN_LEFT: _bindgen_ty_13 = 269; +pub const AKEYCODE_DPAD_UP_RIGHT: _bindgen_ty_13 = 270; +pub const AKEYCODE_DPAD_DOWN_RIGHT: _bindgen_ty_13 = 271; +pub const AKEYCODE_MEDIA_SKIP_FORWARD: _bindgen_ty_13 = 272; +pub const AKEYCODE_MEDIA_SKIP_BACKWARD: _bindgen_ty_13 = 273; +pub const AKEYCODE_MEDIA_STEP_FORWARD: _bindgen_ty_13 = 274; +pub const AKEYCODE_MEDIA_STEP_BACKWARD: _bindgen_ty_13 = 275; +pub const AKEYCODE_SOFT_SLEEP: _bindgen_ty_13 = 276; +pub const AKEYCODE_CUT: _bindgen_ty_13 = 277; +pub const AKEYCODE_COPY: _bindgen_ty_13 = 278; +pub const AKEYCODE_PASTE: _bindgen_ty_13 = 279; +pub const AKEYCODE_SYSTEM_NAVIGATION_UP: _bindgen_ty_13 = 280; +pub const AKEYCODE_SYSTEM_NAVIGATION_DOWN: _bindgen_ty_13 = 281; +pub const AKEYCODE_SYSTEM_NAVIGATION_LEFT: _bindgen_ty_13 = 282; +pub const AKEYCODE_SYSTEM_NAVIGATION_RIGHT: _bindgen_ty_13 = 283; +pub const AKEYCODE_ALL_APPS: _bindgen_ty_13 = 284; +pub const AKEYCODE_REFRESH: _bindgen_ty_13 = 285; +pub const AKEYCODE_THUMBS_UP: _bindgen_ty_13 = 286; +pub const AKEYCODE_THUMBS_DOWN: _bindgen_ty_13 = 287; +pub const AKEYCODE_PROFILE_SWITCH: _bindgen_ty_13 = 288; +pub type _bindgen_ty_13 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ALooper { @@ -4116,28 +4029,28 @@ pub struct ALooper { extern "C" { pub fn ALooper_forThread() -> *mut ALooper; } -pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; +pub const ALOOPER_PREPARE_ALLOW_NON_CALLBACKS: _bindgen_ty_14 = 1; +pub type _bindgen_ty_14 = ::std::os::raw::c_uint; extern "C" { pub fn ALooper_prepare(opts: ::std::os::raw::c_int) -> *mut ALooper; } -pub const ALOOPER_POLL_WAKE: ::std::os::raw::c_int = -1; -pub const ALOOPER_POLL_CALLBACK: ::std::os::raw::c_int = -2; -pub const ALOOPER_POLL_TIMEOUT: ::std::os::raw::c_int = -3; -pub const ALOOPER_POLL_ERROR: ::std::os::raw::c_int = -4; -pub type _bindgen_ty_13 = ::std::os::raw::c_int; +pub const ALOOPER_POLL_WAKE: _bindgen_ty_15 = -1; +pub const ALOOPER_POLL_CALLBACK: _bindgen_ty_15 = -2; +pub const ALOOPER_POLL_TIMEOUT: _bindgen_ty_15 = -3; +pub const ALOOPER_POLL_ERROR: _bindgen_ty_15 = -4; +pub type _bindgen_ty_15 = ::std::os::raw::c_int; extern "C" { pub fn ALooper_acquire(looper: *mut ALooper); } extern "C" { pub fn ALooper_release(looper: *mut ALooper); } -pub const ALOOPER_EVENT_INPUT: ::std::os::raw::c_uint = 1; -pub const ALOOPER_EVENT_OUTPUT: ::std::os::raw::c_uint = 2; -pub const ALOOPER_EVENT_ERROR: ::std::os::raw::c_uint = 4; -pub const ALOOPER_EVENT_HANGUP: ::std::os::raw::c_uint = 8; -pub const ALOOPER_EVENT_INVALID: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; +pub const ALOOPER_EVENT_INPUT: _bindgen_ty_16 = 1; +pub const ALOOPER_EVENT_OUTPUT: _bindgen_ty_16 = 2; +pub const ALOOPER_EVENT_ERROR: _bindgen_ty_16 = 4; +pub const ALOOPER_EVENT_HANGUP: _bindgen_ty_16 = 8; +pub const ALOOPER_EVENT_INVALID: _bindgen_ty_16 = 16; +pub type _bindgen_ty_16 = ::std::os::raw::c_uint; pub type ALooper_callbackFunc = ::std::option::Option< unsafe extern "C" fn( fd: ::std::os::raw::c_int, @@ -4180,143 +4093,143 @@ extern "C" { fd: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AKEY_STATE_UNKNOWN: ::std::os::raw::c_int = -1; -pub const AKEY_STATE_UP: ::std::os::raw::c_int = 0; -pub const AKEY_STATE_DOWN: ::std::os::raw::c_int = 1; -pub const AKEY_STATE_VIRTUAL: ::std::os::raw::c_int = 2; -pub type _bindgen_ty_15 = ::std::os::raw::c_int; -pub const AMETA_NONE: ::std::os::raw::c_uint = 0; -pub const AMETA_ALT_ON: ::std::os::raw::c_uint = 2; -pub const AMETA_ALT_LEFT_ON: ::std::os::raw::c_uint = 16; -pub const AMETA_ALT_RIGHT_ON: ::std::os::raw::c_uint = 32; -pub const AMETA_SHIFT_ON: ::std::os::raw::c_uint = 1; -pub const AMETA_SHIFT_LEFT_ON: ::std::os::raw::c_uint = 64; -pub const AMETA_SHIFT_RIGHT_ON: ::std::os::raw::c_uint = 128; -pub const AMETA_SYM_ON: ::std::os::raw::c_uint = 4; -pub const AMETA_FUNCTION_ON: ::std::os::raw::c_uint = 8; -pub const AMETA_CTRL_ON: ::std::os::raw::c_uint = 4096; -pub const AMETA_CTRL_LEFT_ON: ::std::os::raw::c_uint = 8192; -pub const AMETA_CTRL_RIGHT_ON: ::std::os::raw::c_uint = 16384; -pub const AMETA_META_ON: ::std::os::raw::c_uint = 65536; -pub const AMETA_META_LEFT_ON: ::std::os::raw::c_uint = 131072; -pub const AMETA_META_RIGHT_ON: ::std::os::raw::c_uint = 262144; -pub const AMETA_CAPS_LOCK_ON: ::std::os::raw::c_uint = 1048576; -pub const AMETA_NUM_LOCK_ON: ::std::os::raw::c_uint = 2097152; -pub const AMETA_SCROLL_LOCK_ON: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; +pub const AKEY_STATE_UNKNOWN: _bindgen_ty_17 = -1; +pub const AKEY_STATE_UP: _bindgen_ty_17 = 0; +pub const AKEY_STATE_DOWN: _bindgen_ty_17 = 1; +pub const AKEY_STATE_VIRTUAL: _bindgen_ty_17 = 2; +pub type _bindgen_ty_17 = ::std::os::raw::c_int; +pub const AMETA_NONE: _bindgen_ty_18 = 0; +pub const AMETA_ALT_ON: _bindgen_ty_18 = 2; +pub const AMETA_ALT_LEFT_ON: _bindgen_ty_18 = 16; +pub const AMETA_ALT_RIGHT_ON: _bindgen_ty_18 = 32; +pub const AMETA_SHIFT_ON: _bindgen_ty_18 = 1; +pub const AMETA_SHIFT_LEFT_ON: _bindgen_ty_18 = 64; +pub const AMETA_SHIFT_RIGHT_ON: _bindgen_ty_18 = 128; +pub const AMETA_SYM_ON: _bindgen_ty_18 = 4; +pub const AMETA_FUNCTION_ON: _bindgen_ty_18 = 8; +pub const AMETA_CTRL_ON: _bindgen_ty_18 = 4096; +pub const AMETA_CTRL_LEFT_ON: _bindgen_ty_18 = 8192; +pub const AMETA_CTRL_RIGHT_ON: _bindgen_ty_18 = 16384; +pub const AMETA_META_ON: _bindgen_ty_18 = 65536; +pub const AMETA_META_LEFT_ON: _bindgen_ty_18 = 131072; +pub const AMETA_META_RIGHT_ON: _bindgen_ty_18 = 262144; +pub const AMETA_CAPS_LOCK_ON: _bindgen_ty_18 = 1048576; +pub const AMETA_NUM_LOCK_ON: _bindgen_ty_18 = 2097152; +pub const AMETA_SCROLL_LOCK_ON: _bindgen_ty_18 = 4194304; +pub type _bindgen_ty_18 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct AInputEvent { _unused: [u8; 0], } -pub const AINPUT_EVENT_TYPE_KEY: ::std::os::raw::c_uint = 1; -pub const AINPUT_EVENT_TYPE_MOTION: ::std::os::raw::c_uint = 2; -pub const AINPUT_EVENT_TYPE_FOCUS: ::std::os::raw::c_uint = 3; -pub const AINPUT_EVENT_TYPE_CAPTURE: ::std::os::raw::c_uint = 4; -pub const AINPUT_EVENT_TYPE_DRAG: ::std::os::raw::c_uint = 5; -pub const AINPUT_EVENT_TYPE_TOUCH_MODE: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AKEY_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_ACTION_MULTIPLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub const AKEY_EVENT_FLAG_WOKE_HERE: ::std::os::raw::c_uint = 1; -pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: ::std::os::raw::c_uint = 2; -pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: ::std::os::raw::c_uint = 4; -pub const AKEY_EVENT_FLAG_FROM_SYSTEM: ::std::os::raw::c_uint = 8; -pub const AKEY_EVENT_FLAG_EDITOR_ACTION: ::std::os::raw::c_uint = 16; -pub const AKEY_EVENT_FLAG_CANCELED: ::std::os::raw::c_uint = 32; -pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: ::std::os::raw::c_uint = 64; -pub const AKEY_EVENT_FLAG_LONG_PRESS: ::std::os::raw::c_uint = 128; -pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: ::std::os::raw::c_uint = 256; -pub const AKEY_EVENT_FLAG_TRACKING: ::std::os::raw::c_uint = 512; -pub const AKEY_EVENT_FLAG_FALLBACK: ::std::os::raw::c_uint = 1024; +pub const AINPUT_EVENT_TYPE_KEY: _bindgen_ty_19 = 1; +pub const AINPUT_EVENT_TYPE_MOTION: _bindgen_ty_19 = 2; +pub const AINPUT_EVENT_TYPE_FOCUS: _bindgen_ty_19 = 3; +pub const AINPUT_EVENT_TYPE_CAPTURE: _bindgen_ty_19 = 4; +pub const AINPUT_EVENT_TYPE_DRAG: _bindgen_ty_19 = 5; +pub const AINPUT_EVENT_TYPE_TOUCH_MODE: _bindgen_ty_19 = 6; pub type _bindgen_ty_19 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_ACTION_MASK: ::std::os::raw::c_uint = 255; -pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: ::std::os::raw::c_uint = 65280; -pub const AMOTION_EVENT_ACTION_DOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_ACTION_UP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_ACTION_MOVE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_ACTION_CANCEL: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_ACTION_OUTSIDE: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_ACTION_POINTER_DOWN: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_ACTION_POINTER_UP: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_ACTION_HOVER_MOVE: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_ACTION_SCROLL: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_ACTION_HOVER_ENTER: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_ACTION_HOVER_EXIT: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: ::std::os::raw::c_uint = 12; +pub const AKEY_EVENT_ACTION_DOWN: _bindgen_ty_20 = 0; +pub const AKEY_EVENT_ACTION_UP: _bindgen_ty_20 = 1; +pub const AKEY_EVENT_ACTION_MULTIPLE: _bindgen_ty_20 = 2; pub type _bindgen_ty_20 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: ::std::os::raw::c_uint = 1; +pub const AKEY_EVENT_FLAG_WOKE_HERE: _bindgen_ty_21 = 1; +pub const AKEY_EVENT_FLAG_SOFT_KEYBOARD: _bindgen_ty_21 = 2; +pub const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE: _bindgen_ty_21 = 4; +pub const AKEY_EVENT_FLAG_FROM_SYSTEM: _bindgen_ty_21 = 8; +pub const AKEY_EVENT_FLAG_EDITOR_ACTION: _bindgen_ty_21 = 16; +pub const AKEY_EVENT_FLAG_CANCELED: _bindgen_ty_21 = 32; +pub const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY: _bindgen_ty_21 = 64; +pub const AKEY_EVENT_FLAG_LONG_PRESS: _bindgen_ty_21 = 128; +pub const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS: _bindgen_ty_21 = 256; +pub const AKEY_EVENT_FLAG_TRACKING: _bindgen_ty_21 = 512; +pub const AKEY_EVENT_FLAG_FALLBACK: _bindgen_ty_21 = 1024; pub type _bindgen_ty_21 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_EDGE_FLAG_NONE: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_EDGE_FLAG_TOP: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_EDGE_FLAG_LEFT: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: ::std::os::raw::c_uint = 8; +pub const AMOTION_EVENT_ACTION_MASK: _bindgen_ty_22 = 255; +pub const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK: _bindgen_ty_22 = 65280; +pub const AMOTION_EVENT_ACTION_DOWN: _bindgen_ty_22 = 0; +pub const AMOTION_EVENT_ACTION_UP: _bindgen_ty_22 = 1; +pub const AMOTION_EVENT_ACTION_MOVE: _bindgen_ty_22 = 2; +pub const AMOTION_EVENT_ACTION_CANCEL: _bindgen_ty_22 = 3; +pub const AMOTION_EVENT_ACTION_OUTSIDE: _bindgen_ty_22 = 4; +pub const AMOTION_EVENT_ACTION_POINTER_DOWN: _bindgen_ty_22 = 5; +pub const AMOTION_EVENT_ACTION_POINTER_UP: _bindgen_ty_22 = 6; +pub const AMOTION_EVENT_ACTION_HOVER_MOVE: _bindgen_ty_22 = 7; +pub const AMOTION_EVENT_ACTION_SCROLL: _bindgen_ty_22 = 8; +pub const AMOTION_EVENT_ACTION_HOVER_ENTER: _bindgen_ty_22 = 9; +pub const AMOTION_EVENT_ACTION_HOVER_EXIT: _bindgen_ty_22 = 10; +pub const AMOTION_EVENT_ACTION_BUTTON_PRESS: _bindgen_ty_22 = 11; +pub const AMOTION_EVENT_ACTION_BUTTON_RELEASE: _bindgen_ty_22 = 12; pub type _bindgen_ty_22 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_AXIS_X: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_AXIS_Y: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_AXIS_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_AXIS_SIZE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AMOTION_EVENT_AXIS_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AMOTION_EVENT_AXIS_ORIENTATION: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_AXIS_VSCROLL: ::std::os::raw::c_uint = 9; -pub const AMOTION_EVENT_AXIS_HSCROLL: ::std::os::raw::c_uint = 10; -pub const AMOTION_EVENT_AXIS_Z: ::std::os::raw::c_uint = 11; -pub const AMOTION_EVENT_AXIS_RX: ::std::os::raw::c_uint = 12; -pub const AMOTION_EVENT_AXIS_RY: ::std::os::raw::c_uint = 13; -pub const AMOTION_EVENT_AXIS_RZ: ::std::os::raw::c_uint = 14; -pub const AMOTION_EVENT_AXIS_HAT_X: ::std::os::raw::c_uint = 15; -pub const AMOTION_EVENT_AXIS_HAT_Y: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_AXIS_LTRIGGER: ::std::os::raw::c_uint = 17; -pub const AMOTION_EVENT_AXIS_RTRIGGER: ::std::os::raw::c_uint = 18; -pub const AMOTION_EVENT_AXIS_THROTTLE: ::std::os::raw::c_uint = 19; -pub const AMOTION_EVENT_AXIS_RUDDER: ::std::os::raw::c_uint = 20; -pub const AMOTION_EVENT_AXIS_WHEEL: ::std::os::raw::c_uint = 21; -pub const AMOTION_EVENT_AXIS_GAS: ::std::os::raw::c_uint = 22; -pub const AMOTION_EVENT_AXIS_BRAKE: ::std::os::raw::c_uint = 23; -pub const AMOTION_EVENT_AXIS_DISTANCE: ::std::os::raw::c_uint = 24; -pub const AMOTION_EVENT_AXIS_TILT: ::std::os::raw::c_uint = 25; -pub const AMOTION_EVENT_AXIS_SCROLL: ::std::os::raw::c_uint = 26; -pub const AMOTION_EVENT_AXIS_RELATIVE_X: ::std::os::raw::c_uint = 27; -pub const AMOTION_EVENT_AXIS_RELATIVE_Y: ::std::os::raw::c_uint = 28; -pub const AMOTION_EVENT_AXIS_GENERIC_1: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_AXIS_GENERIC_2: ::std::os::raw::c_uint = 33; -pub const AMOTION_EVENT_AXIS_GENERIC_3: ::std::os::raw::c_uint = 34; -pub const AMOTION_EVENT_AXIS_GENERIC_4: ::std::os::raw::c_uint = 35; -pub const AMOTION_EVENT_AXIS_GENERIC_5: ::std::os::raw::c_uint = 36; -pub const AMOTION_EVENT_AXIS_GENERIC_6: ::std::os::raw::c_uint = 37; -pub const AMOTION_EVENT_AXIS_GENERIC_7: ::std::os::raw::c_uint = 38; -pub const AMOTION_EVENT_AXIS_GENERIC_8: ::std::os::raw::c_uint = 39; -pub const AMOTION_EVENT_AXIS_GENERIC_9: ::std::os::raw::c_uint = 40; -pub const AMOTION_EVENT_AXIS_GENERIC_10: ::std::os::raw::c_uint = 41; -pub const AMOTION_EVENT_AXIS_GENERIC_11: ::std::os::raw::c_uint = 42; -pub const AMOTION_EVENT_AXIS_GENERIC_12: ::std::os::raw::c_uint = 43; -pub const AMOTION_EVENT_AXIS_GENERIC_13: ::std::os::raw::c_uint = 44; -pub const AMOTION_EVENT_AXIS_GENERIC_14: ::std::os::raw::c_uint = 45; -pub const AMOTION_EVENT_AXIS_GENERIC_15: ::std::os::raw::c_uint = 46; -pub const AMOTION_EVENT_AXIS_GENERIC_16: ::std::os::raw::c_uint = 47; +pub const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED: _bindgen_ty_23 = 1; pub type _bindgen_ty_23 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_BUTTON_PRIMARY: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_BUTTON_SECONDARY: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_BUTTON_TERTIARY: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_BUTTON_BACK: ::std::os::raw::c_uint = 8; -pub const AMOTION_EVENT_BUTTON_FORWARD: ::std::os::raw::c_uint = 16; -pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: ::std::os::raw::c_uint = 32; -pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: ::std::os::raw::c_uint = 64; +pub const AMOTION_EVENT_EDGE_FLAG_NONE: _bindgen_ty_24 = 0; +pub const AMOTION_EVENT_EDGE_FLAG_TOP: _bindgen_ty_24 = 1; +pub const AMOTION_EVENT_EDGE_FLAG_BOTTOM: _bindgen_ty_24 = 2; +pub const AMOTION_EVENT_EDGE_FLAG_LEFT: _bindgen_ty_24 = 4; +pub const AMOTION_EVENT_EDGE_FLAG_RIGHT: _bindgen_ty_24 = 8; pub type _bindgen_ty_24 = ::std::os::raw::c_uint; -pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AMOTION_EVENT_TOOL_TYPE_FINGER: ::std::os::raw::c_uint = 1; -pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: ::std::os::raw::c_uint = 2; -pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: ::std::os::raw::c_uint = 3; -pub const AMOTION_EVENT_TOOL_TYPE_ERASER: ::std::os::raw::c_uint = 4; -pub const AMOTION_EVENT_TOOL_TYPE_PALM: ::std::os::raw::c_uint = 5; +pub const AMOTION_EVENT_AXIS_X: _bindgen_ty_25 = 0; +pub const AMOTION_EVENT_AXIS_Y: _bindgen_ty_25 = 1; +pub const AMOTION_EVENT_AXIS_PRESSURE: _bindgen_ty_25 = 2; +pub const AMOTION_EVENT_AXIS_SIZE: _bindgen_ty_25 = 3; +pub const AMOTION_EVENT_AXIS_TOUCH_MAJOR: _bindgen_ty_25 = 4; +pub const AMOTION_EVENT_AXIS_TOUCH_MINOR: _bindgen_ty_25 = 5; +pub const AMOTION_EVENT_AXIS_TOOL_MAJOR: _bindgen_ty_25 = 6; +pub const AMOTION_EVENT_AXIS_TOOL_MINOR: _bindgen_ty_25 = 7; +pub const AMOTION_EVENT_AXIS_ORIENTATION: _bindgen_ty_25 = 8; +pub const AMOTION_EVENT_AXIS_VSCROLL: _bindgen_ty_25 = 9; +pub const AMOTION_EVENT_AXIS_HSCROLL: _bindgen_ty_25 = 10; +pub const AMOTION_EVENT_AXIS_Z: _bindgen_ty_25 = 11; +pub const AMOTION_EVENT_AXIS_RX: _bindgen_ty_25 = 12; +pub const AMOTION_EVENT_AXIS_RY: _bindgen_ty_25 = 13; +pub const AMOTION_EVENT_AXIS_RZ: _bindgen_ty_25 = 14; +pub const AMOTION_EVENT_AXIS_HAT_X: _bindgen_ty_25 = 15; +pub const AMOTION_EVENT_AXIS_HAT_Y: _bindgen_ty_25 = 16; +pub const AMOTION_EVENT_AXIS_LTRIGGER: _bindgen_ty_25 = 17; +pub const AMOTION_EVENT_AXIS_RTRIGGER: _bindgen_ty_25 = 18; +pub const AMOTION_EVENT_AXIS_THROTTLE: _bindgen_ty_25 = 19; +pub const AMOTION_EVENT_AXIS_RUDDER: _bindgen_ty_25 = 20; +pub const AMOTION_EVENT_AXIS_WHEEL: _bindgen_ty_25 = 21; +pub const AMOTION_EVENT_AXIS_GAS: _bindgen_ty_25 = 22; +pub const AMOTION_EVENT_AXIS_BRAKE: _bindgen_ty_25 = 23; +pub const AMOTION_EVENT_AXIS_DISTANCE: _bindgen_ty_25 = 24; +pub const AMOTION_EVENT_AXIS_TILT: _bindgen_ty_25 = 25; +pub const AMOTION_EVENT_AXIS_SCROLL: _bindgen_ty_25 = 26; +pub const AMOTION_EVENT_AXIS_RELATIVE_X: _bindgen_ty_25 = 27; +pub const AMOTION_EVENT_AXIS_RELATIVE_Y: _bindgen_ty_25 = 28; +pub const AMOTION_EVENT_AXIS_GENERIC_1: _bindgen_ty_25 = 32; +pub const AMOTION_EVENT_AXIS_GENERIC_2: _bindgen_ty_25 = 33; +pub const AMOTION_EVENT_AXIS_GENERIC_3: _bindgen_ty_25 = 34; +pub const AMOTION_EVENT_AXIS_GENERIC_4: _bindgen_ty_25 = 35; +pub const AMOTION_EVENT_AXIS_GENERIC_5: _bindgen_ty_25 = 36; +pub const AMOTION_EVENT_AXIS_GENERIC_6: _bindgen_ty_25 = 37; +pub const AMOTION_EVENT_AXIS_GENERIC_7: _bindgen_ty_25 = 38; +pub const AMOTION_EVENT_AXIS_GENERIC_8: _bindgen_ty_25 = 39; +pub const AMOTION_EVENT_AXIS_GENERIC_9: _bindgen_ty_25 = 40; +pub const AMOTION_EVENT_AXIS_GENERIC_10: _bindgen_ty_25 = 41; +pub const AMOTION_EVENT_AXIS_GENERIC_11: _bindgen_ty_25 = 42; +pub const AMOTION_EVENT_AXIS_GENERIC_12: _bindgen_ty_25 = 43; +pub const AMOTION_EVENT_AXIS_GENERIC_13: _bindgen_ty_25 = 44; +pub const AMOTION_EVENT_AXIS_GENERIC_14: _bindgen_ty_25 = 45; +pub const AMOTION_EVENT_AXIS_GENERIC_15: _bindgen_ty_25 = 46; +pub const AMOTION_EVENT_AXIS_GENERIC_16: _bindgen_ty_25 = 47; pub type _bindgen_ty_25 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_BUTTON_PRIMARY: _bindgen_ty_26 = 1; +pub const AMOTION_EVENT_BUTTON_SECONDARY: _bindgen_ty_26 = 2; +pub const AMOTION_EVENT_BUTTON_TERTIARY: _bindgen_ty_26 = 4; +pub const AMOTION_EVENT_BUTTON_BACK: _bindgen_ty_26 = 8; +pub const AMOTION_EVENT_BUTTON_FORWARD: _bindgen_ty_26 = 16; +pub const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY: _bindgen_ty_26 = 32; +pub const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY: _bindgen_ty_26 = 64; +pub type _bindgen_ty_26 = ::std::os::raw::c_uint; +pub const AMOTION_EVENT_TOOL_TYPE_UNKNOWN: _bindgen_ty_27 = 0; +pub const AMOTION_EVENT_TOOL_TYPE_FINGER: _bindgen_ty_27 = 1; +pub const AMOTION_EVENT_TOOL_TYPE_STYLUS: _bindgen_ty_27 = 2; +pub const AMOTION_EVENT_TOOL_TYPE_MOUSE: _bindgen_ty_27 = 3; +pub const AMOTION_EVENT_TOOL_TYPE_ERASER: _bindgen_ty_27 = 4; +pub const AMOTION_EVENT_TOOL_TYPE_PALM: _bindgen_ty_27 = 5; +pub type _bindgen_ty_27 = ::std::os::raw::c_uint; impl AMotionClassification { pub const AMOTION_EVENT_CLASSIFICATION_NONE: AMotionClassification = AMotionClassification(0); } @@ -4331,46 +4244,46 @@ impl AMotionClassification { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct AMotionClassification(pub u32); -pub const AINPUT_SOURCE_CLASS_MASK: ::std::os::raw::c_uint = 255; -pub const AINPUT_SOURCE_CLASS_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_CLASS_BUTTON: ::std::os::raw::c_uint = 1; -pub const AINPUT_SOURCE_CLASS_POINTER: ::std::os::raw::c_uint = 2; -pub const AINPUT_SOURCE_CLASS_NAVIGATION: ::std::os::raw::c_uint = 4; -pub const AINPUT_SOURCE_CLASS_POSITION: ::std::os::raw::c_uint = 8; -pub const AINPUT_SOURCE_CLASS_JOYSTICK: ::std::os::raw::c_uint = 16; -pub type _bindgen_ty_26 = ::std::os::raw::c_uint; -pub const AINPUT_SOURCE_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const AINPUT_SOURCE_KEYBOARD: ::std::os::raw::c_uint = 257; -pub const AINPUT_SOURCE_DPAD: ::std::os::raw::c_uint = 513; -pub const AINPUT_SOURCE_GAMEPAD: ::std::os::raw::c_uint = 1025; -pub const AINPUT_SOURCE_TOUCHSCREEN: ::std::os::raw::c_uint = 4098; -pub const AINPUT_SOURCE_MOUSE: ::std::os::raw::c_uint = 8194; -pub const AINPUT_SOURCE_STYLUS: ::std::os::raw::c_uint = 16386; -pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: ::std::os::raw::c_uint = 49154; -pub const AINPUT_SOURCE_TRACKBALL: ::std::os::raw::c_uint = 65540; -pub const AINPUT_SOURCE_MOUSE_RELATIVE: ::std::os::raw::c_uint = 131076; -pub const AINPUT_SOURCE_TOUCHPAD: ::std::os::raw::c_uint = 1048584; -pub const AINPUT_SOURCE_TOUCH_NAVIGATION: ::std::os::raw::c_uint = 2097152; -pub const AINPUT_SOURCE_JOYSTICK: ::std::os::raw::c_uint = 16777232; -pub const AINPUT_SOURCE_HDMI: ::std::os::raw::c_uint = 33554433; -pub const AINPUT_SOURCE_SENSOR: ::std::os::raw::c_uint = 67108864; -pub const AINPUT_SOURCE_ROTARY_ENCODER: ::std::os::raw::c_uint = 4194304; -pub const AINPUT_SOURCE_ANY: ::std::os::raw::c_uint = 4294967040; -pub type _bindgen_ty_27 = ::std::os::raw::c_uint; -pub const AINPUT_KEYBOARD_TYPE_NONE: ::std::os::raw::c_uint = 0; -pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: ::std::os::raw::c_uint = 1; -pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: ::std::os::raw::c_uint = 2; +pub const AINPUT_SOURCE_CLASS_MASK: _bindgen_ty_28 = 255; +pub const AINPUT_SOURCE_CLASS_NONE: _bindgen_ty_28 = 0; +pub const AINPUT_SOURCE_CLASS_BUTTON: _bindgen_ty_28 = 1; +pub const AINPUT_SOURCE_CLASS_POINTER: _bindgen_ty_28 = 2; +pub const AINPUT_SOURCE_CLASS_NAVIGATION: _bindgen_ty_28 = 4; +pub const AINPUT_SOURCE_CLASS_POSITION: _bindgen_ty_28 = 8; +pub const AINPUT_SOURCE_CLASS_JOYSTICK: _bindgen_ty_28 = 16; pub type _bindgen_ty_28 = ::std::os::raw::c_uint; -pub const AINPUT_MOTION_RANGE_X: ::std::os::raw::c_uint = 0; -pub const AINPUT_MOTION_RANGE_Y: ::std::os::raw::c_uint = 1; -pub const AINPUT_MOTION_RANGE_PRESSURE: ::std::os::raw::c_uint = 2; -pub const AINPUT_MOTION_RANGE_SIZE: ::std::os::raw::c_uint = 3; -pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: ::std::os::raw::c_uint = 4; -pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: ::std::os::raw::c_uint = 5; -pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: ::std::os::raw::c_uint = 6; -pub const AINPUT_MOTION_RANGE_TOOL_MINOR: ::std::os::raw::c_uint = 7; -pub const AINPUT_MOTION_RANGE_ORIENTATION: ::std::os::raw::c_uint = 8; +pub const AINPUT_SOURCE_UNKNOWN: _bindgen_ty_29 = 0; +pub const AINPUT_SOURCE_KEYBOARD: _bindgen_ty_29 = 257; +pub const AINPUT_SOURCE_DPAD: _bindgen_ty_29 = 513; +pub const AINPUT_SOURCE_GAMEPAD: _bindgen_ty_29 = 1025; +pub const AINPUT_SOURCE_TOUCHSCREEN: _bindgen_ty_29 = 4098; +pub const AINPUT_SOURCE_MOUSE: _bindgen_ty_29 = 8194; +pub const AINPUT_SOURCE_STYLUS: _bindgen_ty_29 = 16386; +pub const AINPUT_SOURCE_BLUETOOTH_STYLUS: _bindgen_ty_29 = 49154; +pub const AINPUT_SOURCE_TRACKBALL: _bindgen_ty_29 = 65540; +pub const AINPUT_SOURCE_MOUSE_RELATIVE: _bindgen_ty_29 = 131076; +pub const AINPUT_SOURCE_TOUCHPAD: _bindgen_ty_29 = 1048584; +pub const AINPUT_SOURCE_TOUCH_NAVIGATION: _bindgen_ty_29 = 2097152; +pub const AINPUT_SOURCE_JOYSTICK: _bindgen_ty_29 = 16777232; +pub const AINPUT_SOURCE_HDMI: _bindgen_ty_29 = 33554433; +pub const AINPUT_SOURCE_SENSOR: _bindgen_ty_29 = 67108864; +pub const AINPUT_SOURCE_ROTARY_ENCODER: _bindgen_ty_29 = 4194304; +pub const AINPUT_SOURCE_ANY: _bindgen_ty_29 = 4294967040; pub type _bindgen_ty_29 = ::std::os::raw::c_uint; +pub const AINPUT_KEYBOARD_TYPE_NONE: _bindgen_ty_30 = 0; +pub const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC: _bindgen_ty_30 = 1; +pub const AINPUT_KEYBOARD_TYPE_ALPHABETIC: _bindgen_ty_30 = 2; +pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const AINPUT_MOTION_RANGE_X: _bindgen_ty_31 = 0; +pub const AINPUT_MOTION_RANGE_Y: _bindgen_ty_31 = 1; +pub const AINPUT_MOTION_RANGE_PRESSURE: _bindgen_ty_31 = 2; +pub const AINPUT_MOTION_RANGE_SIZE: _bindgen_ty_31 = 3; +pub const AINPUT_MOTION_RANGE_TOUCH_MAJOR: _bindgen_ty_31 = 4; +pub const AINPUT_MOTION_RANGE_TOUCH_MINOR: _bindgen_ty_31 = 5; +pub const AINPUT_MOTION_RANGE_TOOL_MAJOR: _bindgen_ty_31 = 6; +pub const AINPUT_MOTION_RANGE_TOOL_MINOR: _bindgen_ty_31 = 7; +pub const AINPUT_MOTION_RANGE_ORIENTATION: _bindgen_ty_31 = 8; +pub type _bindgen_ty_31 = ::std::os::raw::c_uint; extern "C" { pub fn AInputEvent_getType(event: *const AInputEvent) -> i32; } @@ -4710,7 +4623,7 @@ extern "C" { tag: *const ::std::os::raw::c_char, fmt: *const ::std::os::raw::c_char, ... - ); + ) -> !; } impl log_id { pub const LOG_ID_MIN: log_id = log_id(0); @@ -4779,6 +4692,9 @@ pub struct __android_log_message { } #[test] fn bindgen_test_layout___android_log_message() { + const UNINIT: ::std::mem::MaybeUninit<__android_log_message> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__android_log_message>(), 48usize, @@ -4790,9 +4706,7 @@ fn bindgen_test_layout___android_log_message() { concat!("Alignment of ", stringify!(__android_log_message)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__android_log_message>())).struct_size as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).struct_size) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4802,7 +4716,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).buffer_id as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).buffer_id) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4812,7 +4726,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).priority as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).priority) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -4822,7 +4736,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4832,7 +4746,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).file as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -4842,7 +4756,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).line as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).line) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -4852,7 +4766,7 @@ fn bindgen_test_layout___android_log_message() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__android_log_message>())).message as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -4885,7 +4799,7 @@ extern "C" { pub fn __android_log_call_aborter(abort_message: *const ::std::os::raw::c_char); } extern "C" { - pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char); + pub fn __android_log_default_aborter(abort_message: *const ::std::os::raw::c_char) -> !; } extern "C" { pub fn __android_log_is_loggable( @@ -4922,6 +4836,8 @@ pub struct flock { } #[test] fn bindgen_test_layout_flock() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -4933,7 +4849,7 @@ fn bindgen_test_layout_flock() { concat!("Alignment of ", stringify!(flock)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -4943,7 +4859,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -4953,7 +4869,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -4963,7 +4879,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -4973,7 +4889,7 @@ fn bindgen_test_layout_flock() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -4994,6 +4910,8 @@ pub struct flock64 { } #[test] fn bindgen_test_layout_flock64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5005,7 +4923,7 @@ fn bindgen_test_layout_flock64() { concat!("Alignment of ", stringify!(flock64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_type) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5015,7 +4933,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_whence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_whence) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5025,7 +4943,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_start as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_start) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5035,7 +4953,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_len) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5045,7 +4963,7 @@ fn bindgen_test_layout_flock64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_pid) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5063,6 +4981,8 @@ pub struct f_owner_ex { } #[test] fn bindgen_test_layout_f_owner_ex() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5074,7 +4994,7 @@ fn bindgen_test_layout_f_owner_ex() { concat!("Alignment of ", stringify!(f_owner_ex)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5084,7 +5004,7 @@ fn bindgen_test_layout_f_owner_ex() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5102,6 +5022,8 @@ pub struct iovec { } #[test] fn bindgen_test_layout_iovec() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5113,7 +5035,7 @@ fn bindgen_test_layout_iovec() { concat!("Alignment of ", stringify!(iovec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_base) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5123,7 +5045,7 @@ fn bindgen_test_layout_iovec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).iov_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).iov_len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5134,10 +5056,10 @@ fn bindgen_test_layout_iovec() { ); } pub type sa_family_t = ::std::os::raw::c_ushort; -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_30 = ::std::os::raw::c_uint; +pub const SHUT_RD: _bindgen_ty_32 = 0; +pub const SHUT_WR: _bindgen_ty_32 = 1; +pub const SHUT_RDWR: _bindgen_ty_32 = 2; +pub type _bindgen_ty_32 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr { @@ -5146,6 +5068,8 @@ pub struct sockaddr { } #[test] fn bindgen_test_layout_sockaddr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5157,7 +5081,7 @@ fn bindgen_test_layout_sockaddr() { concat!("Alignment of ", stringify!(sockaddr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5167,7 +5091,7 @@ fn bindgen_test_layout_sockaddr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5196,6 +5120,9 @@ pub struct sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sockaddr_storage__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::(), 128usize, @@ -5213,10 +5140,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).ss_family - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_family) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5226,10 +5150,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -5241,6 +5162,9 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -5252,9 +5176,7 @@ fn bindgen_test_layout_sockaddr_storage__bindgen_ty_1() { concat!("Alignment of ", stringify!(sockaddr_storage__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).__align as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5285,6 +5207,8 @@ pub struct linger { } #[test] fn bindgen_test_layout_linger() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -5296,7 +5220,7 @@ fn bindgen_test_layout_linger() { concat!("Alignment of ", stringify!(linger)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_onoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_onoff) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5306,7 +5230,7 @@ fn bindgen_test_layout_linger() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).l_linger as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).l_linger) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5329,6 +5253,8 @@ pub struct msghdr { } #[test] fn bindgen_test_layout_msghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -5340,7 +5266,7 @@ fn bindgen_test_layout_msghdr() { concat!("Alignment of ", stringify!(msghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5350,7 +5276,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_namelen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_namelen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5360,7 +5286,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iov as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iov) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5370,7 +5296,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_iovlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_iovlen) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5380,7 +5306,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_control as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_control) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -5390,7 +5316,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_controllen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_controllen) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -5400,7 +5326,7 @@ fn bindgen_test_layout_msghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_flags) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -5418,6 +5344,8 @@ pub struct mmsghdr { } #[test] fn bindgen_test_layout_mmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -5429,7 +5357,7 @@ fn bindgen_test_layout_mmsghdr() { concat!("Alignment of ", stringify!(mmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_hdr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5439,7 +5367,7 @@ fn bindgen_test_layout_mmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).msg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).msg_len) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -5458,6 +5386,8 @@ pub struct cmsghdr { } #[test] fn bindgen_test_layout_cmsghdr() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -5469,7 +5399,7 @@ fn bindgen_test_layout_cmsghdr() { concat!("Alignment of ", stringify!(cmsghdr)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_len as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_len) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5479,7 +5409,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_level as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_level) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5489,7 +5419,7 @@ fn bindgen_test_layout_cmsghdr() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cmsg_type as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cmsg_type) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -5511,6 +5441,8 @@ pub struct ucred { } #[test] fn bindgen_test_layout_ucred() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -5522,7 +5454,7 @@ fn bindgen_test_layout_ucred() { concat!("Alignment of ", stringify!(ucred)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5532,7 +5464,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5542,7 +5474,7 @@ fn bindgen_test_layout_ucred() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gid) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5718,6 +5650,8 @@ pub struct hostent { } #[test] fn bindgen_test_layout_hostent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5729,7 +5663,7 @@ fn bindgen_test_layout_hostent() { concat!("Alignment of ", stringify!(hostent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5739,7 +5673,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5749,7 +5683,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addrtype) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5759,7 +5693,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_length) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5769,7 +5703,7 @@ fn bindgen_test_layout_hostent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).h_addr_list as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h_addr_list) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5789,6 +5723,8 @@ pub struct netent { } #[test] fn bindgen_test_layout_netent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -5800,7 +5736,7 @@ fn bindgen_test_layout_netent() { concat!("Alignment of ", stringify!(netent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5810,7 +5746,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5820,7 +5756,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_addrtype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_addrtype) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5830,7 +5766,7 @@ fn bindgen_test_layout_netent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).n_net as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).n_net) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -5850,6 +5786,8 @@ pub struct servent { } #[test] fn bindgen_test_layout_servent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -5861,7 +5799,7 @@ fn bindgen_test_layout_servent() { concat!("Alignment of ", stringify!(servent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5871,7 +5809,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5881,7 +5819,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_port as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_port) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5891,7 +5829,7 @@ fn bindgen_test_layout_servent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).s_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).s_proto) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -5910,6 +5848,8 @@ pub struct protoent { } #[test] fn bindgen_test_layout_protoent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -5921,7 +5861,7 @@ fn bindgen_test_layout_protoent() { concat!("Alignment of ", stringify!(protoent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5931,7 +5871,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_aliases as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_aliases) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -5941,7 +5881,7 @@ fn bindgen_test_layout_protoent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).p_proto as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).p_proto) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -5965,6 +5905,8 @@ pub struct addrinfo { } #[test] fn bindgen_test_layout_addrinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -5976,7 +5918,7 @@ fn bindgen_test_layout_addrinfo() { concat!("Alignment of ", stringify!(addrinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -5986,7 +5928,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_family as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_family) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -5996,7 +5938,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_socktype as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_socktype) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6006,7 +5948,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_protocol as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_protocol) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -6016,7 +5958,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addrlen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addrlen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6026,7 +5968,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_canonname as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_canonname) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6036,7 +5978,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_addr) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6046,7 +5988,7 @@ fn bindgen_test_layout_addrinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ai_next as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ai_next) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6661,6 +6603,8 @@ pub struct mallinfo { } #[test] fn bindgen_test_layout_mallinfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -6672,7 +6616,7 @@ fn bindgen_test_layout_mallinfo() { concat!("Alignment of ", stringify!(mallinfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6682,7 +6626,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6692,7 +6636,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6702,7 +6646,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6712,7 +6656,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6722,7 +6666,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6732,7 +6676,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -6742,7 +6686,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -6752,7 +6696,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -6762,7 +6706,7 @@ fn bindgen_test_layout_mallinfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -6791,6 +6735,8 @@ pub struct mallinfo2 { } #[test] fn bindgen_test_layout_mallinfo2() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -6802,7 +6748,7 @@ fn bindgen_test_layout_mallinfo2() { concat!("Alignment of ", stringify!(mallinfo2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).arena as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -6812,7 +6758,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -6822,7 +6768,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).smblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -6832,7 +6778,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -6842,7 +6788,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).hblkhd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -6852,7 +6798,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).usmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -6862,7 +6808,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fsmblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -6872,7 +6818,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -6882,7 +6828,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fordblks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -6892,7 +6838,7 @@ fn bindgen_test_layout_mallinfo2() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keepcost as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -6970,13 +6916,13 @@ pub struct __locale_t { } pub type locale_t = *mut __locale_t; extern "C" { - pub fn abort(); + pub fn abort() -> !; } extern "C" { - pub fn exit(__status: ::std::os::raw::c_int); + pub fn exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { - pub fn _Exit(__status: ::std::os::raw::c_int); + pub fn _Exit(__status: ::std::os::raw::c_int) -> !; } extern "C" { pub fn atexit(__fn: ::std::option::Option) -> ::std::os::raw::c_int; @@ -6987,7 +6933,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub fn quick_exit(__status: ::std::os::raw::c_int); + pub fn quick_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; @@ -7244,6 +7190,8 @@ pub struct div_t { } #[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, @@ -7255,7 +7203,7 @@ fn bindgen_test_layout_div_t() { concat!("Alignment of ", stringify!(div_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7265,7 +7213,7 @@ fn bindgen_test_layout_div_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7286,6 +7234,8 @@ pub struct ldiv_t { } #[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, @@ -7297,7 +7247,7 @@ fn bindgen_test_layout_ldiv_t() { concat!("Alignment of ", stringify!(ldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7307,7 +7257,7 @@ fn bindgen_test_layout_ldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7331,6 +7281,8 @@ pub struct lldiv_t { } #[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, @@ -7342,7 +7294,7 @@ fn bindgen_test_layout_lldiv_t() { concat!("Alignment of ", stringify!(lldiv_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).quot as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7352,7 +7304,7 @@ fn bindgen_test_layout_lldiv_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7620,6 +7572,8 @@ pub struct ANativeWindow_Buffer { } #[test] fn bindgen_test_layout_ANativeWindow_Buffer() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -7631,7 +7585,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { concat!("Alignment of ", stringify!(ANativeWindow_Buffer)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).width as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7641,7 +7595,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).height as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).height) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -7651,7 +7605,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).stride as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).stride) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7661,7 +7615,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).format as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).format) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -7671,7 +7625,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bits) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7681,7 +7635,7 @@ fn bindgen_test_layout_ANativeWindow_Buffer() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7788,6 +7742,8 @@ pub struct ANativeActivity { } #[test] fn bindgen_test_layout_ANativeActivity() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -7799,7 +7755,7 @@ fn bindgen_test_layout_ANativeActivity() { concat!("Alignment of ", stringify!(ANativeActivity)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).callbacks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).callbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7809,7 +7765,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vm) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7819,7 +7775,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).env) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7829,7 +7785,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).clazz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).clazz) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -7839,9 +7795,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).internalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).internalDataPath) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -7851,9 +7805,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).externalDataPath as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).externalDataPath) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -7863,7 +7815,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sdkVersion as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sdkVersion) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -7873,7 +7825,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).instance as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).instance) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -7883,7 +7835,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).assetManager as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).assetManager) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -7893,7 +7845,7 @@ fn bindgen_test_layout_ANativeActivity() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obbPath as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obbPath) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -7947,6 +7899,9 @@ pub struct ANativeActivityCallbacks { } #[test] fn bindgen_test_layout_ANativeActivityCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -7958,9 +7913,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { concat!("Alignment of ", stringify!(ANativeActivityCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onStart as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onStart) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -7970,9 +7923,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onResume as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onResume) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -7982,10 +7933,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onSaveInstanceState as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onSaveInstanceState) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -7995,9 +7943,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onPause as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPause) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -8007,7 +7953,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).onStop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).onStop) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -8017,9 +7963,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDestroy as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDestroy) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -8029,10 +7973,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onWindowFocusChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onWindowFocusChanged) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -8042,10 +7983,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowCreated) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -8055,10 +7993,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowResized as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowResized) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -8068,10 +8003,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowRedrawNeeded - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowRedrawNeeded) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -8081,10 +8013,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onNativeWindowDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onNativeWindowDestroyed) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -8094,10 +8023,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueCreated as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueCreated) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -8107,10 +8033,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onInputQueueDestroyed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onInputQueueDestroyed) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -8120,10 +8043,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onContentRectChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onContentRectChanged) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -8133,10 +8053,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onConfigurationChanged as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onConfigurationChanged) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -8146,9 +8063,7 @@ fn bindgen_test_layout_ANativeActivityCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onLowMemory as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onLowMemory) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -8185,15 +8100,15 @@ extern "C" { removeFlags: u32, ); } -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_31 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT: _bindgen_ty_33 = 1; +pub const ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED: _bindgen_ty_33 = 2; +pub type _bindgen_ty_33 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_showSoftInput(activity: *mut ANativeActivity, flags: u32); } -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: ::std::os::raw::c_uint = 1; -pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_32 = ::std::os::raw::c_uint; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_IMPLICIT_ONLY: _bindgen_ty_34 = 1; +pub const ANATIVEACTIVITY_HIDE_SOFT_INPUT_NOT_ALWAYS: _bindgen_ty_34 = 2; +pub type _bindgen_ty_34 = ::std::os::raw::c_uint; extern "C" { pub fn ANativeActivity_hideSoftInput(activity: *mut ANativeActivity, flags: u32); } @@ -8704,10 +8619,10 @@ impl ResultCode { #[repr(transparent)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ResultCode(pub ::std::os::raw::c_uint); -pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: ::std::os::raw::c_uint = 128; -pub type _bindgen_ty_33 = ::std::os::raw::c_uint; -pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: ::std::os::raw::c_uint = 32; -pub type _bindgen_ty_34 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_MAX_SIZE_OF_IMMEDIATELY_COPIED_VALUES: _bindgen_ty_35 = 128; +pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN: _bindgen_ty_36 = 32; +pub type _bindgen_ty_36 = ::std::os::raw::c_uint; impl DurationCode { pub const ANEURALNETWORKS_DURATION_ON_HARDWARE: DurationCode = DurationCode(0); } @@ -8767,6 +8682,9 @@ pub struct ANeuralNetworksSymmPerChannelQuantParams { } #[test] fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -8784,10 +8702,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).channelDim - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).channelDim) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8797,10 +8712,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scaleCount - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scaleCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8810,10 +8722,7 @@ fn bindgen_test_layout_ANeuralNetworksSymmPerChannelQuantParams() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scales as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scales) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8839,6 +8748,9 @@ pub struct ANeuralNetworksOperandType { } #[test] fn bindgen_test_layout_ANeuralNetworksOperandType() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -8850,9 +8762,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { concat!("Alignment of ", stringify!(ANeuralNetworksOperandType)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -8862,10 +8772,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensionCount as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensionCount) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -8875,9 +8782,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dimensions as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dimensions) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -8887,9 +8792,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).scale as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).scale) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -8899,9 +8802,7 @@ fn bindgen_test_layout_ANeuralNetworksOperandType() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).zeroPoint as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).zeroPoint) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -9352,8 +9253,8 @@ extern "C" { pub struct AObbInfo { _unused: [u8; 0], } -pub const AOBBINFO_OVERLAY: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_35 = ::std::os::raw::c_uint; +pub const AOBBINFO_OVERLAY: _bindgen_ty_37 = 1; +pub type _bindgen_ty_37 = ::std::os::raw::c_uint; extern "C" { pub fn AObbScanner_getObbInfo(filename: *const ::std::os::raw::c_char) -> *mut AObbInfo; } @@ -9369,13 +9270,13 @@ extern "C" { extern "C" { pub fn AObbInfo_getFlags(obbInfo: *mut AObbInfo) -> i32; } -pub const PERMISSION_MANAGER_PERMISSION_GRANTED: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_PERMISSION_DENIED: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_36 = ::std::os::raw::c_int; -pub const PERMISSION_MANAGER_STATUS_OK: ::std::os::raw::c_int = 0; -pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: ::std::os::raw::c_int = -1; -pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: ::std::os::raw::c_int = -2; -pub type _bindgen_ty_37 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_PERMISSION_GRANTED: _bindgen_ty_38 = 0; +pub const PERMISSION_MANAGER_PERMISSION_DENIED: _bindgen_ty_38 = -1; +pub type _bindgen_ty_38 = ::std::os::raw::c_int; +pub const PERMISSION_MANAGER_STATUS_OK: _bindgen_ty_39 = 0; +pub const PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN: _bindgen_ty_39 = -1; +pub const PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE: _bindgen_ty_39 = -2; +pub type _bindgen_ty_39 = ::std::os::raw::c_int; extern "C" { pub fn APermissionManager_checkPermission( permission: *const ::std::os::raw::c_char, @@ -9919,70 +9820,70 @@ extern "C" { extern "C" { pub fn yn(__n: ::std::os::raw::c_int, __x: f64) -> f64; } -pub const ASENSOR_TYPE_INVALID: ::std::os::raw::c_int = -1; -pub const ASENSOR_TYPE_ACCELEROMETER: ::std::os::raw::c_int = 1; -pub const ASENSOR_TYPE_MAGNETIC_FIELD: ::std::os::raw::c_int = 2; -pub const ASENSOR_TYPE_GYROSCOPE: ::std::os::raw::c_int = 4; -pub const ASENSOR_TYPE_LIGHT: ::std::os::raw::c_int = 5; -pub const ASENSOR_TYPE_PRESSURE: ::std::os::raw::c_int = 6; -pub const ASENSOR_TYPE_PROXIMITY: ::std::os::raw::c_int = 8; -pub const ASENSOR_TYPE_GRAVITY: ::std::os::raw::c_int = 9; -pub const ASENSOR_TYPE_LINEAR_ACCELERATION: ::std::os::raw::c_int = 10; -pub const ASENSOR_TYPE_ROTATION_VECTOR: ::std::os::raw::c_int = 11; -pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: ::std::os::raw::c_int = 12; -pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: ::std::os::raw::c_int = 13; -pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: ::std::os::raw::c_int = 14; -pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: ::std::os::raw::c_int = 15; -pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: ::std::os::raw::c_int = 16; -pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: ::std::os::raw::c_int = 17; -pub const ASENSOR_TYPE_STEP_DETECTOR: ::std::os::raw::c_int = 18; -pub const ASENSOR_TYPE_STEP_COUNTER: ::std::os::raw::c_int = 19; -pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: ::std::os::raw::c_int = 20; -pub const ASENSOR_TYPE_HEART_RATE: ::std::os::raw::c_int = 21; -pub const ASENSOR_TYPE_POSE_6DOF: ::std::os::raw::c_int = 28; -pub const ASENSOR_TYPE_STATIONARY_DETECT: ::std::os::raw::c_int = 29; -pub const ASENSOR_TYPE_MOTION_DETECT: ::std::os::raw::c_int = 30; -pub const ASENSOR_TYPE_HEART_BEAT: ::std::os::raw::c_int = 31; -pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: ::std::os::raw::c_int = 32; -pub const ASENSOR_TYPE_ADDITIONAL_INFO: ::std::os::raw::c_int = 33; -pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: ::std::os::raw::c_int = 34; -pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: ::std::os::raw::c_int = 35; -pub const ASENSOR_TYPE_HINGE_ANGLE: ::std::os::raw::c_int = 36; -pub const ASENSOR_TYPE_HEAD_TRACKER: ::std::os::raw::c_int = 37; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: ::std::os::raw::c_int = 38; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: ::std::os::raw::c_int = 39; -pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 40; -pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: ::std::os::raw::c_int = 41; -pub const ASENSOR_TYPE_HEADING: ::std::os::raw::c_int = 42; -pub type _bindgen_ty_38 = ::std::os::raw::c_int; -pub const ASENSOR_STATUS_NO_CONTACT: ::std::os::raw::c_int = -1; -pub const ASENSOR_STATUS_UNRELIABLE: ::std::os::raw::c_int = 0; -pub const ASENSOR_STATUS_ACCURACY_LOW: ::std::os::raw::c_int = 1; -pub const ASENSOR_STATUS_ACCURACY_MEDIUM: ::std::os::raw::c_int = 2; -pub const ASENSOR_STATUS_ACCURACY_HIGH: ::std::os::raw::c_int = 3; -pub type _bindgen_ty_39 = ::std::os::raw::c_int; -pub const AREPORTING_MODE_INVALID: ::std::os::raw::c_int = -1; -pub const AREPORTING_MODE_CONTINUOUS: ::std::os::raw::c_int = 0; -pub const AREPORTING_MODE_ON_CHANGE: ::std::os::raw::c_int = 1; -pub const AREPORTING_MODE_ONE_SHOT: ::std::os::raw::c_int = 2; -pub const AREPORTING_MODE_SPECIAL_TRIGGER: ::std::os::raw::c_int = 3; +pub const ASENSOR_TYPE_INVALID: _bindgen_ty_40 = -1; +pub const ASENSOR_TYPE_ACCELEROMETER: _bindgen_ty_40 = 1; +pub const ASENSOR_TYPE_MAGNETIC_FIELD: _bindgen_ty_40 = 2; +pub const ASENSOR_TYPE_GYROSCOPE: _bindgen_ty_40 = 4; +pub const ASENSOR_TYPE_LIGHT: _bindgen_ty_40 = 5; +pub const ASENSOR_TYPE_PRESSURE: _bindgen_ty_40 = 6; +pub const ASENSOR_TYPE_PROXIMITY: _bindgen_ty_40 = 8; +pub const ASENSOR_TYPE_GRAVITY: _bindgen_ty_40 = 9; +pub const ASENSOR_TYPE_LINEAR_ACCELERATION: _bindgen_ty_40 = 10; +pub const ASENSOR_TYPE_ROTATION_VECTOR: _bindgen_ty_40 = 11; +pub const ASENSOR_TYPE_RELATIVE_HUMIDITY: _bindgen_ty_40 = 12; +pub const ASENSOR_TYPE_AMBIENT_TEMPERATURE: _bindgen_ty_40 = 13; +pub const ASENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED: _bindgen_ty_40 = 14; +pub const ASENSOR_TYPE_GAME_ROTATION_VECTOR: _bindgen_ty_40 = 15; +pub const ASENSOR_TYPE_GYROSCOPE_UNCALIBRATED: _bindgen_ty_40 = 16; +pub const ASENSOR_TYPE_SIGNIFICANT_MOTION: _bindgen_ty_40 = 17; +pub const ASENSOR_TYPE_STEP_DETECTOR: _bindgen_ty_40 = 18; +pub const ASENSOR_TYPE_STEP_COUNTER: _bindgen_ty_40 = 19; +pub const ASENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR: _bindgen_ty_40 = 20; +pub const ASENSOR_TYPE_HEART_RATE: _bindgen_ty_40 = 21; +pub const ASENSOR_TYPE_POSE_6DOF: _bindgen_ty_40 = 28; +pub const ASENSOR_TYPE_STATIONARY_DETECT: _bindgen_ty_40 = 29; +pub const ASENSOR_TYPE_MOTION_DETECT: _bindgen_ty_40 = 30; +pub const ASENSOR_TYPE_HEART_BEAT: _bindgen_ty_40 = 31; +pub const ASENSOR_TYPE_DYNAMIC_SENSOR_META: _bindgen_ty_40 = 32; +pub const ASENSOR_TYPE_ADDITIONAL_INFO: _bindgen_ty_40 = 33; +pub const ASENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT: _bindgen_ty_40 = 34; +pub const ASENSOR_TYPE_ACCELEROMETER_UNCALIBRATED: _bindgen_ty_40 = 35; +pub const ASENSOR_TYPE_HINGE_ANGLE: _bindgen_ty_40 = 36; +pub const ASENSOR_TYPE_HEAD_TRACKER: _bindgen_ty_40 = 37; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES: _bindgen_ty_40 = 38; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES: _bindgen_ty_40 = 39; +pub const ASENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 40; +pub const ASENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED: _bindgen_ty_40 = 41; +pub const ASENSOR_TYPE_HEADING: _bindgen_ty_40 = 42; pub type _bindgen_ty_40 = ::std::os::raw::c_int; -pub const ASENSOR_DIRECT_RATE_STOP: ::std::os::raw::c_uint = 0; -pub const ASENSOR_DIRECT_RATE_NORMAL: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_RATE_FAST: ::std::os::raw::c_uint = 2; -pub const ASENSOR_DIRECT_RATE_VERY_FAST: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_41 = ::std::os::raw::c_uint; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: ::std::os::raw::c_uint = 1; -pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_42 = ::std::os::raw::c_uint; -pub const ASENSOR_ADDITIONAL_INFO_BEGIN: ::std::os::raw::c_uint = 0; -pub const ASENSOR_ADDITIONAL_INFO_END: ::std::os::raw::c_uint = 1; -pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: ::std::os::raw::c_uint = 65536; -pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: ::std::os::raw::c_uint = 65537; -pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: ::std::os::raw::c_uint = 65538; -pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: ::std::os::raw::c_uint = 65539; -pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: ::std::os::raw::c_uint = 65540; +pub const ASENSOR_STATUS_NO_CONTACT: _bindgen_ty_41 = -1; +pub const ASENSOR_STATUS_UNRELIABLE: _bindgen_ty_41 = 0; +pub const ASENSOR_STATUS_ACCURACY_LOW: _bindgen_ty_41 = 1; +pub const ASENSOR_STATUS_ACCURACY_MEDIUM: _bindgen_ty_41 = 2; +pub const ASENSOR_STATUS_ACCURACY_HIGH: _bindgen_ty_41 = 3; +pub type _bindgen_ty_41 = ::std::os::raw::c_int; +pub const AREPORTING_MODE_INVALID: _bindgen_ty_42 = -1; +pub const AREPORTING_MODE_CONTINUOUS: _bindgen_ty_42 = 0; +pub const AREPORTING_MODE_ON_CHANGE: _bindgen_ty_42 = 1; +pub const AREPORTING_MODE_ONE_SHOT: _bindgen_ty_42 = 2; +pub const AREPORTING_MODE_SPECIAL_TRIGGER: _bindgen_ty_42 = 3; +pub type _bindgen_ty_42 = ::std::os::raw::c_int; +pub const ASENSOR_DIRECT_RATE_STOP: _bindgen_ty_43 = 0; +pub const ASENSOR_DIRECT_RATE_NORMAL: _bindgen_ty_43 = 1; +pub const ASENSOR_DIRECT_RATE_FAST: _bindgen_ty_43 = 2; +pub const ASENSOR_DIRECT_RATE_VERY_FAST: _bindgen_ty_43 = 3; pub type _bindgen_ty_43 = ::std::os::raw::c_uint; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY: _bindgen_ty_44 = 1; +pub const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER: _bindgen_ty_44 = 2; +pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const ASENSOR_ADDITIONAL_INFO_BEGIN: _bindgen_ty_45 = 0; +pub const ASENSOR_ADDITIONAL_INFO_END: _bindgen_ty_45 = 1; +pub const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY: _bindgen_ty_45 = 65536; +pub const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE: _bindgen_ty_45 = 65537; +pub const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION: _bindgen_ty_45 = 65538; +pub const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT: _bindgen_ty_45 = 65539; +pub const ASENSOR_ADDITIONAL_INFO_SAMPLING: _bindgen_ty_45 = 65540; +pub type _bindgen_ty_45 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Copy, Clone)] pub struct ASensorVector { @@ -10006,6 +9907,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -10023,10 +9927,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10036,10 +9937,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10049,10 +9947,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10071,6 +9966,9 @@ pub struct ASensorVector__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorVector__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::(), 12usize, @@ -10088,10 +9986,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).azimuth - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).azimuth) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10101,10 +9996,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pitch as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pitch) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10114,10 +10006,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).roll as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).roll) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10129,6 +10018,9 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10140,7 +10032,7 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorVector__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).v as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).v) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10152,6 +10044,8 @@ fn bindgen_test_layout_ASensorVector__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorVector() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -10163,7 +10057,7 @@ fn bindgen_test_layout_ASensorVector() { concat!("Alignment of ", stringify!(ASensorVector)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10173,7 +10067,7 @@ fn bindgen_test_layout_ASensorVector() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 13usize, concat!( "Offset of field: ", @@ -10191,6 +10085,8 @@ pub struct AMetaDataEvent { } #[test] fn bindgen_test_layout_AMetaDataEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10202,7 +10098,7 @@ fn bindgen_test_layout_AMetaDataEvent() { concat!("Alignment of ", stringify!(AMetaDataEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).what as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).what) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10212,7 +10108,7 @@ fn bindgen_test_layout_AMetaDataEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10243,6 +10139,9 @@ pub struct AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__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::(), 12usize, @@ -10260,10 +10159,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10273,10 +10169,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10286,10 +10179,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10301,6 +10191,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10315,10 +10208,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10343,6 +10233,9 @@ pub struct AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10360,10 +10253,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10373,10 +10263,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10386,10 +10273,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10401,6 +10285,9 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10415,9 +10302,7 @@ fn bindgen_test_layout_AUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10448,6 +10333,8 @@ pub struct AHeartRateEvent { } #[test] fn bindgen_test_layout_AHeartRateEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10459,7 +10346,7 @@ fn bindgen_test_layout_AHeartRateEvent() { concat!("Alignment of ", stringify!(AHeartRateEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bpm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bpm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10469,7 +10356,7 @@ fn bindgen_test_layout_AHeartRateEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10487,6 +10374,8 @@ pub struct ADynamicSensorEvent { } #[test] fn bindgen_test_layout_ADynamicSensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -10498,7 +10387,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { concat!("Alignment of ", stringify!(ADynamicSensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).connected as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).connected) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10508,7 +10397,7 @@ fn bindgen_test_layout_ADynamicSensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).handle as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).handle) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10533,6 +10422,9 @@ pub union AAdditionalInfoEvent__bindgen_ty_1 { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -10547,10 +10439,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_int32 as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_int32) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10560,10 +10449,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data_float as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data_float) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10575,6 +10461,8 @@ fn bindgen_test_layout_AAdditionalInfoEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_AAdditionalInfoEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -10586,7 +10474,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { concat!("Alignment of ", stringify!(AAdditionalInfoEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10596,7 +10484,7 @@ fn bindgen_test_layout_AAdditionalInfoEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).serial as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10619,6 +10507,8 @@ pub struct AHeadTrackerEvent { } #[test] fn bindgen_test_layout_AHeadTrackerEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 28usize, @@ -10630,7 +10520,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { concat!("Alignment of ", stringify!(AHeadTrackerEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rx) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10640,7 +10530,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ry as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ry) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10650,7 +10540,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rz) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10660,7 +10550,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vx) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -10670,7 +10560,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vy) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -10680,7 +10570,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).vz as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).vz) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -10690,9 +10580,7 @@ fn bindgen_test_layout_AHeadTrackerEvent() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).discontinuity_count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).discontinuity_count) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -10723,6 +10611,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__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::(), 12usize, @@ -10740,10 +10631,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10753,10 +10641,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10766,10 +10651,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10781,6 +10663,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10795,10 +10680,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).calib as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).calib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10823,6 +10705,9 @@ pub struct ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10840,10 +10725,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).x_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10853,10 +10735,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).y_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10866,10 +10745,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).z_supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -10881,6 +10757,9 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10895,10 +10774,7 @@ fn bindgen_test_layout_ALimitedAxesImuEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10943,6 +10819,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -10960,10 +10840,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -10973,10 +10850,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_uncalib) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -10986,10 +10860,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_uncalib as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_uncalib) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11001,6 +10872,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11018,10 +10892,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalib - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11046,6 +10917,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11063,10 +10938,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11076,10 +10948,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_bias) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11089,10 +10958,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_bias as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_bias) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11104,6 +10970,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11121,10 +10990,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).bias - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).bias) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11149,6 +11015,10 @@ pub struct ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit< + ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_ty_1, + > = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11166,10 +11036,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .x_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).x_supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11179,10 +11046,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .y_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).y_supported) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11192,10 +11056,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .z_supported as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).z_supported) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11207,6 +11068,9 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3__bindgen_t } #[test] fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 12usize, @@ -11224,10 +11088,7 @@ fn bindgen_test_layout_ALimitedAxesImuUncalibratedEvent__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).supported - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).supported) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11261,6 +11122,8 @@ pub struct AHeadingEvent { } #[test] fn bindgen_test_layout_AHeadingEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -11272,7 +11135,7 @@ fn bindgen_test_layout_AHeadingEvent() { concat!("Alignment of ", stringify!(AHeadingEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).heading as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11282,7 +11145,7 @@ fn bindgen_test_layout_AHeadingEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).accuracy as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).accuracy) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11337,6 +11200,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11354,10 +11220,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11367,10 +11230,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).vector as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).vector) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11380,10 +11240,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).acceleration - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11393,10 +11250,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).gyro as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11406,10 +11260,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).magnetic - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11419,10 +11270,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).temperature - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).temperature) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11432,10 +11280,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).distance - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).distance) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11445,10 +11290,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).light as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).light) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11458,10 +11300,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).pressure - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).pressure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11471,10 +11310,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).relative_humidity - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).relative_humidity) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11484,10 +11320,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_acceleration as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_acceleration) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11497,10 +11330,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uncalibrated_gyro - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_gyro) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11510,10 +11340,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .uncalibrated_magnetic as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uncalibrated_magnetic) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11523,10 +11350,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).meta_data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).meta_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11536,10 +11360,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heart_rate - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heart_rate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11549,10 +11370,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).dynamic_sensor_meta - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).dynamic_sensor_meta) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11562,10 +11380,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).additional_info - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).additional_info) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11575,10 +11390,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).head_tracker - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).head_tracker) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11588,10 +11400,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).limited_axes_imu - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).limited_axes_imu) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11602,8 +11411,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .limited_axes_imu_uncalibrated as *const _ as usize + ::std::ptr::addr_of!((*ptr).limited_axes_imu_uncalibrated) as usize - ptr as usize }, 0usize, concat!( @@ -11614,10 +11422,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).heading as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).heading) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11635,6 +11440,9 @@ pub union ASensorEvent__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout_ASensorEvent__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::(), 64usize, @@ -11652,10 +11460,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11665,10 +11470,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).step_counter - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).step_counter) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11680,6 +11482,9 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1__bindgen_ty_2() { } #[test] fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -11691,7 +11496,7 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { concat!("Alignment of ", stringify!(ASensorEvent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u64_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11703,6 +11508,8 @@ fn bindgen_test_layout_ASensorEvent__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ASensorEvent() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 104usize, @@ -11714,7 +11521,7 @@ fn bindgen_test_layout_ASensorEvent() { concat!("Alignment of ", stringify!(ASensorEvent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).version as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -11724,7 +11531,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sensor as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sensor) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -11734,7 +11541,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -11744,7 +11551,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved0) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -11754,7 +11561,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -11764,7 +11571,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -11774,7 +11581,7 @@ fn bindgen_test_layout_ASensorEvent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 92usize, concat!( "Offset of field: ", @@ -11992,15 +11799,15 @@ extern "C" { pub struct AStorageManager { _unused: [u8; 0], } -pub const AOBB_STATE_MOUNTED: ::std::os::raw::c_uint = 1; -pub const AOBB_STATE_UNMOUNTED: ::std::os::raw::c_uint = 2; -pub const AOBB_STATE_ERROR_INTERNAL: ::std::os::raw::c_uint = 20; -pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: ::std::os::raw::c_uint = 21; -pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: ::std::os::raw::c_uint = 22; -pub const AOBB_STATE_ERROR_NOT_MOUNTED: ::std::os::raw::c_uint = 23; -pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: ::std::os::raw::c_uint = 24; -pub const AOBB_STATE_ERROR_PERMISSION_DENIED: ::std::os::raw::c_uint = 25; -pub type _bindgen_ty_44 = ::std::os::raw::c_uint; +pub const AOBB_STATE_MOUNTED: _bindgen_ty_46 = 1; +pub const AOBB_STATE_UNMOUNTED: _bindgen_ty_46 = 2; +pub const AOBB_STATE_ERROR_INTERNAL: _bindgen_ty_46 = 20; +pub const AOBB_STATE_ERROR_COULD_NOT_MOUNT: _bindgen_ty_46 = 21; +pub const AOBB_STATE_ERROR_COULD_NOT_UNMOUNT: _bindgen_ty_46 = 22; +pub const AOBB_STATE_ERROR_NOT_MOUNTED: _bindgen_ty_46 = 23; +pub const AOBB_STATE_ERROR_ALREADY_MOUNTED: _bindgen_ty_46 = 24; +pub const AOBB_STATE_ERROR_PERMISSION_DENIED: _bindgen_ty_46 = 25; +pub type _bindgen_ty_46 = ::std::os::raw::c_uint; extern "C" { pub fn AStorageManager_new() -> *mut AStorageManager; } @@ -12090,6 +11897,8 @@ pub struct sync_merge_data { } #[test] fn bindgen_test_layout_sync_merge_data() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -12101,7 +11910,7 @@ fn bindgen_test_layout_sync_merge_data() { concat!("Alignment of ", stringify!(sync_merge_data)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12111,7 +11920,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fd2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fd2) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12121,7 +11930,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fence as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fence) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12131,7 +11940,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12141,7 +11950,7 @@ fn bindgen_test_layout_sync_merge_data() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12162,6 +11971,8 @@ pub struct sync_fence_info { } #[test] fn bindgen_test_layout_sync_fence_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -12173,7 +11984,7 @@ fn bindgen_test_layout_sync_fence_info() { concat!("Alignment of ", stringify!(sync_fence_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).obj_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).obj_name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12183,7 +11994,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).driver_name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).driver_name) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12193,7 +12004,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -12203,7 +12014,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -12213,7 +12024,7 @@ fn bindgen_test_layout_sync_fence_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).timestamp_ns as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).timestamp_ns) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -12235,6 +12046,8 @@ pub struct sync_file_info { } #[test] fn bindgen_test_layout_sync_file_info() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 56usize, @@ -12246,7 +12059,7 @@ fn bindgen_test_layout_sync_file_info() { concat!("Alignment of ", stringify!(sync_file_info)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12256,7 +12069,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -12266,7 +12079,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -12276,7 +12089,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).num_fences as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).num_fences) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -12286,7 +12099,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -12296,7 +12109,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sync_fence_info as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sync_fence_info) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -12306,6 +12119,7 @@ fn bindgen_test_layout_sync_file_info() { ) ); } +pub const SYNC_IOC_MAGIC: u8 = 62u8; extern "C" { pub fn sync_merge(name: *const ::std::os::raw::c_char, fd1: i32, fd2: i32) -> i32; } @@ -12315,6 +12129,197 @@ extern "C" { extern "C" { pub fn sync_file_info_free(info: *mut sync_file_info); } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASystemFontIterator { + _unused: [u8; 0], +} +pub const PAGE_SIZE: u32 = 4096; +pub const PAGE_MASK: i32 = -4096; +pub const FD_SETSIZE: u32 = 1024; +pub const CLOCKS_PER_SEC: u32 = 1000000; +pub const TIME_UTC: u32 = 1; +pub const AAUDIO_UNSPECIFIED: u32 = 0; +pub const AAUDIO_SYSTEM_USAGE_OFFSET: u32 = 1000; +pub const PROPERTY_VENDOR: &[u8; 7] = b"vendor\0"; +pub const PROPERTY_VERSION: &[u8; 8] = b"version\0"; +pub const PROPERTY_DESCRIPTION: &[u8; 12] = b"description\0"; +pub const PROPERTY_ALGORITHMS: &[u8; 11] = b"algorithms\0"; +pub const PROPERTY_DEVICE_UNIQUE_ID: &[u8; 15] = b"deviceUniqueId\0"; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +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_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const FP_XSTATE_MAGIC1: u32 = 1179670611; +pub const FP_XSTATE_MAGIC2: u32 = 1179670597; +pub const X86_FXSR_MAGIC: u32 = 0; +pub const _KERNEL_NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const __SIGRTMIN: u32 = 32; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +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_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const NSIGSEGV: u32 = 9; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +extern "C" { + pub fn ASystemFontIterator_open() -> *mut ASystemFontIterator; +} +extern "C" { + pub fn ASystemFontIterator_close(iterator: *mut ASystemFontIterator); +} +extern "C" { + pub fn ASystemFontIterator_next(iterator: *mut ASystemFontIterator) -> *mut AFont; +} extern "C" { pub fn ATrace_isEnabled() -> bool; } @@ -12333,30 +12338,30 @@ extern "C" { extern "C" { pub fn ATrace_setCounter(counterName: *const ::std::os::raw::c_char, counterValue: i64); } -pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: ::std::os::raw::c_uint = 1; -pub const AWINDOW_FLAG_DIM_BEHIND: ::std::os::raw::c_uint = 2; -pub const AWINDOW_FLAG_BLUR_BEHIND: ::std::os::raw::c_uint = 4; -pub const AWINDOW_FLAG_NOT_FOCUSABLE: ::std::os::raw::c_uint = 8; -pub const AWINDOW_FLAG_NOT_TOUCHABLE: ::std::os::raw::c_uint = 16; -pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: ::std::os::raw::c_uint = 32; -pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: ::std::os::raw::c_uint = 64; -pub const AWINDOW_FLAG_KEEP_SCREEN_ON: ::std::os::raw::c_uint = 128; -pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: ::std::os::raw::c_uint = 256; -pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: ::std::os::raw::c_uint = 512; -pub const AWINDOW_FLAG_FULLSCREEN: ::std::os::raw::c_uint = 1024; -pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: ::std::os::raw::c_uint = 2048; -pub const AWINDOW_FLAG_DITHER: ::std::os::raw::c_uint = 4096; -pub const AWINDOW_FLAG_SECURE: ::std::os::raw::c_uint = 8192; -pub const AWINDOW_FLAG_SCALED: ::std::os::raw::c_uint = 16384; -pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: ::std::os::raw::c_uint = 32768; -pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: ::std::os::raw::c_uint = 65536; -pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: ::std::os::raw::c_uint = 131072; -pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: ::std::os::raw::c_uint = 262144; -pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: ::std::os::raw::c_uint = 524288; -pub const AWINDOW_FLAG_SHOW_WALLPAPER: ::std::os::raw::c_uint = 1048576; -pub const AWINDOW_FLAG_TURN_SCREEN_ON: ::std::os::raw::c_uint = 2097152; -pub const AWINDOW_FLAG_DISMISS_KEYGUARD: ::std::os::raw::c_uint = 4194304; -pub type _bindgen_ty_45 = ::std::os::raw::c_uint; +pub const AWINDOW_FLAG_ALLOW_LOCK_WHILE_SCREEN_ON: _bindgen_ty_47 = 1; +pub const AWINDOW_FLAG_DIM_BEHIND: _bindgen_ty_47 = 2; +pub const AWINDOW_FLAG_BLUR_BEHIND: _bindgen_ty_47 = 4; +pub const AWINDOW_FLAG_NOT_FOCUSABLE: _bindgen_ty_47 = 8; +pub const AWINDOW_FLAG_NOT_TOUCHABLE: _bindgen_ty_47 = 16; +pub const AWINDOW_FLAG_NOT_TOUCH_MODAL: _bindgen_ty_47 = 32; +pub const AWINDOW_FLAG_TOUCHABLE_WHEN_WAKING: _bindgen_ty_47 = 64; +pub const AWINDOW_FLAG_KEEP_SCREEN_ON: _bindgen_ty_47 = 128; +pub const AWINDOW_FLAG_LAYOUT_IN_SCREEN: _bindgen_ty_47 = 256; +pub const AWINDOW_FLAG_LAYOUT_NO_LIMITS: _bindgen_ty_47 = 512; +pub const AWINDOW_FLAG_FULLSCREEN: _bindgen_ty_47 = 1024; +pub const AWINDOW_FLAG_FORCE_NOT_FULLSCREEN: _bindgen_ty_47 = 2048; +pub const AWINDOW_FLAG_DITHER: _bindgen_ty_47 = 4096; +pub const AWINDOW_FLAG_SECURE: _bindgen_ty_47 = 8192; +pub const AWINDOW_FLAG_SCALED: _bindgen_ty_47 = 16384; +pub const AWINDOW_FLAG_IGNORE_CHEEK_PRESSES: _bindgen_ty_47 = 32768; +pub const AWINDOW_FLAG_LAYOUT_INSET_DECOR: _bindgen_ty_47 = 65536; +pub const AWINDOW_FLAG_ALT_FOCUSABLE_IM: _bindgen_ty_47 = 131072; +pub const AWINDOW_FLAG_WATCH_OUTSIDE_TOUCH: _bindgen_ty_47 = 262144; +pub const AWINDOW_FLAG_SHOW_WHEN_LOCKED: _bindgen_ty_47 = 524288; +pub const AWINDOW_FLAG_SHOW_WALLPAPER: _bindgen_ty_47 = 1048576; +pub const AWINDOW_FLAG_TURN_SCREEN_ON: _bindgen_ty_47 = 2097152; +pub const AWINDOW_FLAG_DISMISS_KEYGUARD: _bindgen_ty_47 = 4194304; +pub type _bindgen_ty_47 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { @@ -12365,6 +12370,8 @@ pub struct __kernel_timespec { } #[test] fn bindgen_test_layout___kernel_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_timespec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_timespec>(), 16usize, @@ -12376,7 +12383,7 @@ fn bindgen_test_layout___kernel_timespec() { concat!("Alignment of ", stringify!(__kernel_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12386,7 +12393,7 @@ fn bindgen_test_layout___kernel_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12404,6 +12411,8 @@ pub struct __kernel_itimerspec { } #[test] fn bindgen_test_layout___kernel_itimerspec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_itimerspec> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_itimerspec>(), 32usize, @@ -12415,7 +12424,7 @@ fn bindgen_test_layout___kernel_itimerspec() { concat!("Alignment of ", stringify!(__kernel_itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12425,7 +12434,7 @@ fn bindgen_test_layout___kernel_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_itimerspec>())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12443,6 +12452,9 @@ pub struct __kernel_old_timespec { } #[test] fn bindgen_test_layout___kernel_old_timespec() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_old_timespec> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_old_timespec>(), 16usize, @@ -12454,7 +12466,7 @@ fn bindgen_test_layout___kernel_old_timespec() { concat!("Alignment of ", stringify!(__kernel_old_timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12464,7 +12476,7 @@ fn bindgen_test_layout___kernel_old_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_old_timespec>())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12482,6 +12494,9 @@ pub struct __kernel_sock_timeval { } #[test] fn bindgen_test_layout___kernel_sock_timeval() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sock_timeval> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sock_timeval>(), 16usize, @@ -12493,7 +12508,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { concat!("Alignment of ", stringify!(__kernel_sock_timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12503,7 +12518,7 @@ fn bindgen_test_layout___kernel_sock_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sock_timeval>())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12521,6 +12536,8 @@ pub struct timespec { } #[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, @@ -12532,7 +12549,7 @@ fn bindgen_test_layout_timespec() { concat!("Alignment of ", stringify!(timespec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12542,7 +12559,7 @@ fn bindgen_test_layout_timespec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_nsec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12560,6 +12577,8 @@ pub struct timeval { } #[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, @@ -12571,7 +12590,7 @@ fn bindgen_test_layout_timeval() { concat!("Alignment of ", stringify!(timeval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12581,7 +12600,7 @@ fn bindgen_test_layout_timeval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tv_usec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12599,6 +12618,8 @@ pub struct itimerspec { } #[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, @@ -12610,7 +12631,7 @@ fn bindgen_test_layout_itimerspec() { concat!("Alignment of ", stringify!(itimerspec)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12620,7 +12641,7 @@ fn bindgen_test_layout_itimerspec() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12638,6 +12659,8 @@ pub struct itimerval { } #[test] fn bindgen_test_layout_itimerval() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -12649,7 +12672,7 @@ fn bindgen_test_layout_itimerval() { concat!("Alignment of ", stringify!(itimerval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_interval as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12659,7 +12682,7 @@ fn bindgen_test_layout_itimerval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).it_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12677,6 +12700,8 @@ pub struct timezone { } #[test] fn bindgen_test_layout_timezone() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -12688,7 +12713,7 @@ fn bindgen_test_layout_timezone() { concat!("Alignment of ", stringify!(timezone)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_minuteswest as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_minuteswest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12698,7 +12723,7 @@ fn bindgen_test_layout_timezone() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tz_dsttime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tz_dsttime) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12719,6 +12744,8 @@ pub struct _fpx_sw_bytes { } #[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, @@ -12730,7 +12757,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { concat!("Alignment of ", stringify!(_fpx_sw_bytes)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).magic1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12740,7 +12767,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).extended_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).extended_size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -12750,7 +12777,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xfeatures as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xfeatures) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12760,7 +12787,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).xstate_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xstate_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -12770,7 +12797,7 @@ fn bindgen_test_layout__fpx_sw_bytes() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpx_sw_bytes>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -12788,6 +12815,8 @@ pub struct _fpreg { } #[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, @@ -12799,7 +12828,7 @@ fn bindgen_test_layout__fpreg() { concat!("Alignment of ", stringify!(_fpreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12809,7 +12838,7 @@ fn bindgen_test_layout__fpreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12828,6 +12857,8 @@ pub struct _fpxreg { } #[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, @@ -12839,7 +12870,7 @@ fn bindgen_test_layout__fpxreg() { concat!("Alignment of ", stringify!(_fpxreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12849,7 +12880,7 @@ fn bindgen_test_layout__fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -12859,7 +12890,7 @@ fn bindgen_test_layout__fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpxreg>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -12876,6 +12907,8 @@ pub struct _xmmreg { } #[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, @@ -12887,7 +12920,7 @@ fn bindgen_test_layout__xmmreg() { concat!("Alignment of ", stringify!(_xmmreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xmmreg>())).element as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12926,6 +12959,9 @@ pub union _fpstate_32__bindgen_ty_1 { } #[test] fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32__bindgen_ty_1>(), 176usize, @@ -12937,9 +12973,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { concat!("Alignment of ", stringify!(_fpstate_32__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_1>())).padding1 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).padding1) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12949,9 +12983,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_1>())).padding as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12969,6 +13001,9 @@ pub union _fpstate_32__bindgen_ty_2 { } #[test] fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32__bindgen_ty_2>(), 48usize, @@ -12980,9 +13015,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { concat!("Alignment of ", stringify!(_fpstate_32__bindgen_ty_2)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_2>())).padding2 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).padding2) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -12992,9 +13025,7 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_32__bindgen_ty_2>())).sw_reserved as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sw_reserved) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13006,6 +13037,8 @@ fn bindgen_test_layout__fpstate_32__bindgen_ty_2() { } #[test] fn bindgen_test_layout__fpstate_32() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_32> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_32>(), 624usize, @@ -13017,7 +13050,7 @@ fn bindgen_test_layout__fpstate_32() { concat!("Alignment of ", stringify!(_fpstate_32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).cw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cw) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13027,7 +13060,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).sw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13037,7 +13070,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13047,7 +13080,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).ipoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ipoff) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13057,7 +13090,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).cssel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cssel) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13067,7 +13100,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).dataoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dataoff) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -13077,7 +13110,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).datasel as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datasel) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13087,7 +13120,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -13097,7 +13130,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).status as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).status) as usize - ptr as usize }, 108usize, concat!( "Offset of field: ", @@ -13107,7 +13140,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 110usize, concat!( "Offset of field: ", @@ -13117,7 +13150,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._fxsr_env as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fxsr_env) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -13127,7 +13160,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -13137,7 +13170,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 140usize, concat!( "Offset of field: ", @@ -13147,7 +13180,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._fxsr_st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fxsr_st) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -13157,7 +13190,7 @@ fn bindgen_test_layout__fpstate_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_32>()))._xmm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._xmm) as usize - ptr as usize }, 272usize, concat!( "Offset of field: ", @@ -13191,6 +13224,9 @@ pub union _fpstate_64__bindgen_ty_1 { } #[test] fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_64__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_64__bindgen_ty_1>(), 48usize, @@ -13202,9 +13238,7 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { concat!("Alignment of ", stringify!(_fpstate_64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_64__bindgen_ty_1>())).reserved3 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved3) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13214,9 +13248,7 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<_fpstate_64__bindgen_ty_1>())).sw_reserved as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sw_reserved) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13228,6 +13260,8 @@ fn bindgen_test_layout__fpstate_64__bindgen_ty_1() { } #[test] fn bindgen_test_layout__fpstate_64() { + const UNINIT: ::std::mem::MaybeUninit<_fpstate_64> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_fpstate_64>(), 512usize, @@ -13239,7 +13273,7 @@ fn bindgen_test_layout__fpstate_64() { concat!("Alignment of ", stringify!(_fpstate_64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13249,7 +13283,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -13259,7 +13293,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).twd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).twd) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13269,7 +13303,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).fop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -13279,7 +13313,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13289,7 +13323,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).rdp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13299,7 +13333,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13309,7 +13343,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).mxcsr_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -13319,7 +13353,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).st_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_space) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13329,7 +13363,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).xmm_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xmm_space) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -13339,7 +13373,7 @@ fn bindgen_test_layout__fpstate_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_fpstate_64>())).reserved2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved2) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", @@ -13358,6 +13392,8 @@ pub struct _header { } #[test] fn bindgen_test_layout__header() { + const UNINIT: ::std::mem::MaybeUninit<_header> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_header>(), 64usize, @@ -13369,7 +13405,7 @@ fn bindgen_test_layout__header() { concat!("Alignment of ", stringify!(_header)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).xfeatures as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xfeatures) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13379,7 +13415,7 @@ fn bindgen_test_layout__header() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13389,7 +13425,7 @@ fn bindgen_test_layout__header() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_header>())).reserved2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved2) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13406,6 +13442,8 @@ pub struct _ymmh_state { } #[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, @@ -13417,7 +13455,7 @@ fn bindgen_test_layout__ymmh_state() { concat!("Alignment of ", stringify!(_ymmh_state)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_ymmh_state>())).ymmh_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ymmh_space) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13436,6 +13474,8 @@ pub struct _xstate { } #[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, @@ -13447,7 +13487,7 @@ fn bindgen_test_layout__xstate() { concat!("Alignment of ", stringify!(_xstate)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13457,7 +13497,7 @@ fn bindgen_test_layout__xstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).xstate_hdr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xstate_hdr) as usize - ptr as usize }, 512usize, concat!( "Offset of field: ", @@ -13467,7 +13507,7 @@ fn bindgen_test_layout__xstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_xstate>())).ymmh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ymmh) as usize - ptr as usize }, 576usize, concat!( "Offset of field: ", @@ -13511,6 +13551,8 @@ pub struct sigcontext_32 { } #[test] fn bindgen_test_layout_sigcontext_32() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 88usize, @@ -13522,7 +13564,7 @@ fn bindgen_test_layout_sigcontext_32() { concat!("Alignment of ", stringify!(sigcontext_32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13532,7 +13574,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__gsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__gsh) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -13542,7 +13584,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -13552,7 +13594,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__fsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__fsh) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -13562,7 +13604,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).es as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).es) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13572,7 +13614,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__esh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__esh) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -13582,7 +13624,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ds) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -13592,7 +13634,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__dsh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__dsh) as usize - ptr as usize }, 14usize, concat!( "Offset of field: ", @@ -13602,7 +13644,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).di as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).di) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13612,7 +13654,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).si as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).si) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -13622,7 +13664,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bp) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13632,7 +13674,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -13642,7 +13684,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bx) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13652,7 +13694,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).dx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dx) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -13662,7 +13704,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cx) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -13672,7 +13714,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ax) as usize - ptr as usize }, 44usize, concat!( "Offset of field: ", @@ -13682,7 +13724,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -13692,7 +13734,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 52usize, concat!( "Offset of field: ", @@ -13702,7 +13744,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -13712,7 +13754,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 60usize, concat!( "Offset of field: ", @@ -13722,7 +13764,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__csh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__csh) as usize - ptr as usize }, 62usize, concat!( "Offset of field: ", @@ -13732,7 +13774,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -13742,7 +13784,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp_at_signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp_at_signal) as usize - ptr as usize }, 68usize, concat!( "Offset of field: ", @@ -13752,7 +13794,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -13762,7 +13804,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__ssh as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__ssh) as usize - ptr as usize }, 74usize, concat!( "Offset of field: ", @@ -13772,7 +13814,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 76usize, concat!( "Offset of field: ", @@ -13782,7 +13824,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -13792,7 +13834,7 @@ fn bindgen_test_layout_sigcontext_32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 84usize, concat!( "Offset of field: ", @@ -13836,6 +13878,8 @@ pub struct sigcontext_64 { } #[test] fn bindgen_test_layout_sigcontext_64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 256usize, @@ -13847,7 +13891,7 @@ fn bindgen_test_layout_sigcontext_64() { concat!("Alignment of ", stringify!(sigcontext_64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r8 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r8) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -13857,7 +13901,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r9 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r9) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -13867,7 +13911,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r10 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r10) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -13877,7 +13921,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r11 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r11) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -13887,7 +13931,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r12 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r12) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -13897,7 +13941,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r13 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r13) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -13907,7 +13951,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r14 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r14) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -13917,7 +13961,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r15 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r15) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -13927,7 +13971,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).di as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).di) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -13937,7 +13981,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).si as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).si) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -13947,7 +13991,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bp) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -13957,7 +14001,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bx) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -13967,7 +14011,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).dx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dx) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -13977,7 +14021,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ax) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -13987,7 +14031,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cx) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -13997,7 +14041,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sp) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -14007,7 +14051,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", @@ -14017,7 +14061,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -14027,7 +14071,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -14037,7 +14081,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 146usize, concat!( "Offset of field: ", @@ -14047,7 +14091,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", @@ -14057,7 +14101,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 150usize, concat!( "Offset of field: ", @@ -14067,7 +14111,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", @@ -14077,7 +14121,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -14087,7 +14131,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", @@ -14097,7 +14141,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -14107,7 +14151,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -14117,7 +14161,7 @@ fn bindgen_test_layout_sigcontext_64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -14167,6 +14211,9 @@ pub union sigcontext__bindgen_ty_1 { } #[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::(), 2usize, @@ -14178,7 +14225,7 @@ fn bindgen_test_layout_sigcontext__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigcontext__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14188,7 +14235,7 @@ fn bindgen_test_layout_sigcontext__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__pad0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__pad0) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14200,6 +14247,8 @@ fn bindgen_test_layout_sigcontext__bindgen_ty_1() { } #[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, @@ -14211,7 +14260,7 @@ fn bindgen_test_layout_sigcontext() { concat!("Alignment of ", stringify!(sigcontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r8 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r8) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14221,7 +14270,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r9 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r9) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14231,7 +14280,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r10 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r10) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14241,7 +14290,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r11 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r11) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14251,7 +14300,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r12 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r12) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -14261,7 +14310,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r13 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r13) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -14271,7 +14320,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r14 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r14) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -14281,7 +14330,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r15 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r15) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -14291,7 +14340,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rdi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdi) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -14301,7 +14350,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rsi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rsi) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -14311,7 +14360,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rbp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rbp) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -14321,7 +14370,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rbx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rbx) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -14331,7 +14380,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rdx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdx) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -14341,7 +14390,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rax) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -14351,7 +14400,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rcx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rcx) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -14361,7 +14410,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rsp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rsp) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -14371,7 +14420,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", @@ -14381,7 +14430,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eflags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eflags) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -14391,7 +14440,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -14401,7 +14450,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 146usize, concat!( "Offset of field: ", @@ -14411,7 +14460,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 148usize, concat!( "Offset of field: ", @@ -14421,7 +14470,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).err as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).err) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", @@ -14431,7 +14480,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).trapno as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trapno) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -14441,7 +14490,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).oldmask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).oldmask) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", @@ -14451,7 +14500,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cr2 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cr2) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -14461,7 +14510,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpstate) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -14471,7 +14520,7 @@ fn bindgen_test_layout_sigcontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -14481,6 +14530,9 @@ fn bindgen_test_layout_sigcontext() { ) ); } +pub const _KERNEL__NSIG: u32 = 64; +pub const _NSIG: u32 = 65; +pub const NSIG: u32 = 65; pub type sigset_t = ::std::os::raw::c_ulong; pub type __signalfn_t = ::std::option::Option; pub type __sighandler_t = __signalfn_t; @@ -14496,6 +14548,8 @@ pub struct __kernel_sigaction { } #[test] fn bindgen_test_layout___kernel_sigaction() { + const UNINIT: ::std::mem::MaybeUninit<__kernel_sigaction> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__kernel_sigaction>(), 32usize, @@ -14507,7 +14561,7 @@ fn bindgen_test_layout___kernel_sigaction() { concat!("Alignment of ", stringify!(__kernel_sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_handler as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14517,7 +14571,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14527,7 +14581,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14537,7 +14591,7 @@ fn bindgen_test_layout___kernel_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__kernel_sigaction>())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14552,10 +14606,12 @@ fn bindgen_test_layout___kernel_sigaction() { pub struct sigaltstack { pub ss_sp: *mut ::std::os::raw::c_void, pub ss_flags: ::std::os::raw::c_int, - pub ss_size: size_t, + pub ss_size: __kernel_size_t, } #[test] fn bindgen_test_layout_sigaltstack() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -14567,7 +14623,7 @@ fn bindgen_test_layout_sigaltstack() { concat!("Alignment of ", stringify!(sigaltstack)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_sp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_sp) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14577,7 +14633,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_flags) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14587,7 +14643,7 @@ fn bindgen_test_layout_sigaltstack() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss_size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14606,6 +14662,8 @@ pub union sigval { } #[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, @@ -14617,7 +14675,7 @@ fn bindgen_test_layout_sigval() { concat!("Alignment of ", stringify!(sigval)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_int as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_int) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14627,7 +14685,7 @@ fn bindgen_test_layout_sigval() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sival_ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sival_ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14657,6 +14715,9 @@ pub struct __sifields__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_1>(), 8usize, @@ -14668,7 +14729,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14678,7 +14739,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_1>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14698,6 +14759,9 @@ pub struct __sifields__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_2>(), 24usize, @@ -14709,7 +14773,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_2)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14719,9 +14783,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._overrun as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._overrun) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14731,9 +14793,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14743,9 +14803,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_2>()))._sys_private as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sys_private) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14764,6 +14822,9 @@ pub struct __sifields__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_3>(), 16usize, @@ -14775,7 +14836,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_3)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14785,7 +14846,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14795,9 +14856,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_3>()))._sigval as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigval) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14818,6 +14877,9 @@ pub struct __sifields__bindgen_ty_4 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_4() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_4> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_4>(), 32usize, @@ -14829,7 +14891,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_4)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._pid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14839,7 +14901,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._uid) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -14849,9 +14911,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._status as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._status) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14861,7 +14921,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._utime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._utime) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14871,7 +14931,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_4() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_4>()))._stime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._stime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -14905,6 +14965,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>(), 24usize, @@ -14922,10 +14985,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>())) - ._dummy_bnd as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14935,10 +14995,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._lower - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._lower) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -14948,10 +15005,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1>()))._upper - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._upper) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -14969,6 +15023,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>(), 12usize, @@ -14986,10 +15043,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>())) - ._dummy_pkey as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._dummy_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -14999,10 +15053,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2>()))._pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._pkey) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15020,6 +15071,9 @@ pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>(), 16usize, @@ -15037,10 +15091,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._data - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15050,10 +15101,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3>()))._type - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._type) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15065,6 +15113,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5__bindgen_ty_1> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5__bindgen_ty_1>(), 24usize, @@ -15082,10 +15133,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._trapno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._trapno) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15095,10 +15143,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_lsb as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_lsb) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15108,10 +15153,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_bnd as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_bnd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15121,10 +15163,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._addr_pkey - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15134,10 +15173,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_5__bindgen_ty_1>()))._perf as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._perf) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15149,6 +15185,9 @@ fn bindgen_test_layout___sifields__bindgen_ty_5__bindgen_ty_1() { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_5() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_5> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_5>(), 32usize, @@ -15160,7 +15199,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_5() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_5)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_5>()))._addr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15178,6 +15217,9 @@ pub struct __sifields__bindgen_ty_6 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_6() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_6> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_6>(), 16usize, @@ -15189,7 +15231,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_6)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._band as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._band) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15199,7 +15241,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_6() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_6>()))._fd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._fd) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15218,6 +15260,9 @@ pub struct __sifields__bindgen_ty_7 { } #[test] fn bindgen_test_layout___sifields__bindgen_ty_7() { + const UNINIT: ::std::mem::MaybeUninit<__sifields__bindgen_ty_7> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields__bindgen_ty_7>(), 16usize, @@ -15229,9 +15274,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { concat!("Alignment of ", stringify!(__sifields__bindgen_ty_7)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._call_addr as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._call_addr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15241,9 +15284,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._syscall as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._syscall) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15253,7 +15294,7 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields__bindgen_ty_7>()))._arch as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._arch) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15265,6 +15306,8 @@ fn bindgen_test_layout___sifields__bindgen_ty_7() { } #[test] fn bindgen_test_layout___sifields() { + const UNINIT: ::std::mem::MaybeUninit<__sifields> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__sifields>(), 32usize, @@ -15276,7 +15319,7 @@ fn bindgen_test_layout___sifields() { concat!("Alignment of ", stringify!(__sifields)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._kill as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._kill) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15286,7 +15329,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._timer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._timer) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15296,7 +15339,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._rt as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._rt) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15306,7 +15349,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigchld as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigchld) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15316,7 +15359,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigfault as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigfault) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15326,7 +15369,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigpoll as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigpoll) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15336,7 +15379,7 @@ fn bindgen_test_layout___sifields() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__sifields>()))._sigsys as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigsys) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15367,6 +15410,9 @@ pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { } #[test] fn bindgen_test_layout_siginfo__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::(), 48usize, @@ -15381,10 +15427,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_signo as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_signo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15394,10 +15437,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_errno as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_errno) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15407,10 +15447,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).si_code as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).si_code) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15420,10 +15457,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sifields as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sifields) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15435,6 +15469,9 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1__bindgen_ty_1() { } #[test] fn bindgen_test_layout_siginfo__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 128usize, @@ -15446,7 +15483,7 @@ fn bindgen_test_layout_siginfo__bindgen_ty_1() { concat!("Alignment of ", stringify!(siginfo__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._si_pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._si_pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15493,6 +15530,9 @@ pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { } #[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, @@ -15510,10 +15550,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._function as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._function) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15523,10 +15560,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._attribute as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._attribute) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15538,6 +15572,9 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1__bindgen_ty_1() { } #[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, @@ -15549,7 +15586,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigevent__bindgen_ty_1)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._pad as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._pad) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15559,7 +15596,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._tid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._tid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15569,9 +15606,7 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::()))._sigev_thread as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_thread) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15583,6 +15618,8 @@ fn bindgen_test_layout_sigevent__bindgen_ty_1() { } #[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, @@ -15594,7 +15631,7 @@ fn bindgen_test_layout_sigevent() { concat!("Alignment of ", stringify!(sigevent)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_value as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15604,7 +15641,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_signo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_signo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15614,7 +15651,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sigev_notify as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sigev_notify) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -15624,7 +15661,7 @@ fn bindgen_test_layout_sigevent() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::()))._sigev_un as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._sigev_un) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15661,6 +15698,9 @@ pub union sigaction__bindgen_ty_1 { } #[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, @@ -15672,9 +15712,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15684,9 +15722,7 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15698,6 +15734,8 @@ fn bindgen_test_layout_sigaction__bindgen_ty_1() { } #[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::(), 32usize, @@ -15709,7 +15747,7 @@ fn bindgen_test_layout_sigaction() { concat!("Alignment of ", stringify!(sigaction)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15719,7 +15757,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15729,7 +15767,7 @@ fn bindgen_test_layout_sigaction() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15761,6 +15799,9 @@ pub union sigaction64__bindgen_ty_1 { } #[test] fn bindgen_test_layout_sigaction64__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -15772,9 +15813,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { concat!("Alignment of ", stringify!(sigaction64__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_handler as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_handler) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15784,9 +15823,7 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sa_sigaction as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_sigaction) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15798,6 +15835,8 @@ fn bindgen_test_layout_sigaction64__bindgen_ty_1() { } #[test] fn bindgen_test_layout_sigaction64() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -15809,7 +15848,7 @@ fn bindgen_test_layout_sigaction64() { concat!("Alignment of ", stringify!(sigaction64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15819,7 +15858,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_mask) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15829,7 +15868,7 @@ fn bindgen_test_layout_sigaction64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).sa_restorer as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sa_restorer) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15856,6 +15895,8 @@ pub struct user_fpregs_struct { } #[test] fn bindgen_test_layout_user_fpregs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 512usize, @@ -15867,7 +15908,7 @@ fn bindgen_test_layout_user_fpregs_struct() { concat!("Alignment of ", stringify!(user_fpregs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -15877,7 +15918,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -15887,7 +15928,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ftw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ftw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -15897,7 +15938,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -15907,7 +15948,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -15917,7 +15958,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rdp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -15927,7 +15968,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -15937,7 +15978,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mxcr_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -15947,7 +15988,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_space) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -15957,7 +15998,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).xmm_space as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).xmm_space) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -15967,7 +16008,7 @@ fn bindgen_test_layout_user_fpregs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", @@ -16010,6 +16051,8 @@ pub struct user_regs_struct { } #[test] fn bindgen_test_layout_user_regs_struct() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 216usize, @@ -16021,7 +16064,7 @@ fn bindgen_test_layout_user_regs_struct() { concat!("Alignment of ", stringify!(user_regs_struct)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r15 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r15) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16031,7 +16074,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r14 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r14) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16041,7 +16084,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r13 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r13) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -16051,7 +16094,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r12 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r12) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -16061,7 +16104,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rbp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rbp) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -16071,7 +16114,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rbx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rbx) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -16081,7 +16124,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r11 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r11) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -16091,7 +16134,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r10 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r10) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -16101,7 +16144,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r9 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r9) as usize - ptr as usize }, 64usize, concat!( "Offset of field: ", @@ -16111,7 +16154,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).r8 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r8) as usize - ptr as usize }, 72usize, concat!( "Offset of field: ", @@ -16121,7 +16164,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rax) as usize - ptr as usize }, 80usize, concat!( "Offset of field: ", @@ -16131,7 +16174,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rcx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rcx) as usize - ptr as usize }, 88usize, concat!( "Offset of field: ", @@ -16141,7 +16184,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rdx as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdx) as usize - ptr as usize }, 96usize, concat!( "Offset of field: ", @@ -16151,7 +16194,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rsi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rsi) as usize - ptr as usize }, 104usize, concat!( "Offset of field: ", @@ -16161,7 +16204,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rdi as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdi) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", @@ -16171,7 +16214,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).orig_rax as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).orig_rax) as usize - ptr as usize }, 120usize, concat!( "Offset of field: ", @@ -16181,7 +16224,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 128usize, concat!( "Offset of field: ", @@ -16191,7 +16234,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cs) as usize - ptr as usize }, 136usize, concat!( "Offset of field: ", @@ -16201,7 +16244,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).eflags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).eflags) as usize - ptr as usize }, 144usize, concat!( "Offset of field: ", @@ -16211,7 +16254,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).rsp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rsp) as usize - ptr as usize }, 152usize, concat!( "Offset of field: ", @@ -16221,7 +16264,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ss as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ss) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -16231,7 +16274,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs_base) as usize - ptr as usize }, 168usize, concat!( "Offset of field: ", @@ -16241,7 +16284,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs_base as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs_base) as usize - ptr as usize }, 176usize, concat!( "Offset of field: ", @@ -16251,7 +16294,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ds) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -16261,7 +16304,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).es as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).es) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -16271,7 +16314,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fs) as usize - ptr as usize }, 200usize, concat!( "Offset of field: ", @@ -16281,7 +16324,7 @@ fn bindgen_test_layout_user_regs_struct() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gs) as usize - ptr as usize }, 208usize, concat!( "Offset of field: ", @@ -16316,6 +16359,8 @@ pub struct user { } #[test] fn bindgen_test_layout_user() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 928usize, @@ -16327,7 +16372,7 @@ fn bindgen_test_layout_user() { concat!("Alignment of ", stringify!(user)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).regs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).regs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16337,7 +16382,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fpvalid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fpvalid) as usize - ptr as usize }, 216usize, concat!( "Offset of field: ", @@ -16347,7 +16392,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad0) as usize - ptr as usize }, 220usize, concat!( "Offset of field: ", @@ -16357,7 +16402,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).i387 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).i387) as usize - ptr as usize }, 224usize, concat!( "Offset of field: ", @@ -16367,7 +16412,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_tsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_tsize) as usize - ptr as usize }, 736usize, concat!( "Offset of field: ", @@ -16377,7 +16422,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_dsize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_dsize) as usize - ptr as usize }, 744usize, concat!( "Offset of field: ", @@ -16387,7 +16432,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ssize as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ssize) as usize - ptr as usize }, 752usize, concat!( "Offset of field: ", @@ -16397,7 +16442,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_code as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_code) as usize - ptr as usize }, 760usize, concat!( "Offset of field: ", @@ -16407,7 +16452,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).start_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).start_stack) as usize - ptr as usize }, 768usize, concat!( "Offset of field: ", @@ -16417,7 +16462,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).signal as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).signal) as usize - ptr as usize }, 776usize, concat!( "Offset of field: ", @@ -16427,7 +16472,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reserved as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 784usize, concat!( "Offset of field: ", @@ -16437,7 +16482,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).pad1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pad1) as usize - ptr as usize }, 788usize, concat!( "Offset of field: ", @@ -16447,7 +16492,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_ar0 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_ar0) as usize - ptr as usize }, 792usize, concat!( "Offset of field: ", @@ -16457,7 +16502,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_fpstate as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_fpstate) as usize - ptr as usize }, 800usize, concat!( "Offset of field: ", @@ -16467,7 +16512,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).magic as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize }, 808usize, concat!( "Offset of field: ", @@ -16477,7 +16522,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_comm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_comm) as usize - ptr as usize }, 816usize, concat!( "Offset of field: ", @@ -16487,7 +16532,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).u_debugreg as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).u_debugreg) as usize - ptr as usize }, 848usize, concat!( "Offset of field: ", @@ -16497,7 +16542,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).error_code as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).error_code) as usize - ptr as usize }, 912usize, concat!( "Offset of field: ", @@ -16507,7 +16552,7 @@ fn bindgen_test_layout_user() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fault_address as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fault_address) as usize - ptr as usize }, 920usize, concat!( "Offset of field: ", @@ -16517,31 +16562,31 @@ fn bindgen_test_layout_user() { ) ); } -pub const REG_R8: ::std::os::raw::c_uint = 0; -pub const REG_R9: ::std::os::raw::c_uint = 1; -pub const REG_R10: ::std::os::raw::c_uint = 2; -pub const REG_R11: ::std::os::raw::c_uint = 3; -pub const REG_R12: ::std::os::raw::c_uint = 4; -pub const REG_R13: ::std::os::raw::c_uint = 5; -pub const REG_R14: ::std::os::raw::c_uint = 6; -pub const REG_R15: ::std::os::raw::c_uint = 7; -pub const REG_RDI: ::std::os::raw::c_uint = 8; -pub const REG_RSI: ::std::os::raw::c_uint = 9; -pub const REG_RBP: ::std::os::raw::c_uint = 10; -pub const REG_RBX: ::std::os::raw::c_uint = 11; -pub const REG_RDX: ::std::os::raw::c_uint = 12; -pub const REG_RAX: ::std::os::raw::c_uint = 13; -pub const REG_RCX: ::std::os::raw::c_uint = 14; -pub const REG_RSP: ::std::os::raw::c_uint = 15; -pub const REG_RIP: ::std::os::raw::c_uint = 16; -pub const REG_EFL: ::std::os::raw::c_uint = 17; -pub const REG_CSGSFS: ::std::os::raw::c_uint = 18; -pub const REG_ERR: ::std::os::raw::c_uint = 19; -pub const REG_TRAPNO: ::std::os::raw::c_uint = 20; -pub const REG_OLDMASK: ::std::os::raw::c_uint = 21; -pub const REG_CR2: ::std::os::raw::c_uint = 22; -pub const NGREG: ::std::os::raw::c_uint = 23; -pub type _bindgen_ty_46 = ::std::os::raw::c_uint; +pub const REG_R8: _bindgen_ty_48 = 0; +pub const REG_R9: _bindgen_ty_48 = 1; +pub const REG_R10: _bindgen_ty_48 = 2; +pub const REG_R11: _bindgen_ty_48 = 3; +pub const REG_R12: _bindgen_ty_48 = 4; +pub const REG_R13: _bindgen_ty_48 = 5; +pub const REG_R14: _bindgen_ty_48 = 6; +pub const REG_R15: _bindgen_ty_48 = 7; +pub const REG_RDI: _bindgen_ty_48 = 8; +pub const REG_RSI: _bindgen_ty_48 = 9; +pub const REG_RBP: _bindgen_ty_48 = 10; +pub const REG_RBX: _bindgen_ty_48 = 11; +pub const REG_RDX: _bindgen_ty_48 = 12; +pub const REG_RAX: _bindgen_ty_48 = 13; +pub const REG_RCX: _bindgen_ty_48 = 14; +pub const REG_RSP: _bindgen_ty_48 = 15; +pub const REG_RIP: _bindgen_ty_48 = 16; +pub const REG_EFL: _bindgen_ty_48 = 17; +pub const REG_CSGSFS: _bindgen_ty_48 = 18; +pub const REG_ERR: _bindgen_ty_48 = 19; +pub const REG_TRAPNO: _bindgen_ty_48 = 20; +pub const REG_OLDMASK: _bindgen_ty_48 = 21; +pub const REG_CR2: _bindgen_ty_48 = 22; +pub const NGREG: _bindgen_ty_48 = 23; +pub type _bindgen_ty_48 = ::std::os::raw::c_uint; pub type greg_t = ::std::os::raw::c_long; pub type gregset_t = [greg_t; 23usize]; #[repr(C)] @@ -16553,6 +16598,8 @@ pub struct _libc_fpxreg { } #[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, @@ -16564,7 +16611,7 @@ fn bindgen_test_layout__libc_fpxreg() { concat!("Alignment of ", stringify!(_libc_fpxreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).significand as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).significand) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16574,7 +16621,7 @@ fn bindgen_test_layout__libc_fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).exponent as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).exponent) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16584,7 +16631,7 @@ fn bindgen_test_layout__libc_fpxreg() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpxreg>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -16601,6 +16648,8 @@ pub struct _libc_xmmreg { } #[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, @@ -16612,7 +16661,7 @@ fn bindgen_test_layout__libc_xmmreg() { concat!("Alignment of ", stringify!(_libc_xmmreg)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_xmmreg>())).element as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).element) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16639,6 +16688,8 @@ pub struct _libc_fpstate { } #[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, @@ -16650,7 +16701,7 @@ fn bindgen_test_layout__libc_fpstate() { concat!("Alignment of ", stringify!(_libc_fpstate)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).cwd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cwd) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16660,7 +16711,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).swd as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).swd) as usize - ptr as usize }, 2usize, concat!( "Offset of field: ", @@ -16670,7 +16721,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).ftw as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ftw) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -16680,7 +16731,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).fop as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fop) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -16690,7 +16741,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).rip as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rip) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16700,7 +16751,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).rdp as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).rdp) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -16710,7 +16761,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).mxcsr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcsr) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -16720,7 +16771,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).mxcr_mask as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mxcr_mask) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -16730,7 +16781,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>()))._st as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._st) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -16740,7 +16791,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>()))._xmm as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._xmm) as usize - ptr as usize }, 160usize, concat!( "Offset of field: ", @@ -16750,7 +16801,7 @@ fn bindgen_test_layout__libc_fpstate() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_libc_fpstate>())).padding as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, 416usize, concat!( "Offset of field: ", @@ -16770,6 +16821,8 @@ pub struct mcontext_t { } #[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, @@ -16781,7 +16834,7 @@ fn bindgen_test_layout_mcontext_t() { concat!("Alignment of ", stringify!(mcontext_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).gregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gregs) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16791,7 +16844,7 @@ fn bindgen_test_layout_mcontext_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fpregs as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fpregs) as usize - ptr as usize }, 184usize, concat!( "Offset of field: ", @@ -16801,7 +16854,7 @@ fn bindgen_test_layout_mcontext_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__reserved1 as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__reserved1) as usize - ptr as usize }, 192usize, concat!( "Offset of field: ", @@ -16829,6 +16882,9 @@ pub union ucontext__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ucontext__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -16840,9 +16896,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { concat!("Alignment of ", stringify!(ucontext__bindgen_ty_1)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16852,9 +16906,7 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).uc_sigmask64 as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_sigmask64) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16866,6 +16918,8 @@ fn bindgen_test_layout_ucontext__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ucontext() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 816usize, @@ -16877,7 +16931,7 @@ fn bindgen_test_layout_ucontext() { concat!("Alignment of ", stringify!(ucontext)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -16887,7 +16941,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_link as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_link) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -16897,7 +16951,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_stack as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_stack) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -16907,7 +16961,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uc_mcontext as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uc_mcontext) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -16917,7 +16971,7 @@ fn bindgen_test_layout_ucontext() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).__fpregs_mem as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).__fpregs_mem) as usize - ptr as usize }, 304usize, concat!( "Offset of field: ", @@ -17151,6 +17205,8 @@ pub struct fd_set { } #[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, @@ -17162,7 +17218,7 @@ fn bindgen_test_layout_fd_set() { concat!("Alignment of ", stringify!(fd_set)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).fds_bits as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fds_bits) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -17265,6 +17321,8 @@ pub struct tm { } #[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, @@ -17276,7 +17334,7 @@ fn bindgen_test_layout_tm() { concat!("Alignment of ", stringify!(tm)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -17286,7 +17344,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_min as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -17296,7 +17354,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_hour as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -17306,7 +17364,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -17316,7 +17374,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mon as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -17326,7 +17384,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_year as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -17336,7 +17394,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_wday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -17346,7 +17404,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_yday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -17356,7 +17414,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_isdst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -17366,7 +17424,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_gmtoff as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -17376,7 +17434,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_zone as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -17525,161 +17583,161 @@ extern "C" { __base: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -pub const AAUDIO_DIRECTION_OUTPUT: ::std::os::raw::c_uint = 0; -pub const AAUDIO_DIRECTION_INPUT: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_47 = ::std::os::raw::c_uint; +pub const AAUDIO_DIRECTION_OUTPUT: _bindgen_ty_49 = 0; +pub const AAUDIO_DIRECTION_INPUT: _bindgen_ty_49 = 1; +pub type _bindgen_ty_49 = ::std::os::raw::c_uint; pub type aaudio_direction_t = i32; -pub const AAUDIO_FORMAT_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_FORMAT_UNSPECIFIED: ::std::os::raw::c_int = 0; -pub const AAUDIO_FORMAT_PCM_I16: ::std::os::raw::c_int = 1; -pub const AAUDIO_FORMAT_PCM_FLOAT: ::std::os::raw::c_int = 2; -pub const AAUDIO_FORMAT_PCM_I24_PACKED: ::std::os::raw::c_int = 3; -pub const AAUDIO_FORMAT_PCM_I32: ::std::os::raw::c_int = 4; -pub type _bindgen_ty_48 = ::std::os::raw::c_int; +pub const AAUDIO_FORMAT_INVALID: _bindgen_ty_50 = -1; +pub const AAUDIO_FORMAT_UNSPECIFIED: _bindgen_ty_50 = 0; +pub const AAUDIO_FORMAT_PCM_I16: _bindgen_ty_50 = 1; +pub const AAUDIO_FORMAT_PCM_FLOAT: _bindgen_ty_50 = 2; +pub const AAUDIO_FORMAT_PCM_I24_PACKED: _bindgen_ty_50 = 3; +pub const AAUDIO_FORMAT_PCM_I32: _bindgen_ty_50 = 4; +pub type _bindgen_ty_50 = ::std::os::raw::c_int; pub type aaudio_format_t = i32; -pub const AAUDIO_OK: ::std::os::raw::c_int = 0; -pub const AAUDIO_ERROR_BASE: ::std::os::raw::c_int = -900; -pub const AAUDIO_ERROR_DISCONNECTED: ::std::os::raw::c_int = -899; -pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: ::std::os::raw::c_int = -898; -pub const AAUDIO_ERROR_INTERNAL: ::std::os::raw::c_int = -896; -pub const AAUDIO_ERROR_INVALID_STATE: ::std::os::raw::c_int = -895; -pub const AAUDIO_ERROR_INVALID_HANDLE: ::std::os::raw::c_int = -892; -pub const AAUDIO_ERROR_UNIMPLEMENTED: ::std::os::raw::c_int = -890; -pub const AAUDIO_ERROR_UNAVAILABLE: ::std::os::raw::c_int = -889; -pub const AAUDIO_ERROR_NO_FREE_HANDLES: ::std::os::raw::c_int = -888; -pub const AAUDIO_ERROR_NO_MEMORY: ::std::os::raw::c_int = -887; -pub const AAUDIO_ERROR_NULL: ::std::os::raw::c_int = -886; -pub const AAUDIO_ERROR_TIMEOUT: ::std::os::raw::c_int = -885; -pub const AAUDIO_ERROR_WOULD_BLOCK: ::std::os::raw::c_int = -884; -pub const AAUDIO_ERROR_INVALID_FORMAT: ::std::os::raw::c_int = -883; -pub const AAUDIO_ERROR_OUT_OF_RANGE: ::std::os::raw::c_int = -882; -pub const AAUDIO_ERROR_NO_SERVICE: ::std::os::raw::c_int = -881; -pub const AAUDIO_ERROR_INVALID_RATE: ::std::os::raw::c_int = -880; -pub type _bindgen_ty_49 = ::std::os::raw::c_int; +pub const AAUDIO_OK: _bindgen_ty_51 = 0; +pub const AAUDIO_ERROR_BASE: _bindgen_ty_51 = -900; +pub const AAUDIO_ERROR_DISCONNECTED: _bindgen_ty_51 = -899; +pub const AAUDIO_ERROR_ILLEGAL_ARGUMENT: _bindgen_ty_51 = -898; +pub const AAUDIO_ERROR_INTERNAL: _bindgen_ty_51 = -896; +pub const AAUDIO_ERROR_INVALID_STATE: _bindgen_ty_51 = -895; +pub const AAUDIO_ERROR_INVALID_HANDLE: _bindgen_ty_51 = -892; +pub const AAUDIO_ERROR_UNIMPLEMENTED: _bindgen_ty_51 = -890; +pub const AAUDIO_ERROR_UNAVAILABLE: _bindgen_ty_51 = -889; +pub const AAUDIO_ERROR_NO_FREE_HANDLES: _bindgen_ty_51 = -888; +pub const AAUDIO_ERROR_NO_MEMORY: _bindgen_ty_51 = -887; +pub const AAUDIO_ERROR_NULL: _bindgen_ty_51 = -886; +pub const AAUDIO_ERROR_TIMEOUT: _bindgen_ty_51 = -885; +pub const AAUDIO_ERROR_WOULD_BLOCK: _bindgen_ty_51 = -884; +pub const AAUDIO_ERROR_INVALID_FORMAT: _bindgen_ty_51 = -883; +pub const AAUDIO_ERROR_OUT_OF_RANGE: _bindgen_ty_51 = -882; +pub const AAUDIO_ERROR_NO_SERVICE: _bindgen_ty_51 = -881; +pub const AAUDIO_ERROR_INVALID_RATE: _bindgen_ty_51 = -880; +pub type _bindgen_ty_51 = ::std::os::raw::c_int; pub type aaudio_result_t = i32; -pub const AAUDIO_STREAM_STATE_UNINITIALIZED: ::std::os::raw::c_uint = 0; -pub const AAUDIO_STREAM_STATE_UNKNOWN: ::std::os::raw::c_uint = 1; -pub const AAUDIO_STREAM_STATE_OPEN: ::std::os::raw::c_uint = 2; -pub const AAUDIO_STREAM_STATE_STARTING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_STREAM_STATE_STARTED: ::std::os::raw::c_uint = 4; -pub const AAUDIO_STREAM_STATE_PAUSING: ::std::os::raw::c_uint = 5; -pub const AAUDIO_STREAM_STATE_PAUSED: ::std::os::raw::c_uint = 6; -pub const AAUDIO_STREAM_STATE_FLUSHING: ::std::os::raw::c_uint = 7; -pub const AAUDIO_STREAM_STATE_FLUSHED: ::std::os::raw::c_uint = 8; -pub const AAUDIO_STREAM_STATE_STOPPING: ::std::os::raw::c_uint = 9; -pub const AAUDIO_STREAM_STATE_STOPPED: ::std::os::raw::c_uint = 10; -pub const AAUDIO_STREAM_STATE_CLOSING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_STREAM_STATE_CLOSED: ::std::os::raw::c_uint = 12; -pub const AAUDIO_STREAM_STATE_DISCONNECTED: ::std::os::raw::c_uint = 13; -pub type _bindgen_ty_50 = ::std::os::raw::c_uint; +pub const AAUDIO_STREAM_STATE_UNINITIALIZED: _bindgen_ty_52 = 0; +pub const AAUDIO_STREAM_STATE_UNKNOWN: _bindgen_ty_52 = 1; +pub const AAUDIO_STREAM_STATE_OPEN: _bindgen_ty_52 = 2; +pub const AAUDIO_STREAM_STATE_STARTING: _bindgen_ty_52 = 3; +pub const AAUDIO_STREAM_STATE_STARTED: _bindgen_ty_52 = 4; +pub const AAUDIO_STREAM_STATE_PAUSING: _bindgen_ty_52 = 5; +pub const AAUDIO_STREAM_STATE_PAUSED: _bindgen_ty_52 = 6; +pub const AAUDIO_STREAM_STATE_FLUSHING: _bindgen_ty_52 = 7; +pub const AAUDIO_STREAM_STATE_FLUSHED: _bindgen_ty_52 = 8; +pub const AAUDIO_STREAM_STATE_STOPPING: _bindgen_ty_52 = 9; +pub const AAUDIO_STREAM_STATE_STOPPED: _bindgen_ty_52 = 10; +pub const AAUDIO_STREAM_STATE_CLOSING: _bindgen_ty_52 = 11; +pub const AAUDIO_STREAM_STATE_CLOSED: _bindgen_ty_52 = 12; +pub const AAUDIO_STREAM_STATE_DISCONNECTED: _bindgen_ty_52 = 13; +pub type _bindgen_ty_52 = ::std::os::raw::c_uint; pub type aaudio_stream_state_t = i32; -pub const AAUDIO_SHARING_MODE_EXCLUSIVE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_SHARING_MODE_SHARED: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_51 = ::std::os::raw::c_uint; +pub const AAUDIO_SHARING_MODE_EXCLUSIVE: _bindgen_ty_53 = 0; +pub const AAUDIO_SHARING_MODE_SHARED: _bindgen_ty_53 = 1; +pub type _bindgen_ty_53 = ::std::os::raw::c_uint; pub type aaudio_sharing_mode_t = i32; -pub const AAUDIO_PERFORMANCE_MODE_NONE: ::std::os::raw::c_uint = 10; -pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: ::std::os::raw::c_uint = 11; -pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: ::std::os::raw::c_uint = 12; -pub type _bindgen_ty_52 = ::std::os::raw::c_uint; +pub const AAUDIO_PERFORMANCE_MODE_NONE: _bindgen_ty_54 = 10; +pub const AAUDIO_PERFORMANCE_MODE_POWER_SAVING: _bindgen_ty_54 = 11; +pub const AAUDIO_PERFORMANCE_MODE_LOW_LATENCY: _bindgen_ty_54 = 12; +pub type _bindgen_ty_54 = ::std::os::raw::c_uint; pub type aaudio_performance_mode_t = i32; -pub const AAUDIO_USAGE_MEDIA: ::std::os::raw::c_uint = 1; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 2; -pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: ::std::os::raw::c_uint = 3; -pub const AAUDIO_USAGE_ALARM: ::std::os::raw::c_uint = 4; -pub const AAUDIO_USAGE_NOTIFICATION: ::std::os::raw::c_uint = 5; -pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: ::std::os::raw::c_uint = 6; -pub const AAUDIO_USAGE_NOTIFICATION_EVENT: ::std::os::raw::c_uint = 10; -pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: ::std::os::raw::c_uint = 11; -pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: ::std::os::raw::c_uint = 12; -pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: ::std::os::raw::c_uint = 13; -pub const AAUDIO_USAGE_GAME: ::std::os::raw::c_uint = 14; -pub const AAUDIO_USAGE_ASSISTANT: ::std::os::raw::c_uint = 16; -pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: ::std::os::raw::c_uint = 1000; -pub const AAUDIO_SYSTEM_USAGE_SAFETY: ::std::os::raw::c_uint = 1001; -pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: ::std::os::raw::c_uint = 1002; -pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: ::std::os::raw::c_uint = 1003; -pub type _bindgen_ty_53 = ::std::os::raw::c_uint; +pub const AAUDIO_USAGE_MEDIA: _bindgen_ty_55 = 1; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION: _bindgen_ty_55 = 2; +pub const AAUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING: _bindgen_ty_55 = 3; +pub const AAUDIO_USAGE_ALARM: _bindgen_ty_55 = 4; +pub const AAUDIO_USAGE_NOTIFICATION: _bindgen_ty_55 = 5; +pub const AAUDIO_USAGE_NOTIFICATION_RINGTONE: _bindgen_ty_55 = 6; +pub const AAUDIO_USAGE_NOTIFICATION_EVENT: _bindgen_ty_55 = 10; +pub const AAUDIO_USAGE_ASSISTANCE_ACCESSIBILITY: _bindgen_ty_55 = 11; +pub const AAUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: _bindgen_ty_55 = 12; +pub const AAUDIO_USAGE_ASSISTANCE_SONIFICATION: _bindgen_ty_55 = 13; +pub const AAUDIO_USAGE_GAME: _bindgen_ty_55 = 14; +pub const AAUDIO_USAGE_ASSISTANT: _bindgen_ty_55 = 16; +pub const AAUDIO_SYSTEM_USAGE_EMERGENCY: _bindgen_ty_55 = 1000; +pub const AAUDIO_SYSTEM_USAGE_SAFETY: _bindgen_ty_55 = 1001; +pub const AAUDIO_SYSTEM_USAGE_VEHICLE_STATUS: _bindgen_ty_55 = 1002; +pub const AAUDIO_SYSTEM_USAGE_ANNOUNCEMENT: _bindgen_ty_55 = 1003; +pub type _bindgen_ty_55 = ::std::os::raw::c_uint; pub type aaudio_usage_t = i32; -pub const AAUDIO_CONTENT_TYPE_SPEECH: ::std::os::raw::c_uint = 1; -pub const AAUDIO_CONTENT_TYPE_MUSIC: ::std::os::raw::c_uint = 2; -pub const AAUDIO_CONTENT_TYPE_MOVIE: ::std::os::raw::c_uint = 3; -pub const AAUDIO_CONTENT_TYPE_SONIFICATION: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_54 = ::std::os::raw::c_uint; +pub const AAUDIO_CONTENT_TYPE_SPEECH: _bindgen_ty_56 = 1; +pub const AAUDIO_CONTENT_TYPE_MUSIC: _bindgen_ty_56 = 2; +pub const AAUDIO_CONTENT_TYPE_MOVIE: _bindgen_ty_56 = 3; +pub const AAUDIO_CONTENT_TYPE_SONIFICATION: _bindgen_ty_56 = 4; +pub type _bindgen_ty_56 = ::std::os::raw::c_uint; pub type aaudio_content_type_t = i32; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: ::std::os::raw::c_uint = 1; -pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_55 = ::std::os::raw::c_uint; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_AUTO: _bindgen_ty_57 = 1; +pub const AAUDIO_SPATIALIZATION_BEHAVIOR_NEVER: _bindgen_ty_57 = 2; +pub type _bindgen_ty_57 = ::std::os::raw::c_uint; pub type aaudio_spatialization_behavior_t = i32; -pub const AAUDIO_INPUT_PRESET_GENERIC: ::std::os::raw::c_uint = 1; -pub const AAUDIO_INPUT_PRESET_CAMCORDER: ::std::os::raw::c_uint = 5; -pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: ::std::os::raw::c_uint = 6; -pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: ::std::os::raw::c_uint = 7; -pub const AAUDIO_INPUT_PRESET_UNPROCESSED: ::std::os::raw::c_uint = 9; -pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: ::std::os::raw::c_uint = 10; -pub type _bindgen_ty_56 = ::std::os::raw::c_uint; +pub const AAUDIO_INPUT_PRESET_GENERIC: _bindgen_ty_58 = 1; +pub const AAUDIO_INPUT_PRESET_CAMCORDER: _bindgen_ty_58 = 5; +pub const AAUDIO_INPUT_PRESET_VOICE_RECOGNITION: _bindgen_ty_58 = 6; +pub const AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION: _bindgen_ty_58 = 7; +pub const AAUDIO_INPUT_PRESET_UNPROCESSED: _bindgen_ty_58 = 9; +pub const AAUDIO_INPUT_PRESET_VOICE_PERFORMANCE: _bindgen_ty_58 = 10; +pub type _bindgen_ty_58 = ::std::os::raw::c_uint; pub type aaudio_input_preset_t = i32; -pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: ::std::os::raw::c_uint = 1; -pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: ::std::os::raw::c_uint = 2; -pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_57 = ::std::os::raw::c_uint; +pub const AAUDIO_ALLOW_CAPTURE_BY_ALL: _bindgen_ty_59 = 1; +pub const AAUDIO_ALLOW_CAPTURE_BY_SYSTEM: _bindgen_ty_59 = 2; +pub const AAUDIO_ALLOW_CAPTURE_BY_NONE: _bindgen_ty_59 = 3; +pub type _bindgen_ty_59 = ::std::os::raw::c_uint; pub type aaudio_allowed_capture_policy_t = i32; -pub const AAUDIO_SESSION_ID_NONE: ::std::os::raw::c_int = -1; -pub const AAUDIO_SESSION_ID_ALLOCATE: ::std::os::raw::c_int = 0; -pub type _bindgen_ty_58 = ::std::os::raw::c_int; +pub const AAUDIO_SESSION_ID_NONE: _bindgen_ty_60 = -1; +pub const AAUDIO_SESSION_ID_ALLOCATE: _bindgen_ty_60 = 0; +pub type _bindgen_ty_60 = ::std::os::raw::c_int; pub type aaudio_session_id_t = i32; -pub const AAUDIO_CHANNEL_INVALID: ::std::os::raw::c_int = -1; -pub const AAUDIO_CHANNEL_FRONT_LEFT: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_FRONT_RIGHT: ::std::os::raw::c_int = 2; -pub const AAUDIO_CHANNEL_FRONT_CENTER: ::std::os::raw::c_int = 4; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY: ::std::os::raw::c_int = 8; -pub const AAUDIO_CHANNEL_BACK_LEFT: ::std::os::raw::c_int = 16; -pub const AAUDIO_CHANNEL_BACK_RIGHT: ::std::os::raw::c_int = 32; -pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: ::std::os::raw::c_int = 64; -pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: ::std::os::raw::c_int = 128; -pub const AAUDIO_CHANNEL_BACK_CENTER: ::std::os::raw::c_int = 256; -pub const AAUDIO_CHANNEL_SIDE_LEFT: ::std::os::raw::c_int = 512; -pub const AAUDIO_CHANNEL_SIDE_RIGHT: ::std::os::raw::c_int = 1024; -pub const AAUDIO_CHANNEL_TOP_CENTER: ::std::os::raw::c_int = 2048; -pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: ::std::os::raw::c_int = 4096; -pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: ::std::os::raw::c_int = 8192; -pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: ::std::os::raw::c_int = 16384; -pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: ::std::os::raw::c_int = 32768; -pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: ::std::os::raw::c_int = 65536; -pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: ::std::os::raw::c_int = 131072; -pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: ::std::os::raw::c_int = 262144; -pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: ::std::os::raw::c_int = 524288; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: ::std::os::raw::c_int = 1048576; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: ::std::os::raw::c_int = 2097152; -pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: ::std::os::raw::c_int = 4194304; -pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: ::std::os::raw::c_int = 8388608; -pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: ::std::os::raw::c_int = 16777216; -pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: ::std::os::raw::c_int = 33554432; -pub const AAUDIO_CHANNEL_MONO: ::std::os::raw::c_int = 1; -pub const AAUDIO_CHANNEL_STEREO: ::std::os::raw::c_int = 3; -pub const AAUDIO_CHANNEL_2POINT1: ::std::os::raw::c_int = 11; -pub const AAUDIO_CHANNEL_TRI: ::std::os::raw::c_int = 7; -pub const AAUDIO_CHANNEL_TRI_BACK: ::std::os::raw::c_int = 259; -pub const AAUDIO_CHANNEL_3POINT1: ::std::os::raw::c_int = 15; -pub const AAUDIO_CHANNEL_2POINT0POINT2: ::std::os::raw::c_int = 786435; -pub const AAUDIO_CHANNEL_2POINT1POINT2: ::std::os::raw::c_int = 786443; -pub const AAUDIO_CHANNEL_3POINT0POINT2: ::std::os::raw::c_int = 786439; -pub const AAUDIO_CHANNEL_3POINT1POINT2: ::std::os::raw::c_int = 786447; -pub const AAUDIO_CHANNEL_QUAD: ::std::os::raw::c_int = 51; -pub const AAUDIO_CHANNEL_QUAD_SIDE: ::std::os::raw::c_int = 1539; -pub const AAUDIO_CHANNEL_SURROUND: ::std::os::raw::c_int = 263; -pub const AAUDIO_CHANNEL_PENTA: ::std::os::raw::c_int = 55; -pub const AAUDIO_CHANNEL_5POINT1: ::std::os::raw::c_int = 63; -pub const AAUDIO_CHANNEL_5POINT1_SIDE: ::std::os::raw::c_int = 1551; -pub const AAUDIO_CHANNEL_6POINT1: ::std::os::raw::c_int = 319; -pub const AAUDIO_CHANNEL_7POINT1: ::std::os::raw::c_int = 1599; -pub const AAUDIO_CHANNEL_5POINT1POINT2: ::std::os::raw::c_int = 786495; -pub const AAUDIO_CHANNEL_5POINT1POINT4: ::std::os::raw::c_int = 184383; -pub const AAUDIO_CHANNEL_7POINT1POINT2: ::std::os::raw::c_int = 788031; -pub const AAUDIO_CHANNEL_7POINT1POINT4: ::std::os::raw::c_int = 185919; -pub const AAUDIO_CHANNEL_9POINT1POINT4: ::std::os::raw::c_int = 50517567; -pub const AAUDIO_CHANNEL_9POINT1POINT6: ::std::os::raw::c_int = 51303999; -pub const AAUDIO_CHANNEL_FRONT_BACK: ::std::os::raw::c_int = 260; -pub type _bindgen_ty_59 = ::std::os::raw::c_int; +pub const AAUDIO_CHANNEL_INVALID: _bindgen_ty_61 = -1; +pub const AAUDIO_CHANNEL_FRONT_LEFT: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_FRONT_RIGHT: _bindgen_ty_61 = 2; +pub const AAUDIO_CHANNEL_FRONT_CENTER: _bindgen_ty_61 = 4; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY: _bindgen_ty_61 = 8; +pub const AAUDIO_CHANNEL_BACK_LEFT: _bindgen_ty_61 = 16; +pub const AAUDIO_CHANNEL_BACK_RIGHT: _bindgen_ty_61 = 32; +pub const AAUDIO_CHANNEL_FRONT_LEFT_OF_CENTER: _bindgen_ty_61 = 64; +pub const AAUDIO_CHANNEL_FRONT_RIGHT_OF_CENTER: _bindgen_ty_61 = 128; +pub const AAUDIO_CHANNEL_BACK_CENTER: _bindgen_ty_61 = 256; +pub const AAUDIO_CHANNEL_SIDE_LEFT: _bindgen_ty_61 = 512; +pub const AAUDIO_CHANNEL_SIDE_RIGHT: _bindgen_ty_61 = 1024; +pub const AAUDIO_CHANNEL_TOP_CENTER: _bindgen_ty_61 = 2048; +pub const AAUDIO_CHANNEL_TOP_FRONT_LEFT: _bindgen_ty_61 = 4096; +pub const AAUDIO_CHANNEL_TOP_FRONT_CENTER: _bindgen_ty_61 = 8192; +pub const AAUDIO_CHANNEL_TOP_FRONT_RIGHT: _bindgen_ty_61 = 16384; +pub const AAUDIO_CHANNEL_TOP_BACK_LEFT: _bindgen_ty_61 = 32768; +pub const AAUDIO_CHANNEL_TOP_BACK_CENTER: _bindgen_ty_61 = 65536; +pub const AAUDIO_CHANNEL_TOP_BACK_RIGHT: _bindgen_ty_61 = 131072; +pub const AAUDIO_CHANNEL_TOP_SIDE_LEFT: _bindgen_ty_61 = 262144; +pub const AAUDIO_CHANNEL_TOP_SIDE_RIGHT: _bindgen_ty_61 = 524288; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_LEFT: _bindgen_ty_61 = 1048576; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_CENTER: _bindgen_ty_61 = 2097152; +pub const AAUDIO_CHANNEL_BOTTOM_FRONT_RIGHT: _bindgen_ty_61 = 4194304; +pub const AAUDIO_CHANNEL_LOW_FREQUENCY_2: _bindgen_ty_61 = 8388608; +pub const AAUDIO_CHANNEL_FRONT_WIDE_LEFT: _bindgen_ty_61 = 16777216; +pub const AAUDIO_CHANNEL_FRONT_WIDE_RIGHT: _bindgen_ty_61 = 33554432; +pub const AAUDIO_CHANNEL_MONO: _bindgen_ty_61 = 1; +pub const AAUDIO_CHANNEL_STEREO: _bindgen_ty_61 = 3; +pub const AAUDIO_CHANNEL_2POINT1: _bindgen_ty_61 = 11; +pub const AAUDIO_CHANNEL_TRI: _bindgen_ty_61 = 7; +pub const AAUDIO_CHANNEL_TRI_BACK: _bindgen_ty_61 = 259; +pub const AAUDIO_CHANNEL_3POINT1: _bindgen_ty_61 = 15; +pub const AAUDIO_CHANNEL_2POINT0POINT2: _bindgen_ty_61 = 786435; +pub const AAUDIO_CHANNEL_2POINT1POINT2: _bindgen_ty_61 = 786443; +pub const AAUDIO_CHANNEL_3POINT0POINT2: _bindgen_ty_61 = 786439; +pub const AAUDIO_CHANNEL_3POINT1POINT2: _bindgen_ty_61 = 786447; +pub const AAUDIO_CHANNEL_QUAD: _bindgen_ty_61 = 51; +pub const AAUDIO_CHANNEL_QUAD_SIDE: _bindgen_ty_61 = 1539; +pub const AAUDIO_CHANNEL_SURROUND: _bindgen_ty_61 = 263; +pub const AAUDIO_CHANNEL_PENTA: _bindgen_ty_61 = 55; +pub const AAUDIO_CHANNEL_5POINT1: _bindgen_ty_61 = 63; +pub const AAUDIO_CHANNEL_5POINT1_SIDE: _bindgen_ty_61 = 1551; +pub const AAUDIO_CHANNEL_6POINT1: _bindgen_ty_61 = 319; +pub const AAUDIO_CHANNEL_7POINT1: _bindgen_ty_61 = 1599; +pub const AAUDIO_CHANNEL_5POINT1POINT2: _bindgen_ty_61 = 786495; +pub const AAUDIO_CHANNEL_5POINT1POINT4: _bindgen_ty_61 = 184383; +pub const AAUDIO_CHANNEL_7POINT1POINT2: _bindgen_ty_61 = 788031; +pub const AAUDIO_CHANNEL_7POINT1POINT4: _bindgen_ty_61 = 185919; +pub const AAUDIO_CHANNEL_9POINT1POINT4: _bindgen_ty_61 = 50517567; +pub const AAUDIO_CHANNEL_9POINT1POINT6: _bindgen_ty_61 = 51303999; +pub const AAUDIO_CHANNEL_FRONT_BACK: _bindgen_ty_61 = 260; +pub type _bindgen_ty_61 = ::std::os::raw::c_int; pub type aaudio_channel_mask_t = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -17810,9 +17868,9 @@ extern "C" { privacySensitive: bool, ); } -pub const AAUDIO_CALLBACK_RESULT_CONTINUE: ::std::os::raw::c_uint = 0; -pub const AAUDIO_CALLBACK_RESULT_STOP: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_60 = ::std::os::raw::c_uint; +pub const AAUDIO_CALLBACK_RESULT_CONTINUE: _bindgen_ty_62 = 0; +pub const AAUDIO_CALLBACK_RESULT_STOP: _bindgen_ty_62 = 1; +pub type _bindgen_ty_62 = ::std::os::raw::c_uint; pub type aaudio_data_callback_result_t = i32; pub type AAudioStream_dataCallback = ::std::option::Option< unsafe extern "C" fn( @@ -18104,13 +18162,13 @@ pub struct AMidiInputPort { pub struct AMidiOutputPort { _unused: [u8; 0], } -pub const AMIDI_OPCODE_DATA: ::std::os::raw::c_uint = 1; -pub const AMIDI_OPCODE_FLUSH: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_61 = ::std::os::raw::c_uint; -pub const AMIDI_DEVICE_TYPE_USB: ::std::os::raw::c_uint = 1; -pub const AMIDI_DEVICE_TYPE_VIRTUAL: ::std::os::raw::c_uint = 2; -pub const AMIDI_DEVICE_TYPE_BLUETOOTH: ::std::os::raw::c_uint = 3; -pub type _bindgen_ty_62 = ::std::os::raw::c_uint; +pub const AMIDI_OPCODE_DATA: _bindgen_ty_63 = 1; +pub const AMIDI_OPCODE_FLUSH: _bindgen_ty_63 = 2; +pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const AMIDI_DEVICE_TYPE_USB: _bindgen_ty_64 = 1; +pub const AMIDI_DEVICE_TYPE_VIRTUAL: _bindgen_ty_64 = 2; +pub const AMIDI_DEVICE_TYPE_BLUETOOTH: _bindgen_ty_64 = 3; +pub type _bindgen_ty_64 = ::std::os::raw::c_uint; impl AMidiDevice_Protocol { pub const AMIDI_DEVICE_PROTOCOL_UMP_USE_MIDI_CI: AMidiDevice_Protocol = AMidiDevice_Protocol(0); } @@ -21291,14 +21349,14 @@ pub use self::acamera_metadata_enum_acamera_automotive_lens_facing as acamera_me pub struct ACameraMetadata { _unused: [u8; 0], } -pub const ACAMERA_TYPE_BYTE: ::std::os::raw::c_uint = 0; -pub const ACAMERA_TYPE_INT32: ::std::os::raw::c_uint = 1; -pub const ACAMERA_TYPE_FLOAT: ::std::os::raw::c_uint = 2; -pub const ACAMERA_TYPE_INT64: ::std::os::raw::c_uint = 3; -pub const ACAMERA_TYPE_DOUBLE: ::std::os::raw::c_uint = 4; -pub const ACAMERA_TYPE_RATIONAL: ::std::os::raw::c_uint = 5; -pub const ACAMERA_NUM_TYPES: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_63 = ::std::os::raw::c_uint; +pub const ACAMERA_TYPE_BYTE: _bindgen_ty_65 = 0; +pub const ACAMERA_TYPE_INT32: _bindgen_ty_65 = 1; +pub const ACAMERA_TYPE_FLOAT: _bindgen_ty_65 = 2; +pub const ACAMERA_TYPE_INT64: _bindgen_ty_65 = 3; +pub const ACAMERA_TYPE_DOUBLE: _bindgen_ty_65 = 4; +pub const ACAMERA_TYPE_RATIONAL: _bindgen_ty_65 = 5; +pub const ACAMERA_NUM_TYPES: _bindgen_ty_65 = 6; +pub type _bindgen_ty_65 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraMetadata_rational { @@ -21307,6 +21365,9 @@ pub struct ACameraMetadata_rational { } #[test] fn bindgen_test_layout_ACameraMetadata_rational() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21318,9 +21379,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { concat!("Alignment of ", stringify!(ACameraMetadata_rational)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).numerator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).numerator) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21330,9 +21389,7 @@ fn bindgen_test_layout_ACameraMetadata_rational() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).denominator as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).denominator) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21362,6 +21419,9 @@ pub union ACameraMetadata_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21376,9 +21436,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21388,10 +21446,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21401,9 +21456,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21413,10 +21466,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21426,9 +21476,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21438,9 +21486,7 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21452,6 +21498,9 @@ fn bindgen_test_layout_ACameraMetadata_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -21463,7 +21512,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21473,7 +21522,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).type_ as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21483,7 +21532,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).count as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21493,7 +21542,7 @@ fn bindgen_test_layout_ACameraMetadata_entry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21523,6 +21572,9 @@ pub union ACameraMetadata_const_entry__bindgen_ty_1 { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -21540,10 +21592,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).u8_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).u8_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21553,10 +21602,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i32_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21566,10 +21612,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).f as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21579,10 +21622,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).i64_ as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21592,10 +21632,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).d as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21605,10 +21642,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).r as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21620,6 +21654,9 @@ fn bindgen_test_layout_ACameraMetadata_const_entry__bindgen_ty_1() { } #[test] fn bindgen_test_layout_ACameraMetadata_const_entry() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -21631,7 +21668,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { concat!("Alignment of ", stringify!(ACameraMetadata_const_entry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tag as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21641,9 +21678,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).type_ as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -21653,9 +21688,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).count as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).count) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21665,9 +21698,7 @@ fn bindgen_test_layout_ACameraMetadata_const_entry() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).data as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21907,6 +21938,9 @@ pub struct ACameraCaptureSession_stateCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -21924,10 +21958,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -21937,10 +21968,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onClosed as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onClosed) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -21950,10 +21978,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onReady as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onReady) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -21963,10 +21988,7 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onActive as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onActive) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -21976,9 +21998,9 @@ fn bindgen_test_layout_ACameraCaptureSession_stateCallbacks() { ) ); } -pub const CAPTURE_FAILURE_REASON_FLUSHED: ::std::os::raw::c_uint = 0; -pub const CAPTURE_FAILURE_REASON_ERROR: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_64 = ::std::os::raw::c_uint; +pub const CAPTURE_FAILURE_REASON_FLUSHED: _bindgen_ty_66 = 0; +pub const CAPTURE_FAILURE_REASON_ERROR: _bindgen_ty_66 = 1; +pub type _bindgen_ty_66 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ACameraCaptureFailure { @@ -21989,6 +22011,9 @@ pub struct ACameraCaptureFailure { } #[test] fn bindgen_test_layout_ACameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22000,9 +22025,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { concat!("Alignment of ", stringify!(ACameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).frameNumber as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).frameNumber) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22012,7 +22035,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).reason as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reason) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22022,9 +22045,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).sequenceId as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).sequenceId) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -22034,9 +22055,7 @@ fn bindgen_test_layout_ACameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).wasImageCaptured as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).wasImageCaptured) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22108,6 +22127,9 @@ pub struct ACameraCaptureSession_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -22125,10 +22147,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22138,10 +22157,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22151,10 +22167,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22164,10 +22177,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22177,10 +22187,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -22190,10 +22197,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -22203,10 +22207,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -22216,10 +22217,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -22229,8 +22227,8 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacks() { ) ); } -pub const CAPTURE_SEQUENCE_ID_NONE: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_65 = ::std::os::raw::c_int; +pub const CAPTURE_SEQUENCE_ID_NONE: _bindgen_ty_67 = -1; +pub type _bindgen_ty_67 = ::std::os::raw::c_int; extern "C" { pub fn ACameraCaptureSession_close(session: *mut ACameraCaptureSession); } @@ -22303,6 +22301,9 @@ pub struct ALogicalCameraCaptureFailure { } #[test] fn bindgen_test_layout_ALogicalCameraCaptureFailure() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -22314,10 +22315,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { concat!("Alignment of ", stringify!(ALogicalCameraCaptureFailure)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).captureFailure as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).captureFailure) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22327,10 +22325,7 @@ fn bindgen_test_layout_ALogicalCameraCaptureFailure() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).physicalCameraId as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).physicalCameraId) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22362,6 +22357,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacks { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -22379,10 +22377,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22392,10 +22387,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22405,10 +22397,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22419,8 +22408,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( @@ -22432,8 +22420,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 32usize, concat!( @@ -22444,10 +22431,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -22457,10 +22441,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -22470,10 +22451,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -22524,6 +22502,9 @@ pub struct ACameraCaptureSession_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -22541,10 +22522,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22554,10 +22532,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureStarted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22567,10 +22542,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureProgressed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22580,10 +22552,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureCompleted - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -22593,10 +22562,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureFailed - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureFailed) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -22606,10 +22572,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -22619,10 +22582,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -22632,10 +22592,7 @@ fn bindgen_test_layout_ACameraCaptureSession_captureCallbacksV2() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCaptureBufferLost - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -22659,6 +22616,9 @@ pub struct ACameraCaptureSession_logicalCamera_captureCallbacksV2 { } #[test] fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 64usize, @@ -22676,10 +22636,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22689,10 +22646,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureStarted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureStarted) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22702,10 +22656,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureProgressed as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureProgressed) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -22716,8 +22667,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureCompleted as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureCompleted) as usize - ptr as usize }, 24usize, concat!( @@ -22729,8 +22679,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onLogicalCameraCaptureFailed as *const _ as usize + ::std::ptr::addr_of!((*ptr).onLogicalCameraCaptureFailed) as usize - ptr as usize }, 32usize, concat!( @@ -22741,10 +22690,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceCompleted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceCompleted) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -22754,10 +22700,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureSequenceAborted as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureSequenceAborted) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -22767,10 +22710,7 @@ fn bindgen_test_layout_ACameraCaptureSession_logicalCamera_captureCallbacksV2() ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onCaptureBufferLost as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCaptureBufferLost) as usize - ptr as usize }, 56usize, concat!( "Offset of field: ", @@ -22824,6 +22764,8 @@ pub struct ACameraIdList { } #[test] fn bindgen_test_layout_ACameraIdList() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -22835,7 +22777,7 @@ fn bindgen_test_layout_ACameraIdList() { concat!("Alignment of ", stringify!(ACameraIdList)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numCameras as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numCameras) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22845,7 +22787,7 @@ fn bindgen_test_layout_ACameraIdList() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).cameraIds as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cameraIds) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22855,12 +22797,12 @@ fn bindgen_test_layout_ACameraIdList() { ) ); } -pub const ERROR_CAMERA_IN_USE: ::std::os::raw::c_uint = 1; -pub const ERROR_MAX_CAMERAS_IN_USE: ::std::os::raw::c_uint = 2; -pub const ERROR_CAMERA_DISABLED: ::std::os::raw::c_uint = 3; -pub const ERROR_CAMERA_DEVICE: ::std::os::raw::c_uint = 4; -pub const ERROR_CAMERA_SERVICE: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_66 = ::std::os::raw::c_uint; +pub const ERROR_CAMERA_IN_USE: _bindgen_ty_68 = 1; +pub const ERROR_MAX_CAMERAS_IN_USE: _bindgen_ty_68 = 2; +pub const ERROR_CAMERA_DISABLED: _bindgen_ty_68 = 3; +pub const ERROR_CAMERA_DEVICE: _bindgen_ty_68 = 4; +pub const ERROR_CAMERA_SERVICE: _bindgen_ty_68 = 5; +pub type _bindgen_ty_68 = ::std::os::raw::c_uint; pub type ACameraDevice_StateCallback = ::std::option::Option< unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, device: *mut ACameraDevice), >; @@ -22880,6 +22822,9 @@ pub struct ACameraDevice_StateCallbacks { } #[test] fn bindgen_test_layout_ACameraDevice_StateCallbacks() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -22891,9 +22836,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { concat!("Alignment of ", stringify!(ACameraDevice_StateCallbacks)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -22903,10 +22846,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onDisconnected as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onDisconnected) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -22916,9 +22856,7 @@ fn bindgen_test_layout_ACameraDevice_StateCallbacks() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onError as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onError) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23098,6 +23036,9 @@ pub struct ACameraManager_AvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_AvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -23112,10 +23053,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23125,10 +23063,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23138,10 +23073,7 @@ fn bindgen_test_layout_ACameraManager_AvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onCameraUnavailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onCameraUnavailable) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -23192,6 +23124,9 @@ pub struct ACameraManager_ExtendedAvailabilityListener { } #[test] fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 80usize, @@ -23209,10 +23144,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .availabilityCallbacks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).availabilityCallbacks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23223,8 +23155,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ); assert_eq!( unsafe { - &(*(::std::ptr::null::())) - .onCameraAccessPrioritiesChanged as *const _ as usize + ::std::ptr::addr_of!((*ptr).onCameraAccessPrioritiesChanged) as usize - ptr as usize }, 24usize, concat!( @@ -23235,10 +23166,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraAvailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraAvailable) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -23248,10 +23176,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())) - .onPhysicalCameraUnavailable as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onPhysicalCameraUnavailable) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -23261,10 +23186,7 @@ fn bindgen_test_layout_ACameraManager_ExtendedAvailabilityListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).reserved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).reserved) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -23356,6 +23278,8 @@ pub struct AImageCropRect { } #[test] fn bindgen_test_layout_AImageCropRect() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -23367,7 +23291,7 @@ fn bindgen_test_layout_AImageCropRect() { concat!("Alignment of ", stringify!(AImageCropRect)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).left as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).left) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23377,7 +23301,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).top as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).top) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -23387,7 +23311,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).right as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).right) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23397,7 +23321,7 @@ fn bindgen_test_layout_AImageCropRect() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).bottom as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bottom) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -23520,6 +23444,9 @@ pub struct AImageReader_ImageListener { } #[test] fn bindgen_test_layout_AImageReader_ImageListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -23531,9 +23458,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { concat!("Alignment of ", stringify!(AImageReader_ImageListener)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23543,10 +23468,7 @@ fn bindgen_test_layout_AImageReader_ImageListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onImageAvailable as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onImageAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -23601,6 +23523,9 @@ pub struct AImageReader_BufferRemovedListener { } #[test] fn bindgen_test_layout_AImageReader_BufferRemovedListener() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -23615,10 +23540,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).context as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -23628,10 +23550,7 @@ fn bindgen_test_layout_AImageReader_BufferRemovedListener() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onBufferRemoved - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onBufferRemoved) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24267,6 +24186,9 @@ pub struct AMediaCodecBufferInfo { } #[test] fn bindgen_test_layout_AMediaCodecBufferInfo() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -24278,7 +24200,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { concat!("Alignment of ", stringify!(AMediaCodecBufferInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24288,7 +24210,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24298,10 +24220,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).presentationTimeUs as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).presentationTimeUs) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24311,7 +24230,7 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).flags as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -24326,14 +24245,14 @@ fn bindgen_test_layout_AMediaCodecBufferInfo() { pub struct AMediaCodecCryptoInfo { _unused: [u8; 0], } -pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: ::std::os::raw::c_int = 2; -pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: ::std::os::raw::c_int = 4; -pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: ::std::os::raw::c_int = 8; -pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: ::std::os::raw::c_int = 1; -pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: ::std::os::raw::c_int = -3; -pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: ::std::os::raw::c_int = -2; -pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: ::std::os::raw::c_int = -1; -pub type _bindgen_ty_67 = ::std::os::raw::c_int; +pub const AMEDIACODEC_BUFFER_FLAG_CODEC_CONFIG: _bindgen_ty_69 = 2; +pub const AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM: _bindgen_ty_69 = 4; +pub const AMEDIACODEC_BUFFER_FLAG_PARTIAL_FRAME: _bindgen_ty_69 = 8; +pub const AMEDIACODEC_CONFIGURE_FLAG_ENCODE: _bindgen_ty_69 = 1; +pub const AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED: _bindgen_ty_69 = -3; +pub const AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED: _bindgen_ty_69 = -2; +pub const AMEDIACODEC_INFO_TRY_AGAIN_LATER: _bindgen_ty_69 = -1; +pub type _bindgen_ty_69 = ::std::os::raw::c_int; pub type AMediaCodecOnAsyncInputAvailable = ::std::option::Option< unsafe extern "C" fn( codec: *mut AMediaCodec, @@ -24375,6 +24294,9 @@ pub struct AMediaCodecOnAsyncNotifyCallback { } #[test] fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -24389,10 +24311,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncInputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncInputAvailable) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24402,10 +24321,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncOutputAvailable - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncOutputAvailable) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24415,10 +24331,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncFormatChanged - as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncFormatChanged) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -24428,10 +24341,7 @@ fn bindgen_test_layout_AMediaCodecOnAsyncNotifyCallback() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).onAsyncError as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).onAsyncError) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -24505,7 +24415,7 @@ extern "C" { __file: *const ::std::os::raw::c_char, __line: ::std::os::raw::c_int, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn __assert2( @@ -24513,7 +24423,7 @@ extern "C" { __line: ::std::os::raw::c_int, __function: *const ::std::os::raw::c_char, __msg: *const ::std::os::raw::c_char, - ); + ) -> !; } extern "C" { pub fn AMediaCodec_queueInputBuffer( @@ -24652,6 +24562,8 @@ pub struct cryptoinfo_pattern_t { } #[test] fn bindgen_test_layout_cryptoinfo_pattern_t() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -24663,9 +24575,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { concat!("Alignment of ", stringify!(cryptoinfo_pattern_t)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::())).encryptBlocks as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr).encryptBlocks) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24675,7 +24585,7 @@ fn bindgen_test_layout_cryptoinfo_pattern_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).skipBlocks as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).skipBlocks) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -24825,6 +24735,8 @@ pub struct AMediaDrmByteArray { } #[test] fn bindgen_test_layout_AMediaDrmByteArray() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -24836,7 +24748,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { concat!("Alignment of ", stringify!(AMediaDrmByteArray)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).ptr as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24846,7 +24758,7 @@ fn bindgen_test_layout_AMediaDrmByteArray() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).length as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24917,6 +24829,9 @@ pub struct AMediaDrmKeyValuePair { } #[test] fn bindgen_test_layout_AMediaDrmKeyValuePair() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 16usize, @@ -24928,7 +24843,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { concat!("Alignment of ", stringify!(AMediaDrmKeyValuePair)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mKey as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mKey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24938,7 +24853,7 @@ fn bindgen_test_layout_AMediaDrmKeyValuePair() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).mValue as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mValue) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -24976,6 +24891,8 @@ pub struct AMediaDrmKeyStatus { } #[test] fn bindgen_test_layout_AMediaDrmKeyStatus() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 24usize, @@ -24987,7 +24904,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { concat!("Alignment of ", stringify!(AMediaDrmKeyStatus)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyId as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyId) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -24997,7 +24914,7 @@ fn bindgen_test_layout_AMediaDrmKeyStatus() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).keyType as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyType) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -25335,6 +25252,8 @@ pub struct PsshEntry { } #[test] fn bindgen_test_layout_PsshEntry() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 32usize, @@ -25346,7 +25265,7 @@ fn bindgen_test_layout_PsshEntry() { concat!("Alignment of ", stringify!(PsshEntry)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).uuid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).uuid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -25356,7 +25275,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).datalen as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).datalen) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -25366,7 +25285,7 @@ fn bindgen_test_layout_PsshEntry() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).data as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -25384,6 +25303,8 @@ pub struct PsshInfo { } #[test] fn bindgen_test_layout_PsshInfo() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 8usize, @@ -25395,7 +25316,7 @@ fn bindgen_test_layout_PsshInfo() { concat!("Alignment of ", stringify!(PsshInfo)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).numentries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).numentries) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -25405,7 +25326,7 @@ fn bindgen_test_layout_PsshInfo() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).entries as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).entries) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -25423,9 +25344,9 @@ extern "C" { arg1: *mut AMediaExtractor, ) -> *mut AMediaCodecCryptoInfo; } -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: ::std::os::raw::c_uint = 1; -pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_68 = ::std::os::raw::c_uint; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_SYNC: _bindgen_ty_70 = 1; +pub const AMEDIAEXTRACTOR_SAMPLE_FLAG_ENCRYPTED: _bindgen_ty_70 = 2; +pub type _bindgen_ty_70 = ::std::os::raw::c_uint; extern "C" { pub fn AMediaExtractor_getFileFormat(arg1: *mut AMediaExtractor) -> *mut AMediaFormat; } @@ -25523,6 +25444,8 @@ pub struct __va_list_tag { } #[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, @@ -25534,7 +25457,7 @@ fn bindgen_test_layout___va_list_tag() { concat!("Alignment of ", stringify!(__va_list_tag)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -25544,7 +25467,7 @@ fn bindgen_test_layout___va_list_tag() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -25554,7 +25477,7 @@ fn bindgen_test_layout___va_list_tag() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -25564,7 +25487,7 @@ fn bindgen_test_layout___va_list_tag() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", From 8df886a800d26d055fd7ea0c0f66bc7d0c2d0613 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 14:19:02 +0900 Subject: [PATCH 05/50] ndk: Add bindings for AFont --- ndk/src/font.rs | 187 ++++++++++++++++++++++++++++++++++++++++++++++++ ndk/src/lib.rs | 1 + 2 files changed, 188 insertions(+) create mode 100644 ndk/src/font.rs diff --git a/ndk/src/font.rs b/ndk/src/font.rs new file mode 100644 index 00000000..1e0f0c39 --- /dev/null +++ b/ndk/src/font.rs @@ -0,0 +1,187 @@ +//! Bindings for [`AFont`], [`AFontMatcher`], and [`ASystemFontIterator`] +//! +//! [`AFont`]: https://developer.android.com/ndk/reference/group/font#afont_close +//! [`AFontMatcher`]: https://developer.android.com/ndk/reference/group/font#afontmatcher_create +//! [`ASystemFontIterator`]: https://developer.android.com/ndk/reference/group/font#asystemfontiterator_open + +use std::convert::TryFrom; +use std::ffi::{CStr, OsStr}; +use std::fmt; +use std::os::unix::prelude::OsStrExt; +use std::path::Path; +use std::ptr::NonNull; + +/// Encapsulates font weights. +/// +/// See the followings for more details: +/// - [`AFONT_WEIGHT_*`] +/// - [`Font::weight`] +/// +/// [`AFONT_WEIGHT_*`]: https://developer.android.com/ndk/reference/group/font#anonymous-enum-33 +#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)] +pub struct FontWeight(u16); + +impl FontWeight { + pub const fn new(value: u16) -> Option { + if 0 < value && value <= 1000 { + Some(Self(value)) + } else { + None + } + } + + pub const fn value(&self) -> u16 { + self.0 + } + + pub const THIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_THIN as u16); + pub const EXTRA_LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_EXTRA_LIGHT as u16); + pub const LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_LIGHT as u16); + pub const NORMAL: FontWeight = FontWeight(ffi::AFONT_WEIGHT_NORMAL as u16); + pub const MEDIUM: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MEDIUM as u16); + pub const SEMI_BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_SEMI_BOLD as u16); + pub const BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_BOLD as u16); + pub const EXTRA_BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_EXTRA_BOLD as u16); + pub const BLACK: FontWeight = FontWeight(ffi::AFONT_WEIGHT_BLACK as u16); + pub const MAX: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MAX as u16); +} + +/// The error type returned when an invalie font weight value is passed. +#[derive(Debug)] +pub struct TryFromU16Error(()); + +impl fmt::Display for TryFromU16Error { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + write!( + fmt, + "Font weight must be positive and less than or equal to 1000" + ) + } +} + +impl std::error::Error for TryFromU16Error {} + +impl TryFrom for FontWeight { + type Error = TryFromU16Error; + + fn try_from(value: u16) -> Result { + FontWeight::new(value).ok_or(TryFromU16Error(())) + } +} + +/// A native [`AFont *`] +/// +/// [`AFont *`]: https://developer.android.com/ndk/reference/group/font#afont_close +#[cfg(feature = "api-level-29")] +#[derive(Debug)] +pub struct Font { + ptr: NonNull, +} + +#[cfg(feature = "api-level-29")] +impl Font { + /// Create an `Font` from a pointer + /// + /// # Safety + /// By calling this function, you assert that the pointer is a valid pointer to a native + /// `AFont`. + pub unsafe fn from_ptr(ptr: NonNull) -> Self { + Self { ptr } + } + + /// Returns the pointer to the native `AFont`. + pub fn ptr(&self) -> NonNull { + self.ptr + } + + /// Return a count of font variation settings associated with the current font. + /// + /// The font variation settings are provided as multiple tag-values pairs. + /// + /// For example, bold italic font may have following font variation settings: 'wght' 700, + /// 'slnt' -12. In this case, [`Font::axis_count`] returns 2 and [`Font::axis_tag_at`] and + /// [`Font::axis_value_at`] will return following values. + pub fn axis_count(&self) -> usize { + unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) as usize } + } + + /// Return an OpenType axis tag associated with the current font. + /// + /// See [`Font::axis_count`] for more details. + pub fn axis_tag_at(&self, idx: usize) -> u32 { + unsafe { ffi::AFont_getAxisTag(self.ptr.as_ptr(), idx as u32) } + } + + /// Return an OpenType axis value associated with the current font. + /// + /// See [`Font::axis_count`] for more details. + pub fn axis_value_at(&self, idx: usize) -> f32 { + unsafe { ffi::AFont_getAxisValue(self.ptr.as_ptr(), idx as u32) } + } + + /// Return a font collection index value associated with the current font. + /// + /// In case the target font file is a font collection (e.g. .ttc or .otc), this returns a non + /// negative value as an font offset in the collection. This always returns 0 if the target font + /// file is a regular font. + pub fn collection_index(&self) -> usize { + unsafe { ffi::AFont_getCollectionIndex(self.ptr.as_ptr()) as usize } + } + + /// Return an absolute path to the current font file. + /// + /// Here is a list of font formats returned by this method: + /// + /// - OpenType + /// - OpenType Font Collection + /// - TrueType + /// - TrueType Collection + /// + /// The file extension could be one of *.otf, *.ttf, *.otc or *.ttc. + /// The font file returned is guaranteed to be opened with `O_RDONLY`. + pub fn path(&self) -> &Path { + let path = unsafe { CStr::from_ptr(ffi::AFont_getFontFilePath(self.ptr.as_ptr())) }; + OsStr::from_bytes(path.to_bytes()).as_ref() + } + + /// Return a IETF BCP47 compliant language tag associated with the current font. + /// + /// For information about IETF BCP47, read [`Locale.forLanguageTag(java.lang.String)`]. + /// + /// [`Locale.forLanguageTag(java.lang.String)`]: https://developer.android.com/reference/java/util/Locale.html#forLanguageTag(java.lang.String) + pub fn locale(&self) -> &CStr { + unsafe { CStr::from_ptr(ffi::AFont_getLocale(self.ptr.as_ptr())) } + } + + /// Return a weight value associated with the current font. + /// + /// The weight values are positive and less than or equal to 1000. Here are pairs of the common + /// names and their values. + /// + /// | Value | Name | NDK Definition | + /// | ----- | ------------------------- | --------------------------- | + /// | 100 | Thin | [`FontWeight::THIN`] | + /// | 200 | Extra Light (Ultra Light) | [`FontWeight::EXTRA_LIGHT`] | + /// | 300 | Light | [`FontWeight::LIGHT`] | + /// | 400 | Normal (Regular) | [`FontWeight::NORMAL`] | + /// | 500 | Medium | [`FontWeight::MEDIUM`] | + /// | 600 | Semi Bold (Demi Bold) | [`FontWeight::SEMI_BOLD`] | + /// | 700 | Bold | [`FontWeight::BOLD`] | + /// | 800 | Extra Bold (Ultra Bold) | [`FontWeight::EXTRA_BOLD`] | + /// | 900 | Black (Heavy) | [`FontWeight::BLACK`] | + pub fn weight(&self) -> FontWeight { + FontWeight(unsafe { ffi::AFont_getWeight(self.ptr.as_ptr()) }) + } + + /// Return true if the current font is italic, otherwise returns false. + pub fn is_italic(&self) -> bool { + unsafe { ffi::AFont_isItalic(self.ptr.as_ptr()) } + } +} + +#[cfg(feature = "api-level-29")] +impl Drop for Font { + fn drop(&mut self) { + unsafe { ffi::AFont_close(self.ptr.as_ptr()) } + } +} diff --git a/ndk/src/lib.rs b/ndk/src/lib.rs index 00a69da0..4aabaf64 100644 --- a/ndk/src/lib.rs +++ b/ndk/src/lib.rs @@ -11,6 +11,7 @@ pub mod audio; pub mod bitmap; pub mod configuration; pub mod event; +pub mod font; pub mod hardware_buffer; pub mod hardware_buffer_format; pub mod input_queue; From c6e2a080cc85b113da5f90c1e7381369ec412bbf Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 14:39:47 +0900 Subject: [PATCH 06/50] Add bindings for AFontMatcher --- ndk/src/font.rs | 90 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 84 insertions(+), 6 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 1e0f0c39..85c45376 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -14,8 +14,8 @@ use std::ptr::NonNull; /// Encapsulates font weights. /// /// See the followings for more details: -/// - [`AFONT_WEIGHT_*`] -/// - [`Font::weight`] +/// * [`AFONT_WEIGHT_*`] +/// * [`Font::weight`] /// /// [`AFONT_WEIGHT_*`]: https://developer.android.com/ndk/reference/group/font#anonymous-enum-33 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)] @@ -132,10 +132,10 @@ impl Font { /// /// Here is a list of font formats returned by this method: /// - /// - OpenType - /// - OpenType Font Collection - /// - TrueType - /// - TrueType Collection + /// * OpenType + /// * OpenType Font Collection + /// * TrueType + /// * TrueType Collection /// /// The file extension could be one of *.otf, *.ttf, *.otc or *.ttc. /// The font file returned is guaranteed to be opened with `O_RDONLY`. @@ -185,3 +185,81 @@ impl Drop for Font { unsafe { ffi::AFont_close(self.ptr.as_ptr()) } } } + +/// Encapsulates [`AFAMILY_VARIANT_*`]. +/// +/// [`AFAMILY_VARIANT_*`]: https://developer.android.com/ndk/reference/group/font#group___font_1gga96a58e29e8dbf2b5bdeb775cba46556ea662aafc7016e35d6758da93416fc0833 +#[repr(u32)] +#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] +#[allow(clippy::unnecessary_cast)] +pub enum FamilyVariant { + Compact = ffi::AFAMILY_VARIANT_COMPACT as u32, + Default = ffi::AFAMILY_VARIANT_DEFAULT as u32, + Elegant = ffi::AFAMILY_VARIANT_ELEGANT as u32, +} + +/// A native [`AFontMatcher *`] +/// +/// [`AFontMatcher *`]: https://developer.android.com/ndk/reference/group/font#afontmatcher_create +#[cfg(feature = "api-level-29")] +#[derive(Debug)] +pub struct FontMatcher { + ptr: NonNull, +} + +#[cfg(feature = "api-level-29")] +impl FontMatcher { + /// Create an `FontMatcher` from a pointer + /// + /// # Safety + /// By calling this function, you assert that the pointer is a valid pointer to a native + /// `AFontMatcher`. + pub unsafe fn from_ptr(ptr: NonNull) -> Self { + Self { ptr } + } + + /// Returns the pointer to the native `AFontMatcher`. + pub fn ptr(&self) -> NonNull { + self.ptr + } + + /// Select the best font from given parameters. + /// + /// Creates a new [`FontMatcher`] object. + pub fn new() -> Self { + NonNull::new(unsafe { ffi::AFontMatcher_create() }) + .map(|p| unsafe { FontMatcher::from_ptr(p) }) + .unwrap() + } + + /// Set family variant to matcher. + /// + /// If this function is not called, the matcher performs with [`FamilyVariant::Default`]. + pub fn set_family_variant(&mut self, family_variant: FamilyVariant) { + unsafe { ffi::AFontMatcher_setFamilyVariant(self.ptr.as_ptr(), family_variant as u32) } + } + + /// Set font locales to matcher. + /// + /// If this function is not called, the matcher performs with empty locale list. + /// + /// # Arguments + /// * `language_tags`: a null character terminated comma separated IETF BCP47 compliant language tags. + pub fn set_locales(&mut self, language_tags: &CStr) { + unsafe { ffi::AFontMatcher_setLocales(self.ptr.as_ptr(), language_tags.as_ptr()) } + } + + /// Set font style to matcher. + /// + /// If this function is not called, the matcher performs with [`FontWeight::NORMAL`] with non-italic style. + pub fn set_style(&mut self, weight: FontWeight, italic: bool) { + unsafe { ffi::AFontMatcher_setStyle(self.ptr.as_ptr(), weight.value(), italic) } + } +} + +#[cfg(feature = "api-level-29")] +impl Drop for FontMatcher { + fn drop(&mut self) { + unsafe { ffi::AFontMatcher_destroy(self.ptr.as_ptr()) } + } +} From 1ef2d6b8cf150a672b43be51e9e4a4da9ca81d46 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 14:45:33 +0900 Subject: [PATCH 07/50] Add bindings for ASystemFontIterator --- ndk/src/font.rs | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 85c45376..d8876cb0 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -263,3 +263,53 @@ impl Drop for FontMatcher { unsafe { ffi::AFontMatcher_destroy(self.ptr.as_ptr()) } } } + +/// A native [`ASystemFontIterator *`] +/// +/// [`ASystemFontIterator *`]: https://developer.android.com/ndk/reference/group/font#asystemfontiterator_open +#[cfg(feature = "api-level-29")] +#[derive(Debug)] +pub struct SystemFontIterator { + ptr: NonNull, +} + +#[cfg(feature = "api-level-29")] +impl SystemFontIterator { + /// Create an `SystemFontIterator` from a pointer + /// + /// # Safety + /// By calling this function, you assert that the pointer is a valid pointer to a native + /// `ASystemFontIterator`. + pub unsafe fn from_ptr(ptr: NonNull) -> Self { + Self { ptr } + } + + /// Returns the pointer to the native `ASystemFontIterator`. + pub fn ptr(&self) -> NonNull { + self.ptr + } + + /// Create a system font iterator. + pub fn new() -> Self { + NonNull::new(unsafe { ffi::ASystemFontIterator_open() }) + .map(|p| unsafe { SystemFontIterator::from_ptr(p) }) + .unwrap() + } +} + +#[cfg(feature = "api-level-29")] +impl Iterator for SystemFontIterator { + type Item = Font; + + fn next(&mut self) -> Option { + NonNull::new(unsafe { ffi::ASystemFontIterator_next(self.ptr.as_ptr()) }) + .map(|p| unsafe { Font::from_ptr(p) }) + } +} + +#[cfg(feature = "api-level-29")] +impl Drop for SystemFontIterator { + fn drop(&mut self) { + unsafe { ffi::ASystemFontIterator_close(self.ptr.as_ptr()) } + } +} From 6277dcc276694be774180d98558dde79be761855 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 14:45:50 +0900 Subject: [PATCH 08/50] ndk: Reflect Font-related changes to CHANGELOG --- ndk/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ndk/CHANGELOG.md b/ndk/CHANGELOG.md index dad20045..227dedfd 100644 --- a/ndk/CHANGELOG.md +++ b/ndk/CHANGELOG.md @@ -5,6 +5,7 @@ - asset: Use entire asset length when mapping buffer. (#387) - Bump MSRV to 1.64 for `raw-window-handle 0.5.1`. (#388) - Bump optional `jni` dependency for doctest example from `0.19` to `0.21`. (#390) +- Add `Font` bindings. # 0.7.0 (2022-07-24) From 37a977991a6d9123e69beff3e63c11104207956d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 16:42:54 +0900 Subject: [PATCH 09/50] ndk: Implement Display for FontWeight --- ndk/src/font.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index d8876cb0..98333568 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -46,6 +46,23 @@ impl FontWeight { pub const MAX: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MAX as u16); } +impl fmt::Display for FontWeight { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match *self { + FontWeight::THIN => writeln!(f, "Thin"), + FontWeight::EXTRA_LIGHT => writeln!(f, "Extra Light (Ultra Light)"), + FontWeight::LIGHT => writeln!(f, "Light"), + FontWeight::NORMAL => writeln!(f, "Normal (Regular)"), + FontWeight::MEDIUM => writeln!(f, "Medium"), + FontWeight::SEMI_BOLD => writeln!(f, "Semi Bold (Demi Bold)"), + FontWeight::BOLD => writeln!(f, "Bold"), + FontWeight::EXTRA_BOLD => writeln!(f, "Extra Bold (Ultra Bold)"), + FontWeight::BLACK => writeln!(f, "Black (Heavy)"), + _ => writeln!(f, "{}", self.0), + } + } +} + /// The error type returned when an invalie font weight value is passed. #[derive(Debug)] pub struct TryFromU16Error(()); From 8d5bd40c86d34efd52b6c8ba0bd9c1c93d1d2c0e Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 16:55:49 +0900 Subject: [PATCH 10/50] fix(ndk): Handle nullptr returning by AFont_getLocale --- ndk/src/font.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 98333568..60460aec 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -166,8 +166,13 @@ impl Font { /// For information about IETF BCP47, read [`Locale.forLanguageTag(java.lang.String)`]. /// /// [`Locale.forLanguageTag(java.lang.String)`]: https://developer.android.com/reference/java/util/Locale.html#forLanguageTag(java.lang.String) - pub fn locale(&self) -> &CStr { - unsafe { CStr::from_ptr(ffi::AFont_getLocale(self.ptr.as_ptr())) } + pub fn locale(&self) -> Option<&CStr> { + let ptr = unsafe { ffi::AFont_getLocale(self.ptr.as_ptr()) }; + if ptr.is_null() { + None + } else { + Some(unsafe { CStr::from_ptr(ptr) }) + } } /// Return a weight value associated with the current font. From 1a84524e351b0aaa9618d40cc111ba409daadab6 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 17:25:26 +0900 Subject: [PATCH 11/50] chore(ndk): Fix some doc-comments in mod font --- ndk/src/font.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 60460aec..a18c0fdc 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -11,7 +11,7 @@ use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; -/// Encapsulates font weights. +/// An integer holding a valid font weight value between 1 and 1000. /// /// See the followings for more details: /// * [`AFONT_WEIGHT_*`] @@ -208,7 +208,7 @@ impl Drop for Font { } } -/// Encapsulates [`AFAMILY_VARIANT_*`]. +/// Corresponds to [`AFAMILY_VARIANT_*`]. /// /// [`AFAMILY_VARIANT_*`]: https://developer.android.com/ndk/reference/group/font#group___font_1gga96a58e29e8dbf2b5bdeb775cba46556ea662aafc7016e35d6758da93416fc0833 #[repr(u32)] From d89450819c0b0bd58675e1b3cc3978587d30a609 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 17:25:36 +0900 Subject: [PATCH 12/50] feat(ndk): Add AxisTag to mod font --- ndk/src/font.rs | 75 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 68 insertions(+), 7 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index a18c0fdc..1c415502 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -22,11 +22,11 @@ use std::ptr::NonNull; pub struct FontWeight(u16); impl FontWeight { - pub const fn new(value: u16) -> Option { + pub const fn new(value: u16) -> std::result::Result { if 0 < value && value <= 1000 { - Some(Self(value)) + Ok(Self(value)) } else { - None + Err(TryFromU16Error(())) } } @@ -71,7 +71,7 @@ impl fmt::Display for TryFromU16Error { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, - "Font weight must be positive and less than or equal to 1000" + "font weight must be positive and less than or equal to 1000" ) } } @@ -82,10 +82,69 @@ impl TryFrom for FontWeight { type Error = TryFromU16Error; fn try_from(value: u16) -> Result { - FontWeight::new(value).ok_or(TryFromU16Error(())) + FontWeight::new(value) + } +} + +/// A 4-byte integer representing an OpenType axis tag. +#[derive(Clone, Copy, PartialEq, Eq)] +pub struct AxisTag(u32); + +impl AxisTag { + pub const fn from_be(value: u32) -> std::result::Result { + // Each byte in a tag must be in the range 0x20 to 0x7E. + // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. + macro_rules! check_in_valid_range { + ($($byte: expr),+) => { + $( + if !(0x20 <= ($byte) && ($byte) <= 0x7E) { + return Err(TryFromU32Error(())); + } + )+ + }; + } + + let bytes = value.to_be_bytes(); + check_in_valid_range!(bytes[0], bytes[1], bytes[2], bytes[3]); + + Ok(Self(value)) + } +} + +impl fmt::Display for AxisTag { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let bytes = self.0.to_be_bytes(); + write!( + f, + "{}{}{}{}", + bytes[0] as char, bytes[1] as char, bytes[2] as char, bytes[3] as char + ) + } +} + +impl fmt::Debug for AxisTag { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "AxisTag(")?; + fmt::Display::fmt(self, f)?; + write!(f, " {:#x})", self.0) + } +} + +/// The error type returned when an invalie font weight value is passed. +#[derive(Debug)] +pub struct TryFromU32Error(()); + +impl fmt::Display for TryFromU32Error { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + write!( + fmt, + "each byte in an axis tag must be in the range 0x20 to 0x7E" + ) } } +impl std::error::Error for TryFromU32Error {} + /// A native [`AFont *`] /// /// [`AFont *`]: https://developer.android.com/ndk/reference/group/font#afont_close @@ -125,8 +184,10 @@ impl Font { /// Return an OpenType axis tag associated with the current font. /// /// See [`Font::axis_count`] for more details. - pub fn axis_tag_at(&self, idx: usize) -> u32 { - unsafe { ffi::AFont_getAxisTag(self.ptr.as_ptr(), idx as u32) } + pub fn axis_tag_at(&self, idx: usize) -> AxisTag { + // Android returns Axis Tag in big-endian. + // See https://cs.android.com/android/platform/superproject/+/refs/heads/master:frameworks/base/native/android/system_fonts.cpp;l=197 for details + AxisTag(unsafe { ffi::AFont_getAxisTag(self.ptr.as_ptr(), idx as u32) }) } /// Return an OpenType axis value associated with the current font. From cbaf7ce4131378d271e8897abbbda81b2acd224b Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 17:32:02 +0900 Subject: [PATCH 13/50] chore(ndk): Add doc comments to FamilyVariant --- ndk/src/font.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 1c415502..49ad6612 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -276,8 +276,13 @@ impl Drop for Font { #[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] #[allow(clippy::unnecessary_cast)] pub enum FamilyVariant { + /// A family variant value for the compact font family variant. + /// The compact font family has Latin-based vertical metrics. Compact = ffi::AFAMILY_VARIANT_COMPACT as u32, + /// A family variant value for the system default variant. Default = ffi::AFAMILY_VARIANT_DEFAULT as u32, + /// A family variant value for the elegant font family variant. + /// The elegant font family may have larger vertical metrics than Latin font. Elegant = ffi::AFAMILY_VARIANT_ELEGANT as u32, } From 702e16a7301e6e98cf44a91789f62afbacd1bfad Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 15 Jun 2023 17:35:28 +0900 Subject: [PATCH 14/50] fix(ndk): Allow SystemFontIterator::new return optional value --- ndk/src/font.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 49ad6612..97bb9429 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -378,10 +378,9 @@ impl SystemFontIterator { } /// Create a system font iterator. - pub fn new() -> Self { + pub fn new() -> Option { NonNull::new(unsafe { ffi::ASystemFontIterator_open() }) .map(|p| unsafe { SystemFontIterator::from_ptr(p) }) - .unwrap() } } From 975f7dfcd2bbb2c4ba8827f7cd6fec23911066c3 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 16 Jun 2023 15:54:12 +0900 Subject: [PATCH 15/50] fix(ndk): Remove unnecessary casts from font.rs --- ndk/src/font.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 97bb9429..a5dfe56c 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -178,7 +178,7 @@ impl Font { /// 'slnt' -12. In this case, [`Font::axis_count`] returns 2 and [`Font::axis_tag_at`] and /// [`Font::axis_value_at`] will return following values. pub fn axis_count(&self) -> usize { - unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) as usize } + unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) } } /// Return an OpenType axis tag associated with the current font. @@ -203,7 +203,7 @@ impl Font { /// negative value as an font offset in the collection. This always returns 0 if the target font /// file is a regular font. pub fn collection_index(&self) -> usize { - unsafe { ffi::AFont_getCollectionIndex(self.ptr.as_ptr()) as usize } + unsafe { ffi::AFont_getCollectionIndex(self.ptr.as_ptr()) } } /// Return an absolute path to the current font file. @@ -274,16 +274,15 @@ impl Drop for Font { /// [`AFAMILY_VARIANT_*`]: https://developer.android.com/ndk/reference/group/font#group___font_1gga96a58e29e8dbf2b5bdeb775cba46556ea662aafc7016e35d6758da93416fc0833 #[repr(u32)] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] -#[allow(clippy::unnecessary_cast)] pub enum FamilyVariant { /// A family variant value for the compact font family variant. /// The compact font family has Latin-based vertical metrics. - Compact = ffi::AFAMILY_VARIANT_COMPACT as u32, + Compact = ffi::AFAMILY_VARIANT_COMPACT as _, /// A family variant value for the system default variant. - Default = ffi::AFAMILY_VARIANT_DEFAULT as u32, + Default = ffi::AFAMILY_VARIANT_DEFAULT as _, /// A family variant value for the elegant font family variant. /// The elegant font family may have larger vertical metrics than Latin font. - Elegant = ffi::AFAMILY_VARIANT_ELEGANT as u32, + Elegant = ffi::AFAMILY_VARIANT_ELEGANT as _, } /// A native [`AFontMatcher *`] From 4534087068e0ade31529b5ec23bbe5a04df925e5 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 16 Jun 2023 17:54:00 +0900 Subject: [PATCH 16/50] fix(ndk): Replace unwrap with expect with detailed message --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index a5dfe56c..cc36c92d 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -316,7 +316,7 @@ impl FontMatcher { pub fn new() -> Self { NonNull::new(unsafe { ffi::AFontMatcher_create() }) .map(|p| unsafe { FontMatcher::from_ptr(p) }) - .unwrap() + .expect("AFontMatcher_create returned NULL") } /// Set family variant to matcher. From bcf3482b52d2e35a447e453ecb39ccdcc23c3450 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:17:04 +0900 Subject: [PATCH 17/50] Update ndk-sys/CHANGELOG.md Co-authored-by: Marijn Suijten --- ndk-sys/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ndk-sys/CHANGELOG.md b/ndk-sys/CHANGELOG.md index 1611eae7..f44e9ea8 100644 --- a/ndk-sys/CHANGELOG.md +++ b/ndk-sys/CHANGELOG.md @@ -1,8 +1,7 @@ # Unreleased -- Detect OS from `generate_bindings.sh` and use proper NDK Host Tag. (#397) -- Add `font`, `font_matcher`, `system_fonts` bindings. (#397) - **Breaking:** Regenerate against NDK `25.2.9519653` with `rust-bindgen 0.66.0`. (#324, #370) +- Add `font`, `font_matcher`, `system_fonts` bindings. (#397) # 0.4.1 (2022-11-23) From b60b8eb3ae59fe19f9284495ed976003a712fa84 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:17:36 +0900 Subject: [PATCH 18/50] Update ndk/CHANGELOG.md Co-authored-by: Marijn Suijten --- ndk/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/CHANGELOG.md b/ndk/CHANGELOG.md index f06641eb..7ff1babe 100644 --- a/ndk/CHANGELOG.md +++ b/ndk/CHANGELOG.md @@ -5,9 +5,9 @@ - asset: Use entire asset length when mapping buffer. (#387) - Bump MSRV to 1.64 for `raw-window-handle 0.5.1`. (#388) - Bump optional `jni` dependency for doctest example from `0.19` to `0.21`. (#390) -- Add `Font` bindings. (#397) - **Breaking:** Upgrade to [`ndk-sys 0.5.0`](../ndk-sys/CHANGELOG.md#050-TODO). (#370) - **Breaking:** Upgrade `bitflags` crate from `1` to `2`. (#394) +- Add `Font` bindings. (#397) - **Breaking:** Upgrade `num_enum` crate from `0.5.1` to `0.6`. (#398) # 0.7.0 (2022-07-24) From dbc640f59de5342fe1f42cddf9ceae71697138d4 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:18:04 +0900 Subject: [PATCH 19/50] Update ndk/src/font.rs Co-authored-by: Marijn Suijten --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index cc36c92d..a57ee714 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -13,7 +13,7 @@ use std::ptr::NonNull; /// An integer holding a valid font weight value between 1 and 1000. /// -/// See the followings for more details: +/// See the following definitions for more details: /// * [`AFONT_WEIGHT_*`] /// * [`Font::weight`] /// From ce7cc84ce3f4cf67621857b870c1bb28b568cbbe Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:35:06 +0900 Subject: [PATCH 20/50] Update derive order in ndk/src/font.rs Co-authored-by: Marijn Suijten --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index a57ee714..ec3d672b 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -18,7 +18,7 @@ use std::ptr::NonNull; /// * [`Font::weight`] /// /// [`AFONT_WEIGHT_*`]: https://developer.android.com/ndk/reference/group/font#anonymous-enum-33 -#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] pub struct FontWeight(u16); impl FontWeight { From d8104f84fab2649ad90fe94b6f38f531e789a5d4 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:41:04 +0900 Subject: [PATCH 21/50] ndk: Link AFont to the page itself --- ndk/src/font.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index ec3d672b..c258bf09 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -1,6 +1,6 @@ //! Bindings for [`AFont`], [`AFontMatcher`], and [`ASystemFontIterator`] //! -//! [`AFont`]: https://developer.android.com/ndk/reference/group/font#afont_close +//! [`AFont`]: https://developer.android.com/ndk/reference/group/font //! [`AFontMatcher`]: https://developer.android.com/ndk/reference/group/font#afontmatcher_create //! [`ASystemFontIterator`]: https://developer.android.com/ndk/reference/group/font#asystemfontiterator_open @@ -147,7 +147,7 @@ impl std::error::Error for TryFromU32Error {} /// A native [`AFont *`] /// -/// [`AFont *`]: https://developer.android.com/ndk/reference/group/font#afont_close +/// [`AFont *`]: https://developer.android.com/ndk/reference/group/font #[cfg(feature = "api-level-29")] #[derive(Debug)] pub struct Font { From a4cc283cd080fd3b08bdc2a4060237834935218b Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 14:42:30 +0900 Subject: [PATCH 22/50] `use std::result::Result;` in ndk/src/font.rs --- ndk/src/font.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index c258bf09..0d2a2764 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -10,6 +10,7 @@ use std::fmt; use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; +use std::result::Result; /// An integer holding a valid font weight value between 1 and 1000. /// @@ -22,7 +23,7 @@ use std::ptr::NonNull; pub struct FontWeight(u16); impl FontWeight { - pub const fn new(value: u16) -> std::result::Result { + pub const fn new(value: u16) -> Result { if 0 < value && value <= 1000 { Ok(Self(value)) } else { @@ -91,7 +92,7 @@ impl TryFrom for FontWeight { pub struct AxisTag(u32); impl AxisTag { - pub const fn from_be(value: u32) -> std::result::Result { + pub const fn from_be(value: u32) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. macro_rules! check_in_valid_range { From a92c0ce1d191d712773e419e88b730b84aa7e345 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 15:52:18 +0900 Subject: [PATCH 23/50] Fix documentation of ndk/src/font.rs --- ndk/src/font.rs | 88 +++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 46 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 0d2a2764..de818c68 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -64,7 +64,7 @@ impl fmt::Display for FontWeight { } } -/// The error type returned when an invalie font weight value is passed. +/// The error type returned when an invalid font weight value is passed. #[derive(Debug)] pub struct TryFromU16Error(()); @@ -131,7 +131,7 @@ impl fmt::Debug for AxisTag { } } -/// The error type returned when an invalie font weight value is passed. +/// The error type returned when an invalid axis tag value is passed. #[derive(Debug)] pub struct TryFromU32Error(()); @@ -157,57 +157,56 @@ pub struct Font { #[cfg(feature = "api-level-29")] impl Font { - /// Create an `Font` from a pointer + /// Creates a [`Font`] from a pointer. /// /// # Safety - /// By calling this function, you assert that the pointer is a valid pointer to a native - /// `AFont`. + /// `ptr` must be a valid owning pointer to an Android [`ffi::AFont`]. pub unsafe fn from_ptr(ptr: NonNull) -> Self { Self { ptr } } - /// Returns the pointer to the native `AFont`. + /// Returns s the pointer to the native [`ffi::AFont`]. pub fn ptr(&self) -> NonNull { self.ptr } - /// Return a count of font variation settings associated with the current font. + /// Returns a count of font variation settings associated with the current font. /// - /// The font variation settings are provided as multiple tag-values pairs. + /// The font variation settings are provided as multiple tag-value pairs. /// /// For example, bold italic font may have following font variation settings: 'wght' 700, - /// 'slnt' -12. In this case, [`Font::axis_count`] returns 2 and [`Font::axis_tag_at`] and - /// [`Font::axis_value_at`] will return following values. + /// 'slnt' -12. In this case, [`Font::axis_count()`] returns 2 and [`Font::axis_tag_at()`] and + /// [`Font::axis_value_at()`] will return following values. pub fn axis_count(&self) -> usize { unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) } } - /// Return an OpenType axis tag associated with the current font. + /// Returns an OpenType axis tag associated with the current font. /// - /// See [`Font::axis_count`] for more details. + /// See [`Font::axis_count()`] for more details. pub fn axis_tag_at(&self, idx: usize) -> AxisTag { // Android returns Axis Tag in big-endian. // See https://cs.android.com/android/platform/superproject/+/refs/heads/master:frameworks/base/native/android/system_fonts.cpp;l=197 for details AxisTag(unsafe { ffi::AFont_getAxisTag(self.ptr.as_ptr(), idx as u32) }) } - /// Return an OpenType axis value associated with the current font. + /// Returns an OpenType axis value associated with the current font. /// - /// See [`Font::axis_count`] for more details. + /// See [`Font::axis_count()`] for more details. pub fn axis_value_at(&self, idx: usize) -> f32 { unsafe { ffi::AFont_getAxisValue(self.ptr.as_ptr(), idx as u32) } } - /// Return a font collection index value associated with the current font. + /// Returns a font collection index value associated with the current font. /// - /// In case the target font file is a font collection (e.g. .ttc or .otc), this returns a non - /// negative value as an font offset in the collection. This always returns 0 if the target font - /// file is a regular font. + /// In case the target font file is a font collection (e.g. `.ttc` or `.otc`), this returns a + /// non negative value as a font offset in the collection. This always returns 0 if the target + /// font file is a regular font. pub fn collection_index(&self) -> usize { unsafe { ffi::AFont_getCollectionIndex(self.ptr.as_ptr()) } } - /// Return an absolute path to the current font file. + /// Returns an absolute path to the current font file. /// /// Here is a list of font formats returned by this method: /// @@ -216,14 +215,14 @@ impl Font { /// * TrueType /// * TrueType Collection /// - /// The file extension could be one of *.otf, *.ttf, *.otc or *.ttc. - /// The font file returned is guaranteed to be opened with `O_RDONLY`. + /// The file extension could be one of `*.otf`, `*.ttf`, `*.otc` or `*.ttc`. + /// The font file specified by the returned path is guaranteed to be opened with `O_RDONLY`. pub fn path(&self) -> &Path { let path = unsafe { CStr::from_ptr(ffi::AFont_getFontFilePath(self.ptr.as_ptr())) }; OsStr::from_bytes(path.to_bytes()).as_ref() } - /// Return a IETF BCP47 compliant language tag associated with the current font. + /// Returns an IETF BCP47 compliant language tag associated with the current font. /// /// For information about IETF BCP47, read [`Locale.forLanguageTag(java.lang.String)`]. /// @@ -237,7 +236,7 @@ impl Font { } } - /// Return a weight value associated with the current font. + /// Returns a weight value associated with the current font. /// /// The weight values are positive and less than or equal to 1000. Here are pairs of the common /// names and their values. @@ -257,7 +256,7 @@ impl Font { FontWeight(unsafe { ffi::AFont_getWeight(self.ptr.as_ptr()) }) } - /// Return true if the current font is italic, otherwise returns false. + /// Returns [`true`] if the current font is italic, otherwise returns [`false`]. pub fn is_italic(&self) -> bool { unsafe { ffi::AFont_isItalic(self.ptr.as_ptr()) } } @@ -297,49 +296,47 @@ pub struct FontMatcher { #[cfg(feature = "api-level-29")] impl FontMatcher { - /// Create an `FontMatcher` from a pointer + /// Creates a [`FontMatcher`] from a pointer. /// /// # Safety - /// By calling this function, you assert that the pointer is a valid pointer to a native - /// `AFontMatcher`. + /// `ptr` must be a valid owning pointer to an Android [`ffi::AFontMatcher`]. pub unsafe fn from_ptr(ptr: NonNull) -> Self { Self { ptr } } - /// Returns the pointer to the native `AFontMatcher`. + /// Returns s the pointer to the native [`ffi::AFontMatcher`]. pub fn ptr(&self) -> NonNull { self.ptr } - /// Select the best font from given parameters. - /// - /// Creates a new [`FontMatcher`] object. + /// Createss a new [`FontMatcher`] object. [`FontMatcher`] selects the best font from parameters + /// set by the user. pub fn new() -> Self { - NonNull::new(unsafe { ffi::AFontMatcher_create() }) - .map(|p| unsafe { FontMatcher::from_ptr(p) }) - .expect("AFontMatcher_create returned NULL") + let ptr = NonNull::new(unsafe { ffi::AFontMatcher_create() }) + .expect("AFontMatcher_create returned NULL"); + unsafe { FontMatcher::from_ptr(ptr) } } - /// Set family variant to matcher. + /// Sets family variant to matcher. /// - /// If this function is not called, the matcher performs with [`FamilyVariant::Default`]. + /// If this function is not called, the match is performed with [`FamilyVariant::Default`]. pub fn set_family_variant(&mut self, family_variant: FamilyVariant) { unsafe { ffi::AFontMatcher_setFamilyVariant(self.ptr.as_ptr(), family_variant as u32) } } - /// Set font locales to matcher. + /// Sets font locales to matcher. /// - /// If this function is not called, the matcher performs with empty locale list. + /// If this function is not called, the match is performed with empty locale list. /// /// # Arguments - /// * `language_tags`: a null character terminated comma separated IETF BCP47 compliant language tags. + /// * `language_tags`: comma separated IETF BCP47 compliant language tags. pub fn set_locales(&mut self, language_tags: &CStr) { unsafe { ffi::AFontMatcher_setLocales(self.ptr.as_ptr(), language_tags.as_ptr()) } } - /// Set font style to matcher. + /// Sets font style to matcher. /// - /// If this function is not called, the matcher performs with [`FontWeight::NORMAL`] with non-italic style. + /// If this function is not called, the match is performed with [`FontWeight::NORMAL`] with non-italic style. pub fn set_style(&mut self, weight: FontWeight, italic: bool) { unsafe { ffi::AFontMatcher_setStyle(self.ptr.as_ptr(), weight.value(), italic) } } @@ -363,21 +360,20 @@ pub struct SystemFontIterator { #[cfg(feature = "api-level-29")] impl SystemFontIterator { - /// Create an `SystemFontIterator` from a pointer + /// Creates an [`SystemFontIterator`] from a pointer. /// /// # Safety - /// By calling this function, you assert that the pointer is a valid pointer to a native - /// `ASystemFontIterator`. + /// `ptr` must be a valid owning pointer to an Android [`ffi::ASystemFontIterator`]. pub unsafe fn from_ptr(ptr: NonNull) -> Self { Self { ptr } } - /// Returns the pointer to the native `ASystemFontIterator`. + /// Returns s the pointer to the native [`ffi::ASystemFontIterator`]. pub fn ptr(&self) -> NonNull { self.ptr } - /// Create a system font iterator. + /// Creates a system font iterator. pub fn new() -> Option { NonNull::new(unsafe { ffi::ASystemFontIterator_open() }) .map(|p| unsafe { SystemFontIterator::from_ptr(p) }) From aeea6865dadb352e6c2409e6ea6abd59427f2a44 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 16:14:07 +0900 Subject: [PATCH 24/50] feat(ndk): Add FontWeight::MIN --- ndk/src/font.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index de818c68..0f9d96ec 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -24,7 +24,7 @@ pub struct FontWeight(u16); impl FontWeight { pub const fn new(value: u16) -> Result { - if 0 < value && value <= 1000 { + if Self::MIN.0 <= value && value <= Self::MAX.0 { Ok(Self(value)) } else { Err(TryFromU16Error(())) @@ -35,6 +35,8 @@ impl FontWeight { self.0 } + // + 1 is to keep consistency between FontWeight and other types like std::num::NonZero* + pub const MIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MIN as u16 + 1); pub const THIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_THIN as u16); pub const EXTRA_LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_EXTRA_LIGHT as u16); pub const LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_LIGHT as u16); From c9c16ed21e8d48d320625d0903d1886946851bde Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 16:27:22 +0900 Subject: [PATCH 25/50] Fix documentation of ndk/src/font.rs --- ndk/src/font.rs | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 0f9d96ec..2f906f0e 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -6,7 +6,7 @@ use std::convert::TryFrom; use std::ffi::{CStr, OsStr}; -use std::fmt; +use std::fmt::{self, Write}; use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; @@ -52,15 +52,15 @@ impl FontWeight { impl fmt::Display for FontWeight { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match *self { - FontWeight::THIN => writeln!(f, "Thin"), - FontWeight::EXTRA_LIGHT => writeln!(f, "Extra Light (Ultra Light)"), - FontWeight::LIGHT => writeln!(f, "Light"), - FontWeight::NORMAL => writeln!(f, "Normal (Regular)"), - FontWeight::MEDIUM => writeln!(f, "Medium"), - FontWeight::SEMI_BOLD => writeln!(f, "Semi Bold (Demi Bold)"), - FontWeight::BOLD => writeln!(f, "Bold"), - FontWeight::EXTRA_BOLD => writeln!(f, "Extra Bold (Ultra Bold)"), - FontWeight::BLACK => writeln!(f, "Black (Heavy)"), + FontWeight::THIN => f.write_str("Thin"), + FontWeight::EXTRA_LIGHT => f.write_str("Extra Light (Ultra Light)"), + FontWeight::LIGHT => f.write_str("Light"), + FontWeight::NORMAL => f.write_str("Normal (Regular)"), + FontWeight::MEDIUM => f.write_str("Medium"), + FontWeight::SEMI_BOLD => f.write_str("Semi Bold (Demi Bold)"), + FontWeight::BOLD => f.write_str("Bold"), + FontWeight::EXTRA_BOLD => f.write_str("Extra Bold (Ultra Bold)"), + FontWeight::BLACK => f.write_str("Black (Heavy)"), _ => writeln!(f, "{}", self.0), } } @@ -117,19 +117,16 @@ impl AxisTag { impl fmt::Display for AxisTag { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let bytes = self.0.to_be_bytes(); - write!( - f, - "{}{}{}{}", - bytes[0] as char, bytes[1] as char, bytes[2] as char, bytes[3] as char - ) + f.write_char(bytes[0] as char)?; + f.write_char(bytes[1] as char)?; + f.write_char(bytes[2] as char)?; + f.write_char(bytes[3] as char) } } impl fmt::Debug for AxisTag { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "AxisTag(")?; - fmt::Display::fmt(self, f)?; - write!(f, " {:#x})", self.0) + write!(f, "AxisTag({} {:#x})", self, self.0) } } @@ -202,7 +199,7 @@ impl Font { /// Returns a font collection index value associated with the current font. /// /// In case the target font file is a font collection (e.g. `.ttc` or `.otc`), this returns a - /// non negative value as a font offset in the collection. This always returns 0 if the target + /// non-negative value as a font offset in the collection. This always returns 0 if the target /// font file is a regular font. pub fn collection_index(&self) -> usize { unsafe { ffi::AFont_getCollectionIndex(self.ptr.as_ptr()) } @@ -311,8 +308,8 @@ impl FontMatcher { self.ptr } - /// Createss a new [`FontMatcher`] object. [`FontMatcher`] selects the best font from parameters - /// set by the user. + /// Creates a new [`FontMatcher`] object. [`FontMatcher`] selects the best font from the + /// parameters set by the user. pub fn new() -> Self { let ptr = NonNull::new(unsafe { ffi::AFontMatcher_create() }) .expect("AFontMatcher_create returned NULL"); From 030b3bef28622dd40fddf259d1172f6c3c6052a9 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 16:40:52 +0900 Subject: [PATCH 26/50] feat(ndk): Add owned -> owned conversions to FontWeight and AxisTag --- ndk/src/font.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 2f906f0e..8bda5639 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -10,7 +10,6 @@ use std::fmt::{self, Write}; use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; -use std::result::Result; /// An integer holding a valid font weight value between 1 and 1000. /// @@ -31,7 +30,7 @@ impl FontWeight { } } - pub const fn value(&self) -> u16 { + pub const fn to_u16(self) -> u16 { self.0 } @@ -112,6 +111,14 @@ impl AxisTag { Ok(Self(value)) } + + pub const fn to_u32(self) -> u32 { + self.0 + } + + pub const fn to_be_bytes(self) -> [u8; 4] { + self.0.to_be_bytes() + } } impl fmt::Display for AxisTag { @@ -337,7 +344,7 @@ impl FontMatcher { /// /// If this function is not called, the match is performed with [`FontWeight::NORMAL`] with non-italic style. pub fn set_style(&mut self, weight: FontWeight, italic: bool) { - unsafe { ffi::AFontMatcher_setStyle(self.ptr.as_ptr(), weight.value(), italic) } + unsafe { ffi::AFontMatcher_setStyle(self.ptr.as_ptr(), weight.to_u16(), italic) } } } From ee22076f2bd8b495fc86922188b84780df1d9944 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 16:46:26 +0900 Subject: [PATCH 27/50] fix(ndk): Wrap the entire font module with cfg --- ndk/src/font.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 8bda5639..7fbc79f6 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -4,6 +4,8 @@ //! [`AFontMatcher`]: https://developer.android.com/ndk/reference/group/font#afontmatcher_create //! [`ASystemFontIterator`]: https://developer.android.com/ndk/reference/group/font#asystemfontiterator_open +#![cfg(feature = "api-level-29")] + use std::convert::TryFrom; use std::ffi::{CStr, OsStr}; use std::fmt::{self, Write}; @@ -155,13 +157,11 @@ impl std::error::Error for TryFromU32Error {} /// A native [`AFont *`] /// /// [`AFont *`]: https://developer.android.com/ndk/reference/group/font -#[cfg(feature = "api-level-29")] #[derive(Debug)] pub struct Font { ptr: NonNull, } -#[cfg(feature = "api-level-29")] impl Font { /// Creates a [`Font`] from a pointer. /// @@ -268,7 +268,6 @@ impl Font { } } -#[cfg(feature = "api-level-29")] impl Drop for Font { fn drop(&mut self) { unsafe { ffi::AFont_close(self.ptr.as_ptr()) } @@ -294,13 +293,11 @@ pub enum FamilyVariant { /// A native [`AFontMatcher *`] /// /// [`AFontMatcher *`]: https://developer.android.com/ndk/reference/group/font#afontmatcher_create -#[cfg(feature = "api-level-29")] #[derive(Debug)] pub struct FontMatcher { ptr: NonNull, } -#[cfg(feature = "api-level-29")] impl FontMatcher { /// Creates a [`FontMatcher`] from a pointer. /// @@ -348,7 +345,6 @@ impl FontMatcher { } } -#[cfg(feature = "api-level-29")] impl Drop for FontMatcher { fn drop(&mut self) { unsafe { ffi::AFontMatcher_destroy(self.ptr.as_ptr()) } @@ -358,13 +354,11 @@ impl Drop for FontMatcher { /// A native [`ASystemFontIterator *`] /// /// [`ASystemFontIterator *`]: https://developer.android.com/ndk/reference/group/font#asystemfontiterator_open -#[cfg(feature = "api-level-29")] #[derive(Debug)] pub struct SystemFontIterator { ptr: NonNull, } -#[cfg(feature = "api-level-29")] impl SystemFontIterator { /// Creates an [`SystemFontIterator`] from a pointer. /// @@ -386,7 +380,6 @@ impl SystemFontIterator { } } -#[cfg(feature = "api-level-29")] impl Iterator for SystemFontIterator { type Item = Font; @@ -396,7 +389,6 @@ impl Iterator for SystemFontIterator { } } -#[cfg(feature = "api-level-29")] impl Drop for SystemFontIterator { fn drop(&mut self) { unsafe { ffi::ASystemFontIterator_close(self.ptr.as_ptr()) } From e43eef1aa2a299065e49db355cc7a6c26cc382bf Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 17:26:58 +0900 Subject: [PATCH 28/50] fix(ndk): Add padding checks to AxisTag --- ndk/src/font.rs | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 7fbc79f6..d61dba8f 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -96,20 +96,32 @@ pub struct AxisTag(u32); impl AxisTag { pub const fn from_be(value: u32) -> Result { - // Each byte in a tag must be in the range 0x20 to 0x7E. + // Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be + // followed by a non-space character. A tag must have one to four non-space characters. // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. - macro_rules! check_in_valid_range { - ($($byte: expr),+) => { - $( - if !(0x20 <= ($byte) && ($byte) <= 0x7E) { - return Err(TryFromU32Error(())); - } - )+ + + let bytes = value.to_be_bytes(); + + macro_rules! check_if_valid { + ($e:expr ; $($f:expr)+) => { + if !(bytes[$e] as char).is_ascii_graphic() { + return if true $(&& bytes[$f] == b' ')+ { + Ok(Self(value)) + } else { + Err(TryFromU32Error(())) + }; + } }; } - let bytes = value.to_be_bytes(); - check_in_valid_range!(bytes[0], bytes[1], bytes[2], bytes[3]); + // A tag must have one to four non-space characters. + if !(bytes[0] as char).is_ascii_graphic() { + return Err(TryFromU32Error(())); + } + + check_if_valid!(1; 1 2 3); + check_if_valid!(2; 2 3); + check_if_valid!(3; 3); Ok(Self(value)) } From ba3d2ec7a769abd1bb03037a13516b40b269d7ea Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 17:32:43 +0900 Subject: [PATCH 29/50] feat(ndk): Add Font::from_be_bytes --- ndk/src/font.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index d61dba8f..407316fa 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -126,6 +126,10 @@ impl AxisTag { Ok(Self(value)) } + pub const fn from_be_bytes(value: [u8; 4]) -> Result { + Self::from_be(u32::from_be_bytes(value)) + } + pub const fn to_u32(self) -> u32 { self.0 } From c94f457e07c068e9735f886da438ad4f9c197a08 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 17:37:23 +0900 Subject: [PATCH 30/50] chore(ndk): Add an example to Font::axis_count --- ndk/src/font.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 407316fa..a3246b29 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -198,7 +198,19 @@ impl Font { /// /// For example, bold italic font may have following font variation settings: 'wght' 700, /// 'slnt' -12. In this case, [`Font::axis_count()`] returns 2 and [`Font::axis_tag_at()`] and - /// [`Font::axis_value_at()`] will return following values. + /// [`Font::axis_value_at()`] return those variation names and the corresponding values. + /// + /// ```no_run + /// use ndk::font::Font; + /// + /// let font: Font = unimplemented!(); + /// for idx in 0..font.axis_count() { + /// log::debug!("{}: {}", font.axis_tag_at(idx), font.axis_value_at(idx)); + /// } + /// // Output: + /// // wght 700 + /// // slnt -12 + /// ``` pub fn axis_count(&self) -> usize { unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) } } From 6707ec77b6e9f8923ba6a6fcc7610b59b0c91d48 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 17:44:20 +0900 Subject: [PATCH 31/50] chore(ndk-sys): Add explanation about manual typedefs in wrapper.h --- ndk-sys/wrapper.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ndk-sys/wrapper.h b/ndk-sys/wrapper.h index 7a6665d7..233a2cc8 100644 --- a/ndk-sys/wrapper.h +++ b/ndk-sys/wrapper.h @@ -20,8 +20,10 @@ #include #include #include +// is broken without the following typedef in C typedef struct AFont AFont; #include +// is broken without the following typedef in C typedef struct AFontMatcher AFontMatcher; #include #include @@ -51,6 +53,7 @@ typedef struct AFontMatcher AFontMatcher; #include #include #include +// is broken without the following typedef in C typedef struct ASystemFontIterator ASystemFontIterator; #include // #include From c8682eff26d468ff9e5e19372b95a4b390e3d153 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 18:07:59 +0900 Subject: [PATCH 32/50] fix(ndk): Rename error types in ndk/src/font.rs --- ndk/src/font.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index a3246b29..9f5e26fa 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -24,11 +24,11 @@ use std::ptr::NonNull; pub struct FontWeight(u16); impl FontWeight { - pub const fn new(value: u16) -> Result { + pub const fn new(value: u16) -> Result { if Self::MIN.0 <= value && value <= Self::MAX.0 { Ok(Self(value)) } else { - Err(TryFromU16Error(())) + Err(FontWeightValueError(())) } } @@ -69,9 +69,9 @@ impl fmt::Display for FontWeight { /// The error type returned when an invalid font weight value is passed. #[derive(Debug)] -pub struct TryFromU16Error(()); +pub struct FontWeightValueError(()); -impl fmt::Display for TryFromU16Error { +impl fmt::Display for FontWeightValueError { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, @@ -80,10 +80,10 @@ impl fmt::Display for TryFromU16Error { } } -impl std::error::Error for TryFromU16Error {} +impl std::error::Error for FontWeightValueError {} impl TryFrom for FontWeight { - type Error = TryFromU16Error; + type Error = FontWeightValueError; fn try_from(value: u16) -> Result { FontWeight::new(value) @@ -95,7 +95,7 @@ impl TryFrom for FontWeight { pub struct AxisTag(u32); impl AxisTag { - pub const fn from_be(value: u32) -> Result { + pub const fn from_be(value: u32) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be // followed by a non-space character. A tag must have one to four non-space characters. // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. @@ -108,7 +108,7 @@ impl AxisTag { return if true $(&& bytes[$f] == b' ')+ { Ok(Self(value)) } else { - Err(TryFromU32Error(())) + Err(AxisTagValueError(())) }; } }; @@ -116,7 +116,7 @@ impl AxisTag { // A tag must have one to four non-space characters. if !(bytes[0] as char).is_ascii_graphic() { - return Err(TryFromU32Error(())); + return Err(AxisTagValueError(())); } check_if_valid!(1; 1 2 3); @@ -126,7 +126,7 @@ impl AxisTag { Ok(Self(value)) } - pub const fn from_be_bytes(value: [u8; 4]) -> Result { + pub const fn from_be_bytes(value: [u8; 4]) -> Result { Self::from_be(u32::from_be_bytes(value)) } @@ -157,9 +157,9 @@ impl fmt::Debug for AxisTag { /// The error type returned when an invalid axis tag value is passed. #[derive(Debug)] -pub struct TryFromU32Error(()); +pub struct AxisTagValueError(()); -impl fmt::Display for TryFromU32Error { +impl fmt::Display for AxisTagValueError { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!( fmt, @@ -168,7 +168,7 @@ impl fmt::Display for TryFromU32Error { } } -impl std::error::Error for TryFromU32Error {} +impl std::error::Error for AxisTagValueError {} /// A native [`AFont *`] /// From 598223c3b019dd71740a2fa547fd2d75d7e0395a Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Fri, 23 Jun 2023 18:35:27 +0900 Subject: [PATCH 33/50] feat(ndk): Add detailed error messages to AxisTagValueError --- ndk/src/font.rs | 73 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 53 insertions(+), 20 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 9f5e26fa..1e8cdca6 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -73,10 +73,7 @@ pub struct FontWeightValueError(()); impl fmt::Display for FontWeightValueError { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!( - fmt, - "font weight must be positive and less than or equal to 1000" - ) + fmt.write_str("font weight must be positive and less than or equal to 1000") } } @@ -102,27 +99,47 @@ impl AxisTag { let bytes = value.to_be_bytes(); + // Each byte in a tag must be in the range 0x20 to 0x7E. + macro_rules! check_byte_range { + ($($e:expr)+) => { + $( + if !(bytes[$e] as char).is_ascii_graphic() && bytes[$e] != b' ' { + return Err(AxisTagValueError::InvalidCharacter); + } + )+ + }; + } + check_byte_range!(0 1 2 3); + + if bytes[0] == b' ' { + return Err( + if bytes[1] == b' ' && bytes[2] == b' ' && bytes[3] == b' ' { + // A tag must have one to four non-space characters. + AxisTagValueError::EmptyTag + } else { + // A space character cannot be followed by a non-space character. + AxisTagValueError::InvalidSpacePadding + }, + ); + } + macro_rules! check_if_valid { ($e:expr ; $($f:expr)+) => { - if !(bytes[$e] as char).is_ascii_graphic() { + if bytes[$e] == b' ' { return if true $(&& bytes[$f] == b' ')+ { Ok(Self(value)) } else { - Err(AxisTagValueError(())) + // A space character cannot be followed by a non-space character. + Err(AxisTagValueError::InvalidSpacePadding) }; } }; } - // A tag must have one to four non-space characters. - if !(bytes[0] as char).is_ascii_graphic() { - return Err(AxisTagValueError(())); - } - - check_if_valid!(1; 1 2 3); - check_if_valid!(2; 2 3); - check_if_valid!(3; 3); + check_if_valid!(1; 2 3); + check_if_valid!(2; 3); + // Whether or not bytes[3] is b' ', value is a valid axis tag. Ok(Self(value)) } @@ -156,15 +173,31 @@ impl fmt::Debug for AxisTag { } /// The error type returned when an invalid axis tag value is passed. -#[derive(Debug)] -pub struct AxisTagValueError(()); +#[derive(Clone, Copy, Debug)] +pub enum AxisTagValueError { + /// There is a byte not in the range 0x20 to 0x7E. + InvalidCharacter, + /// There is a space character followed by a non-space character. + InvalidSpacePadding, + /// The tag only consists of space characters. + EmptyTag, +} + +impl AxisTagValueError { + pub fn as_str(&self) -> &'static str { + match self { + Self::InvalidCharacter => "each byte in an axis tag must be in the range 0x20 to 0x7E", + Self::InvalidSpacePadding => { + "a space character cannot be followed by a non-space character" + } + Self::EmptyTag => "a tag must have one to four non-space characters", + } + } +} impl fmt::Display for AxisTagValueError { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!( - fmt, - "each byte in an axis tag must be in the range 0x20 to 0x7E" - ) + fmt.write_str(self.as_str()) } } From 42d27250f6861a4d56eca62ae978ee6514572da8 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Sat, 5 Aug 2023 15:24:42 +0900 Subject: [PATCH 34/50] feat: Add FontMatcher::match_font --- ndk/src/font.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 1e8cdca6..4fa46221 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -381,6 +381,44 @@ impl FontMatcher { unsafe { FontMatcher::from_ptr(ptr) } } + /// Performs the matching from the generic font family for the text and select one font. + /// + /// For more information about generic font families, please read the + /// [W3C spec](https://www.w3.org/TR/css-fonts-4/#generic-font-families). + /// + /// Even if no font can render the given text, this function will return a non-null result for + /// drawing Tofu character. + /// + /// # Arguments + /// + /// * `family_name`: A font family name. + /// * `text`: A UTF-16 encoded text buffer to be rendered. If an empty string is given, this + /// function will panic. + /// * `run_length_out`: Set this to [`Some`] if you want to get the length of the text run with + /// the font returned. + pub fn match_font( + &mut self, + family_name: &CStr, + text: &[u16], + run_length_out: Option<&mut u32>, + ) -> Font { + if text.len() == 0 { + panic!("text is empty"); + } + unsafe { + Font::from_ptr( + NonNull::new(ffi::AFontMatcher_match( + self.ptr.as_ptr(), + family_name.as_ptr(), + text.as_ptr(), + text.len() as _, + run_length_out.map_or(std::ptr::null_mut(), |u| u), + )) + .expect("AonftMatcher_match returned NULL"), + ) + } + } + /// Sets family variant to matcher. /// /// If this function is not called, the match is performed with [`FamilyVariant::Default`]. From 628da8afe418d15efb1bc626d3004e683ee0ce46 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Sat, 5 Aug 2023 15:33:39 +0900 Subject: [PATCH 35/50] Fix clippy warnings --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 4fa46221..8198f43c 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -402,7 +402,7 @@ impl FontMatcher { text: &[u16], run_length_out: Option<&mut u32>, ) -> Font { - if text.len() == 0 { + if text.is_empty() { panic!("text is empty"); } unsafe { From 8b8c66f30e26754281f73b6d1038241ceba6057c Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:38:44 +0900 Subject: [PATCH 36/50] Apply suggestions from code review Co-authored-by: Marijn Suijten --- ndk/src/font.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 8198f43c..4453261e 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -229,8 +229,8 @@ impl Font { /// /// The font variation settings are provided as multiple tag-value pairs. /// - /// For example, bold italic font may have following font variation settings: 'wght' 700, - /// 'slnt' -12. In this case, [`Font::axis_count()`] returns 2 and [`Font::axis_tag_at()`] and + /// For example, bold italic font may have following font variation settings: `'wght' 700`, + /// `'slnt' -12`. In this case, [`Font::axis_count()`] returns `2` and [`Font::axis_tag_at()`] and /// [`Font::axis_value_at()`] return those variation names and the corresponding values. /// /// ```no_run @@ -241,8 +241,8 @@ impl Font { /// log::debug!("{}: {}", font.axis_tag_at(idx), font.axis_value_at(idx)); /// } /// // Output: - /// // wght 700 - /// // slnt -12 + /// // wght: 700 + /// // slnt: -12 /// ``` pub fn axis_count(&self) -> usize { unsafe { ffi::AFont_getAxisCount(self.ptr.as_ptr()) } From bd0353aec120e226a4097585d9874c32e052fc8a Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:29:02 +0900 Subject: [PATCH 37/50] ndk: Add doc-comments to the consts in FontWeight --- ndk/src/font.rs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 4453261e..ec312cf0 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -36,17 +36,39 @@ impl FontWeight { self.0 } - // + 1 is to keep consistency between FontWeight and other types like std::num::NonZero* + /// The minimum value for the font weight value. Unlike [`ffi::AFONT_WEIGHT_MIN`] being 0, + /// [`FontWeight::MIN`] is 1 to make the `MIN..MAX` range be inclusive, keeping consistency + /// between FontWeight and other types like `std::num::NonZeroU*`. pub const MIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MIN as u16 + 1); + + /// A font weight value for the thin weight. pub const THIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_THIN as u16); + + /// A font weight value for the extra-light weight. pub const EXTRA_LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_EXTRA_LIGHT as u16); + + /// A font weight value for the light weight. pub const LIGHT: FontWeight = FontWeight(ffi::AFONT_WEIGHT_LIGHT as u16); + + /// A font weight value for the normal weight. pub const NORMAL: FontWeight = FontWeight(ffi::AFONT_WEIGHT_NORMAL as u16); + + /// A font weight value for the medium weight. pub const MEDIUM: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MEDIUM as u16); + + /// A font weight value for the semi-bold weight. pub const SEMI_BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_SEMI_BOLD as u16); + + /// A font weight value for the bold weight. pub const BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_BOLD as u16); + + /// A font weight value for the extra-bold weight. pub const EXTRA_BOLD: FontWeight = FontWeight(ffi::AFONT_WEIGHT_EXTRA_BOLD as u16); + + /// A font weight value for the black weight. pub const BLACK: FontWeight = FontWeight(ffi::AFONT_WEIGHT_BLACK as u16); + + /// The maximum value for the font weight value. pub const MAX: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MAX as u16); } From 41d2bb7309786e4321c3e0de0b560b0898a3c957 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:34:23 +0900 Subject: [PATCH 38/50] ndk: Swap the content of AxisTag::from_be and from_be_bytes --- ndk/src/font.rs | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index ec312cf0..47ce0e55 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -114,18 +114,16 @@ impl TryFrom for FontWeight { pub struct AxisTag(u32); impl AxisTag { - pub const fn from_be(value: u32) -> Result { + pub const fn from_be_bytes(value: [u8; 4]) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be // followed by a non-space character. A tag must have one to four non-space characters. // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. - let bytes = value.to_be_bytes(); - // Each byte in a tag must be in the range 0x20 to 0x7E. macro_rules! check_byte_range { ($($e:expr)+) => { $( - if !(bytes[$e] as char).is_ascii_graphic() && bytes[$e] != b' ' { + if !(value[$e] as char).is_ascii_graphic() && value[$e] != b' ' { return Err(AxisTagValueError::InvalidCharacter); } )+ @@ -133,9 +131,9 @@ impl AxisTag { } check_byte_range!(0 1 2 3); - if bytes[0] == b' ' { + if value[0] == b' ' { return Err( - if bytes[1] == b' ' && bytes[2] == b' ' && bytes[3] == b' ' { + if value[1] == b' ' && value[2] == b' ' && value[3] == b' ' { // A tag must have one to four non-space characters. AxisTagValueError::EmptyTag } else { @@ -147,9 +145,9 @@ impl AxisTag { macro_rules! check_if_valid { ($e:expr ; $($f:expr)+) => { - if bytes[$e] == b' ' { - return if true $(&& bytes[$f] == b' ')+ { - Ok(Self(value)) + if value[$e] == b' ' { + return if true $(&& value[$f] == b' ')+ { + Ok(Self(u32::from_be_bytes(value))) } else { // A space character cannot be followed by a non-space character. Err(AxisTagValueError::InvalidSpacePadding) @@ -161,12 +159,12 @@ impl AxisTag { check_if_valid!(1; 2 3); check_if_valid!(2; 3); - // Whether or not bytes[3] is b' ', value is a valid axis tag. - Ok(Self(value)) + // Whether or not value[3] is b' ', value is a valid axis tag. + Ok(Self(u32::from_be_bytes(value))) } - pub const fn from_be_bytes(value: [u8; 4]) -> Result { - Self::from_be(u32::from_be_bytes(value)) + pub const fn from_be(value: u32) -> Result { + Self::from_be_bytes(value.to_be_bytes()) } pub const fn to_u32(self) -> u32 { From e51ef48067d49553bdf73c78a14a49ec76794a9e Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:37:42 +0900 Subject: [PATCH 39/50] ndk: Don't directly access fields of AxisTag from the outside --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 47ce0e55..e2bebc20 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -178,7 +178,7 @@ impl AxisTag { impl fmt::Display for AxisTag { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let bytes = self.0.to_be_bytes(); + let bytes = self.to_be_bytes(); f.write_char(bytes[0] as char)?; f.write_char(bytes[1] as char)?; f.write_char(bytes[2] as char)?; From 677814909467ee66cb19957de403d72ae6cc4f0d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:37:55 +0900 Subject: [PATCH 40/50] ndk: Fix doc-comments of from_ptr in ndk::font --- ndk/src/font.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index e2bebc20..3138508a 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -232,7 +232,7 @@ pub struct Font { } impl Font { - /// Creates a [`Font`] from a pointer. + /// Assumes ownership of `ptr`. /// /// # Safety /// `ptr` must be a valid owning pointer to an Android [`ffi::AFont`]. @@ -380,7 +380,7 @@ pub struct FontMatcher { } impl FontMatcher { - /// Creates a [`FontMatcher`] from a pointer. + /// Assumes ownership of `ptr`. /// /// # Safety /// `ptr` must be a valid owning pointer to an Android [`ffi::AFontMatcher`]. @@ -479,7 +479,7 @@ pub struct SystemFontIterator { } impl SystemFontIterator { - /// Creates an [`SystemFontIterator`] from a pointer. + /// Assumes ownership of `ptr`. /// /// # Safety /// `ptr` must be a valid owning pointer to an Android [`ffi::ASystemFontIterator`]. From 0a303ee64ae1a6c135095157b77f1fed78db573d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:55:47 +0900 Subject: [PATCH 41/50] ndk: Add AxisTag ctors that constly panics for invalid input --- ndk/src/font.rs | 55 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 3138508a..dc931397 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -8,7 +8,7 @@ use std::convert::TryFrom; use std::ffi::{CStr, OsStr}; -use std::fmt::{self, Write}; +use std::fmt::{self, Debug, Write}; use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; @@ -114,11 +114,13 @@ impl TryFrom for FontWeight { pub struct AxisTag(u32); impl AxisTag { - pub const fn from_be_bytes(value: [u8; 4]) -> Result { - // Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be - // followed by a non-space character. A tag must have one to four non-space characters. - // See https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. - + /// Checks whether the given 4-byte array can construct a valid axis tag and returns [`Ok`] if + /// the array is valid. + /// + /// Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be followed + /// by a non-space character. A tag must have one to four non-space characters. See + /// https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. + pub const fn from_be_bytes_checked(value: [u8; 4]) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. macro_rules! check_byte_range { ($($e:expr)+) => { @@ -163,8 +165,45 @@ impl AxisTag { Ok(Self(u32::from_be_bytes(value))) } - pub const fn from_be(value: u32) -> Result { - Self::from_be_bytes(value.to_be_bytes()) + /// Checks whether the given 4-byte array can construct a valid axis tag and returns [`Ok`] if + /// the array is valid. + /// + /// See [`AxisTag::from_be()`] for more details. + pub const fn from_be_checked(value: u32) -> Result { + Self::from_be_bytes_checked(value.to_be_bytes()) + } + + /// Construct an axis tag from the given 4-byte array. If the resulting axis tag is invalid, + /// this function panics. + /// + /// See [`AxisTag::from_be()`] for more details. + pub const fn from_be_bytes(value: [u8; 4]) -> Self { + Self::unwrap_result(Self::from_be_bytes_checked(value)) + } + + /// Construct an axis tag from the given 4-byte integer. If the resulting axis tag is invalid, + /// this function panics. + /// + /// See [`AxisTag::from_be()`] for more details. + pub const fn from_be(value: u32) -> Self { + Self::unwrap_result(Self::from_be_checked(value)) + } + + // const-version of [`Result::unwrap`]. Should be removed when [`Option::unwrap`] or + // [`Result::unwrap`] become `const`-stable. + const fn unwrap_result(result: Result) -> Self { + match result { + Ok(t) => t, + Err(e) => match e { + AxisTagValueError::InvalidCharacter => { + panic!("axis tag contains invalid character") + } + AxisTagValueError::InvalidSpacePadding => { + panic!("space is followed by a non-space character") + } + AxisTagValueError::EmptyTag => panic!("axis tag contains no character"), + }, + } } pub const fn to_u32(self) -> u32 { From ada3c6115f6a26b384eb783e2bc568b1dab2b2ba Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 16:57:46 +0900 Subject: [PATCH 42/50] Remove unimplemented! from examples in ndk::font --- ndk/src/font.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index dc931397..03284025 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -293,9 +293,7 @@ impl Font { /// [`Font::axis_value_at()`] return those variation names and the corresponding values. /// /// ```no_run - /// use ndk::font::Font; - /// - /// let font: Font = unimplemented!(); + /// let font: Font = ...; /// for idx in 0..font.axis_count() { /// log::debug!("{}: {}", font.axis_tag_at(idx), font.axis_value_at(idx)); /// } From 1bb7c053df6e43d47f96b610074305f2d0fdc1bc Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 17:01:46 +0900 Subject: [PATCH 43/50] Remove redundant as_str logic from ndk::font --- ndk/src/font.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 03284025..8fb0b845 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -194,15 +194,7 @@ impl AxisTag { const fn unwrap_result(result: Result) -> Self { match result { Ok(t) => t, - Err(e) => match e { - AxisTagValueError::InvalidCharacter => { - panic!("axis tag contains invalid character") - } - AxisTagValueError::InvalidSpacePadding => { - panic!("space is followed by a non-space character") - } - AxisTagValueError::EmptyTag => panic!("axis tag contains no character"), - }, + Err(e) => panic!("{}", e.as_str()), } } @@ -243,7 +235,7 @@ pub enum AxisTagValueError { } impl AxisTagValueError { - pub fn as_str(&self) -> &'static str { + pub const fn as_str(&self) -> &'static str { match self { Self::InvalidCharacter => "each byte in an axis tag must be in the range 0x20 to 0x7E", Self::InvalidSpacePadding => { From 9a26426404041aa88082d9b077a55b880d5b3336 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Wed, 16 Aug 2023 17:07:03 +0900 Subject: [PATCH 44/50] ndk: Fix doc-comments in ndk::font --- ndk/src/font.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 8fb0b845..81f8d2b6 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -468,16 +468,16 @@ impl FontMatcher { } } - /// Sets family variant to matcher. + /// Sets the family variant of the font to be matched. /// /// If this function is not called, the match is performed with [`FamilyVariant::Default`]. pub fn set_family_variant(&mut self, family_variant: FamilyVariant) { unsafe { ffi::AFontMatcher_setFamilyVariant(self.ptr.as_ptr(), family_variant as u32) } } - /// Sets font locales to matcher. + /// Sets the locale of the font to be matched. /// - /// If this function is not called, the match is performed with empty locale list. + /// If this function is not called, the match is performed with an empty locale list. /// /// # Arguments /// * `language_tags`: comma separated IETF BCP47 compliant language tags. @@ -485,7 +485,7 @@ impl FontMatcher { unsafe { ffi::AFontMatcher_setLocales(self.ptr.as_ptr(), language_tags.as_ptr()) } } - /// Sets font style to matcher. + /// Sets the style of the font to be matched. /// /// If this function is not called, the match is performed with [`FontWeight::NORMAL`] with non-italic style. pub fn set_style(&mut self, weight: FontWeight, italic: bool) { From 86b4ef328307f9e2d90c2c190a5ce5e7e533b796 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:10:37 +0900 Subject: [PATCH 45/50] Apply suggestions from code review Co-authored-by: Marijn Suijten --- ndk/src/font.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 81f8d2b6..43586943 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -36,9 +36,9 @@ impl FontWeight { self.0 } - /// The minimum value for the font weight value. Unlike [`ffi::AFONT_WEIGHT_MIN`] being 0, - /// [`FontWeight::MIN`] is 1 to make the `MIN..MAX` range be inclusive, keeping consistency - /// between FontWeight and other types like `std::num::NonZeroU*`. + /// The minimum value for the font weight value. Unlike [`ffi::AFONT_WEIGHT_MIN`] being `0`, + /// [`FontWeight::MIN`] is `1` to make the `MIN..MAX` range be inclusive, keeping consistency + /// between [`FontWeight`] and other types like `std::num::NonZeroU*`. pub const MIN: FontWeight = FontWeight(ffi::AFONT_WEIGHT_MIN as u16 + 1); /// A font weight value for the thin weight. @@ -332,7 +332,7 @@ impl Font { /// * TrueType Collection /// /// The file extension could be one of `*.otf`, `*.ttf`, `*.otc` or `*.ttc`. - /// The font file specified by the returned path is guaranteed to be opened with `O_RDONLY`. + /// The font file specified by the returned path is guaranteed to be openable with `O_RDONLY`. pub fn path(&self) -> &Path { let path = unsafe { CStr::from_ptr(ffi::AFont_getFontFilePath(self.ptr.as_ptr())) }; OsStr::from_bytes(path.to_bytes()).as_ref() @@ -463,7 +463,7 @@ impl FontMatcher { text.len() as _, run_length_out.map_or(std::ptr::null_mut(), |u| u), )) - .expect("AonftMatcher_match returned NULL"), + .expect("AFontMatcher_match returned NULL"), ) } } @@ -516,7 +516,7 @@ impl SystemFontIterator { Self { ptr } } - /// Returns s the pointer to the native [`ffi::ASystemFontIterator`]. + /// Returns the pointer to the native [`ffi::ASystemFontIterator`]. pub fn ptr(&self) -> NonNull { self.ptr } From f31c36d197bb33d0a9e6e90365e47920c5d6de23 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:13:28 +0900 Subject: [PATCH 46/50] ndk: Fix doc-comments in ndk::font --- ndk/src/font.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 43586943..7d3bfd5b 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -114,8 +114,8 @@ impl TryFrom for FontWeight { pub struct AxisTag(u32); impl AxisTag { - /// Checks whether the given 4-byte array can construct a valid axis tag and returns [`Ok`] if - /// the array is valid. + /// Checks whether the given 4-byte array can construct a valid axis tag and returns + /// [`Ok(AxisTag)`] if the array is valid. /// /// Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be followed /// by a non-space character. A tag must have one to four non-space characters. See @@ -165,8 +165,8 @@ impl AxisTag { Ok(Self(u32::from_be_bytes(value))) } - /// Checks whether the given 4-byte array can construct a valid axis tag and returns [`Ok`] if - /// the array is valid. + /// Checks whether the given 4-byte array can construct a valid axis tag and returns + /// [`Ok(AxisTag)`] if the array is valid. /// /// See [`AxisTag::from_be()`] for more details. pub const fn from_be_checked(value: u32) -> Result { @@ -189,8 +189,8 @@ impl AxisTag { Self::unwrap_result(Self::from_be_checked(value)) } - // const-version of [`Result::unwrap`]. Should be removed when [`Option::unwrap`] or - // [`Result::unwrap`] become `const`-stable. + /// const-version of [`Result::unwrap`]. Should be removed when [`Option::unwrap`] or + /// [`Result::unwrap`] become `const`-stable. const fn unwrap_result(result: Result) -> Self { match result { Ok(t) => t, From c27b0a7fdd62ccb78587c1c3e0773d34763ae4c4 Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:18:22 +0900 Subject: [PATCH 47/50] ndk: Makes examples in ndk::font compilable --- ndk/src/font.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 7d3bfd5b..a63669d8 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -285,7 +285,9 @@ impl Font { /// [`Font::axis_value_at()`] return those variation names and the corresponding values. /// /// ```no_run - /// let font: Font = ...; + /// use ndk::font::Font; + /// + /// let font: Font = todo!(); /// for idx in 0..font.axis_count() { /// log::debug!("{}: {}", font.axis_tag_at(idx), font.axis_value_at(idx)); /// } From 3e1bca0d3a9fbf6f8f667fbaeb43dbc583d0436d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:23:46 +0900 Subject: [PATCH 48/50] ndk: Remove trailing spaces in doc-comments in ndk::font --- ndk/src/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index a63669d8..907e53c0 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -286,7 +286,7 @@ impl Font { /// /// ```no_run /// use ndk::font::Font; - /// + /// /// let font: Font = todo!(); /// for idx in 0..font.axis_count() { /// log::debug!("{}: {}", font.axis_tag_at(idx), font.axis_value_at(idx)); From f63d238d54c2b334903c03521bcac1c98485595d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:25:24 +0900 Subject: [PATCH 49/50] ndk: Fix hyperlinks in doc-comments in ndk::font --- ndk/src/font.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 907e53c0..52a10516 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -118,8 +118,10 @@ impl AxisTag { /// [`Ok(AxisTag)`] if the array is valid. /// /// Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be followed - /// by a non-space character. A tag must have one to four non-space characters. See - /// https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types for details. + /// by a non-space character. A tag must have one to four non-space characters. See the + /// [OpenType spec] for more details. + /// + /// [OpenType spec]: https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types pub const fn from_be_bytes_checked(value: [u8; 4]) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. macro_rules! check_byte_range { From 61287c65035b65ff55b2e3df170086be7f16ca0d Mon Sep 17 00:00:00 2001 From: Chanjung Kim Date: Thu, 17 Aug 2023 01:30:03 +0900 Subject: [PATCH 50/50] ndk: Fix clippy warnings in ndk::font --- ndk/src/font.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ndk/src/font.rs b/ndk/src/font.rs index 52a10516..3d6367bb 100644 --- a/ndk/src/font.rs +++ b/ndk/src/font.rs @@ -8,7 +8,7 @@ use std::convert::TryFrom; use std::ffi::{CStr, OsStr}; -use std::fmt::{self, Debug, Write}; +use std::fmt::{self, Write}; use std::os::unix::prelude::OsStrExt; use std::path::Path; use std::ptr::NonNull; @@ -94,7 +94,7 @@ impl fmt::Display for FontWeight { pub struct FontWeightValueError(()); impl fmt::Display for FontWeightValueError { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.write_str("font weight must be positive and less than or equal to 1000") } } @@ -120,7 +120,7 @@ impl AxisTag { /// Each byte in a tag must be in the range 0x20 to 0x7E. A space character cannot be followed /// by a non-space character. A tag must have one to four non-space characters. See the /// [OpenType spec] for more details. - /// + /// /// [OpenType spec]: https://learn.microsoft.com/en-us/typography/opentype/spec/otff#data-types pub const fn from_be_bytes_checked(value: [u8; 4]) -> Result { // Each byte in a tag must be in the range 0x20 to 0x7E. @@ -249,7 +249,7 @@ impl AxisTagValueError { } impl fmt::Display for AxisTagValueError { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.write_str(self.as_str()) } }