From 100d7126c7f391ac7ffc4f696a28bfa3548f085c Mon Sep 17 00:00:00 2001 From: jam1garner Date: Sun, 12 Apr 2020 19:34:43 -0400 Subject: [PATCH] Move template to stdlib --- .gitignore | 1 + Cargo.toml | 13 +- Xargo.toml | 24 +- aarch64-skyline-switch.json | 2 +- rust-toolchain | 2 +- skyline/Cargo.lock | 91 - skyline/Cargo.toml | 12 - skyline/nnsdk/Cargo.lock | 12 - skyline/nnsdk/Cargo.toml | 10 - skyline/nnsdk/src/extensions.rs | 29 - skyline/nnsdk/src/lib.rs | 12266 ------------------ skyline/skyline_libc/Cargo.lock | 5 - skyline/skyline_libc/Cargo.toml | 9 - skyline/skyline_libc/src/lib.rs | 313 - skyline/skyline_macro/Cargo.lock | 52 - skyline/skyline_macro/Cargo.toml | 16 - skyline/skyline_macro/src/attributes/mod.rs | 39 - skyline/skyline_macro/src/lib.rs | 127 - skyline/src/build.rs | 65 - skyline/src/extern_alloc.rs | 31 - skyline/src/hooks.rs | 63 - skyline/src/lib.rs | 47 - skyline/src/logging.rs | 24 - skyline/src/mod0.s | 24 - skyline/src/nn.rs | 2 - skyline_smash/Cargo.lock | 12 - skyline_smash/Cargo.toml | 13 - skyline_smash/src/cpp.rs | 7864 ----------- skyline_smash/src/crc32.rs | 66 - skyline_smash/src/lib.rs | 18 - src/lib.rs | 5 +- 31 files changed, 38 insertions(+), 21219 deletions(-) delete mode 100644 skyline/Cargo.lock delete mode 100644 skyline/Cargo.toml delete mode 100644 skyline/nnsdk/Cargo.lock delete mode 100644 skyline/nnsdk/Cargo.toml delete mode 100644 skyline/nnsdk/src/extensions.rs delete mode 100644 skyline/nnsdk/src/lib.rs delete mode 100644 skyline/skyline_libc/Cargo.lock delete mode 100644 skyline/skyline_libc/Cargo.toml delete mode 100644 skyline/skyline_libc/src/lib.rs delete mode 100644 skyline/skyline_macro/Cargo.lock delete mode 100644 skyline/skyline_macro/Cargo.toml delete mode 100644 skyline/skyline_macro/src/attributes/mod.rs delete mode 100644 skyline/skyline_macro/src/lib.rs delete mode 100644 skyline/src/build.rs delete mode 100644 skyline/src/extern_alloc.rs delete mode 100644 skyline/src/hooks.rs delete mode 100644 skyline/src/lib.rs delete mode 100644 skyline/src/logging.rs delete mode 100644 skyline/src/mod0.s delete mode 100644 skyline/src/nn.rs delete mode 100644 skyline_smash/Cargo.lock delete mode 100644 skyline_smash/Cargo.toml delete mode 100644 skyline_smash/src/cpp.rs delete mode 100644 skyline_smash/src/crc32.rs delete mode 100644 skyline_smash/src/lib.rs diff --git a/.gitignore b/.gitignore index d7e9a64..fec166d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/target **/*.py **/*.pyc +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index 8d33038..5286e9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "no_std_test" +name = "skyline-rs-template" version = "0.1.0" authors = ["jam1garner "] edition = "2018" @@ -8,6 +8,13 @@ edition = "2018" crate-type = ["cdylib"] [dependencies] -skyline = { path = "./skyline" } -skyline_smash = { path = "./skyline_smash" } +skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" } +skyline_smash = { git = "https://github.com/ultimate-research/skyline-smash.git" } +[profile.dev] +opt-level = 0 # Use slightly better optimizations. +debug = 2 +panic = "abort" + +[profile.release] +panic = "abort" diff --git a/Xargo.toml b/Xargo.toml index ee2dd14..33e0d50 100644 --- a/Xargo.toml +++ b/Xargo.toml @@ -1,2 +1,22 @@ -[target.aarch64-skyline-switch.dependencies] -alloc = {} +[package] +rust-src = "../rust-std-skyline/src" + +[dependencies.core] +path = "../rust-std-skyline/src/libcore" +#git = "https://github.com/jam1garner/rust-std-skyline-squashed.git" +stage = 0 + +[dependencies.alloc] +path = "../rust-std-skyline/src/liballoc" +#git = "https://github.com/jam1garner/rust-std-skyline-squashed.git" +stage = 0 + +[dependencies.std] +path = "../rust-std-skyline/src/libstd" +#git = "https://github.com/jam1garner/rust-std-skyline-squashed.git" +stage = 1 + +#[patch.crates-io] +#rustc-std-workspace-core = { git = 'https://github.com/jam1garner/rust-std-skyline-squashed.git', branch = 'master' } +#rustc-std-workspace-alloc = { git = 'https://github.com/jam1garner/rust-std-skyline-squashed.git', branch = 'master' } +#rustc-std-workspace-std = { git = 'https://github.com/jam1garner/rust-std-skyline-squashed.git', branch = 'master' } diff --git a/aarch64-skyline-switch.json b/aarch64-skyline-switch.json index 75ba2ea..248bd90 100644 --- a/aarch64-skyline-switch.json +++ b/aarch64-skyline-switch.json @@ -21,7 +21,7 @@ "llvm-target": "aarch64-unknown-none", "max-atomic-width": 128, "os": "switch", - "panic-strategy": "unwind", + "panic-strategy": "abort", "position-independent-executables": true, "pre-link-args": { "ld.lld": [ diff --git a/rust-toolchain b/rust-toolchain index bf867e0..66822d4 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly +nightly-2020-04-10 diff --git a/skyline/Cargo.lock b/skyline/Cargo.lock deleted file mode 100644 index 824e8eb..0000000 --- a/skyline/Cargo.lock +++ /dev/null @@ -1,91 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "build_const" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "crc" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "nnsdk" -version = "0.1.0" -dependencies = [ - "skyline_libc 0.1.0", -] - -[[package]] -name = "proc-macro2" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "quote" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "skyline" -version = "0.0.1" -dependencies = [ - "crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "nnsdk 0.1.0", - "skyline_libc 0.1.0", - "skyline_macro 0.1.0", -] - -[[package]] -name = "skyline_libc" -version = "0.1.0" - -[[package]] -name = "skyline_macro" -version = "0.1.0" -dependencies = [ - "crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", - "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "syn" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", - "quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "unicode-xid" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[metadata] -"checksum build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39" -"checksum crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb" -"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -"checksum proc-macro2 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "df246d292ff63439fea9bc8c0a270bed0e390d5ebd4db4ba15aba81111b5abe3" -"checksum quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2bdc6c187c65bca4260c9011c9e3132efe4909da44726bad24cf7572ae338d7f" -"checksum syn 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "0df0eb663f387145cab623dea85b09c2c5b4b0aef44e945d928e682fce71bb03" -"checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" diff --git a/skyline/Cargo.toml b/skyline/Cargo.toml deleted file mode 100644 index fa3b98c..0000000 --- a/skyline/Cargo.toml +++ /dev/null @@ -1,12 +0,0 @@ -[package] -name = "skyline" -version = "0.0.1" -authors = ["jam1garner "] -edition = "2018" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -skyline_macro = { path = "./skyline_macro" } -nnsdk = { path = "./nnsdk" } -skyline_libc = { path = "./skyline_libc" } diff --git a/skyline/nnsdk/Cargo.lock b/skyline/nnsdk/Cargo.lock deleted file mode 100644 index 7d82e48..0000000 --- a/skyline/nnsdk/Cargo.lock +++ /dev/null @@ -1,12 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "nnsdk" -version = "0.1.0" -dependencies = [ - "skyline_libc", -] - -[[package]] -name = "skyline_libc" -version = "0.1.0" diff --git a/skyline/nnsdk/Cargo.toml b/skyline/nnsdk/Cargo.toml deleted file mode 100644 index aa7e873..0000000 --- a/skyline/nnsdk/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "nnsdk" -version = "0.1.0" -authors = ["jam1garner "] -edition = "2018" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -skyline_libc = { path = "../skyline_libc" } diff --git a/skyline/nnsdk/src/extensions.rs b/skyline/nnsdk/src/extensions.rs deleted file mode 100644 index fa0c6b7..0000000 --- a/skyline/nnsdk/src/extensions.rs +++ /dev/null @@ -1,29 +0,0 @@ -use super::*; - -impl TimeSpan { - pub fn nano(nanoseconds: u64) -> Self { - TimeSpan { - nanoseconds - } - } - - pub fn milli(milliseconds: u64) -> Self { - TimeSpan { - nanoseconds: milliseconds * 1000000 - } - } - - pub fn secs(seconds: u64) -> Self { - TimeSpan { - nanoseconds: seconds * 1000000000u64 - } - } - - pub fn minutes(minutes: u64) -> Self { - TimeSpan::secs(minutes * 60) - } - - pub fn hours(hours: u64) -> Self { - TimeSpan::minutes(hours * 60) - } -} diff --git a/skyline/nnsdk/src/lib.rs b/skyline/nnsdk/src/lib.rs deleted file mode 100644 index 8f764b0..0000000 --- a/skyline/nnsdk/src/lib.rs +++ /dev/null @@ -1,12266 +0,0 @@ -#![no_std] -/* automatically generated by rust-bindgen */ - -extern crate alloc; - -pub mod extensions; - -#[doc(inline)] -pub use root::nn::*; - -#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] -#[doc(hidden)] -pub mod root { - #[repr(C)] - #[derive(Default)] - pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); - impl __IncompleteArrayField { - #[inline] - pub const fn new() -> Self { - __IncompleteArrayField(::core::marker::PhantomData, []) - } - #[inline] - pub fn as_ptr(&self) -> *const T { - self as *const _ as *const T - } - #[inline] - pub fn as_mut_ptr(&mut self) -> *mut T { - self as *mut _ as *mut T - } - #[inline] - pub unsafe fn as_slice(&self, len: usize) -> &[T] { - ::core::slice::from_raw_parts(self.as_ptr(), len) - } - #[inline] - pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { - ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) - } - } - impl ::core::fmt::Debug for __IncompleteArrayField { - fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - fmt.write_str("__IncompleteArrayField") - } - } - #[repr(C)] - pub struct __BindgenUnionField(::core::marker::PhantomData); - impl __BindgenUnionField { - #[inline] - pub const fn new() -> Self { - __BindgenUnionField(::core::marker::PhantomData) - } - #[inline] - pub unsafe fn as_ref(&self) -> &T { - ::core::mem::transmute(self) - } - #[inline] - pub unsafe fn as_mut(&mut self) -> &mut T { - ::core::mem::transmute(self) - } - } - impl ::core::default::Default for __BindgenUnionField { - #[inline] - fn default() -> Self { - Self::new() - } - } - impl ::core::clone::Clone for __BindgenUnionField { - #[inline] - fn clone(&self) -> Self { - Self::new() - } - } - impl ::core::marker::Copy for __BindgenUnionField {} - impl ::core::fmt::Debug for __BindgenUnionField { - fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - fmt.write_str("__BindgenUnionField") - } - } - impl ::core::hash::Hash for __BindgenUnionField { - fn hash(&self, _state: &mut H) {} - } - impl ::core::cmp::PartialEq for __BindgenUnionField { - fn eq(&self, _other: &__BindgenUnionField) -> bool { - true - } - } - impl ::core::cmp::Eq for __BindgenUnionField {} - #[allow(unused_imports)] - use self::super::root; - pub type __u_char = skyline_libc::c_uchar; - pub type __u_short = skyline_libc::c_ushort; - pub type __u_int = skyline_libc::c_uint; - pub type __u_long = skyline_libc::c_ulong; - pub type __int8_t = skyline_libc::c_schar; - pub type __uint8_t = skyline_libc::c_uchar; - pub type __int16_t = skyline_libc::c_short; - pub type __uint16_t = skyline_libc::c_ushort; - pub type __int32_t = skyline_libc::c_int; - pub type __uint32_t = skyline_libc::c_uint; - pub type __int64_t = skyline_libc::c_long; - pub type __uint64_t = skyline_libc::c_ulong; - pub type __int_least8_t = root::__int8_t; - pub type __uint_least8_t = root::__uint8_t; - pub type __int_least16_t = root::__int16_t; - pub type __uint_least16_t = root::__uint16_t; - pub type __int_least32_t = root::__int32_t; - pub type __uint_least32_t = root::__uint32_t; - pub type __int_least64_t = root::__int64_t; - pub type __uint_least64_t = root::__uint64_t; - pub type __quad_t = skyline_libc::c_long; - pub type __u_quad_t = skyline_libc::c_ulong; - pub type __intmax_t = skyline_libc::c_long; - pub type __uintmax_t = skyline_libc::c_ulong; - pub type __dev_t = skyline_libc::c_ulong; - pub type __uid_t = skyline_libc::c_uint; - pub type __gid_t = skyline_libc::c_uint; - pub type __ino_t = skyline_libc::c_ulong; - pub type __ino64_t = skyline_libc::c_ulong; - pub type __mode_t = skyline_libc::c_uint; - pub type __nlink_t = skyline_libc::c_ulong; - pub type __off_t = skyline_libc::c_long; - pub type __off64_t = skyline_libc::c_long; - pub type __pid_t = skyline_libc::c_int; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __fsid_t { - pub __val: [skyline_libc::c_int; 2usize], - } - #[test] - fn bindgen_test_layout___fsid_t() { - assert_eq!( - ::core::mem::size_of::<__fsid_t>(), - 8usize, - concat!("Size of: ", stringify!(__fsid_t)) - ); - assert_eq!( - ::core::mem::align_of::<__fsid_t>(), - 4usize, - concat!("Alignment of ", stringify!(__fsid_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__fsid_t>())).__val as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__fsid_t), - "::", - stringify!(__val) - ) - ); - } - pub type __clock_t = skyline_libc::c_long; - pub type __rlim_t = skyline_libc::c_ulong; - pub type __rlim64_t = skyline_libc::c_ulong; - pub type __id_t = skyline_libc::c_uint; - pub type __time_t = skyline_libc::c_long; - pub type __useconds_t = skyline_libc::c_uint; - pub type __suseconds_t = skyline_libc::c_long; - pub type __daddr_t = skyline_libc::c_int; - pub type __key_t = skyline_libc::c_int; - pub type __clockid_t = skyline_libc::c_int; - pub type __timer_t = *mut skyline_libc::c_void; - pub type __blksize_t = skyline_libc::c_long; - pub type __blkcnt_t = skyline_libc::c_long; - pub type __blkcnt64_t = skyline_libc::c_long; - pub type __fsblkcnt_t = skyline_libc::c_ulong; - pub type __fsblkcnt64_t = skyline_libc::c_ulong; - pub type __fsfilcnt_t = skyline_libc::c_ulong; - pub type __fsfilcnt64_t = skyline_libc::c_ulong; - pub type __fsword_t = skyline_libc::c_long; - pub type __ssize_t = skyline_libc::c_long; - pub type __syscall_slong_t = skyline_libc::c_long; - pub type __syscall_ulong_t = skyline_libc::c_ulong; - pub type __loff_t = root::__off64_t; - pub type __caddr_t = *mut skyline_libc::c_char; - pub type __intptr_t = skyline_libc::c_long; - pub type __socklen_t = skyline_libc::c_uint; - pub type __sig_atomic_t = skyline_libc::c_int; - pub type int_least8_t = root::__int_least8_t; - pub type int_least16_t = root::__int_least16_t; - pub type int_least32_t = root::__int_least32_t; - pub type int_least64_t = root::__int_least64_t; - pub type uint_least8_t = root::__uint_least8_t; - pub type uint_least16_t = root::__uint_least16_t; - pub type uint_least32_t = root::__uint_least32_t; - pub type uint_least64_t = root::__uint_least64_t; - pub type int_fast8_t = skyline_libc::c_schar; - pub type int_fast16_t = skyline_libc::c_long; - pub type int_fast32_t = skyline_libc::c_long; - pub type int_fast64_t = skyline_libc::c_long; - pub type uint_fast8_t = skyline_libc::c_uchar; - pub type uint_fast16_t = skyline_libc::c_ulong; - pub type uint_fast32_t = skyline_libc::c_ulong; - pub type uint_fast64_t = skyline_libc::c_ulong; - pub type intmax_t = root::__intmax_t; - pub type uintmax_t = root::__uintmax_t; - pub type size_t = skyline_libc::c_ulong; - #[repr(C)] - #[repr(align(16))] - #[derive(Debug, Copy, Clone)] - pub struct max_align_t { - pub __clang_max_align_nonce1: skyline_libc::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, - } - #[test] - fn bindgen_test_layout_max_align_t() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(max_align_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 16usize, - concat!("Alignment of ", stringify!(max_align_t)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__clang_max_align_nonce1 as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(max_align_t), - "::", - stringify!(__clang_max_align_nonce1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__clang_max_align_nonce2 as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(max_align_t), - "::", - stringify!(__clang_max_align_nonce2) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct imaxdiv_t { - pub quot: skyline_libc::c_long, - pub rem: skyline_libc::c_long, - } - #[test] - fn bindgen_test_layout_imaxdiv_t() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(imaxdiv_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(imaxdiv_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).quot as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(imaxdiv_t), - "::", - stringify!(quot) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).rem as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(imaxdiv_t), - "::", - stringify!(rem) - ) - ); - } - extern "C" { - pub fn imaxabs(__n: root::intmax_t) -> root::intmax_t; - } - extern "C" { - pub fn imaxdiv(__numer: root::intmax_t, __denom: root::intmax_t) -> root::imaxdiv_t; - } - extern "C" { - pub fn strtoimax( - __nptr: *const skyline_libc::c_char, - __endptr: *mut *mut skyline_libc::c_char, - __base: skyline_libc::c_int, - ) -> root::intmax_t; - } - extern "C" { - pub fn strtoumax( - __nptr: *const skyline_libc::c_char, - __endptr: *mut *mut skyline_libc::c_char, - __base: skyline_libc::c_int, - ) -> root::uintmax_t; - } - extern "C" { - pub fn wcstoimax( - __nptr: *const u32, - __endptr: *mut *mut u32, - __base: skyline_libc::c_int, - ) -> root::intmax_t; - } - extern "C" { - pub fn wcstoumax( - __nptr: *const u32, - __endptr: *mut *mut u32, - __base: skyline_libc::c_int, - ) -> root::uintmax_t; - } - pub type s8 = i8; - pub type s16 = i16; - pub type s32 = i32; - pub type s64 = i64; - pub type s128 = root::__int128_t; - pub type uchar = skyline_libc::c_uchar; - pub type ulong = skyline_libc::c_ulong; - pub type uint = u32; - pub type Result = u32; - pub type Handle = u32; - pub type ThreadFunc = - ::core::option::Option; - pub const Module_Kernel: root::_bindgen_ty_1 = 1; - pub const Module_Libnx: root::_bindgen_ty_1 = 345; - pub const Module_HomebrewAbi: root::_bindgen_ty_1 = 346; - pub const Module_HomebrewLoader: root::_bindgen_ty_1 = 347; - pub const Module_LibnxNvidia: root::_bindgen_ty_1 = 348; - pub const Module_LibnxBinder: root::_bindgen_ty_1 = 349; - #[doc = " Module values"] - pub type _bindgen_ty_1 = u32; - pub const KernelError_OutOfSessions: root::_bindgen_ty_2 = 7; - pub const KernelError_InvalidCapabilityDescriptor: root::_bindgen_ty_2 = 14; - pub const KernelError_NotImplemented: root::_bindgen_ty_2 = 33; - pub const KernelError_ThreadTerminating: root::_bindgen_ty_2 = 59; - pub const KernelError_OutOfDebugEvents: root::_bindgen_ty_2 = 70; - pub const KernelError_InvalidSize: root::_bindgen_ty_2 = 101; - pub const KernelError_InvalidAddress: root::_bindgen_ty_2 = 102; - pub const KernelError_ResourceExhausted: root::_bindgen_ty_2 = 103; - pub const KernelError_OutOfMemory: root::_bindgen_ty_2 = 104; - pub const KernelError_OutOfHandles: root::_bindgen_ty_2 = 105; - pub const KernelError_InvalidMemoryState: root::_bindgen_ty_2 = 106; - pub const KernelError_InvalidMemoryPermissions: root::_bindgen_ty_2 = 108; - pub const KernelError_InvalidMemoryRange: root::_bindgen_ty_2 = 110; - pub const KernelError_InvalidPriority: root::_bindgen_ty_2 = 112; - pub const KernelError_InvalidCoreId: root::_bindgen_ty_2 = 113; - pub const KernelError_InvalidHandle: root::_bindgen_ty_2 = 114; - pub const KernelError_InvalidUserBuffer: root::_bindgen_ty_2 = 115; - pub const KernelError_InvalidCombination: root::_bindgen_ty_2 = 116; - pub const KernelError_TimedOut: root::_bindgen_ty_2 = 117; - pub const KernelError_Cancelled: root::_bindgen_ty_2 = 118; - pub const KernelError_OutOfRange: root::_bindgen_ty_2 = 119; - pub const KernelError_InvalidEnumValue: root::_bindgen_ty_2 = 120; - pub const KernelError_NotFound: root::_bindgen_ty_2 = 121; - pub const KernelError_AlreadyExists: root::_bindgen_ty_2 = 122; - pub const KernelError_ConnectionClosed: root::_bindgen_ty_2 = 123; - pub const KernelError_UnhandledUserInterrupt: root::_bindgen_ty_2 = 124; - pub const KernelError_InvalidState: root::_bindgen_ty_2 = 125; - pub const KernelError_ReservedValue: root::_bindgen_ty_2 = 126; - pub const KernelError_InvalidHwBreakpoint: root::_bindgen_ty_2 = 127; - pub const KernelError_FatalUserException: root::_bindgen_ty_2 = 128; - pub const KernelError_OwnedByAnotherProcess: root::_bindgen_ty_2 = 129; - pub const KernelError_ConnectionRefused: root::_bindgen_ty_2 = 131; - pub const KernelError_OutOfResource: root::_bindgen_ty_2 = 132; - pub const KernelError_IpcMapFailed: root::_bindgen_ty_2 = 259; - pub const KernelError_IpcCmdbufTooSmall: root::_bindgen_ty_2 = 260; - pub const KernelError_NotDebugged: root::_bindgen_ty_2 = 520; - #[doc = " Kernel error codes"] - pub type _bindgen_ty_2 = u32; - pub const LibnxError_BadReloc: root::_bindgen_ty_3 = 1; - pub const LibnxError_OutOfMemory: root::_bindgen_ty_3 = 2; - pub const LibnxError_AlreadyMapped: root::_bindgen_ty_3 = 3; - pub const LibnxError_BadGetInfo_Stack: root::_bindgen_ty_3 = 4; - pub const LibnxError_BadGetInfo_Heap: root::_bindgen_ty_3 = 5; - pub const LibnxError_BadQueryMemory: root::_bindgen_ty_3 = 6; - pub const LibnxError_AlreadyInitialized: root::_bindgen_ty_3 = 7; - pub const LibnxError_NotInitialized: root::_bindgen_ty_3 = 8; - pub const LibnxError_NotFound: root::_bindgen_ty_3 = 9; - pub const LibnxError_IoError: root::_bindgen_ty_3 = 10; - pub const LibnxError_BadInput: root::_bindgen_ty_3 = 11; - pub const LibnxError_BadReent: root::_bindgen_ty_3 = 12; - pub const LibnxError_BufferProducerError: root::_bindgen_ty_3 = 13; - pub const LibnxError_HandleTooEarly: root::_bindgen_ty_3 = 14; - pub const LibnxError_HeapAllocFailed: root::_bindgen_ty_3 = 15; - pub const LibnxError_TooManyOverrides: root::_bindgen_ty_3 = 16; - pub const LibnxError_ParcelError: root::_bindgen_ty_3 = 17; - pub const LibnxError_BadGfxInit: root::_bindgen_ty_3 = 18; - pub const LibnxError_BadGfxEventWait: root::_bindgen_ty_3 = 19; - pub const LibnxError_BadGfxQueueBuffer: root::_bindgen_ty_3 = 20; - pub const LibnxError_BadGfxDequeueBuffer: root::_bindgen_ty_3 = 21; - pub const LibnxError_AppletCmdidNotFound: root::_bindgen_ty_3 = 22; - pub const LibnxError_BadAppletReceiveMessage: root::_bindgen_ty_3 = 23; - pub const LibnxError_BadAppletNotifyRunning: root::_bindgen_ty_3 = 24; - pub const LibnxError_BadAppletGetCurrentFocusState: root::_bindgen_ty_3 = 25; - pub const LibnxError_BadAppletGetOperationMode: root::_bindgen_ty_3 = 26; - pub const LibnxError_BadAppletGetPerformanceMode: root::_bindgen_ty_3 = 27; - pub const LibnxError_BadUsbCommsRead: root::_bindgen_ty_3 = 28; - pub const LibnxError_BadUsbCommsWrite: root::_bindgen_ty_3 = 29; - pub const LibnxError_InitFail_SM: root::_bindgen_ty_3 = 30; - pub const LibnxError_InitFail_AM: root::_bindgen_ty_3 = 31; - pub const LibnxError_InitFail_HID: root::_bindgen_ty_3 = 32; - pub const LibnxError_InitFail_FS: root::_bindgen_ty_3 = 33; - pub const LibnxError_BadGetInfo_Rng: root::_bindgen_ty_3 = 34; - pub const LibnxError_JitUnavailable: root::_bindgen_ty_3 = 35; - pub const LibnxError_WeirdKernel: root::_bindgen_ty_3 = 36; - pub const LibnxError_IncompatSysVer: root::_bindgen_ty_3 = 37; - pub const LibnxError_InitFail_Time: root::_bindgen_ty_3 = 38; - pub const LibnxError_TooManyDevOpTabs: root::_bindgen_ty_3 = 39; - pub const LibnxError_DomainMessageUnknownType: root::_bindgen_ty_3 = 40; - pub const LibnxError_DomainMessageTooManyObjectIds: root::_bindgen_ty_3 = 41; - pub const LibnxError_AppletFailedToInitialize: root::_bindgen_ty_3 = 42; - pub const LibnxError_ApmFailedToInitialize: root::_bindgen_ty_3 = 43; - pub const LibnxError_NvinfoFailedToInitialize: root::_bindgen_ty_3 = 44; - pub const LibnxError_NvbufFailedToInitialize: root::_bindgen_ty_3 = 45; - pub const LibnxError_LibAppletBadExit: root::_bindgen_ty_3 = 46; - pub const LibnxError_InvalidCmifOutHeader: root::_bindgen_ty_3 = 47; - pub const LibnxError_ShouldNotHappen: root::_bindgen_ty_3 = 48; - #[doc = " libnx error codes"] - pub type _bindgen_ty_3 = u32; - pub const LibnxBinderError_Unknown: root::_bindgen_ty_4 = 1; - pub const LibnxBinderError_NoMemory: root::_bindgen_ty_4 = 2; - pub const LibnxBinderError_InvalidOperation: root::_bindgen_ty_4 = 3; - pub const LibnxBinderError_BadValue: root::_bindgen_ty_4 = 4; - pub const LibnxBinderError_BadType: root::_bindgen_ty_4 = 5; - pub const LibnxBinderError_NameNotFound: root::_bindgen_ty_4 = 6; - pub const LibnxBinderError_PermissionDenied: root::_bindgen_ty_4 = 7; - pub const LibnxBinderError_NoInit: root::_bindgen_ty_4 = 8; - pub const LibnxBinderError_AlreadyExists: root::_bindgen_ty_4 = 9; - pub const LibnxBinderError_DeadObject: root::_bindgen_ty_4 = 10; - pub const LibnxBinderError_FailedTransaction: root::_bindgen_ty_4 = 11; - pub const LibnxBinderError_BadIndex: root::_bindgen_ty_4 = 12; - pub const LibnxBinderError_NotEnoughData: root::_bindgen_ty_4 = 13; - pub const LibnxBinderError_WouldBlock: root::_bindgen_ty_4 = 14; - pub const LibnxBinderError_TimedOut: root::_bindgen_ty_4 = 15; - pub const LibnxBinderError_UnknownTransaction: root::_bindgen_ty_4 = 16; - pub const LibnxBinderError_FdsNotAllowed: root::_bindgen_ty_4 = 17; - #[doc = " libnx binder error codes"] - pub type _bindgen_ty_4 = u32; - pub const LibnxNvidiaError_Unknown: root::_bindgen_ty_5 = 1; - #[doc = "< Maps to Nvidia: 1"] - pub const LibnxNvidiaError_NotImplemented: root::_bindgen_ty_5 = 2; - #[doc = "< Maps to Nvidia: 2"] - pub const LibnxNvidiaError_NotSupported: root::_bindgen_ty_5 = 3; - #[doc = "< Maps to Nvidia: 3"] - pub const LibnxNvidiaError_NotInitialized: root::_bindgen_ty_5 = 4; - #[doc = "< Maps to Nvidia: 4"] - pub const LibnxNvidiaError_BadParameter: root::_bindgen_ty_5 = 5; - #[doc = "< Maps to Nvidia: 5"] - pub const LibnxNvidiaError_Timeout: root::_bindgen_ty_5 = 6; - #[doc = "< Maps to Nvidia: 6"] - pub const LibnxNvidiaError_InsufficientMemory: root::_bindgen_ty_5 = 7; - #[doc = "< Maps to Nvidia: 7"] - pub const LibnxNvidiaError_ReadOnlyAttribute: root::_bindgen_ty_5 = 8; - #[doc = "< Maps to Nvidia: 8"] - pub const LibnxNvidiaError_InvalidState: root::_bindgen_ty_5 = 9; - #[doc = "< Maps to Nvidia: 9"] - pub const LibnxNvidiaError_InvalidAddress: root::_bindgen_ty_5 = 10; - #[doc = "< Maps to Nvidia: 10"] - pub const LibnxNvidiaError_InvalidSize: root::_bindgen_ty_5 = 11; - #[doc = "< Maps to Nvidia: 11"] - pub const LibnxNvidiaError_BadValue: root::_bindgen_ty_5 = 12; - #[doc = "< Maps to Nvidia: 13"] - pub const LibnxNvidiaError_AlreadyAllocated: root::_bindgen_ty_5 = 13; - #[doc = "< Maps to Nvidia: 14"] - pub const LibnxNvidiaError_Busy: root::_bindgen_ty_5 = 14; - #[doc = "< Maps to Nvidia: 15"] - pub const LibnxNvidiaError_ResourceError: root::_bindgen_ty_5 = 15; - #[doc = "< Maps to Nvidia: 16"] - pub const LibnxNvidiaError_CountMismatch: root::_bindgen_ty_5 = 16; - #[doc = "< Maps to Nvidia: 0x1000"] - pub const LibnxNvidiaError_SharedMemoryTooSmall: root::_bindgen_ty_5 = 17; - #[doc = "< Maps to Nvidia: 0x30003"] - pub const LibnxNvidiaError_FileOperationFailed: root::_bindgen_ty_5 = 18; - #[doc = "< Maps to Nvidia: 0x3000F"] - pub const LibnxNvidiaError_IoctlFailed: root::_bindgen_ty_5 = 19; - #[doc = " libnx nvidia error codes"] - pub type _bindgen_ty_5 = u32; - pub mod nn { - #[allow(unused_imports)] - use self::super::super::root; - pub type ApplicationId = u64; - #[repr(C)] - pub struct TimeSpan { - pub nanoseconds: u64, - } - #[test] - fn bindgen_test_layout_TimeSpan() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(TimeSpan)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(TimeSpan)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).nanoseconds as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(TimeSpan), - "::", - stringify!(nanoseconds) - ) - ); - } - pub mod time { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn4time10InitializeEv"] - pub fn Initialize() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4time12IsInitialzedEv"] - pub fn IsInitialzed() -> bool; - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct CalendarTime { - pub year: root::s16, - pub month: root::s8, - pub day: root::s8, - pub hour: root::s8, - pub minute: root::s8, - pub second: root::s8, - } - #[test] - fn bindgen_test_layout_CalendarTime() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(CalendarTime)) - ); - assert_eq!( - ::core::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(CalendarTime)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).year as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(year) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).month as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(month) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).day as *const _ as usize }, - 3usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(day) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).hour as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(hour) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).minute as *const _ as usize - }, - 5usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(minute) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).second as *const _ as usize - }, - 6usize, - concat!( - "Offset of field: ", - stringify!(CalendarTime), - "::", - stringify!(second) - ) - ); - } - pub const DayOfTheWeek_Sunday: root::nn::time::DayOfTheWeek = 0; - pub const DayOfTheWeek_Monday: root::nn::time::DayOfTheWeek = 1; - pub const DayOfTheWeek_Tuesday: root::nn::time::DayOfTheWeek = 2; - pub const DayOfTheWeek_Wednesday: root::nn::time::DayOfTheWeek = 3; - pub const DayOfTheWeek_Thursday: root::nn::time::DayOfTheWeek = 4; - pub const DayOfTheWeek_Friday: root::nn::time::DayOfTheWeek = 5; - pub const DayOfTheWeek_Saturday: root::nn::time::DayOfTheWeek = 6; - pub type DayOfTheWeek = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct TimeZone { - pub standardTimeName: [skyline_libc::c_char; 8usize], - pub _9: bool, - pub utcOffset: root::s32, - } - #[test] - fn bindgen_test_layout_TimeZone() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(TimeZone)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(TimeZone)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).standardTimeName as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(TimeZone), - "::", - stringify!(standardTimeName) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._9 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(TimeZone), - "::", - stringify!(_9) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).utcOffset as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(TimeZone), - "::", - stringify!(utcOffset) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct CalendarAdditionalInfo { - pub dayOfTheWeek: root::nn::time::DayOfTheWeek, - pub dayofYear: root::s32, - pub timeZone: root::nn::time::TimeZone, - } - #[test] - fn bindgen_test_layout_CalendarAdditionalInfo() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(CalendarAdditionalInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(CalendarAdditionalInfo)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).dayOfTheWeek as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CalendarAdditionalInfo), - "::", - stringify!(dayOfTheWeek) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).dayofYear as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(CalendarAdditionalInfo), - "::", - stringify!(dayofYear) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).timeZone as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(CalendarAdditionalInfo), - "::", - stringify!(timeZone) - ) - ); - } - #[repr(C)] - pub struct PosixTime { - pub time: u64, - } - #[test] - fn bindgen_test_layout_PosixTime() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(PosixTime)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PosixTime)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).time as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PosixTime), - "::", - stringify!(time) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct StandardUserSystemClock { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_StandardUserSystemClock() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(StandardUserSystemClock)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(StandardUserSystemClock)) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4time23StandardUserSystemClock14GetCurrentTimeEPNS0_9PosixTimeE"] - pub fn StandardUserSystemClock_GetCurrentTime( - arg1: *mut root::nn::time::PosixTime, - ) -> root::Result; - } - impl StandardUserSystemClock { - #[inline] - pub unsafe fn GetCurrentTime(arg1: *mut root::nn::time::PosixTime) -> root::Result { - StandardUserSystemClock_GetCurrentTime(arg1) - } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct TimeZoneRule { - _unused: [u8; 0], - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4time14ToCalendarTimeEPNS0_12CalendarTimeEPNS0_22CalendarAdditionalInfoERKNS0_9PosixTimeERKNS0_12TimeZoneRuleE"] - pub fn ToCalendarTime( - arg1: *mut root::nn::time::CalendarTime, - arg2: *mut root::nn::time::CalendarAdditionalInfo, - arg3: *const root::nn::time::PosixTime, - arg4: *const root::nn::time::TimeZoneRule, - ) -> root::Result; - } - } - pub mod os { - #[allow(unused_imports)] - use self::super::super::super::root; - pub mod detail { - #[allow(unused_imports)] - use self::super::super::super::super::root; - #[repr(C)] - pub struct InternalCriticalSection { - pub Image: u32, - } - #[test] - fn bindgen_test_layout_InternalCriticalSection() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(InternalCriticalSection)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(InternalCriticalSection)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Image as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(InternalCriticalSection), - "::", - stringify!(Image) - ) - ); - } - #[repr(C)] - pub struct InternalConditionVariable { - pub Image: u32, - } - #[test] - fn bindgen_test_layout_InternalConditionVariable() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(InternalConditionVariable)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(InternalConditionVariable)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Image as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(InternalConditionVariable), - "::", - stringify!(Image) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os6detail22g_CommandLineParameterE"] - pub static mut g_CommandLineParameter: root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os6detail26g_CommandLineParameterArgvE"] - pub static mut g_CommandLineParameterArgv: *mut *mut skyline_libc::c_char; - } - } - pub type Tick = u64; - pub type LightEventType = u64; - #[repr(C)] - pub struct EventType { - pub _x0: *mut root::nn::os::EventType, - pub _x8: *mut root::nn::os::EventType, - pub isSignaled: bool, - pub initiallySignaled: bool, - pub shouldAutoClear: bool, - pub isInit: bool, - pub signalCounter: u32, - pub signalCounter2: u32, - pub crit: root::nn::os::detail::InternalCriticalSection, - pub condvar: root::nn::os::detail::InternalConditionVariable, - } - #[test] - fn bindgen_test_layout_EventType() { - assert_eq!( - ::core::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(EventType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EventType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(_x0) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x8 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).isSignaled as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(isSignaled) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).initiallySignaled as *const _ - as usize - }, - 17usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(initiallySignaled) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).shouldAutoClear as *const _ as usize - }, - 18usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(shouldAutoClear) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).isInit as *const _ as usize }, - 19usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(isInit) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).signalCounter as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(signalCounter) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).signalCounter2 as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(signalCounter2) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).crit as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(crit) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).condvar as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(EventType), - "::", - stringify!(condvar) - ) - ); - } - pub type Event = root::nn::os::EventType; - pub const EventClearMode_EventClearMode_ManualClear: root::nn::os::EventClearMode = 0; - pub const EventClearMode_EventClearMode_AutoClear: root::nn::os::EventClearMode = 1; - pub type EventClearMode = u32; - #[repr(C)] - pub struct ThreadType { - pub _0: [u8; 64usize], - pub State: u32, - pub _44: bool, - pub _45: bool, - pub _46: u8, - pub PriorityBase: u32, - pub StackBase: *mut skyline_libc::c_void, - pub Stack: *mut skyline_libc::c_void, - pub StackSize: root::size_t, - pub Arg: *mut skyline_libc::c_void, - pub ThreadFunc: u64, - pub _88: [u8; 256usize], - pub Name: [skyline_libc::c_char; 32usize], - pub Crit: root::nn::os::detail::InternalCriticalSection, - pub Condvar: root::nn::os::detail::InternalConditionVariable, - pub Handle: u32, - pub padding: [u8; 24usize], - } - #[test] - fn bindgen_test_layout_ThreadType() { - assert_eq!( - ::core::mem::size_of::(), - 448usize, - concat!("Size of: ", stringify!(ThreadType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ThreadType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(_0) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).State as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(State) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._44 as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(_44) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._45 as *const _ as usize }, - 69usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(_45) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._46 as *const _ as usize }, - 70usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(_46) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).PriorityBase as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(PriorityBase) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).StackBase as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(StackBase) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Stack as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Stack) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).StackSize as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(StackSize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Arg as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Arg) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ThreadFunc as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(ThreadFunc) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._88 as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(_88) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Name as *const _ as usize }, - 376usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Crit as *const _ as usize }, - 408usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Crit) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Condvar as *const _ as usize }, - 412usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Condvar) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Handle as *const _ as usize }, - 416usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(Handle) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).padding as *const _ as usize }, - 420usize, - concat!( - "Offset of field: ", - stringify!(ThreadType), - "::", - stringify!(padding) - ) - ); - } - #[repr(C)] - pub struct MessageQueueType { - pub _x0: u64, - pub _x8: u64, - pub _x10: u64, - pub _x18: u64, - pub Buffer: *mut skyline_libc::c_void, - pub MaxCount: u32, - pub Count: u32, - pub Offset: u32, - pub Initialized: bool, - pub _x38: root::nn::os::detail::InternalCriticalSection, - pub _x3C: root::nn::os::detail::InternalConditionVariable, - pub _x40: root::nn::os::detail::InternalConditionVariable, - } - #[test] - fn bindgen_test_layout_MessageQueueType() { - assert_eq!( - ::core::mem::size_of::(), - 72usize, - concat!("Size of: ", stringify!(MessageQueueType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(MessageQueueType)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x0 as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x0) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x8 as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x10 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x10) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x18 as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x18) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Buffer as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(Buffer) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).MaxCount as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(MaxCount) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Count as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(Count) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Offset as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(Offset) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).Initialized as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(Initialized) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x38 as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x38) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x3C as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x3C) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x40 as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(MessageQueueType), - "::", - stringify!(_x40) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ConditionVariableType { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_ConditionVariableType() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(ConditionVariableType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(ConditionVariableType)) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct SystemEvent { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct SystemEventType { - _unused: [u8; 0], - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11SetHostArgcEi"] - pub fn SetHostArgc(arg1: root::s32); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11GetHostArgcEv"] - pub fn GetHostArgc() -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11SetHostArgvEPPc"] - pub fn SetHostArgv(arg1: *mut *mut skyline_libc::c_char); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11GetHostArgvEv"] - pub fn GetHostArgv() -> *mut *mut skyline_libc::c_char; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os30InitializeVirtualAddressMemoryEv"] - pub fn InitializeVirtualAddressMemory(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os21AllocateAddressRegionEPmm"] - pub fn AllocateAddressRegion(arg1: *mut u64, arg2: u64) - -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os14AllocateMemoryEPmm"] - pub fn AllocateMemory(arg1: *mut u64, arg2: u64) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19AllocateMemoryPagesEmm"] - pub fn AllocateMemoryPages(arg1: u64, arg2: u64) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19AllocateMemoryBlockEPmm"] - pub fn AllocateMemoryBlock(arg1: *mut u64, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os15FreeMemoryBlockEmm"] - pub fn FreeMemoryBlock(arg1: u64, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os17SetMemoryHeapSizeEm"] - pub fn SetMemoryHeapSize(arg1: u64); - } - #[repr(C)] - pub struct MutexType { - pub impl_: root::nnosMutexType, - } - #[test] - fn bindgen_test_layout_MutexType() { - assert_eq!( - ::core::mem::size_of::(), - 28usize, - concat!("Size of: ", stringify!(MutexType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(MutexType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).impl_ as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(MutexType), - "::", - stringify!(impl_) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os15InitializeMutexEPNS0_9MutexTypeEbi"] - pub fn InitializeMutex( - arg1: *mut root::nn::os::MutexType, - arg2: bool, - arg3: root::s32, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13FinalizeMutexEPNS0_9MutexTypeE"] - pub fn FinalizeMutex(arg1: *mut root::nn::os::MutexType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os9LockMutexEPNS0_9MutexTypeE"] - pub fn LockMutex(arg1: *mut root::nn::os::MutexType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os12TryLockMutexEPNS0_9MutexTypeE"] - pub fn TryLockMutex(arg1: *mut root::nn::os::MutexType) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11UnlockMutexEPNS0_9MutexTypeE"] - pub fn UnlockMutex(arg1: *mut root::nn::os::MutexType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os28IsMutexLockedByCurrentThreadEPKNS0_9MutexTypeE"] - pub fn IsMutexLockedByCurrentThread(arg1: *const root::nn::os::MutexType) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os22InitializeMessageQueueEPNS0_16MessageQueueTypeEPmm"] - pub fn InitializeMessageQueue( - arg1: *mut root::nn::os::MessageQueueType, - buf: *mut u64, - queueCount: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os20FinalizeMessageQueueEPNS0_16MessageQueueTypeE"] - pub fn FinalizeMessageQueue(arg1: *mut root::nn::os::MessageQueueType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19TrySendMessageQueueEPNS0_16MessageQueueTypeEm"] - pub fn TrySendMessageQueue( - arg1: *mut root::nn::os::MessageQueueType, - arg2: u64, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os16SendMessageQueueEPNS0_16MessageQueueTypeEm"] - pub fn SendMessageQueue(arg1: *mut root::nn::os::MessageQueueType, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os21TimedSendMessageQueueEPNS0_16MessageQueueTypeEmNS_8TimeSpanE"] - pub fn TimedSendMessageQueue( - arg1: *mut root::nn::os::MessageQueueType, - arg2: u64, - arg3: root::nn::TimeSpan, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os22TryReceiveMessageQueueEPmPNS0_16MessageQueueTypeE"] - pub fn TryReceiveMessageQueue( - out: *mut u64, - arg1: *mut root::nn::os::MessageQueueType, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19ReceiveMessageQueueEPmPNS0_16MessageQueueTypeE"] - pub fn ReceiveMessageQueue( - out: *mut u64, - arg1: *mut root::nn::os::MessageQueueType, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os24TimedReceiveMessageQueueEPmPNS0_16MessageQueueTypeENS_8TimeSpanE"] - pub fn TimedReceiveMessageQueue( - out: *mut u64, - arg1: *mut root::nn::os::MessageQueueType, - arg2: root::nn::TimeSpan, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19TryPeekMessageQueueEPmPKNS0_16MessageQueueTypeE"] - pub fn TryPeekMessageQueue( - arg1: *mut u64, - arg2: *const root::nn::os::MessageQueueType, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os16PeekMessageQueueEPmPKNS0_16MessageQueueTypeE"] - pub fn PeekMessageQueue( - arg1: *mut u64, - arg2: *const root::nn::os::MessageQueueType, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os21TimedPeekMessageQueueEPmPKNS0_16MessageQueueTypeE"] - pub fn TimedPeekMessageQueue( - arg1: *mut u64, - arg2: *const root::nn::os::MessageQueueType, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os18TryJamMessageQueueEPNS0_16MessageQueueTypeEm"] - pub fn TryJamMessageQueue( - arg1: *mut root::nn::os::MessageQueueType, - arg2: u64, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os15JamMessageQueueEPNS0_16MessageQueueTypeEm"] - pub fn JamMessageQueue(arg1: *mut root::nn::os::MessageQueueType, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os20TimedJamMessageQueueEPNS0_16MessageQueueTypeEmNS_8TimeSpanE"] - pub fn TimedJamMessageQueue( - arg1: *mut root::nn::os::MessageQueueType, - arg2: u64, - arg3: root::nn::TimeSpan, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os27InitializeConditionVariableEPNS0_21ConditionVariableTypeE"] - pub fn InitializeConditionVariable(arg1: *mut root::nn::os::ConditionVariableType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os25FinalizeConditionVariableEPNS0_21ConditionVariableTypeE"] - pub fn FinalizeConditionVariable(arg1: *mut root::nn::os::ConditionVariableType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os23SignalConditionVariableEPNS0_21ConditionVariableTypeE"] - pub fn SignalConditionVariable(arg1: *mut root::nn::os::ConditionVariableType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os26BroadcastConditionVariableEPNS0_21ConditionVariableTypeE"] - pub fn BroadcastConditionVariable(arg1: *mut root::nn::os::ConditionVariableType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os21WaitConditionVariableEPNS0_21ConditionVariableTypeE"] - pub fn WaitConditionVariable(arg1: *mut root::nn::os::ConditionVariableType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os26TimedWaitConditionVariableEPNS0_21ConditionVariableTypeEPNS0_9MutexTypeENS_8TimeSpanE"] - pub fn TimedWaitConditionVariable( - arg1: *mut root::nn::os::ConditionVariableType, - arg2: *mut root::nn::os::MutexType, - arg3: root::nn::TimeSpan, - ) -> u8; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os12CreateThreadEPNS0_10ThreadTypeEPFvPvES3_S3_mii"] - pub fn CreateThread( - arg1: *mut root::nn::os::ThreadType, - arg2: ::core::option::Option< - unsafe extern "C" fn(arg1: *mut skyline_libc::c_void), - >, - arg: *mut skyline_libc::c_void, - srcStack: *mut skyline_libc::c_void, - stackSize: u64, - priority: root::s32, - coreNum: root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13DestroyThreadEPNS0_10ThreadTypeE"] - pub fn DestroyThread(arg1: *mut root::nn::os::ThreadType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11StartThreadEPNS0_10ThreadTypeE"] - pub fn StartThread(arg1: *mut root::nn::os::ThreadType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13SetThreadNameEPNS0_10ThreadTypeEPKc"] - pub fn SetThreadName( - arg1: *mut root::nn::os::ThreadType, - threadName: *const skyline_libc::c_char, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os20SetThreadNamePointerEPNS0_10ThreadTypeEPKc"] - pub fn SetThreadNamePointer( - arg1: *mut root::nn::os::ThreadType, - arg2: *const skyline_libc::c_char, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os20GetThreadNamePointerEPKNS0_10ThreadTypeE"] - pub fn GetThreadNamePointer( - arg1: *const root::nn::os::ThreadType, - ) -> *mut skyline_libc::c_char; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os16GetCurrentThreadEv"] - pub fn GetCurrentThread() -> *mut root::nn::os::ThreadType; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os20ChangeThreadPriorityEPNS0_10ThreadTypeEi"] - pub fn ChangeThreadPriority( - thread: *mut root::nn::os::ThreadType, - priority: root::s32, - ) -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os17GetThreadPriorityEPKNS0_10ThreadTypeE"] - pub fn GetThreadPriority(thread: *const root::nn::os::ThreadType) -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11YieldThreadEv"] - pub fn YieldThread(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13SuspendThreadEPNS0_10ThreadTypeE"] - pub fn SuspendThread(arg1: *mut root::nn::os::ThreadType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os12ResumeThreadEPNS0_10ThreadTypeE"] - pub fn ResumeThread(arg1: *mut root::nn::os::ThreadType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11SleepThreadENS_8TimeSpanE"] - pub fn SleepThread(arg1: root::nn::TimeSpan); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os15InitializeEventEPNS0_9EventTypeEbNS0_14EventClearModeE"] - pub fn InitializeEvent( - arg1: *mut root::nn::os::EventType, - initiallySignaled: bool, - clearMode: root::nn::os::EventClearMode, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13FinalizeEventEPNS0_9EventTypeE"] - pub fn FinalizeEvent(arg1: *mut root::nn::os::EventType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os11SignalEventEPNS0_9EventTypeE"] - pub fn SignalEvent(arg1: *mut root::nn::os::EventType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os9WaitEventEPNS0_9EventTypeE"] - pub fn WaitEvent(arg1: *mut root::nn::os::EventType); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os12TryWaitEventEPNS0_9EventTypeE"] - pub fn TryWaitEvent(arg1: *mut root::nn::os::EventType) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os14TimedWaitEventEPNS0_9EventTypeENS_8TimeSpanE"] - pub fn TimedWaitEvent( - arg1: *mut root::nn::os::EventType, - arg2: root::nn::TimeSpan, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os10ClearEventEPNS0_9EventTypeE"] - pub fn ClearEvent(arg1: *mut root::nn::os::EventType); - } - #[repr(C)] - pub struct CpuRegister { - #[doc = "< 64-bit AArch64 register view."] - pub x: root::__BindgenUnionField, - #[doc = "< 32-bit AArch64 register view."] - pub w: root::__BindgenUnionField, - #[doc = "< AArch32 register view."] - pub r: root::__BindgenUnionField, - pub bindgen_union_field: u64, - } - #[test] - fn bindgen_test_layout_CpuRegister() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(CpuRegister)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(CpuRegister)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CpuRegister), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).w as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CpuRegister), - "::", - stringify!(w) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(CpuRegister), - "::", - stringify!(r) - ) - ); - } - #[doc = " Armv8 NEON register."] - #[repr(C)] - #[repr(align(16))] - pub struct FpuRegister { - #[doc = "< 128-bit vector view."] - pub v: root::__BindgenUnionField, - #[doc = "< 64-bit double-precision view."] - pub d: root::__BindgenUnionField, - #[doc = "< 32-bit single-precision view."] - pub s: root::__BindgenUnionField, - pub bindgen_union_field: u128, - } - #[test] - fn bindgen_test_layout_FpuRegister() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(FpuRegister)) - ); - assert_eq!( - ::core::mem::align_of::(), - 16usize, - concat!("Alignment of ", stringify!(FpuRegister)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).v as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FpuRegister), - "::", - stringify!(v) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).d as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FpuRegister), - "::", - stringify!(d) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).s as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FpuRegister), - "::", - stringify!(s) - ) - ); - } - #[repr(C)] - #[repr(align(16))] - pub struct UserExceptionInfo { - #[doc = "< See \\ref ThreadExceptionDesc."] - pub ErrorDescription: u32, - pub pad: [u32; 3usize], - #[doc = "< GPRs 0..28. Note: also contains AArch32 registers."] - pub CpuRegisters: [root::nn::os::CpuRegister; 29usize], - #[doc = "< Frame pointer."] - pub FP: root::nn::os::CpuRegister, - #[doc = "< Link register."] - pub LR: root::nn::os::CpuRegister, - #[doc = "< Stack pointer."] - pub SP: root::nn::os::CpuRegister, - #[doc = "< Program counter (elr_el1)."] - pub PC: root::nn::os::CpuRegister, - pub padding: u64, - #[doc = "< 32 general-purpose NEON registers."] - pub FpuRegisters: [root::nn::os::FpuRegister; 32usize], - #[doc = "< pstate & 0xFF0FFE20"] - pub PState: u32, - pub AFSR0: u32, - pub AFSR1: u32, - pub ESR: u32, - #[doc = "< Fault Address Register."] - pub FAR: root::nn::os::CpuRegister, - } - #[test] - fn bindgen_test_layout_UserExceptionInfo() { - assert_eq!( - ::core::mem::size_of::(), - 832usize, - concat!("Size of: ", stringify!(UserExceptionInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 16usize, - concat!("Alignment of ", stringify!(UserExceptionInfo)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ErrorDescription as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(ErrorDescription) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).pad as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(pad) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).CpuRegisters as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(CpuRegisters) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).FP as *const _ as usize - }, - 248usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(FP) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).LR as *const _ as usize - }, - 256usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(LR) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).SP as *const _ as usize - }, - 264usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(SP) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).PC as *const _ as usize - }, - 272usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(PC) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).padding as *const _ as usize - }, - 280usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(padding) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).FpuRegisters as *const _ - as usize - }, - 288usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(FpuRegisters) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).PState as *const _ as usize - }, - 800usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(PState) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).AFSR0 as *const _ as usize - }, - 804usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(AFSR0) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).AFSR1 as *const _ as usize - }, - 808usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(AFSR1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ESR as *const _ as usize - }, - 812usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(ESR) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).FAR as *const _ as usize - }, - 816usize, - concat!( - "Offset of field: ", - stringify!(UserExceptionInfo), - "::", - stringify!(FAR) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os23SetUserExceptionHandlerEPFvPNS0_17UserExceptionInfoEEPvmS2_"] - #[allow(improper_ctypes)] - pub fn SetUserExceptionHandler( - arg1: ::core::option::Option< - unsafe extern "C" fn(arg1: *mut root::nn::os::UserExceptionInfo), - >, - arg2: *mut skyline_libc::c_void, - arg3: root::ulong, - arg4: *mut root::nn::os::UserExceptionInfo, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os19GenerateRandomBytesEPvm"] - pub fn GenerateRandomBytes(arg1: *mut skyline_libc::c_void, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os13GetSystemTickEv"] - pub fn GetSystemTick() -> root::nn::os::Tick; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2os26GetThreadAvailableCoreMaskEv"] - pub fn GetThreadAvailableCoreMask() -> u64; - } - } - pub mod settings { - #[allow(unused_imports)] - use self::super::super::super::root; - pub mod system { - #[allow(unused_imports)] - use self::super::super::super::super::root; - #[repr(C)] - pub struct FirmwareVersion { - pub major: u8, - pub minor: u8, - pub micro: u8, - pub padding1: u8, - pub revision_major: u8, - pub revision_minor: u8, - pub padding2: u8, - pub padding3: u8, - pub platform: [skyline_libc::c_char; 32usize], - pub version_hash: [skyline_libc::c_char; 64usize], - pub display_version: [skyline_libc::c_char; 24usize], - pub display_title: [skyline_libc::c_char; 128usize], - } - #[test] - fn bindgen_test_layout_FirmwareVersion() { - assert_eq!( - ::core::mem::size_of::(), - 256usize, - concat!("Size of: ", stringify!(FirmwareVersion)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(FirmwareVersion)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).major as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(major) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).minor as *const _ as usize - }, - 1usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(minor) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).micro as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(micro) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).padding1 as *const _ - as usize - }, - 3usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(padding1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).revision_major as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(revision_major) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).revision_minor as *const _ - as usize - }, - 5usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(revision_minor) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).padding2 as *const _ - as usize - }, - 6usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(padding2) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).padding3 as *const _ - as usize - }, - 7usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(padding3) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).platform as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(platform) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).version_hash as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(version_hash) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).display_version as *const _ - as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(display_version) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).display_title as *const _ - as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(FirmwareVersion), - "::", - stringify!(display_title) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn8settings6system18GetFirmwareVersionEPNS1_15FirmwareVersionE"] - pub fn GetFirmwareVersion( - arg1: *mut root::nn::settings::system::FirmwareVersion, - ) -> root::Result; - } - } - pub const Language_Language_Japanese: root::nn::settings::Language = 0; - pub const Language_Language_English: root::nn::settings::Language = 1; - pub const Language_Language_French: root::nn::settings::Language = 2; - pub const Language_Language_German: root::nn::settings::Language = 3; - pub const Language_Language_Italian: root::nn::settings::Language = 4; - pub const Language_Language_Spanish: root::nn::settings::Language = 5; - pub const Language_Language_Chinese: root::nn::settings::Language = 6; - pub const Language_Language_Korean: root::nn::settings::Language = 7; - pub const Language_Language_Dutch: root::nn::settings::Language = 8; - pub const Language_Language_Portuguese: root::nn::settings::Language = 9; - pub const Language_Language_Russian: root::nn::settings::Language = 10; - pub const Language_Language_Taiwanese: root::nn::settings::Language = 11; - pub const Language_Language_BritishEnglish: root::nn::settings::Language = 12; - pub const Language_Language_CanadianFrench: root::nn::settings::Language = 13; - pub const Language_Language_LatinAmericanSpanish: root::nn::settings::Language = 14; - pub type Language = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct LanguageCode { - pub code: [skyline_libc::c_char; 8usize], - } - #[test] - fn bindgen_test_layout_LanguageCode() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(LanguageCode)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(LanguageCode)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).code as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(LanguageCode), - "::", - stringify!(code) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn8settings12LanguageCode4MakeENS0_8LanguageE"] - pub fn LanguageCode_Make( - arg1: root::nn::settings::Language, - ) -> root::nn::settings::LanguageCode; - } - impl LanguageCode { - #[inline] - pub unsafe fn Make( - arg1: root::nn::settings::Language, - ) -> root::nn::settings::LanguageCode { - LanguageCode_Make(arg1) - } - } - } - pub mod oe { - #[allow(unused_imports)] - use self::super::super::super::root; - pub type FocusHandlingMode = root::s32; - pub type PerformanceMode = root::s32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct DisplayVersion { - pub name: [skyline_libc::c_char; 16usize], - } - #[test] - fn bindgen_test_layout_DisplayVersion() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(DisplayVersion)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(DisplayVersion)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).name as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DisplayVersion), - "::", - stringify!(name) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe10InitializeEv"] - pub fn Initialize(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe27SetPerformanceConfigurationEii"] - pub fn SetPerformanceConfiguration( - arg1: root::nn::oe::PerformanceMode, - arg2: root::s32, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe16GetOperationModeEv"] - pub fn GetOperationMode() -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe18GetPerformanceModeEv"] - pub fn GetPerformanceMode() -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe28SetResumeNotificationEnabledEb"] - pub fn SetResumeNotificationEnabled(arg1: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe42SetOperationModeChangedNotificationEnabledEb"] - pub fn SetOperationModeChangedNotificationEnabled(arg1: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe44SetPerformanceModeChangedNotificationEnabledEb"] - pub fn SetPerformanceModeChangedNotificationEnabled(arg1: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe20SetFocusHandlingModeEi"] - pub fn SetFocusHandlingMode(arg1: root::nn::oe::FocusHandlingMode); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe25TryPopNotificationMessageEPj"] - pub fn TryPopNotificationMessage(arg1: *mut u32) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe20GetCurrentFocusStateEv"] - pub fn GetCurrentFocusState() -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe23EnableGamePlayRecordingEPvm"] - pub fn EnableGamePlayRecording(arg1: *mut skyline_libc::c_void, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe37IsUserInactivityDetectionTimeExtendedEv"] - pub fn IsUserInactivityDetectionTimeExtended() -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe38SetUserInactivityDetectionTimeExtendedEb"] - pub fn SetUserInactivityDetectionTimeExtended(arg1: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe17FinishStartupLogoEv"] - pub fn FinishStartupLogo(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe18GetDesiredLanguageEv"] - pub fn GetDesiredLanguage() -> root::nn::settings::LanguageCode; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2oe17GetDisplayVersionEPNS0_14DisplayVersionE"] - pub fn GetDisplayVersion(arg1: *mut root::nn::oe::DisplayVersion); - } - } - pub mod account { - #[allow(unused_imports)] - use self::super::super::super::root; - - //pub type Nickname = [skyline_libc::c_char; 33usize]; - #[repr(transparent)] - pub struct Nickname(pub [skyline_libc::c_char; 33usize]); - - impl Nickname { - pub fn new() -> Self { - Self([0; 33]) - } - } - - impl core::fmt::Display for Nickname { - fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { - let mut i = 0; - while self.0[i] != 0 { - i += 1; - } - - write!(f, "{}", unsafe { alloc::str::from_utf8_unchecked(&self.0[..i]) }) - } - } - - #[repr(C)] - pub struct Uid { - pub id: [u64; 2usize], - } - - impl Uid { - pub fn new() -> Self { - Self { id: [0, 0] } - } - } - - #[test] - fn bindgen_test_layout_Uid() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Uid)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Uid)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x0 as *const _ as usize }, - 0usize, - concat!("Offset of field: ", stringify!(Uid), "::", stringify!(_x0)) - ); - } - pub type NetworkServiceAccountId = u64; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct UserHandle { - _unused: [u8; 0], - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account10InitializeEv"] - pub fn Initialize(); - } - - extern "C" { - #[link_name = "\u{1}_ZN2nn7account15ShowUserCreatorEv"] - pub fn ShowUserCreator(); - } - - pub mod detail { - extern "C" { - #[link_name = "\u{1}_ZN2nn7account6detail13IsInitializedEv"] - pub fn IsInitialized() -> bool; - } - } - - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12ListAllUsersEPiPNS0_3UidEi"] - pub fn ListAllUsers( - arg1: *mut root::s32, - arg2: *mut root::nn::account::Uid, - numUsers: root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account8OpenUserEPNS0_10UserHandleERKNS0_3UidE"] - pub fn OpenUser( - arg1: *mut root::nn::account::UserHandle, - arg2: *const root::nn::account::Uid, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account32IsNetworkServiceAccountAvailableEPbRKNS0_10UserHandleE"] - pub fn IsNetworkServiceAccountAvailable( - out: *mut bool, - arg1: *const root::nn::account::UserHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account9CloseUserERKNS0_10UserHandleE"] - pub fn CloseUser(arg1: *const root::nn::account::UserHandle); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account36EnsureNetworkServiceAccountAvailableERKNS0_10UserHandleE"] - pub fn EnsureNetworkServiceAccountAvailable( - userHandle: *const root::nn::account::UserHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account44EnsureNetworkServiceAccountIdTokenCacheAsyncEPNS0_12AsyncContextERKNS0_10UserHandleE"] - pub fn EnsureNetworkServiceAccountIdTokenCacheAsync( - arg1: *mut root::nn::account::AsyncContext, - arg2: *const root::nn::account::UserHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account37LoadNetworkServiceAccountIdTokenCacheEPmPcmRKNS0_10UserHandleE"] - pub fn LoadNetworkServiceAccountIdTokenCache( - arg1: *mut u64, - arg2: *mut skyline_libc::c_char, - arg3: u64, - arg4: *const root::nn::account::UserHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account17GetLastOpenedUserEPNS0_3UidE"] - pub fn GetLastOpenedUser(arg1: *mut root::nn::account::Uid) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account11GetNicknameEPNS0_8NicknameERKNS0_3UidE"] - pub fn GetNickname( - nickname: *mut root::nn::account::Nickname, - userID: *const root::nn::account::Uid, - ) -> root::Result; - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct AsyncContext { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_AsyncContext() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(AsyncContext)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(AsyncContext)) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12AsyncContext7HasDoneEPb"] - pub fn AsyncContext_HasDone( - this: *mut root::nn::account::AsyncContext, - arg1: *mut bool, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12AsyncContext9GetResultEv"] - pub fn AsyncContext_GetResult( - this: *mut root::nn::account::AsyncContext, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12AsyncContext6CancelEv"] - pub fn AsyncContext_Cancel( - this: *mut root::nn::account::AsyncContext, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12AsyncContext14GetSystemEventEPNS_2os11SystemEventE"] - pub fn AsyncContext_GetSystemEvent( - this: *mut root::nn::account::AsyncContext, - arg1: *mut root::nn::os::SystemEvent, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7account12AsyncContextC1Ev"] - pub fn AsyncContext_AsyncContext(this: *mut root::nn::account::AsyncContext); - } - impl AsyncContext { - #[inline] - pub unsafe fn HasDone(&mut self, arg1: *mut bool) -> root::Result { - AsyncContext_HasDone(self, arg1) - } - #[inline] - pub unsafe fn GetResult(&mut self) -> root::Result { - AsyncContext_GetResult(self) - } - #[inline] - pub unsafe fn Cancel(&mut self) -> root::Result { - AsyncContext_Cancel(self) - } - #[inline] - pub unsafe fn GetSystemEvent( - &mut self, - arg1: *mut root::nn::os::SystemEvent, - ) -> root::Result { - AsyncContext_GetSystemEvent(self, arg1) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - AsyncContext_AsyncContext(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - } - } - pub mod fs { - #[allow(unused_imports)] - use self::super::super::super::root; - pub type UserId = u64; - #[repr(C)] - pub struct DirectoryEntry { - pub name: [skyline_libc::c_char; 769usize], - pub _x302: [skyline_libc::c_char; 3usize], - pub type_: u8, - pub _x304: skyline_libc::c_char, - pub fileSize: root::s64, - } - #[test] - fn bindgen_test_layout_DirectoryEntry() { - assert_eq!( - ::core::mem::size_of::(), - 784usize, - concat!("Size of: ", stringify!(DirectoryEntry)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(DirectoryEntry)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).name as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DirectoryEntry), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x302 as *const _ as usize - }, - 769usize, - concat!( - "Offset of field: ", - stringify!(DirectoryEntry), - "::", - stringify!(_x302) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).type_ as *const _ as usize - }, - 772usize, - concat!( - "Offset of field: ", - stringify!(DirectoryEntry), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x304 as *const _ as usize - }, - 773usize, - concat!( - "Offset of field: ", - stringify!(DirectoryEntry), - "::", - stringify!(_x304) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).fileSize as *const _ as usize - }, - 776usize, - concat!( - "Offset of field: ", - stringify!(DirectoryEntry), - "::", - stringify!(fileSize) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct FileHandle { - pub handle: *mut skyline_libc::c_void, - } - #[test] - fn bindgen_test_layout_FileHandle() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(FileHandle)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(FileHandle)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FileHandle), - "::", - stringify!(handle) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct DirectoryHandle { - pub handle: *mut skyline_libc::c_void, - } - #[test] - fn bindgen_test_layout_DirectoryHandle() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(DirectoryHandle)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(DirectoryHandle)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).handle as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DirectoryHandle), - "::", - stringify!(handle) - ) - ); - } - pub const DirectoryEntryType_DirectoryEntryType_Directory: - root::nn::fs::DirectoryEntryType = 0; - pub const DirectoryEntryType_DirectoryEntryType_File: root::nn::fs::DirectoryEntryType = - 1; - pub type DirectoryEntryType = u32; - pub const OpenMode_OpenMode_Read: root::nn::fs::OpenMode = 1; - pub const OpenMode_OpenMode_Write: root::nn::fs::OpenMode = 2; - pub const OpenMode_OpenMode_Append: root::nn::fs::OpenMode = 4; - pub const OpenMode_OpenMode_ReadWrite: root::nn::fs::OpenMode = 3; - pub type OpenMode = u32; - pub const OpenDirectoryMode_OpenDirectoryMode_Directory: - root::nn::fs::OpenDirectoryMode = 1; - pub const OpenDirectoryMode_OpenDirectoryMode_File: root::nn::fs::OpenDirectoryMode = 2; - pub const OpenDirectoryMode_OpenDirectoryMode_All: root::nn::fs::OpenDirectoryMode = 3; - pub type OpenDirectoryMode = u32; - pub const WriteOptionFlag_WriteOptionFlag_Flush: root::nn::fs::WriteOptionFlag = 1; - pub type WriteOptionFlag = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct WriteOption { - pub flags: skyline_libc::c_int, - } - #[test] - fn bindgen_test_layout_WriteOption() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(WriteOption)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(WriteOption)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).flags as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(WriteOption), - "::", - stringify!(flags) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs22QueryMountRomCacheSizeEPm"] - pub fn QueryMountRomCacheSize(size: *mut u64) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs22QueryMountRomCacheSizeEPmm"] - pub fn QueryMountRomCacheSize1( - size: *mut u64, - arg1: root::nn::ApplicationId, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs8MountRomEPKcPvm"] - pub fn MountRom( - name: *const skyline_libc::c_char, - buffer: *mut skyline_libc::c_void, - bufferSize: root::ulong, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs19CanMountRomForDebugEv"] - pub fn CanMountRomForDebug() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs11CanMountRomEm"] - pub fn CanMountRom(arg1: root::nn::ApplicationId) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs28QueryMountRomOnFileCacheSizeEPmNS0_10FileHandleE"] - pub fn QueryMountRomOnFileCacheSize( - arg1: *mut u64, - arg2: root::nn::fs::FileHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs14MountRomOnFileEPKcNS0_10FileHandleEPvm"] - pub fn MountRomOnFile( - arg1: *const skyline_libc::c_char, - arg2: root::nn::fs::FileHandle, - arg3: *mut skyline_libc::c_void, - arg4: u64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs14EnsureSaveDataERKNS_7account3UidE"] - pub fn EnsureSaveData(arg1: *const root::nn::account::Uid) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs13MountSaveDataEPKcm"] - pub fn MountSaveData( - arg1: *const skyline_libc::c_char, - arg2: root::nn::fs::UserId, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs12GetEntryTypeEPNS0_18DirectoryEntryTypeEPKc"] - pub fn GetEntryType( - type_: *mut root::nn::fs::DirectoryEntryType, - path: *const skyline_libc::c_char, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs10CreateFileEPKcl"] - pub fn CreateFile( - filepath: *const skyline_libc::c_char, - size: root::s64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs8OpenFileEPNS0_10FileHandleEPKci"] - pub fn OpenFile( - arg1: *mut root::nn::fs::FileHandle, - path: *const skyline_libc::c_char, - arg2: root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs11SetFileSizeENS0_10FileHandleEl"] - pub fn SetFileSize( - fileHandle: root::nn::fs::FileHandle, - filesize: root::s64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs9CloseFileENS0_10FileHandleE"] - pub fn CloseFile(fileHandle: root::nn::fs::FileHandle); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs9FlushFileENS0_10FileHandleE"] - pub fn FlushFile(fileHandle: root::nn::fs::FileHandle) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs10DeleteFileEPKc"] - pub fn DeleteFile(filepath: *const skyline_libc::c_char) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs8ReadFileEPmNS0_10FileHandleElPvmRKi"] - pub fn ReadFile( - outSize: *mut u64, - handle: root::nn::fs::FileHandle, - offset: root::s64, - buffer: *mut skyline_libc::c_void, - bufferSize: u64, - arg1: *const root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs8ReadFileEPmNS0_10FileHandleElPvm"] - pub fn ReadFile1( - outSize: *mut u64, - handle: root::nn::fs::FileHandle, - offset: root::s64, - buffer: *mut skyline_libc::c_void, - bufferSize: u64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs8ReadFileENS0_10FileHandleElPvm"] - pub fn ReadFile2( - handle: root::nn::fs::FileHandle, - offset: root::s64, - buffer: *mut skyline_libc::c_void, - bufferSize: u64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs9WriteFileENS0_10FileHandleElPKvmRKNS0_11WriteOptionE"] - pub fn WriteFile( - handle: root::nn::fs::FileHandle, - fileOffset: root::s64, - buff: *const skyline_libc::c_void, - size: u64, - option: *const root::nn::fs::WriteOption, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs11GetFileSizeEPlNS0_10FileHandleE"] - pub fn GetFileSize( - size: *mut root::s64, - fileHandle: root::nn::fs::FileHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs13OpenDirectoryEPNS0_15DirectoryHandleEPKci"] - pub fn OpenDirectory( - handle: *mut root::nn::fs::DirectoryHandle, - path: *const skyline_libc::c_char, - openMode: root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs14CloseDirectoryENS0_15DirectoryHandleE"] - pub fn CloseDirectory(directoryHandle: root::nn::fs::DirectoryHandle); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs13ReadDirectoryEPlPNS0_14DirectoryEntryENS0_15DirectoryHandleEl"] - pub fn ReadDirectory( - arg1: *mut root::s64, - arg2: *mut root::nn::fs::DirectoryEntry, - directoryHandle: root::nn::fs::DirectoryHandle, - arg3: root::s64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs15CreateDirectoryEPKc"] - pub fn CreateDirectory(directorypath: *const skyline_libc::c_char) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs22GetDirectoryEntryCountEPlNS0_15DirectoryHandleE"] - pub fn GetDirectoryEntryCount( - arg1: *mut root::s64, - arg2: root::nn::fs::DirectoryHandle, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs11MountSdCardEPKc"] - pub fn MountSdCard(arg1: *const skyline_libc::c_char) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs19MountSdCardForDebugEPKc"] - pub fn MountSdCardForDebug(arg1: *const skyline_libc::c_char) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs16IsSdCardInsertedEv"] - pub fn IsSdCardInserted() -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs12FormatSdCardEv"] - pub fn FormatSdCard() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs18FormatSdCardDryRunEv"] - pub fn FormatSdCardDryRun() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2fs16IsExFatSupportedEv"] - pub fn IsExFatSupported() -> bool; - } - } - pub mod ro { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct Module { - pub ModuleObject: *mut root::rtld::ModuleObject, - pub State: u32, - pub NroPtr: *mut skyline_libc::c_void, - pub BssPtr: *mut skyline_libc::c_void, - pub _x20: *mut skyline_libc::c_void, - pub SourceBuffer: *mut skyline_libc::c_void, - pub Name: [skyline_libc::c_char; 256usize], - pub _x130: u8, - pub _x131: u8, - pub isLoaded: bool, - } - #[test] - fn bindgen_test_layout_Module() { - assert_eq!( - ::core::mem::size_of::(), - 312usize, - concat!("Size of: ", stringify!(Module)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Module)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ModuleObject as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(ModuleObject) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).State as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(State) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).NroPtr as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(NroPtr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).BssPtr as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(BssPtr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x20 as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(_x20) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).SourceBuffer as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(SourceBuffer) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).Name as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(Name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x130 as *const _ as usize }, - 304usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(_x130) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x131 as *const _ as usize }, - 305usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(_x131) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).isLoaded as *const _ as usize }, - 306usize, - concat!( - "Offset of field: ", - stringify!(Module), - "::", - stringify!(isLoaded) - ) - ); - } - #[repr(C)] - pub struct ModuleId { - pub build_id: [u8; 32usize], - } - #[test] - fn bindgen_test_layout_ModuleId() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ModuleId)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(ModuleId)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).build_id as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleId), - "::", - stringify!(build_id) - ) - ); - } - #[repr(C)] - pub struct NroHeader { - pub entrypoint_insn: u32, - pub mod_offset: u32, - pub _x8: [u8; 8usize], - pub magic: u32, - pub _x14: [u8; 4usize], - pub size: u32, - pub reserved_1C: [u8; 4usize], - pub text_offset: u32, - pub text_size: u32, - pub ro_offset: u32, - pub ro_size: u32, - pub rw_offset: u32, - pub rw_size: u32, - pub bss_size: u32, - pub _x3C: [u8; 4usize], - pub module_id: root::nn::ro::ModuleId, - pub _x60: [u8; 32usize], - } - #[test] - fn bindgen_test_layout_NroHeader() { - assert_eq!( - ::core::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(NroHeader)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(NroHeader)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).entrypoint_insn as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(entrypoint_insn) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mod_offset as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(mod_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x8 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).magic as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(magic) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x14 as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(_x14) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).size as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).reserved_1C as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(reserved_1C) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).text_offset as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(text_offset) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).text_size as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(text_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).ro_offset as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(ro_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ro_size as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(ro_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rw_offset as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(rw_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).rw_size as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(rw_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).bss_size as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(bss_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x3C as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(_x3C) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).module_id as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(module_id) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x60 as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(NroHeader), - "::", - stringify!(_x60) - ) - ); - } - #[repr(C)] - pub struct ProgramId { - pub value: u64, - } - #[test] - fn bindgen_test_layout_ProgramId() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(ProgramId)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ProgramId)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).value as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ProgramId), - "::", - stringify!(value) - ) - ); - } - #[repr(C)] - pub struct NrrHeader { - pub magic: u32, - pub _x4: [u8; 12usize], - pub program_id_mask: u64, - pub program_id_pattern: u64, - pub _x20: [u8; 16usize], - pub modulus: [u8; 256usize], - pub fixed_key_signature: [u8; 256usize], - pub nrr_signature: [u8; 256usize], - pub program_id: root::nn::ro::ProgramId, - pub size: u32, - pub type_: u8, - pub _x33D: [u8; 3usize], - pub hashes_offset: u32, - pub num_hashes: u32, - pub _x348: [u8; 8usize], - } - #[test] - fn bindgen_test_layout_NrrHeader() { - assert_eq!( - ::core::mem::size_of::(), - 848usize, - concat!("Size of: ", stringify!(NrrHeader)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NrrHeader)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).magic as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(magic) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x4 as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(_x4) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).program_id_mask as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(program_id_mask) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).program_id_pattern as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(program_id_pattern) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x20 as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(_x20) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).modulus as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(modulus) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).fixed_key_signature as *const _ - as usize - }, - 304usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(fixed_key_signature) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).nrr_signature as *const _ as usize - }, - 560usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(nrr_signature) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).program_id as *const _ as usize - }, - 816usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(program_id) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).size as *const _ as usize }, - 824usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).type_ as *const _ as usize }, - 828usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x33D as *const _ as usize }, - 829usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(_x33D) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hashes_offset as *const _ as usize - }, - 832usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(hashes_offset) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).num_hashes as *const _ as usize - }, - 836usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(num_hashes) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x348 as *const _ as usize }, - 840usize, - concat!( - "Offset of field: ", - stringify!(NrrHeader), - "::", - stringify!(_x348) - ) - ); - } - #[repr(C)] - pub struct RegistrationInfo { - pub state: root::nn::ro::RegistrationInfo_State, - pub nrrPtr: *mut root::nn::ro::NrrHeader, - pub _x10: u64, - pub _x18: u64, - } - pub const RegistrationInfo_State_State_Unregistered: - root::nn::ro::RegistrationInfo_State = 0; - pub const RegistrationInfo_State_State_Registered: - root::nn::ro::RegistrationInfo_State = 1; - pub type RegistrationInfo_State = u32; - #[test] - fn bindgen_test_layout_RegistrationInfo() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(RegistrationInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(RegistrationInfo)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).state as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(RegistrationInfo), - "::", - stringify!(state) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).nrrPtr as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(RegistrationInfo), - "::", - stringify!(nrrPtr) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x10 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(RegistrationInfo), - "::", - stringify!(_x10) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x18 as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(RegistrationInfo), - "::", - stringify!(_x18) - ) - ); - } - pub const BindFlag_BindFlag_Now: root::nn::ro::BindFlag = 1; - pub const BindFlag_BindFlag_Lazy: root::nn::ro::BindFlag = 2; - pub type BindFlag = u32; - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro10InitializeEv"] - pub fn Initialize() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro12LookupSymbolEPmPKc"] - pub fn LookupSymbol( - pOutAddress: *mut usize, - name: *const skyline_libc::c_char, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro18LookupModuleSymbolEPmPKNS0_6ModuleEPKc"] - pub fn LookupModuleSymbol( - pOutAddress: *mut usize, - pModule: *const root::nn::ro::Module, - name: *const skyline_libc::c_char, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro10LoadModuleEPNS0_6ModuleEPKvPvmi"] - pub fn LoadModule( - pOutModule: *mut root::nn::ro::Module, - pImage: *const skyline_libc::c_void, - buffer: *mut skyline_libc::c_void, - bufferSize: root::size_t, - flag: skyline_libc::c_int, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro12UnloadModuleEPNS0_6ModuleE"] - pub fn UnloadModule(arg1: *mut root::nn::ro::Module) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro13GetBufferSizeEPmPKv"] - pub fn GetBufferSize( - arg1: *mut root::size_t, - arg2: *const skyline_libc::c_void, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro18RegisterModuleInfoEPNS0_16RegistrationInfoEPKv"] - pub fn RegisterModuleInfo( - arg1: *mut root::nn::ro::RegistrationInfo, - arg2: *const skyline_libc::c_void, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro18RegisterModuleInfoEPNS0_16RegistrationInfoEPKvj"] - pub fn RegisterModuleInfo1( - arg1: *mut root::nn::ro::RegistrationInfo, - arg2: *const skyline_libc::c_void, - arg3: root::uint, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2ro20UnregisterModuleInfoEPNS0_16RegistrationInfoEPKv"] - pub fn UnregisterModuleInfo( - arg1: *mut root::nn::ro::RegistrationInfo, - arg2: *const skyline_libc::c_void, - ) -> root::Result; - } - } - pub mod crypto { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto18GenerateSha256HashEPvmPKvm"] - pub fn GenerateSha256Hash( - arg1: *mut skyline_libc::c_void, - arg2: root::ulong, - arg3: *const skyline_libc::c_void, - arg4: root::ulong, - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Sha256Context { - _unused: [u8; 0], - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto16DecryptAes128CbcEPvmPKvmS3_mS3_m"] - pub fn DecryptAes128Cbc( - arg1: *mut skyline_libc::c_void, - arg2: u64, - arg3: *const skyline_libc::c_void, - arg4: u64, - arg5: *const skyline_libc::c_void, - arg6: u64, - arg7: *const skyline_libc::c_void, - arg8: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto16EncryptAes128CbcEPvmPKvmS3_mS3_m"] - pub fn EncryptAes128Cbc( - arg1: *mut skyline_libc::c_void, - arg2: u64, - arg3: *const skyline_libc::c_void, - arg4: u64, - arg5: *const skyline_libc::c_void, - arg6: u64, - arg7: *const skyline_libc::c_void, - arg8: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto16DecryptAes128CcmEPvmS1_mPKvmS3_mS3_mS3_mm"] - pub fn DecryptAes128Ccm( - arg1: *mut skyline_libc::c_void, - arg2: u64, - arg3: *mut skyline_libc::c_void, - arg4: u64, - arg5: *const skyline_libc::c_void, - arg6: u64, - arg7: *const skyline_libc::c_void, - arg8: u64, - arg9: *const skyline_libc::c_void, - arg10: u64, - arg11: *const skyline_libc::c_void, - arg12: u64, - arg13: u64, - ); - } - pub mod detail { - #[allow(unused_imports)] - use self::super::super::super::super::root; - #[repr(C)] - pub struct Md5Impl { - pub _x0: u32, - pub _x4: u32, - pub _x8: u32, - pub _xC: u32, - pub _x10: [u8; 64usize], - pub _x50: u64, - pub _x58: u32, - } - #[test] - fn bindgen_test_layout_Md5Impl() { - assert_eq!( - ::core::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(Md5Impl)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Md5Impl)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x0) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x4 as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x4) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x8 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._xC as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_xC) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x10 as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x10) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x50 as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x50) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x58 as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(Md5Impl), - "::", - stringify!(_x58) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail7Md5Impl10InitializeEv"] - pub fn Md5Impl_Initialize(this: *mut root::nn::crypto::detail::Md5Impl); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail7Md5Impl6UpdateEPKvm"] - pub fn Md5Impl_Update( - this: *mut root::nn::crypto::detail::Md5Impl, - arg1: *const skyline_libc::c_void, - dataSize: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail7Md5Impl12ProcessBlockEv"] - pub fn Md5Impl_ProcessBlock(this: *mut root::nn::crypto::detail::Md5Impl); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail7Md5Impl7GetHashEPvm"] - pub fn Md5Impl_GetHash( - this: *mut root::nn::crypto::detail::Md5Impl, - arg1: *mut skyline_libc::c_void, - hashSize: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail7Md5Impl16ProcessLastBlockEv"] - pub fn Md5Impl_ProcessLastBlock(this: *mut root::nn::crypto::detail::Md5Impl); - } - impl Md5Impl { - #[inline] - pub unsafe fn Initialize(&mut self) { - Md5Impl_Initialize(self) - } - #[inline] - pub unsafe fn Update( - &mut self, - arg1: *const skyline_libc::c_void, - dataSize: u64, - ) { - Md5Impl_Update(self, arg1, dataSize) - } - #[inline] - pub unsafe fn ProcessBlock(&mut self) { - Md5Impl_ProcessBlock(self) - } - #[inline] - pub unsafe fn GetHash( - &mut self, - arg1: *mut skyline_libc::c_void, - hashSize: u64, - ) { - Md5Impl_GetHash(self, arg1, hashSize) - } - #[inline] - pub unsafe fn ProcessLastBlock(&mut self) { - Md5Impl_ProcessLastBlock(self) - } - } - #[repr(C)] - #[repr(align(16))] - pub struct Sha1Impl { - pub _x0: u64, - pub _x8: u64, - pub _x10: u32, - pub __bindgen_padding_0: u64, - pub _x14: u128, - pub _x24: u128, - pub _x34: u128, - pub _x44: u32, - pub _x48: u64, - pub _x50: u64, - pub _x58: u64, - pub _x60: u64, - } - #[test] - fn bindgen_test_layout_Sha1Impl() { - assert_eq!( - ::core::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(Sha1Impl)) - ); - assert_eq!( - ::core::mem::align_of::(), - 16usize, - concat!("Alignment of ", stringify!(Sha1Impl)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x0) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x8 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x10 as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x10) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x14 as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x14) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x24 as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x24) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x34 as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x34) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x44 as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x44) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x48 as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x48) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x50 as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x50) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x58 as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x58) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x60 as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(Sha1Impl), - "::", - stringify!(_x60) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail8Sha1Impl10InitializeEv"] - #[allow(improper_ctypes)] - pub fn Sha1Impl_Initialize(this: *mut root::nn::crypto::detail::Sha1Impl); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail8Sha1Impl6UpdateEPKvm"] - #[allow(improper_ctypes)] - pub fn Sha1Impl_Update( - this: *mut root::nn::crypto::detail::Sha1Impl, - arg1: *const skyline_libc::c_void, - arg2: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail8Sha1Impl12ProcessBlockEPKv"] - #[allow(improper_ctypes)] - pub fn Sha1Impl_ProcessBlock( - this: *mut root::nn::crypto::detail::Sha1Impl, - arg1: *const skyline_libc::c_void, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail8Sha1Impl7GetHashEPvm"] - #[allow(improper_ctypes)] - pub fn Sha1Impl_GetHash( - this: *mut root::nn::crypto::detail::Sha1Impl, - destHash: *mut skyline_libc::c_void, - arg1: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail8Sha1Impl16ProcessLastBlockEv"] - #[allow(improper_ctypes)] - pub fn Sha1Impl_ProcessLastBlock(this: *mut root::nn::crypto::detail::Sha1Impl); - } - impl Sha1Impl { - #[inline] - pub unsafe fn Initialize(&mut self) { - Sha1Impl_Initialize(self) - } - #[inline] - pub unsafe fn Update( - &mut self, - arg1: *const skyline_libc::c_void, - arg2: u64, - ) { - Sha1Impl_Update(self, arg1, arg2) - } - #[inline] - pub unsafe fn ProcessBlock(&mut self, arg1: *const skyline_libc::c_void) { - Sha1Impl_ProcessBlock(self, arg1) - } - #[inline] - pub unsafe fn GetHash( - &mut self, - destHash: *mut skyline_libc::c_void, - arg1: u64, - ) { - Sha1Impl_GetHash(self, destHash, arg1) - } - #[inline] - pub unsafe fn ProcessLastBlock(&mut self) { - Sha1Impl_ProcessLastBlock(self) - } - } - #[repr(C)] - #[repr(align(16))] - pub struct Sha256Impl { - pub _x0: u64, - pub _x8: u64, - pub _x10: u32, - pub __bindgen_padding_0: u64, - pub _x14: u128, - pub _x24: u128, - pub _x34: u128, - pub _x44: u32, - pub _x48: u64, - pub _x50: u64, - pub _x58: u64, - pub _x60: u64, - pub _x68: u64, - pub _x70: u32, - } - #[test] - fn bindgen_test_layout_Sha256Impl() { - assert_eq!( - ::core::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(Sha256Impl)) - ); - assert_eq!( - ::core::mem::align_of::(), - 16usize, - concat!("Alignment of ", stringify!(Sha256Impl)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x0) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._x8 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x8) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x10 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x10) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x14 as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x14) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x24 as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x24) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x34 as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x34) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x44 as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x44) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x48 as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x48) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x50 as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x50) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x58 as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x58) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x60 as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x60) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x68 as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x68) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._x70 as *const _ as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(Sha256Impl), - "::", - stringify!(_x70) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl10InitializeEv"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_Initialize(this: *mut root::nn::crypto::detail::Sha256Impl); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl6UpdateEPKvm"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_Update( - this: *mut root::nn::crypto::detail::Sha256Impl, - arg1: *const skyline_libc::c_void, - arg2: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl13ProcessBlocksEPKhm"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_ProcessBlocks( - this: *mut root::nn::crypto::detail::Sha256Impl, - arg1: *const u8, - arg2: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl7GetHashEPvm"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_GetHash( - this: *mut root::nn::crypto::detail::Sha256Impl, - destHash: *mut skyline_libc::c_void, - arg1: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl16ProcessLastBlockEv"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_ProcessLastBlock( - this: *mut root::nn::crypto::detail::Sha256Impl, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6crypto6detail10Sha256Impl21InitializeWithContextEPKNS0_13Sha256ContextE"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_InitializeWithContext( - this: *mut root::nn::crypto::detail::Sha256Impl, - arg1: *const root::nn::crypto::Sha256Context, - ); - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn6crypto6detail10Sha256Impl10GetContextEPNS0_13Sha256ContextE"] - #[allow(improper_ctypes)] - pub fn Sha256Impl_GetContext( - this: *const root::nn::crypto::detail::Sha256Impl, - arg1: *mut root::nn::crypto::Sha256Context, - ); - } - impl Sha256Impl { - #[inline] - pub unsafe fn Initialize(&mut self) { - Sha256Impl_Initialize(self) - } - #[inline] - pub unsafe fn Update( - &mut self, - arg1: *const skyline_libc::c_void, - arg2: u64, - ) { - Sha256Impl_Update(self, arg1, arg2) - } - #[inline] - pub unsafe fn ProcessBlocks(&mut self, arg1: *const u8, arg2: u64) { - Sha256Impl_ProcessBlocks(self, arg1, arg2) - } - #[inline] - pub unsafe fn GetHash( - &mut self, - destHash: *mut skyline_libc::c_void, - arg1: u64, - ) { - Sha256Impl_GetHash(self, destHash, arg1) - } - #[inline] - pub unsafe fn ProcessLastBlock(&mut self) { - Sha256Impl_ProcessLastBlock(self) - } - #[inline] - pub unsafe fn InitializeWithContext( - &mut self, - arg1: *const root::nn::crypto::Sha256Context, - ) { - Sha256Impl_InitializeWithContext(self, arg1) - } - #[inline] - pub unsafe fn GetContext(&self, arg1: *mut root::nn::crypto::Sha256Context) { - Sha256Impl_GetContext(self, arg1) - } - } - } - } - pub mod prepo { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct PlayReport { - pub m_EventName: [skyline_libc::c_char; 32usize], - pub m_Buff: *mut skyline_libc::c_void, - pub m_BuffLength: root::size_t, - pub m_End: u64, - } - #[test] - fn bindgen_test_layout_PlayReport() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(PlayReport)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PlayReport)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).m_EventName as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PlayReport), - "::", - stringify!(m_EventName) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_Buff as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(PlayReport), - "::", - stringify!(m_Buff) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).m_BuffLength as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(PlayReport), - "::", - stringify!(m_BuffLength) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_End as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(PlayReport), - "::", - stringify!(m_End) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport10SetEventIdEPKc"] - pub fn PlayReport_SetEventId( - this: *mut root::nn::prepo::PlayReport, - arg1: *const skyline_libc::c_char, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport9SetBufferEv"] - pub fn PlayReport_SetBuffer(this: *mut root::nn::prepo::PlayReport) - -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport3AddEPKcl"] - pub fn PlayReport_Add( - this: *mut root::nn::prepo::PlayReport, - arg1: *const skyline_libc::c_char, - arg2: skyline_libc::c_long, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport3AddEPKcd"] - pub fn PlayReport_Add1( - this: *mut root::nn::prepo::PlayReport, - arg1: *const skyline_libc::c_char, - arg2: f64, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport3AddEPKcS3_"] - pub fn PlayReport_Add2( - this: *mut root::nn::prepo::PlayReport, - arg1: *const skyline_libc::c_char, - arg2: *const skyline_libc::c_char, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport4SaveEv"] - pub fn PlayReport_Save(this: *mut root::nn::prepo::PlayReport) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReport4SaveERKNS_7account3UidE"] - pub fn PlayReport_Save1( - this: *mut root::nn::prepo::PlayReport, - arg1: *const root::nn::account::Uid, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5prepo10PlayReportC1Ev"] - pub fn PlayReport_PlayReport(this: *mut root::nn::prepo::PlayReport); - } - impl PlayReport { - #[inline] - pub unsafe fn SetEventId( - &mut self, - arg1: *const skyline_libc::c_char, - ) -> root::Result { - PlayReport_SetEventId(self, arg1) - } - #[inline] - pub unsafe fn SetBuffer(&mut self) -> root::Result { - PlayReport_SetBuffer(self) - } - #[inline] - pub unsafe fn Add( - &mut self, - arg1: *const skyline_libc::c_char, - arg2: skyline_libc::c_long, - ) -> root::Result { - PlayReport_Add(self, arg1, arg2) - } - #[inline] - pub unsafe fn Add1( - &mut self, - arg1: *const skyline_libc::c_char, - arg2: f64, - ) -> root::Result { - PlayReport_Add1(self, arg1, arg2) - } - #[inline] - pub unsafe fn Add2( - &mut self, - arg1: *const skyline_libc::c_char, - arg2: *const skyline_libc::c_char, - ) -> root::Result { - PlayReport_Add2(self, arg1, arg2) - } - #[inline] - pub unsafe fn Save(&mut self) -> root::Result { - PlayReport_Save(self) - } - #[inline] - pub unsafe fn Save1( - &mut self, - arg1: *const root::nn::account::Uid, - ) -> root::Result { - PlayReport_Save1(self, arg1) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - PlayReport_PlayReport(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - } - } - pub mod vi { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Display { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Layer { - _unused: [u8; 0], - } - pub const ScalingMode_None: root::nn::vi::ScalingMode = 0; - pub const ScalingMode_Exact: root::nn::vi::ScalingMode = 1; - pub const ScalingMode_FitLayer: root::nn::vi::ScalingMode = 2; - pub const ScalingMode_ScaleAndCrop: root::nn::vi::ScalingMode = 3; - pub const ScalingMode_PreserveAspectRatio: root::nn::vi::ScalingMode = 4; - pub type ScalingMode = u32; - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi10InitializeEv"] - pub fn Initialize(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi18OpenDefaultDisplayEPPNS0_7DisplayE"] - pub fn OpenDefaultDisplay( - out_Disp: *mut *mut root::nn::vi::Display, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi11CreateLayerEPNS0_5LayerEPNS0_7DisplayE"] - pub fn CreateLayer( - out_Layer: *mut root::nn::vi::Layer, - disp: *mut root::nn::vi::Display, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi19SetLayerScalingModeEPNS0_5LayerENS0_11ScalingModeE"] - pub fn SetLayerScalingMode( - layer: *mut root::nn::vi::Layer, - scalingMode: root::nn::vi::ScalingMode, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi20GetDisplayVsyncEventEPNS_2os15SystemEventTypeEPNS0_7DisplayE"] - pub fn GetDisplayVsyncEvent( - arg1: *mut root::nn::os::SystemEventType, - arg2: *mut root::nn::vi::Display, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn2vi15GetNativeWindowEPPvPNS0_5LayerE"] - pub fn GetNativeWindow( - window: *mut *mut skyline_libc::c_void, - arg1: *mut root::nn::vi::Layer, - ) -> root::Result; - } - } - pub mod image { - #[allow(unused_imports)] - use self::super::super::super::root; - pub const JpegStatus_OK: root::nn::image::JpegStatus = 0; - pub const JpegStatus_INVALID_FORMAT: root::nn::image::JpegStatus = -32; - pub const JpegStatus_UNSUPPORTED_FORMAT: root::nn::image::JpegStatus = -33; - pub const JpegStatus_OUT_OF_MEMORY: root::nn::image::JpegStatus = -64; - pub type JpegStatus = i32; - pub const PixelFormat_RGBA32: root::nn::image::PixelFormat = 0; - pub const PixelFormat_RGB24: root::nn::image::PixelFormat = 1; - pub type PixelFormat = u32; - pub const ProcessStage_UNREGISTERED: root::nn::image::ProcessStage = 0; - pub const ProcessStage_REGISTERED: root::nn::image::ProcessStage = 1; - pub const ProcessStage_ANALYZED: root::nn::image::ProcessStage = 2; - pub type ProcessStage = u32; - #[repr(C)] - pub struct Dimension { - pub width: f32, - pub height: f32, - } - #[test] - fn bindgen_test_layout_Dimension() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Dimension)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Dimension)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).width as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Dimension), - "::", - stringify!(width) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).height as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Dimension), - "::", - stringify!(height) - ) - ); - } - #[repr(C)] - pub struct JpegDecoder__bindgen_vtable(skyline_libc::c_void); - #[repr(C)] - pub struct JpegDecoder { - pub vtable_: *const JpegDecoder__bindgen_vtable, - pub mProcessStage: root::nn::image::ProcessStage, - pub mData: *mut skyline_libc::c_void, - pub mSize: root::s64, - pub _18: root::s32, - pub mFormat: root::nn::image::PixelFormat, - pub mImgDimensions: root::nn::image::Dimension, - pub _28: root::s64, - } - #[test] - fn bindgen_test_layout_JpegDecoder() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(JpegDecoder)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(JpegDecoder)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mProcessStage as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(mProcessStage) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).mData as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(mData) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).mSize as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(mSize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._18 as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(_18) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mFormat as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(mFormat) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mImgDimensions as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(mImgDimensions) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._28 as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(JpegDecoder), - "::", - stringify!(_28) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5image11JpegDecoder12SetImageDataEPKvm"] - pub fn JpegDecoder_SetImageData( - this: *mut root::nn::image::JpegDecoder, - source: *const skyline_libc::c_void, - size: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5image11JpegDecoder7AnalyzeEv"] - pub fn JpegDecoder_Analyze( - this: *mut root::nn::image::JpegDecoder, - ) -> root::nn::image::JpegStatus; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn5image11JpegDecoder20GetAnalyzedDimensionEv"] - pub fn JpegDecoder_GetAnalyzedDimension( - this: *const root::nn::image::JpegDecoder, - ) -> root::nn::image::Dimension; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn5image11JpegDecoder25GetAnalyzedWorkBufferSizeEv"] - pub fn JpegDecoder_GetAnalyzedWorkBufferSize( - this: *const root::nn::image::JpegDecoder, - ) -> root::s64; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5image11JpegDecoder6DecodeEPvliS2_l"] - pub fn JpegDecoder_Decode( - this: *mut root::nn::image::JpegDecoder, - out: *mut skyline_libc::c_void, - arg1: root::s64, - alignment: root::s32, - arg2: *mut skyline_libc::c_void, - arg3: root::s64, - ) -> root::nn::image::JpegStatus; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5image11JpegDecoderC1Ev"] - pub fn JpegDecoder_JpegDecoder(this: *mut root::nn::image::JpegDecoder); - } - impl JpegDecoder { - #[inline] - pub unsafe fn SetImageData( - &mut self, - source: *const skyline_libc::c_void, - size: u64, - ) { - JpegDecoder_SetImageData(self, source, size) - } - #[inline] - pub unsafe fn Analyze(&mut self) -> root::nn::image::JpegStatus { - JpegDecoder_Analyze(self) - } - #[inline] - pub unsafe fn GetAnalyzedDimension(&self) -> root::nn::image::Dimension { - JpegDecoder_GetAnalyzedDimension(self) - } - #[inline] - pub unsafe fn GetAnalyzedWorkBufferSize(&self) -> root::s64 { - JpegDecoder_GetAnalyzedWorkBufferSize(self) - } - #[inline] - pub unsafe fn Decode( - &mut self, - out: *mut skyline_libc::c_void, - arg1: root::s64, - alignment: root::s32, - arg2: *mut skyline_libc::c_void, - arg3: root::s64, - ) -> root::nn::image::JpegStatus { - JpegDecoder_Decode(self, out, arg1, alignment, arg2, arg3) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - JpegDecoder_JpegDecoder(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5image11JpegDecoderD1Ev"] - pub fn JpegDecoder_JpegDecoder_destructor(this: *mut root::nn::image::JpegDecoder); - } - } - pub mod friends { - #[allow(unused_imports)] - use self::super::super::super::root; - pub type Url = [skyline_libc::c_char; 160usize]; - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends10InitializeEv"] - pub fn Initialize(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends14GetProfileListEPNS0_12AsyncContextEPNS0_7ProfileERKNS_7account3UidEPKmi"] - pub fn GetProfileList( - context: *mut root::nn::friends::AsyncContext, - profiles: *mut root::nn::friends::Profile, - userID: *const root::nn::account::Uid, - accountIDs: *const root::nn::account::NetworkServiceAccountId, - numAccounts: root::s32, - ) -> root::Result; - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Profile { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_Profile() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(Profile)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(Profile)) - ); - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn7friends7Profile12GetAccountIdEv"] - pub fn Profile_GetAccountId( - this: *const root::nn::friends::Profile, - ) -> root::nn::account::NetworkServiceAccountId; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn7friends7Profile11GetNicknameEv"] - pub fn Profile_GetNickname( - this: *const root::nn::friends::Profile, - ) -> *mut root::nn::account::Nickname; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn7friends7Profile7IsValidEv"] - pub fn Profile_IsValid(this: *const root::nn::friends::Profile) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends7Profile18GetProfileImageUrlEPA160_ci"] - pub fn Profile_GetProfileImageUrl( - this: *mut root::nn::friends::Profile, - arg1: *mut root::nn::friends::Url, - arg2: root::s32, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends7ProfileC1Ev"] - pub fn Profile_Profile(this: *mut root::nn::friends::Profile); - } - impl Profile { - #[inline] - pub unsafe fn GetAccountId(&self) -> root::nn::account::NetworkServiceAccountId { - Profile_GetAccountId(self) - } - #[inline] - pub unsafe fn GetNickname(&self) -> *mut root::nn::account::Nickname { - Profile_GetNickname(self) - } - #[inline] - pub unsafe fn IsValid(&self) -> bool { - Profile_IsValid(self) - } - #[inline] - pub unsafe fn GetProfileImageUrl( - &mut self, - arg1: *mut root::nn::friends::Url, - arg2: root::s32, - ) -> root::Result { - Profile_GetProfileImageUrl(self, arg1, arg2) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - Profile_Profile(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - } - #[repr(C)] - #[derive(Debug)] - pub struct AsyncContext { - pub _address: u8, - } - #[test] - fn bindgen_test_layout_AsyncContext() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(AsyncContext)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(AsyncContext)) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends12AsyncContext14GetSystemEventEPNS_2os11SystemEventE"] - pub fn AsyncContext_GetSystemEvent( - this: *mut root::nn::friends::AsyncContext, - arg1: *mut root::nn::os::SystemEvent, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn7friends12AsyncContext9GetResultEv"] - pub fn AsyncContext_GetResult( - this: *const root::nn::friends::AsyncContext, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends12AsyncContextC1Ev"] - pub fn AsyncContext_AsyncContext(this: *mut root::nn::friends::AsyncContext); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn7friends12AsyncContextD1Ev"] - pub fn AsyncContext_AsyncContext_destructor( - this: *mut root::nn::friends::AsyncContext, - ); - } - impl AsyncContext { - #[inline] - pub unsafe fn GetSystemEvent( - &mut self, - arg1: *mut root::nn::os::SystemEvent, - ) -> root::Result { - AsyncContext_GetSystemEvent(self, arg1) - } - #[inline] - pub unsafe fn GetResult(&self) -> root::Result { - AsyncContext_GetResult(self) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - AsyncContext_AsyncContext(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn destruct(&mut self) { - AsyncContext_AsyncContext_destructor(self) - } - } - } - pub mod diag { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct LogMetaData { - _unused: [u8; 0], - } - #[repr(C)] - pub struct ModuleInfo { - pub mPath: *mut skyline_libc::c_char, - pub mBaseAddr: u64, - pub mSize: u64, - } - #[test] - fn bindgen_test_layout_ModuleInfo() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(ModuleInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ModuleInfo)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).mPath as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleInfo), - "::", - stringify!(mPath) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mBaseAddr as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ModuleInfo), - "::", - stringify!(mBaseAddr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).mSize as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ModuleInfo), - "::", - stringify!(mSize) - ) - ); - } - pub mod detail { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag6detail7LogImplERKNS0_11LogMetaDataEPKcz"] - pub fn LogImpl( - arg1: *const root::nn::diag::LogMetaData, - arg2: *const skyline_libc::c_char, - ... - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag6detail9AbortImplEPKcS3_S3_i"] - pub fn AbortImpl( - arg1: *const skyline_libc::c_char, - arg2: *const skyline_libc::c_char, - arg3: *const skyline_libc::c_char, - arg4: root::s32, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag6detail9AbortImplEPKcS3_S3_ij"] - pub fn AbortImpl1( - arg1: *const skyline_libc::c_char, - arg2: *const skyline_libc::c_char, - arg3: *const skyline_libc::c_char, - arg4: skyline_libc::c_int, - arg5: root::Result, - ); - } - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag13GetSymbolNameEPcmm"] - pub fn GetSymbolName( - name: *mut skyline_libc::c_char, - nameSize: u64, - addr: u64, - ) -> *mut u32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag40GetRequiredBufferSizeForGetAllModuleInfoEv"] - pub fn GetRequiredBufferSizeForGetAllModuleInfo() -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag16GetAllModuleInfoEPPNS0_10ModuleInfoEPvm"] - pub fn GetAllModuleInfo( - out: *mut *mut root::nn::diag::ModuleInfo, - buffer: *mut skyline_libc::c_void, - bufferSize: u64, - ) -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4diag13GetSymbolSizeEm"] - pub fn GetSymbolSize(addr: u64) -> u64; - } - } - pub mod ssl { - #[allow(unused_imports)] - use self::super::super::super::root; - pub const CertificateFormat_PEM: root::nn::ssl::CertificateFormat = 1; - pub const CertificateFormat_DER: root::nn::ssl::CertificateFormat = 2; - pub type CertificateFormat = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Context { - pub _address: u8, - } - pub const Context_SslVersion_Auto: root::nn::ssl::Context_SslVersion = 1; - pub const Context_SslVersion_v10: root::nn::ssl::Context_SslVersion = 8; - pub const Context_SslVersion_v11: root::nn::ssl::Context_SslVersion = 16; - pub const Context_SslVersion_v12: root::nn::ssl::Context_SslVersion = 32; - pub type Context_SslVersion = u32; - #[test] - fn bindgen_test_layout_Context() { - assert_eq!( - ::core::mem::size_of::(), - 1usize, - concat!("Size of: ", stringify!(Context)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(Context)) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3ssl7Context6CreateENS1_10SslVersionE"] - pub fn Context_Create( - this: *mut root::nn::ssl::Context, - version: root::nn::ssl::Context_SslVersion, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3ssl7Context15ImportServerPkiEPmPKcjNS0_17CertificateFormatE"] - pub fn Context_ImportServerPki( - this: *mut root::nn::ssl::Context, - arg1: *mut u64, - certData: *const skyline_libc::c_char, - certSize: u32, - certFormat: root::nn::ssl::CertificateFormat, - ) -> root::Result; - } - impl Context { - #[inline] - pub unsafe fn Create( - &mut self, - version: root::nn::ssl::Context_SslVersion, - ) -> root::Result { - Context_Create(self, version) - } - #[inline] - pub unsafe fn ImportServerPki( - &mut self, - arg1: *mut u64, - certData: *const skyline_libc::c_char, - certSize: u32, - certFormat: root::nn::ssl::CertificateFormat, - ) -> root::Result { - Context_ImportServerPki(self, arg1, certData, certSize, certFormat) - } - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3ssl10InitializeEv"] - pub fn Initialize() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3ssl8FinalizeEv"] - pub fn Finalize() -> root::Result; - } - } - pub mod mem { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct StandardAllocator { - pub mIsInitialized: bool, - pub mIsEnabledThreadCache: bool, - pub _2: u16, - pub mAllocAddr: *mut u64, - } - #[test] - fn bindgen_test_layout_StandardAllocator() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(StandardAllocator)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(StandardAllocator)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mIsInitialized as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(StandardAllocator), - "::", - stringify!(mIsInitialized) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mIsEnabledThreadCache - as *const _ as usize - }, - 1usize, - concat!( - "Offset of field: ", - stringify!(StandardAllocator), - "::", - stringify!(mIsEnabledThreadCache) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._2 as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(StandardAllocator), - "::", - stringify!(_2) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mAllocAddr as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(StandardAllocator), - "::", - stringify!(mAllocAddr) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator10InitializeEPvm"] - pub fn StandardAllocator_Initialize( - this: *mut root::nn::mem::StandardAllocator, - address: *mut skyline_libc::c_void, - size: u64, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator8FinalizeEv"] - pub fn StandardAllocator_Finalize(this: *mut root::nn::mem::StandardAllocator); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator10ReallocateEPvm"] - pub fn StandardAllocator_Reallocate( - this: *mut root::nn::mem::StandardAllocator, - address: *mut skyline_libc::c_void, - newSize: u64, - ) -> *mut skyline_libc::c_void; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator8AllocateEm"] - pub fn StandardAllocator_Allocate( - this: *mut root::nn::mem::StandardAllocator, - size: u64, - ) -> *mut skyline_libc::c_void; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator4FreeEPv"] - pub fn StandardAllocator_Free( - this: *mut root::nn::mem::StandardAllocator, - address: *mut skyline_libc::c_void, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocator4DumpEv"] - pub fn StandardAllocator_Dump(this: *mut root::nn::mem::StandardAllocator); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3mem17StandardAllocatorC1Ev"] - pub fn StandardAllocator_StandardAllocator( - this: *mut root::nn::mem::StandardAllocator, - ); - } - impl StandardAllocator { - #[inline] - pub unsafe fn Initialize( - &mut self, - address: *mut skyline_libc::c_void, - size: u64, - ) { - StandardAllocator_Initialize(self, address, size) - } - #[inline] - pub unsafe fn Finalize(&mut self) { - StandardAllocator_Finalize(self) - } - #[inline] - pub unsafe fn Reallocate( - &mut self, - address: *mut skyline_libc::c_void, - newSize: u64, - ) -> *mut skyline_libc::c_void { - StandardAllocator_Reallocate(self, address, newSize) - } - #[inline] - pub unsafe fn Allocate(&mut self, size: u64) -> *mut skyline_libc::c_void { - StandardAllocator_Allocate(self, size) - } - #[inline] - pub unsafe fn Free(&mut self, address: *mut skyline_libc::c_void) { - StandardAllocator_Free(self, address) - } - #[inline] - pub unsafe fn Dump(&mut self) { - StandardAllocator_Dump(self) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - StandardAllocator_StandardAllocator(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - } - } - pub mod init { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn4init19InitializeAllocatorEPvm"] - pub fn InitializeAllocator(addr: *mut skyline_libc::c_void, size: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4init12GetAllocatorEv"] - pub fn GetAllocator() -> *mut root::nn::mem::StandardAllocator; - } - pub mod detail { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn4init6detail30DefaultAllocatorForThreadLocalEmm"] - pub fn DefaultAllocatorForThreadLocal( - arg1: u64, - arg2: u64, - ) -> *mut skyline_libc::c_void; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4init6detail32DefaultDeallocatorForThreadLocalEPvm"] - pub fn DefaultDeallocatorForThreadLocal( - arg1: *mut skyline_libc::c_void, - arg2: u64, - ) -> *mut skyline_libc::c_void; - } - } - } - pub mod util { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct Unorm8x4 { - pub elements: [u8; 4usize], - } - #[test] - fn bindgen_test_layout_Unorm8x4() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Unorm8x4)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(Unorm8x4)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).elements as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Unorm8x4), - "::", - stringify!(elements) - ) - ); - } - #[repr(C)] - pub struct Color4u8 { - pub r: u8, - pub g: u8, - pub b: u8, - pub a: u8, - } - #[test] - fn bindgen_test_layout_Color4u8() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Color4u8)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(Color4u8)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Color4u8), - "::", - stringify!(r) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).g as *const _ as usize }, - 1usize, - concat!( - "Offset of field: ", - stringify!(Color4u8), - "::", - stringify!(g) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).b as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Color4u8), - "::", - stringify!(b) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).a as *const _ as usize }, - 3usize, - concat!( - "Offset of field: ", - stringify!(Color4u8), - "::", - stringify!(a) - ) - ); - } - pub const CharacterEncodingResult_Success: root::nn::util::CharacterEncodingResult = 0; - pub const CharacterEncodingResult_BadLength: root::nn::util::CharacterEncodingResult = - 1; - pub const CharacterEncodingResult_InvalidFormat: - root::nn::util::CharacterEncodingResult = 2; - pub type CharacterEncodingResult = u32; - extern "C" { - #[link_name = "\u{1}_ZN2nn4util30PickOutCharacterFromUtf8StringEPcPPKc"] - pub fn PickOutCharacterFromUtf8String( - arg1: *mut skyline_libc::c_char, - str: *mut *const skyline_libc::c_char, - ) -> root::nn::util::CharacterEncodingResult; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util27ConvertCharacterUtf8ToUtf32EPjPKc"] - pub fn ConvertCharacterUtf8ToUtf32( - dest: *mut u32, - src: *const skyline_libc::c_char, - ) -> root::nn::util::CharacterEncodingResult; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util30ConvertStringUtf16NativeToUtf8EPciPKti"] - pub fn ConvertStringUtf16NativeToUtf8( - arg1: *mut skyline_libc::c_char, - arg2: root::s32, - arg3: *const u16, - arg4: root::s32, - ) -> root::nn::util::CharacterEncodingResult; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util30ConvertStringUtf8ToUtf16NativeEPtiPKci"] - pub fn ConvertStringUtf8ToUtf16Native( - arg1: *mut u16, - arg2: root::s32, - arg3: *const skyline_libc::c_char, - arg4: root::s32, - ) -> root::nn::util::CharacterEncodingResult; - } - #[repr(C)] - pub struct RelocationTable { - pub mMagic: root::s32, - pub mPosition: u32, - pub mSectionCount: root::s32, - } - #[test] - fn bindgen_test_layout_RelocationTable() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(RelocationTable)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(RelocationTable)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mMagic as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(RelocationTable), - "::", - stringify!(mMagic) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mPosition as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(RelocationTable), - "::", - stringify!(mPosition) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mSectionCount as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(RelocationTable), - "::", - stringify!(mSectionCount) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util15RelocationTable8RelocateEv"] - pub fn RelocationTable_Relocate(this: *mut root::nn::util::RelocationTable); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util15RelocationTable10UnrelocateEv"] - pub fn RelocationTable_Unrelocate(this: *mut root::nn::util::RelocationTable); - } - impl RelocationTable { - #[inline] - pub unsafe fn Relocate(&mut self) { - RelocationTable_Relocate(self) - } - #[inline] - pub unsafe fn Unrelocate(&mut self) { - RelocationTable_Unrelocate(self) - } - } - #[repr(C)] - pub struct BinaryFileHeader { - pub mMagic: root::s32, - pub mSig: u32, - pub mVerMicro: u8, - pub mVerMinor: u8, - pub mVerMajor: u16, - pub mBOM: u16, - pub mAlignment: u8, - pub mTargetAddrSize: u8, - pub mFileNameOffset: u32, - pub mFlag: u16, - pub mFirstBlockOffs: u16, - pub mRelocationTableOffs: u32, - pub mSize: u32, - } - #[test] - fn bindgen_test_layout_BinaryFileHeader() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(BinaryFileHeader)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(BinaryFileHeader)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mMagic as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mMagic) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mSig as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mSig) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mVerMicro as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mVerMicro) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mVerMinor as *const _ as usize - }, - 9usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mVerMinor) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mVerMajor as *const _ as usize - }, - 10usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mVerMajor) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mBOM as *const _ as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mBOM) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mAlignment as *const _ - as usize - }, - 14usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mAlignment) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mTargetAddrSize as *const _ - as usize - }, - 15usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mTargetAddrSize) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mFileNameOffset as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mFileNameOffset) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mFlag as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mFlag) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mFirstBlockOffs as *const _ - as usize - }, - 22usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mFirstBlockOffs) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mRelocationTableOffs - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mRelocationTableOffs) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mSize as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(BinaryFileHeader), - "::", - stringify!(mSize) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn4util16BinaryFileHeader7IsValidEliii"] - pub fn BinaryFileHeader_IsValid( - this: *const root::nn::util::BinaryFileHeader, - packedSig: root::s64, - majorVer: root::s32, - minorVer: root::s32, - microVer: root::s32, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn4util16BinaryFileHeader11IsRelocatedEv"] - pub fn BinaryFileHeader_IsRelocated( - this: *const root::nn::util::BinaryFileHeader, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZNK2nn4util16BinaryFileHeader15IsEndianReverseEv"] - pub fn BinaryFileHeader_IsEndianReverse( - this: *const root::nn::util::BinaryFileHeader, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4util16BinaryFileHeader18GetRelocationTableEv"] - pub fn BinaryFileHeader_GetRelocationTable( - this: *mut root::nn::util::BinaryFileHeader, - ) -> *mut root::nn::util::RelocationTable; - } - impl BinaryFileHeader { - #[inline] - pub unsafe fn IsValid( - &self, - packedSig: root::s64, - majorVer: root::s32, - minorVer: root::s32, - microVer: root::s32, - ) -> bool { - BinaryFileHeader_IsValid(self, packedSig, majorVer, minorVer, microVer) - } - #[inline] - pub unsafe fn IsRelocated(&self) -> bool { - BinaryFileHeader_IsRelocated(self) - } - #[inline] - pub unsafe fn IsEndianReverse(&self) -> bool { - BinaryFileHeader_IsEndianReverse(self) - } - #[inline] - pub unsafe fn GetRelocationTable( - &mut self, - ) -> *mut root::nn::util::RelocationTable { - BinaryFileHeader_GetRelocationTable(self) - } - } - } - extern "C" { - #[link_name = "\u{1}_ZN2nn11ReferSymbolEPKv"] - pub fn ReferSymbol(arg1: *const skyline_libc::c_void); - } - pub mod hid { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct NpadHandheldState { - _unused: [u8; 0], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct NpadStyleTag { - _unused: [u8; 0], - } - #[repr(C)] - pub struct ControllerSupportArg { - pub mMinPlayerCount: u8, - pub mMaxPlayerCount: u8, - pub mTakeOverConnection: u8, - pub mLeftJustify: bool, - pub mPermitJoyconDual: bool, - pub mSingleMode: bool, - pub mUseColors: bool, - pub mColors: [root::nn::util::Color4u8; 4usize], - pub mUsingControllerNames: u8, - pub mControllerNames: [[skyline_libc::c_char; 129usize]; 4usize], - } - #[test] - fn bindgen_test_layout_ControllerSupportArg() { - assert_eq!( - ::core::mem::size_of::(), - 540usize, - concat!("Size of: ", stringify!(ControllerSupportArg)) - ); - assert_eq!( - ::core::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(ControllerSupportArg)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mMinPlayerCount - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mMinPlayerCount) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mMaxPlayerCount - as *const _ as usize - }, - 1usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mMaxPlayerCount) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mTakeOverConnection - as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mTakeOverConnection) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mLeftJustify as *const _ - as usize - }, - 3usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mLeftJustify) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mPermitJoyconDual - as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mPermitJoyconDual) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mSingleMode as *const _ - as usize - }, - 5usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mSingleMode) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mUseColors as *const _ - as usize - }, - 6usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mUseColors) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mColors as *const _ - as usize - }, - 7usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mColors) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mUsingControllerNames - as *const _ as usize - }, - 23usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mUsingControllerNames) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mControllerNames - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportArg), - "::", - stringify!(mControllerNames) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ControllerSupportResultInfo { - pub mPlayerCount: skyline_libc::c_int, - pub mSelectedId: skyline_libc::c_int, - } - #[test] - fn bindgen_test_layout_ControllerSupportResultInfo() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(ControllerSupportResultInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(ControllerSupportResultInfo)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mPlayerCount - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportResultInfo), - "::", - stringify!(mPlayerCount) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).mSelectedId - as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ControllerSupportResultInfo), - "::", - stringify!(mSelectedId) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3hid14InitializeNpadEv"] - pub fn InitializeNpad(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3hid22SetSupportedNpadIdTypeEPKjm"] - pub fn SetSupportedNpadIdType(arg1: *const u32, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3hid24SetSupportedNpadStyleSetENS_4util10BitFlagSetILi32ENS0_12NpadStyleTagEEE"] - pub fn SetSupportedNpadStyleSet(arg1: u8); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3hid15GetNpadStyleSetERKj"] - pub fn GetNpadStyleSet(arg1: *const u32); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn3hid13GetNpadStatesEPNS0_17NpadHandheldStateEiRKj"] - pub fn GetNpadStates( - arg1: *mut root::nn::hid::NpadHandheldState, - arg2: root::s32, - arg3: *const u32, - ); - } - } - pub mod audio { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct AudioRendererConfig { - pub _0: *mut u64, - pub _8: *mut u64, - pub _10: *mut u64, - pub _18: *mut u64, - pub _20: *mut u64, - pub _28: *mut u64, - pub _30: *mut u64, - pub _38: *mut u64, - pub _40: *mut u64, - pub _48: *mut u64, - pub _50: *mut u64, - } - #[test] - fn bindgen_test_layout_AudioRendererConfig() { - assert_eq!( - ::core::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(AudioRendererConfig)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AudioRendererConfig)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._0 as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_0) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._8 as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_8) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._10 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_10) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._18 as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_18) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._20 as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_20) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._28 as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_28) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._30 as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_30) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._38 as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_38) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._40 as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_40) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._48 as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_48) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::()))._50 as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(AudioRendererConfig), - "::", - stringify!(_50) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct DelayType { - pub _0: *mut u64, - } - #[test] - fn bindgen_test_layout_DelayType() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(DelayType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(DelayType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DelayType), - "::", - stringify!(_0) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct FinalMixType { - pub _0: *mut u64, - } - #[test] - fn bindgen_test_layout_FinalMixType() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(FinalMixType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(FinalMixType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(FinalMixType), - "::", - stringify!(_0) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct SubMixType { - pub _0: *mut u64, - } - #[test] - fn bindgen_test_layout_SubMixType() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(SubMixType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(SubMixType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._0 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(SubMixType), - "::", - stringify!(_0) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5audio19SetDelayInputOutputEPNS0_9DelayTypeEPKaS4_i"] - pub fn SetDelayInputOutput( - arg1: *mut root::nn::audio::DelayType, - arg2: *const root::s8, - arg3: *const root::s8, - arg4: root::s32, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5audio11RemoveDelayEPNS0_19AudioRendererConfigEPNS0_9DelayTypeEPNS0_12FinalMixTypeE"] - pub fn RemoveDelay( - arg1: *mut root::nn::audio::AudioRendererConfig, - arg2: *mut root::nn::audio::DelayType, - arg3: *mut root::nn::audio::FinalMixType, - ) -> *mut skyline_libc::c_void; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5audio11RemoveDelayEPNS0_19AudioRendererConfigEPNS0_9DelayTypeEPNS0_10SubMixTypeE"] - pub fn RemoveDelay1( - arg1: *mut root::nn::audio::AudioRendererConfig, - arg2: *mut root::nn::audio::DelayType, - arg3: *mut root::nn::audio::SubMixType, - ) -> *mut skyline_libc::c_void; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn5audio17IsDelayRemoveableEPNS0_9DelayTypeE"] - pub fn IsDelayRemoveable(arg1: *mut root::nn::audio::DelayType) -> bool; - } - } - pub mod svc { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct Handle { - pub handle: u32, - } - #[test] - fn bindgen_test_layout_Handle() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Handle)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Handle)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).handle as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Handle), - "::", - stringify!(handle) - ) - ); - } - } - pub mod nifm { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm10InitializeEv"] - pub fn Initialize() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm19SetLocalNetworkModeEb"] - pub fn SetLocalNetworkMode(arg1: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm27SubmitNetworkRequestAndWaitEv"] - pub fn SubmitNetworkRequestAndWait(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm18IsNetworkAvailableEv"] - pub fn IsNetworkAvailable() -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm26HandleNetworkRequestResultEv"] - pub fn HandleNetworkRequestResult() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm20SubmitNetworkRequestEv"] - pub fn SubmitNetworkRequest(); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm22IsNetworkRequestOnHoldEv"] - pub fn IsNetworkRequestOnHold() -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn4nifm26GetCurrentPrimaryIpAddressEPm"] - pub fn GetCurrentPrimaryIpAddress(inAddr: *mut u64) -> root::Result; - } - } - pub mod socket { - #[allow(unused_imports)] - use self::super::super::super::root; - #[repr(C)] - pub struct InAddr { - pub addr: u32, - } - #[test] - fn bindgen_test_layout_InAddr() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(InAddr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(InAddr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).addr as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(InAddr), - "::", - stringify!(addr) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket10InitializeEPvmmi"] - pub fn Initialize( - pool: *mut skyline_libc::c_void, - poolSize: root::ulong, - allocPoolSize: root::ulong, - concurLimit: skyline_libc::c_int, - ) -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket8FinalizeEv"] - pub fn Finalize() -> root::Result; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket10SetSockOptEiiiPKvj"] - pub fn SetSockOpt( - socket: root::s32, - socketLevel: root::s32, - option: root::s32, - arg1: *const skyline_libc::c_void, - len: u32, - ) -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket4SendEiPKvmi"] - pub fn Send( - socket: root::s32, - buffer: *const skyline_libc::c_void, - bufferLength: u64, - flags: root::s32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket6SocketEiii"] - pub fn Socket(domain: root::s32, type_: root::s32, proto: root::s32) -> root::s32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket9InetHtonsEt"] - pub fn InetHtons(arg1: u16) -> u16; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket8InetAtonEPKcPNS0_6InAddrE"] - pub fn InetAton( - str: *const skyline_libc::c_char, - arg1: *mut root::nn::socket::InAddr, - ) -> u32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket7ConnectEiPK8sockaddrj"] - pub fn Connect( - socket: root::s32, - addr: *const root::sockaddr, - addrLen: u32, - ) -> u32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket4BindEiPK8sockaddrj"] - pub fn Bind( - socket: root::s32, - addr: *const root::sockaddr, - addrLen: u32, - ) -> u32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket6ListenEii"] - pub fn Listen(socket: root::s32, backlog: root::s32) -> u32; - } - extern "C" { - #[link_name = "\u{1}_ZN2nn6socket6AcceptEiP8sockaddrPj"] - pub fn Accept( - socket: root::s32, - addrOut: *mut root::sockaddr, - addrLenOut: *mut u32, - ) -> u32; - } - } - } - extern "C" { - pub fn main( - argc: skyline_libc::c_int, - argv: *mut *mut skyline_libc::c_char, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn nninitStartup(); - } - extern "C" { - pub fn _init(); - } - extern "C" { - pub fn _fini(); - } - extern "C" { - pub fn __nnDetailNintendoSdkRuntimeObjectFileRefer(); - } - extern "C" { - pub fn __nnDetailNintendoSdkRuntimeObjectFile(); - } - extern "C" { - pub fn __nnDetailNintendoSdkNsoFileRefer(); - } - extern "C" { - pub fn __nnmusl_init_dso_0(); - } - extern "C" { - pub fn __nnmusl_fini_dso_0(); - } - extern "C" { - pub fn __nnDetailNintendoSdkNsoFile_0(); - } - #[repr(C)] - pub struct nnosMutexType { - pub curState: u8, - pub isRecursiveMutex: bool, - pub lockLevel: root::s32, - pub _6: [u8; 18usize], - } - #[test] - fn bindgen_test_layout_nnosMutexType() { - assert_eq!( - ::core::mem::size_of::(), - 28usize, - concat!("Size of: ", stringify!(nnosMutexType)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(nnosMutexType)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).curState as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(nnosMutexType), - "::", - stringify!(curState) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).isRecursiveMutex as *const _ as usize - }, - 1usize, - concat!( - "Offset of field: ", - stringify!(nnosMutexType), - "::", - stringify!(isRecursiveMutex) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).lockLevel as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(nnosMutexType), - "::", - stringify!(lockLevel) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::()))._6 as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(nnosMutexType), - "::", - stringify!(_6) - ) - ); - } - extern "C" { - pub fn nnosInitializeMutex(arg1: *mut root::nnosMutexType, arg2: bool, arg3: root::s32); - } - extern "C" { - pub fn nnosFinalizeMutex(arg1: *mut root::nnosMutexType); - } - extern "C" { - pub fn nnosLockMutex(arg1: *mut root::nnosMutexType); - } - extern "C" { - pub fn nnosTryLockMutex(arg1: *mut root::nnosMutexType) -> bool; - } - extern "C" { - pub fn nnosUnlockMutex(arg1: *mut root::nnosMutexType); - } - extern "C" { - pub fn llabs(n: skyline_libc::c_longlong) -> skyline_libc::c_longlong; - } - extern "C" { - pub fn __assert_fail( - __assertion: *const skyline_libc::c_char, - __file: *const skyline_libc::c_char, - __line: skyline_libc::c_uint, - __function: *const skyline_libc::c_char, - ); - } - extern "C" { - pub fn __assert_perror_fail( - __errnum: skyline_libc::c_int, - __file: *const skyline_libc::c_char, - __line: skyline_libc::c_uint, - __function: *const skyline_libc::c_char, - ); - } - extern "C" { - pub fn __assert( - __assertion: *const skyline_libc::c_char, - __file: *const skyline_libc::c_char, - __line: skyline_libc::c_int, - ); - } - pub type Elf32_Half = u16; - pub type Elf64_Half = u16; - pub type Elf32_Word = u32; - pub type Elf32_Sword = i32; - pub type Elf64_Word = u32; - pub type Elf64_Sword = i32; - pub type Elf32_Xword = u64; - pub type Elf32_Sxword = i64; - pub type Elf64_Xword = u64; - pub type Elf64_Sxword = i64; - pub type Elf32_Addr = u32; - pub type Elf64_Addr = u64; - pub type Elf32_Off = u32; - pub type Elf64_Off = u64; - pub type Elf32_Section = u16; - pub type Elf64_Section = u16; - pub type Elf32_Versym = root::Elf32_Half; - pub type Elf64_Versym = root::Elf64_Half; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Ehdr { - pub e_ident: [skyline_libc::c_uchar; 16usize], - pub e_type: root::Elf32_Half, - pub e_machine: root::Elf32_Half, - pub e_version: root::Elf32_Word, - pub e_entry: root::Elf32_Addr, - pub e_phoff: root::Elf32_Off, - pub e_shoff: root::Elf32_Off, - pub e_flags: root::Elf32_Word, - pub e_ehsize: root::Elf32_Half, - pub e_phentsize: root::Elf32_Half, - pub e_phnum: root::Elf32_Half, - pub e_shentsize: root::Elf32_Half, - pub e_shnum: root::Elf32_Half, - pub e_shstrndx: root::Elf32_Half, - } - #[test] - fn bindgen_test_layout_Elf32_Ehdr() { - assert_eq!( - ::core::mem::size_of::(), - 52usize, - concat!("Size of: ", stringify!(Elf32_Ehdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Ehdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_ident as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_ident) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_type as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_machine as *const _ as usize }, - 18usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_machine) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_version as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_entry as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_entry) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phoff as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_phoff) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shoff as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_shoff) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_flags as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_ehsize as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_ehsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phentsize as *const _ as usize }, - 42usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_phentsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phnum as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_phnum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shentsize as *const _ as usize }, - 46usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_shentsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shnum as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_shnum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shstrndx as *const _ as usize }, - 50usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Ehdr), - "::", - stringify!(e_shstrndx) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Ehdr { - pub e_ident: [skyline_libc::c_uchar; 16usize], - pub e_type: root::Elf64_Half, - pub e_machine: root::Elf64_Half, - pub e_version: root::Elf64_Word, - pub e_entry: root::Elf64_Addr, - pub e_phoff: root::Elf64_Off, - pub e_shoff: root::Elf64_Off, - pub e_flags: root::Elf64_Word, - pub e_ehsize: root::Elf64_Half, - pub e_phentsize: root::Elf64_Half, - pub e_phnum: root::Elf64_Half, - pub e_shentsize: root::Elf64_Half, - pub e_shnum: root::Elf64_Half, - pub e_shstrndx: root::Elf64_Half, - } - #[test] - fn bindgen_test_layout_Elf64_Ehdr() { - assert_eq!( - ::core::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(Elf64_Ehdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Ehdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_ident as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_ident) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_type as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_machine as *const _ as usize }, - 18usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_machine) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_version as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_entry as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_entry) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phoff as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_phoff) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shoff as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_shoff) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_flags as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_ehsize as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_ehsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phentsize as *const _ as usize }, - 54usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_phentsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_phnum as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_phnum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shentsize as *const _ as usize }, - 58usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_shentsize) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shnum as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_shnum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).e_shstrndx as *const _ as usize }, - 62usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Ehdr), - "::", - stringify!(e_shstrndx) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Shdr { - pub sh_name: root::Elf32_Word, - pub sh_type: root::Elf32_Word, - pub sh_flags: root::Elf32_Word, - pub sh_addr: root::Elf32_Addr, - pub sh_offset: root::Elf32_Off, - pub sh_size: root::Elf32_Word, - pub sh_link: root::Elf32_Word, - pub sh_info: root::Elf32_Word, - pub sh_addralign: root::Elf32_Word, - pub sh_entsize: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Shdr() { - assert_eq!( - ::core::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(Elf32_Shdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Shdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_type as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_flags as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_addr as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_addr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_offset as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_size as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_link as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_link) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_info as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_addralign as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_addralign) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_entsize as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Shdr), - "::", - stringify!(sh_entsize) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Shdr { - pub sh_name: root::Elf64_Word, - pub sh_type: root::Elf64_Word, - pub sh_flags: root::Elf64_Xword, - pub sh_addr: root::Elf64_Addr, - pub sh_offset: root::Elf64_Off, - pub sh_size: root::Elf64_Xword, - pub sh_link: root::Elf64_Word, - pub sh_info: root::Elf64_Word, - pub sh_addralign: root::Elf64_Xword, - pub sh_entsize: root::Elf64_Xword, - } - #[test] - fn bindgen_test_layout_Elf64_Shdr() { - assert_eq!( - ::core::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(Elf64_Shdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Shdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_type as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_flags as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_addr as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_addr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_offset as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_size as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_link as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_link) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_info as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_addralign as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_addralign) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sh_entsize as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Shdr), - "::", - stringify!(sh_entsize) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Chdr { - pub ch_type: root::Elf32_Word, - pub ch_size: root::Elf32_Word, - pub ch_addralign: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Chdr() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Elf32_Chdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Chdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Chdr), - "::", - stringify!(ch_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_size as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Chdr), - "::", - stringify!(ch_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_addralign as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Chdr), - "::", - stringify!(ch_addralign) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Chdr { - pub ch_type: root::Elf64_Word, - pub ch_reserved: root::Elf64_Word, - pub ch_size: root::Elf64_Xword, - pub ch_addralign: root::Elf64_Xword, - } - #[test] - fn bindgen_test_layout_Elf64_Chdr() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf64_Chdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Chdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Chdr), - "::", - stringify!(ch_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_reserved as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Chdr), - "::", - stringify!(ch_reserved) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_size as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Chdr), - "::", - stringify!(ch_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ch_addralign as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Chdr), - "::", - stringify!(ch_addralign) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Sym { - pub st_name: root::Elf32_Word, - pub st_value: root::Elf32_Addr, - pub st_size: root::Elf32_Word, - pub st_info: skyline_libc::c_uchar, - pub st_other: skyline_libc::c_uchar, - pub st_shndx: root::Elf32_Section, - } - #[test] - fn bindgen_test_layout_Elf32_Sym() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf32_Sym)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Sym)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_value as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_value) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_size as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_info as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_other as *const _ as usize }, - 13usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_other) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_shndx as *const _ as usize }, - 14usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Sym), - "::", - stringify!(st_shndx) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Sym { - pub st_name: root::Elf64_Word, - pub st_info: skyline_libc::c_uchar, - pub st_other: skyline_libc::c_uchar, - pub st_shndx: root::Elf64_Section, - pub st_value: root::Elf64_Addr, - pub st_size: root::Elf64_Xword, - } - #[test] - fn bindgen_test_layout_Elf64_Sym() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf64_Sym)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Sym)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_info as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_other as *const _ as usize }, - 5usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_other) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_shndx as *const _ as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_shndx) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_value as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_value) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).st_size as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Sym), - "::", - stringify!(st_size) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Syminfo { - pub si_boundto: root::Elf32_Half, - pub si_flags: root::Elf32_Half, - } - #[test] - fn bindgen_test_layout_Elf32_Syminfo() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Elf32_Syminfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(Elf32_Syminfo)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).si_boundto as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Syminfo), - "::", - stringify!(si_boundto) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).si_flags as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Syminfo), - "::", - stringify!(si_flags) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Syminfo { - pub si_boundto: root::Elf64_Half, - pub si_flags: root::Elf64_Half, - } - #[test] - fn bindgen_test_layout_Elf64_Syminfo() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Elf64_Syminfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(Elf64_Syminfo)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).si_boundto as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Syminfo), - "::", - stringify!(si_boundto) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).si_flags as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Syminfo), - "::", - stringify!(si_flags) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Rel { - pub r_offset: root::Elf32_Addr, - pub r_info: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Rel() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_Rel)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Rel)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_offset as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Rel), - "::", - stringify!(r_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_info as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Rel), - "::", - stringify!(r_info) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Rel { - pub r_offset: root::Elf64_Addr, - pub r_info: root::Elf64_Xword, - } - #[test] - fn bindgen_test_layout_Elf64_Rel() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf64_Rel)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Rel)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_offset as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Rel), - "::", - stringify!(r_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_info as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Rel), - "::", - stringify!(r_info) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Rela { - pub r_offset: root::Elf32_Addr, - pub r_info: root::Elf32_Word, - pub r_addend: root::Elf32_Sword, - } - #[test] - fn bindgen_test_layout_Elf32_Rela() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Elf32_Rela)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Rela)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_offset as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Rela), - "::", - stringify!(r_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_info as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Rela), - "::", - stringify!(r_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_addend as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Rela), - "::", - stringify!(r_addend) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Rela { - pub r_offset: root::Elf64_Addr, - pub r_info: root::Elf64_Xword, - pub r_addend: root::Elf64_Sxword, - } - #[test] - fn bindgen_test_layout_Elf64_Rela() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf64_Rela)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Rela)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_offset as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Rela), - "::", - stringify!(r_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_info as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Rela), - "::", - stringify!(r_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).r_addend as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Rela), - "::", - stringify!(r_addend) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Phdr { - pub p_type: root::Elf32_Word, - pub p_offset: root::Elf32_Off, - pub p_vaddr: root::Elf32_Addr, - pub p_paddr: root::Elf32_Addr, - pub p_filesz: root::Elf32_Word, - pub p_memsz: root::Elf32_Word, - pub p_flags: root::Elf32_Word, - pub p_align: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Phdr() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(Elf32_Phdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Phdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_offset as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_vaddr as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_vaddr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_paddr as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_paddr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_filesz as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_filesz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_memsz as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_memsz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_flags as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_align as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Phdr), - "::", - stringify!(p_align) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Phdr { - pub p_type: root::Elf64_Word, - pub p_flags: root::Elf64_Word, - pub p_offset: root::Elf64_Off, - pub p_vaddr: root::Elf64_Addr, - pub p_paddr: root::Elf64_Addr, - pub p_filesz: root::Elf64_Xword, - pub p_memsz: root::Elf64_Xword, - pub p_align: root::Elf64_Xword, - } - #[test] - fn bindgen_test_layout_Elf64_Phdr() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(Elf64_Phdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Phdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_flags as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_offset as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_offset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_vaddr as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_vaddr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_paddr as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_paddr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_filesz as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_filesz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_memsz as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_memsz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).p_align as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Phdr), - "::", - stringify!(p_align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct Elf32_Dyn { - pub d_tag: root::Elf32_Sword, - pub d_un: root::Elf32_Dyn__bindgen_ty_1, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union Elf32_Dyn__bindgen_ty_1 { - pub d_val: root::Elf32_Word, - pub d_ptr: root::Elf32_Addr, - _bindgen_union_align: u32, - } - #[test] - fn bindgen_test_layout_Elf32_Dyn__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Elf32_Dyn__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Dyn__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).d_val as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Dyn__bindgen_ty_1), - "::", - stringify!(d_val) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).d_ptr as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Dyn__bindgen_ty_1), - "::", - stringify!(d_ptr) - ) - ); - } - #[test] - fn bindgen_test_layout_Elf32_Dyn() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_Dyn)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Dyn)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).d_tag as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Dyn), - "::", - stringify!(d_tag) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).d_un as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Dyn), - "::", - stringify!(d_un) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct Elf64_Dyn { - pub d_tag: root::Elf64_Sxword, - pub d_un: root::Elf64_Dyn__bindgen_ty_1, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union Elf64_Dyn__bindgen_ty_1 { - pub d_val: root::Elf64_Xword, - pub d_ptr: root::Elf64_Addr, - _bindgen_union_align: u64, - } - #[test] - fn bindgen_test_layout_Elf64_Dyn__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf64_Dyn__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Dyn__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).d_val as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Dyn__bindgen_ty_1), - "::", - stringify!(d_val) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).d_ptr as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Dyn__bindgen_ty_1), - "::", - stringify!(d_ptr) - ) - ); - } - #[test] - fn bindgen_test_layout_Elf64_Dyn() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf64_Dyn)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Dyn)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).d_tag as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Dyn), - "::", - stringify!(d_tag) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).d_un as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Dyn), - "::", - stringify!(d_un) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Verdef { - pub vd_version: root::Elf32_Half, - pub vd_flags: root::Elf32_Half, - pub vd_ndx: root::Elf32_Half, - pub vd_cnt: root::Elf32_Half, - pub vd_hash: root::Elf32_Word, - pub vd_aux: root::Elf32_Word, - pub vd_next: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Verdef() { - assert_eq!( - ::core::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(Elf32_Verdef)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Verdef)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_version as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_flags as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_ndx as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_ndx) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_cnt as *const _ as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_cnt) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_hash as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_hash) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_aux as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_aux) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_next as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdef), - "::", - stringify!(vd_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Verdef { - pub vd_version: root::Elf64_Half, - pub vd_flags: root::Elf64_Half, - pub vd_ndx: root::Elf64_Half, - pub vd_cnt: root::Elf64_Half, - pub vd_hash: root::Elf64_Word, - pub vd_aux: root::Elf64_Word, - pub vd_next: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Verdef() { - assert_eq!( - ::core::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(Elf64_Verdef)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Verdef)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_version as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_flags as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_ndx as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_ndx) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_cnt as *const _ as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_cnt) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_hash as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_hash) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_aux as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_aux) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vd_next as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdef), - "::", - stringify!(vd_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Verdaux { - pub vda_name: root::Elf32_Word, - pub vda_next: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Verdaux() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_Verdaux)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Verdaux)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vda_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdaux), - "::", - stringify!(vda_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vda_next as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verdaux), - "::", - stringify!(vda_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Verdaux { - pub vda_name: root::Elf64_Word, - pub vda_next: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Verdaux() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf64_Verdaux)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Verdaux)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vda_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdaux), - "::", - stringify!(vda_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vda_next as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verdaux), - "::", - stringify!(vda_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Verneed { - pub vn_version: root::Elf32_Half, - pub vn_cnt: root::Elf32_Half, - pub vn_file: root::Elf32_Word, - pub vn_aux: root::Elf32_Word, - pub vn_next: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Verneed() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf32_Verneed)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Verneed)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_version as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verneed), - "::", - stringify!(vn_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_cnt as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verneed), - "::", - stringify!(vn_cnt) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_file as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verneed), - "::", - stringify!(vn_file) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_aux as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verneed), - "::", - stringify!(vn_aux) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_next as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Verneed), - "::", - stringify!(vn_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Verneed { - pub vn_version: root::Elf64_Half, - pub vn_cnt: root::Elf64_Half, - pub vn_file: root::Elf64_Word, - pub vn_aux: root::Elf64_Word, - pub vn_next: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Verneed() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf64_Verneed)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Verneed)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_version as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verneed), - "::", - stringify!(vn_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_cnt as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verneed), - "::", - stringify!(vn_cnt) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_file as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verneed), - "::", - stringify!(vn_file) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_aux as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verneed), - "::", - stringify!(vn_aux) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vn_next as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Verneed), - "::", - stringify!(vn_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Vernaux { - pub vna_hash: root::Elf32_Word, - pub vna_flags: root::Elf32_Half, - pub vna_other: root::Elf32_Half, - pub vna_name: root::Elf32_Word, - pub vna_next: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Vernaux() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf32_Vernaux)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Vernaux)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_hash as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Vernaux), - "::", - stringify!(vna_hash) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_flags as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Vernaux), - "::", - stringify!(vna_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_other as *const _ as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Vernaux), - "::", - stringify!(vna_other) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_name as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Vernaux), - "::", - stringify!(vna_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_next as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Vernaux), - "::", - stringify!(vna_next) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Vernaux { - pub vna_hash: root::Elf64_Word, - pub vna_flags: root::Elf64_Half, - pub vna_other: root::Elf64_Half, - pub vna_name: root::Elf64_Word, - pub vna_next: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Vernaux() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf64_Vernaux)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Vernaux)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_hash as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Vernaux), - "::", - stringify!(vna_hash) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_flags as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Vernaux), - "::", - stringify!(vna_flags) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_other as *const _ as usize }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Vernaux), - "::", - stringify!(vna_other) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_name as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Vernaux), - "::", - stringify!(vna_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).vna_next as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Vernaux), - "::", - stringify!(vna_next) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct Elf32_auxv_t { - pub a_type: u32, - pub a_un: root::Elf32_auxv_t__bindgen_ty_1, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union Elf32_auxv_t__bindgen_ty_1 { - pub a_val: u32, - _bindgen_union_align: u32, - } - #[test] - fn bindgen_test_layout_Elf32_auxv_t__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(Elf32_auxv_t__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_auxv_t__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).a_val as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_auxv_t__bindgen_ty_1), - "::", - stringify!(a_val) - ) - ); - } - #[test] - fn bindgen_test_layout_Elf32_auxv_t() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_auxv_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_auxv_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).a_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_auxv_t), - "::", - stringify!(a_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).a_un as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_auxv_t), - "::", - stringify!(a_un) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct Elf64_auxv_t { - pub a_type: u64, - pub a_un: root::Elf64_auxv_t__bindgen_ty_1, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union Elf64_auxv_t__bindgen_ty_1 { - pub a_val: u64, - _bindgen_union_align: u64, - } - #[test] - fn bindgen_test_layout_Elf64_auxv_t__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf64_auxv_t__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_auxv_t__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).a_val as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_auxv_t__bindgen_ty_1), - "::", - stringify!(a_val) - ) - ); - } - #[test] - fn bindgen_test_layout_Elf64_auxv_t() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Elf64_auxv_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_auxv_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).a_type as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_auxv_t), - "::", - stringify!(a_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).a_un as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_auxv_t), - "::", - stringify!(a_un) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Nhdr { - pub n_namesz: root::Elf32_Word, - pub n_descsz: root::Elf32_Word, - pub n_type: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Nhdr() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Elf32_Nhdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Nhdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_namesz as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Nhdr), - "::", - stringify!(n_namesz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_descsz as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Nhdr), - "::", - stringify!(n_descsz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_type as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Nhdr), - "::", - stringify!(n_type) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Nhdr { - pub n_namesz: root::Elf64_Word, - pub n_descsz: root::Elf64_Word, - pub n_type: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Nhdr() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Elf64_Nhdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Nhdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_namesz as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Nhdr), - "::", - stringify!(n_namesz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_descsz as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Nhdr), - "::", - stringify!(n_descsz) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).n_type as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Nhdr), - "::", - stringify!(n_type) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Move { - pub m_value: root::Elf32_Xword, - pub m_info: root::Elf32_Word, - pub m_poffset: root::Elf32_Word, - pub m_repeat: root::Elf32_Half, - pub m_stride: root::Elf32_Half, - } - #[test] - fn bindgen_test_layout_Elf32_Move() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf32_Move)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf32_Move)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_value as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Move), - "::", - stringify!(m_value) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_info as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Move), - "::", - stringify!(m_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_poffset as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Move), - "::", - stringify!(m_poffset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_repeat as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Move), - "::", - stringify!(m_repeat) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_stride as *const _ as usize }, - 18usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Move), - "::", - stringify!(m_stride) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Move { - pub m_value: root::Elf64_Xword, - pub m_info: root::Elf64_Xword, - pub m_poffset: root::Elf64_Xword, - pub m_repeat: root::Elf64_Half, - pub m_stride: root::Elf64_Half, - } - #[test] - fn bindgen_test_layout_Elf64_Move() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(Elf64_Move)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Elf64_Move)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_value as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Move), - "::", - stringify!(m_value) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_info as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Move), - "::", - stringify!(m_info) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_poffset as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Move), - "::", - stringify!(m_poffset) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_repeat as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Move), - "::", - stringify!(m_repeat) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).m_stride as *const _ as usize }, - 26usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Move), - "::", - stringify!(m_stride) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union Elf32_gptab { - pub gt_header: root::Elf32_gptab__bindgen_ty_1, - pub gt_entry: root::Elf32_gptab__bindgen_ty_2, - _bindgen_union_align: [u32; 2usize], - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_gptab__bindgen_ty_1 { - pub gt_current_g_value: root::Elf32_Word, - pub gt_unused: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_gptab__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_gptab__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_gptab__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gt_current_g_value - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab__bindgen_ty_1), - "::", - stringify!(gt_current_g_value) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gt_unused as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab__bindgen_ty_1), - "::", - stringify!(gt_unused) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_gptab__bindgen_ty_2 { - pub gt_g_value: root::Elf32_Word, - pub gt_bytes: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_gptab__bindgen_ty_2() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_gptab__bindgen_ty_2)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_gptab__bindgen_ty_2)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gt_g_value as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab__bindgen_ty_2), - "::", - stringify!(gt_g_value) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gt_bytes as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab__bindgen_ty_2), - "::", - stringify!(gt_bytes) - ) - ); - } - #[test] - fn bindgen_test_layout_Elf32_gptab() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf32_gptab)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_gptab)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).gt_header as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab), - "::", - stringify!(gt_header) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).gt_entry as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_gptab), - "::", - stringify!(gt_entry) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_RegInfo { - pub ri_gprmask: root::Elf32_Word, - pub ri_cprmask: [root::Elf32_Word; 4usize], - pub ri_gp_value: root::Elf32_Sword, - } - #[test] - fn bindgen_test_layout_Elf32_RegInfo() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf32_RegInfo)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_RegInfo)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ri_gprmask as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_RegInfo), - "::", - stringify!(ri_gprmask) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ri_cprmask as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_RegInfo), - "::", - stringify!(ri_cprmask) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ri_gp_value as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf32_RegInfo), - "::", - stringify!(ri_gp_value) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf_Options { - pub kind: skyline_libc::c_uchar, - pub size: skyline_libc::c_uchar, - pub section: root::Elf32_Section, - pub info: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf_Options() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf_Options)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf_Options)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).kind as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options), - "::", - stringify!(kind) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).size as *const _ as usize }, - 1usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).section as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).info as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options), - "::", - stringify!(info) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf_Options_Hw { - pub hwp_flags1: root::Elf32_Word, - pub hwp_flags2: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf_Options_Hw() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Elf_Options_Hw)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf_Options_Hw)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).hwp_flags1 as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options_Hw), - "::", - stringify!(hwp_flags1) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).hwp_flags2 as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf_Options_Hw), - "::", - stringify!(hwp_flags2) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf32_Lib { - pub l_name: root::Elf32_Word, - pub l_time_stamp: root::Elf32_Word, - pub l_checksum: root::Elf32_Word, - pub l_version: root::Elf32_Word, - pub l_flags: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf32_Lib() { - assert_eq!( - ::core::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(Elf32_Lib)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf32_Lib)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Lib), - "::", - stringify!(l_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_time_stamp as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Lib), - "::", - stringify!(l_time_stamp) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_checksum as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Lib), - "::", - stringify!(l_checksum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_version as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Lib), - "::", - stringify!(l_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_flags as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf32_Lib), - "::", - stringify!(l_flags) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf64_Lib { - pub l_name: root::Elf64_Word, - pub l_time_stamp: root::Elf64_Word, - pub l_checksum: root::Elf64_Word, - pub l_version: root::Elf64_Word, - pub l_flags: root::Elf64_Word, - } - #[test] - fn bindgen_test_layout_Elf64_Lib() { - assert_eq!( - ::core::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(Elf64_Lib)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf64_Lib)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Lib), - "::", - stringify!(l_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_time_stamp as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Lib), - "::", - stringify!(l_time_stamp) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_checksum as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Lib), - "::", - stringify!(l_checksum) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_version as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Lib), - "::", - stringify!(l_version) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_flags as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf64_Lib), - "::", - stringify!(l_flags) - ) - ); - } - pub type Elf32_Conflict = root::Elf32_Addr; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Elf_MIPS_ABIFlags_v0 { - pub version: root::Elf32_Half, - pub isa_level: skyline_libc::c_uchar, - pub isa_rev: skyline_libc::c_uchar, - pub gpr_size: skyline_libc::c_uchar, - pub cpr1_size: skyline_libc::c_uchar, - pub cpr2_size: skyline_libc::c_uchar, - pub fp_abi: skyline_libc::c_uchar, - pub isa_ext: root::Elf32_Word, - pub ases: root::Elf32_Word, - pub flags1: root::Elf32_Word, - pub flags2: root::Elf32_Word, - } - #[test] - fn bindgen_test_layout_Elf_MIPS_ABIFlags_v0() { - assert_eq!( - ::core::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Elf_MIPS_ABIFlags_v0)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Elf_MIPS_ABIFlags_v0)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).version as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).isa_level as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(isa_level) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).isa_rev as *const _ as usize - }, - 3usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(isa_rev) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).gpr_size as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(gpr_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).cpr1_size as *const _ as usize - }, - 5usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(cpr1_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).cpr2_size as *const _ as usize - }, - 6usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(cpr2_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).fp_abi as *const _ as usize - }, - 7usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(fp_abi) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).isa_ext as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(isa_ext) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ases as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(ases) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).flags1 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(flags1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).flags2 as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(Elf_MIPS_ABIFlags_v0), - "::", - stringify!(flags2) - ) - ); - } - pub const Val_GNU_MIPS_ABI_FP_ANY: root::_bindgen_ty_6 = 0; - pub const Val_GNU_MIPS_ABI_FP_DOUBLE: root::_bindgen_ty_6 = 1; - pub const Val_GNU_MIPS_ABI_FP_SINGLE: root::_bindgen_ty_6 = 2; - pub const Val_GNU_MIPS_ABI_FP_SOFT: root::_bindgen_ty_6 = 3; - pub const Val_GNU_MIPS_ABI_FP_OLD_64: root::_bindgen_ty_6 = 4; - pub const Val_GNU_MIPS_ABI_FP_XX: root::_bindgen_ty_6 = 5; - pub const Val_GNU_MIPS_ABI_FP_64: root::_bindgen_ty_6 = 6; - pub const Val_GNU_MIPS_ABI_FP_64A: root::_bindgen_ty_6 = 7; - pub const Val_GNU_MIPS_ABI_FP_MAX: root::_bindgen_ty_6 = 7; - pub type _bindgen_ty_6 = u32; - pub mod rtld { - #[allow(unused_imports)] - use self::super::super::root; - #[repr(C)] - #[derive(Copy, Clone)] - pub struct ModuleObject { - pub next: *mut root::rtld::ModuleObject, - pub prev: *mut root::rtld::ModuleObject, - pub rela_or_rel_plt: root::rtld::ModuleObject__bindgen_ty_1, - pub rela_or_rel: root::rtld::ModuleObject__bindgen_ty_2, - pub module_base: u64, - pub dynamic: *mut root::Elf64_Dyn, - pub is_rela: bool, - pub rela_or_rel_plt_size: u64, - pub dt_init: ::core::option::Option, - pub dt_fini: ::core::option::Option, - pub hash_bucket: *mut u32, - pub hash_chain: *mut u32, - pub dynstr: *mut skyline_libc::c_char, - pub dynsym: *mut root::Elf64_Sym, - pub dynstr_size: u64, - pub got: *mut *mut skyline_libc::c_void, - pub rela_dyn_size: u64, - pub rel_dyn_size: u64, - pub rel_count: u64, - pub rela_count: u64, - pub hash_nchain_value: u64, - pub hash_nbucket_value: u64, - pub got_stub_ptr: u64, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union ModuleObject__bindgen_ty_1 { - pub rel: *mut root::Elf64_Rel, - pub rela: *mut root::Elf64_Rela, - pub raw: *mut skyline_libc::c_void, - _bindgen_union_align: u64, - } - #[test] - fn bindgen_test_layout_ModuleObject__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(ModuleObject__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ModuleObject__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rel as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject__bindgen_ty_1), - "::", - stringify!(rel) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject__bindgen_ty_1), - "::", - stringify!(rela) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).raw as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject__bindgen_ty_1), - "::", - stringify!(raw) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union ModuleObject__bindgen_ty_2 { - pub rel: *mut root::Elf64_Rel, - pub rela: *mut root::Elf64_Rela, - _bindgen_union_align: u64, - } - #[test] - fn bindgen_test_layout_ModuleObject__bindgen_ty_2() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(ModuleObject__bindgen_ty_2)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ModuleObject__bindgen_ty_2)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rel as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject__bindgen_ty_2), - "::", - stringify!(rel) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject__bindgen_ty_2), - "::", - stringify!(rela) - ) - ); - } - #[test] - fn bindgen_test_layout_ModuleObject() { - assert_eq!( - ::core::mem::size_of::(), - 184usize, - concat!("Size of: ", stringify!(ModuleObject)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ModuleObject)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).next as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(next) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).prev as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(prev) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela_or_rel_plt as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rela_or_rel_plt) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela_or_rel as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rela_or_rel) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).module_base as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(module_base) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).dynamic as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dynamic) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).is_rela as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(is_rela) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela_or_rel_plt_size as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rela_or_rel_plt_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).dt_init as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dt_init) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).dt_fini as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dt_fini) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hash_bucket as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(hash_bucket) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hash_chain as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(hash_chain) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).dynstr as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dynstr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).dynsym as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dynsym) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).dynstr_size as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(dynstr_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).got as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(got) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela_dyn_size as *const _ as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rela_dyn_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rel_dyn_size as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rel_dyn_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).rel_count as *const _ as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rel_count) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).rela_count as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(rela_count) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hash_nchain_value as *const _ as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(hash_nchain_value) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).hash_nbucket_value as *const _ - as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(hash_nbucket_value) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).got_stub_ptr as *const _ as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(ModuleObject), - "::", - stringify!(got_stub_ptr) - ) - ); - } - extern "C" { - #[link_name = "\u{1}_ZN4rtld12ModuleObject10InitializeEmP9Elf64_Dyn"] - pub fn ModuleObject_Initialize( - this: *mut root::rtld::ModuleObject, - aslr_base: u64, - dynamic: *mut root::Elf64_Dyn, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN4rtld12ModuleObject8RelocateEv"] - pub fn ModuleObject_Relocate(this: *mut root::rtld::ModuleObject); - } - extern "C" { - #[link_name = "\u{1}_ZN4rtld12ModuleObject15GetSymbolByNameEPKc"] - pub fn ModuleObject_GetSymbolByName( - this: *mut root::rtld::ModuleObject, - name: *const skyline_libc::c_char, - ) -> *mut root::Elf64_Sym; - } - extern "C" { - #[link_name = "\u{1}_ZN4rtld12ModuleObject14ResolveSymbolsEb"] - pub fn ModuleObject_ResolveSymbols( - this: *mut root::rtld::ModuleObject, - do_lazy_got_init: bool, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN4rtld12ModuleObject16TryResolveSymbolEPmP9Elf64_Sym"] - pub fn ModuleObject_TryResolveSymbol( - this: *mut root::rtld::ModuleObject, - target_symbol_address: *mut root::Elf64_Addr, - symbol: *mut root::Elf64_Sym, - ) -> bool; - } - impl ModuleObject { - #[inline] - pub unsafe fn Initialize(&mut self, aslr_base: u64, dynamic: *mut root::Elf64_Dyn) { - ModuleObject_Initialize(self, aslr_base, dynamic) - } - #[inline] - pub unsafe fn Relocate(&mut self) { - ModuleObject_Relocate(self) - } - #[inline] - pub unsafe fn GetSymbolByName( - &mut self, - name: *const skyline_libc::c_char, - ) -> *mut root::Elf64_Sym { - ModuleObject_GetSymbolByName(self, name) - } - #[inline] - pub unsafe fn ResolveSymbols(&mut self, do_lazy_got_init: bool) { - ModuleObject_ResolveSymbols(self, do_lazy_got_init) - } - #[inline] - pub unsafe fn TryResolveSymbol( - &mut self, - target_symbol_address: *mut root::Elf64_Addr, - symbol: *mut root::Elf64_Sym, - ) -> bool { - ModuleObject_TryResolveSymbol(self, target_symbol_address, symbol) - } - } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct iovec { - pub iov_base: *mut skyline_libc::c_void, - pub iov_len: root::size_t, - } - #[test] - fn bindgen_test_layout_iovec() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(iovec)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(iovec)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).iov_base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(iovec), - "::", - stringify!(iov_base) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).iov_len as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(iovec), - "::", - stringify!(iov_len) - ) - ); - } - pub type u_char = root::__u_char; - pub type u_short = root::__u_short; - pub type u_int = root::__u_int; - pub type u_long = root::__u_long; - pub type quad_t = root::__quad_t; - pub type u_quad_t = root::__u_quad_t; - pub type fsid_t = root::__fsid_t; - pub type loff_t = root::__loff_t; - pub type ino_t = root::__ino_t; - pub type ino64_t = root::__ino64_t; - pub type dev_t = root::__dev_t; - pub type gid_t = root::__gid_t; - pub type mode_t = root::__mode_t; - pub type nlink_t = root::__nlink_t; - pub type uid_t = root::__uid_t; - pub type off_t = root::__off_t; - pub type off64_t = root::__off64_t; - pub type pid_t = root::__pid_t; - pub type id_t = root::__id_t; - pub type ssize_t = root::__ssize_t; - pub type daddr_t = root::__daddr_t; - pub type caddr_t = root::__caddr_t; - pub type key_t = root::__key_t; - pub type clock_t = root::__clock_t; - pub type clockid_t = root::__clockid_t; - pub type time_t = root::__time_t; - pub type timer_t = root::__timer_t; - pub type useconds_t = root::__useconds_t; - pub type suseconds_t = root::__suseconds_t; - pub type ushort = skyline_libc::c_ushort; - pub type u_int8_t = root::__uint8_t; - pub type u_int16_t = root::__uint16_t; - pub type u_int32_t = root::__uint32_t; - pub type u_int64_t = root::__uint64_t; - pub type register_t = skyline_libc::c_long; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __sigset_t { - pub __val: [skyline_libc::c_ulong; 16usize], - } - #[test] - fn bindgen_test_layout___sigset_t() { - assert_eq!( - ::core::mem::size_of::<__sigset_t>(), - 128usize, - concat!("Size of: ", stringify!(__sigset_t)) - ); - assert_eq!( - ::core::mem::align_of::<__sigset_t>(), - 8usize, - concat!("Alignment of ", stringify!(__sigset_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__sigset_t>())).__val as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__sigset_t), - "::", - stringify!(__val) - ) - ); - } - pub type sigset_t = root::__sigset_t; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct timeval { - pub tv_sec: root::__time_t, - pub tv_usec: root::__suseconds_t, - } - #[test] - fn bindgen_test_layout_timeval() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(timeval)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timeval)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).tv_sec as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(timeval), - "::", - stringify!(tv_sec) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).tv_usec as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(timeval), - "::", - stringify!(tv_usec) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct timespec { - pub tv_sec: root::__time_t, - pub tv_nsec: root::__syscall_slong_t, - } - #[test] - fn bindgen_test_layout_timespec() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(timespec)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(timespec)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).tv_sec as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(timespec), - "::", - stringify!(tv_sec) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).tv_nsec as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(timespec), - "::", - stringify!(tv_nsec) - ) - ); - } - pub type __fd_mask = skyline_libc::c_long; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct fd_set { - pub fds_bits: [root::__fd_mask; 16usize], - } - #[test] - fn bindgen_test_layout_fd_set() { - assert_eq!( - ::core::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(fd_set)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(fd_set)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).fds_bits as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(fd_set), - "::", - stringify!(fds_bits) - ) - ); - } - pub type fd_mask = root::__fd_mask; - extern "C" { - pub fn select( - __nfds: skyline_libc::c_int, - __readfds: *mut root::fd_set, - __writefds: *mut root::fd_set, - __exceptfds: *mut root::fd_set, - __timeout: *mut root::timeval, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn pselect( - __nfds: skyline_libc::c_int, - __readfds: *mut root::fd_set, - __writefds: *mut root::fd_set, - __exceptfds: *mut root::fd_set, - __timeout: *const root::timespec, - __sigmask: *const root::__sigset_t, - ) -> skyline_libc::c_int; - } - pub type blksize_t = root::__blksize_t; - pub type blkcnt_t = root::__blkcnt_t; - pub type fsblkcnt_t = root::__fsblkcnt_t; - pub type fsfilcnt_t = root::__fsfilcnt_t; - pub type blkcnt64_t = root::__blkcnt64_t; - pub type fsblkcnt64_t = root::__fsblkcnt64_t; - pub type fsfilcnt64_t = root::__fsfilcnt64_t; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __pthread_rwlock_arch_t { - pub __readers: skyline_libc::c_uint, - pub __writers: skyline_libc::c_uint, - pub __wrphase_futex: skyline_libc::c_uint, - pub __writers_futex: skyline_libc::c_uint, - pub __pad3: skyline_libc::c_uint, - pub __pad4: skyline_libc::c_uint, - pub __cur_writer: skyline_libc::c_int, - pub __shared: skyline_libc::c_int, - pub __rwelision: skyline_libc::c_schar, - pub __pad1: [skyline_libc::c_uchar; 7usize], - pub __pad2: skyline_libc::c_ulong, - pub __flags: skyline_libc::c_uint, - } - #[test] - fn bindgen_test_layout___pthread_rwlock_arch_t() { - assert_eq!( - ::core::mem::size_of::<__pthread_rwlock_arch_t>(), - 56usize, - concat!("Size of: ", stringify!(__pthread_rwlock_arch_t)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_rwlock_arch_t>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__readers as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__readers) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__writers as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__writers) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__wrphase_futex as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__wrphase_futex) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__writers_futex as *const _ - as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__writers_futex) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__pad3 as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad3) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__pad4 as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad4) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__cur_writer as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__cur_writer) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__shared as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__shared) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__rwelision as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__rwelision) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__pad1 as *const _ as usize - }, - 33usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__pad2 as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__pad2) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_rwlock_arch_t>())).__flags as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(__pthread_rwlock_arch_t), - "::", - stringify!(__flags) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __pthread_internal_list { - pub __prev: *mut root::__pthread_internal_list, - pub __next: *mut root::__pthread_internal_list, - } - #[test] - fn bindgen_test_layout___pthread_internal_list() { - assert_eq!( - ::core::mem::size_of::<__pthread_internal_list>(), - 16usize, - concat!("Size of: ", stringify!(__pthread_internal_list)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_internal_list>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_internal_list)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_internal_list>())).__prev as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_internal_list), - "::", - stringify!(__prev) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_internal_list>())).__next as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_internal_list), - "::", - stringify!(__next) - ) - ); - } - pub type __pthread_list_t = root::__pthread_internal_list; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __pthread_mutex_s { - pub __lock: skyline_libc::c_int, - pub __count: skyline_libc::c_uint, - pub __owner: skyline_libc::c_int, - pub __nusers: skyline_libc::c_uint, - pub __kind: skyline_libc::c_int, - pub __spins: skyline_libc::c_short, - pub __elision: skyline_libc::c_short, - pub __list: root::__pthread_list_t, - } - #[test] - fn bindgen_test_layout___pthread_mutex_s() { - assert_eq!( - ::core::mem::size_of::<__pthread_mutex_s>(), - 40usize, - concat!("Size of: ", stringify!(__pthread_mutex_s)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_mutex_s>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_mutex_s)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__lock as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__lock) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__count as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__count) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__owner as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__owner) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__nusers as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__nusers) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__kind as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__kind) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__spins as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__spins) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_mutex_s>())).__elision as *const _ as usize - }, - 22usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__elision) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_mutex_s>())).__list as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_mutex_s), - "::", - stringify!(__list) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct __pthread_cond_s { - pub __bindgen_anon_1: root::__pthread_cond_s__bindgen_ty_1, - pub __bindgen_anon_2: root::__pthread_cond_s__bindgen_ty_2, - pub __g_refs: [skyline_libc::c_uint; 2usize], - pub __g_size: [skyline_libc::c_uint; 2usize], - pub __g1_orig_size: skyline_libc::c_uint, - pub __wrefs: skyline_libc::c_uint, - pub __g_signals: [skyline_libc::c_uint; 2usize], - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union __pthread_cond_s__bindgen_ty_1 { - pub __wseq: skyline_libc::c_ulonglong, - pub __wseq32: root::__pthread_cond_s__bindgen_ty_1__bindgen_ty_1, - _bindgen_union_align: u64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 { - pub __low: skyline_libc::c_uint, - pub __high: skyline_libc::c_uint, - } - #[test] - fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(), - 8usize, - concat!( - "Size of: ", - stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1) - ) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(), - 4usize, - concat!( - "Alignment of ", - stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__low - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1), - "::", - stringify!(__low) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__high - as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1), - "::", - stringify!(__high) - ) - ); - } - #[test] - fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s__bindgen_ty_1>(), - 8usize, - concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s__bindgen_ty_1>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_1), - "::", - stringify!(__wseq) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq32 as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_1), - "::", - stringify!(__wseq32) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union __pthread_cond_s__bindgen_ty_2 { - pub __g1_start: skyline_libc::c_ulonglong, - pub __g1_start32: root::__pthread_cond_s__bindgen_ty_2__bindgen_ty_1, - _bindgen_union_align: u64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 { - pub __low: skyline_libc::c_uint, - pub __high: skyline_libc::c_uint, - } - #[test] - fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1() { - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(), - 8usize, - concat!( - "Size of: ", - stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1) - ) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(), - 4usize, - concat!( - "Alignment of ", - stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__low - as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1), - "::", - stringify!(__low) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__high - as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1), - "::", - stringify!(__high) - ) - ); - } - #[test] - fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2() { - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s__bindgen_ty_2>(), - 8usize, - concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s__bindgen_ty_2>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_2), - "::", - stringify!(__g1_start) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start32 as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s__bindgen_ty_2), - "::", - stringify!(__g1_start32) - ) - ); - } - #[test] - fn bindgen_test_layout___pthread_cond_s() { - assert_eq!( - ::core::mem::size_of::<__pthread_cond_s>(), - 48usize, - concat!("Size of: ", stringify!(__pthread_cond_s)) - ); - assert_eq!( - ::core::mem::align_of::<__pthread_cond_s>(), - 8usize, - concat!("Alignment of ", stringify!(__pthread_cond_s)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_cond_s>())).__g_refs as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_refs) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_cond_s>())).__g_size as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s>())).__g1_orig_size as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g1_orig_size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__pthread_cond_s>())).__wrefs as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__wrefs) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::<__pthread_cond_s>())).__g_signals as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(__pthread_cond_s), - "::", - stringify!(__g_signals) - ) - ); - } - pub type pthread_t = skyline_libc::c_ulong; - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_mutexattr_t { - pub __size: [skyline_libc::c_char; 4usize], - pub __align: skyline_libc::c_int, - _bindgen_union_align: u32, - } - #[test] - fn bindgen_test_layout_pthread_mutexattr_t() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_mutexattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_mutexattr_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutexattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__align as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutexattr_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_condattr_t { - pub __size: [skyline_libc::c_char; 4usize], - pub __align: skyline_libc::c_int, - _bindgen_union_align: u32, - } - #[test] - fn bindgen_test_layout_pthread_condattr_t() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_condattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_condattr_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_condattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_condattr_t), - "::", - stringify!(__align) - ) - ); - } - pub type pthread_key_t = skyline_libc::c_uint; - pub type pthread_once_t = skyline_libc::c_int; - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_attr_t { - pub __size: [skyline_libc::c_char; 56usize], - pub __align: skyline_libc::c_long, - _bindgen_union_align: [u64; 7usize], - } - #[test] - fn bindgen_test_layout_pthread_attr_t() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(pthread_attr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_attr_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_attr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_attr_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_mutex_t { - pub __data: root::__pthread_mutex_s, - pub __size: [skyline_libc::c_char; 40usize], - pub __align: skyline_libc::c_long, - _bindgen_union_align: [u64; 5usize], - } - #[test] - fn bindgen_test_layout_pthread_mutex_t() { - assert_eq!( - ::core::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(pthread_mutex_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_mutex_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__data as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_mutex_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_cond_t { - pub __data: root::__pthread_cond_s, - pub __size: [skyline_libc::c_char; 48usize], - pub __align: skyline_libc::c_longlong, - _bindgen_union_align: [u64; 6usize], - } - #[test] - fn bindgen_test_layout_pthread_cond_t() { - assert_eq!( - ::core::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(pthread_cond_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_cond_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__data as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_cond_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_rwlock_t { - pub __data: root::__pthread_rwlock_arch_t, - pub __size: [skyline_libc::c_char; 56usize], - pub __align: skyline_libc::c_long, - _bindgen_union_align: [u64; 7usize], - } - #[test] - fn bindgen_test_layout_pthread_rwlock_t() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(pthread_rwlock_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_rwlock_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__data as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__data) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlock_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_rwlockattr_t { - pub __size: [skyline_libc::c_char; 8usize], - pub __align: skyline_libc::c_long, - _bindgen_union_align: u64, - } - #[test] - fn bindgen_test_layout_pthread_rwlockattr_t() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(pthread_rwlockattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_rwlockattr_t)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__size as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlockattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__align as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_rwlockattr_t), - "::", - stringify!(__align) - ) - ); - } - pub type pthread_spinlock_t = skyline_libc::c_int; - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_barrier_t { - pub __size: [skyline_libc::c_char; 32usize], - pub __align: skyline_libc::c_long, - _bindgen_union_align: [u64; 4usize], - } - #[test] - fn bindgen_test_layout_pthread_barrier_t() { - assert_eq!( - ::core::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(pthread_barrier_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(pthread_barrier_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrier_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__align as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrier_t), - "::", - stringify!(__align) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union pthread_barrierattr_t { - pub __size: [skyline_libc::c_char; 4usize], - pub __align: skyline_libc::c_int, - _bindgen_union_align: u32, - } - #[test] - fn bindgen_test_layout_pthread_barrierattr_t() { - assert_eq!( - ::core::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(pthread_barrierattr_t)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(pthread_barrierattr_t)) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__size as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrierattr_t), - "::", - stringify!(__size) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__align as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(pthread_barrierattr_t), - "::", - stringify!(__align) - ) - ); - } - pub type socklen_t = root::__socklen_t; - pub const __socket_type_SOCK_STREAM: root::__socket_type = 1; - pub const __socket_type_SOCK_DGRAM: root::__socket_type = 2; - pub const __socket_type_SOCK_RAW: root::__socket_type = 3; - pub const __socket_type_SOCK_RDM: root::__socket_type = 4; - pub const __socket_type_SOCK_SEQPACKET: root::__socket_type = 5; - pub const __socket_type_SOCK_DCCP: root::__socket_type = 6; - pub const __socket_type_SOCK_PACKET: root::__socket_type = 10; - pub const __socket_type_SOCK_CLOEXEC: root::__socket_type = 524288; - pub const __socket_type_SOCK_NONBLOCK: root::__socket_type = 2048; - pub type __socket_type = u32; - pub type sa_family_t = skyline_libc::c_ushort; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct sockaddr { - pub sa_family: root::sa_family_t, - pub sa_data: [skyline_libc::c_char; 14usize], - } - #[test] - fn bindgen_test_layout_sockaddr() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(sockaddr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(sockaddr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sa_family as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sockaddr), - "::", - stringify!(sa_family) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sa_data as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(sockaddr), - "::", - stringify!(sa_data) - ) - ); - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct sockaddr_storage { - pub ss_family: root::sa_family_t, - pub __ss_padding: [skyline_libc::c_char; 118usize], - pub __ss_align: skyline_libc::c_ulong, - } - #[test] - fn bindgen_test_layout_sockaddr_storage() { - assert_eq!( - ::core::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(sockaddr_storage)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sockaddr_storage)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).ss_family as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sockaddr_storage), - "::", - stringify!(ss_family) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__ss_padding as *const _ as usize - }, - 2usize, - concat!( - "Offset of field: ", - stringify!(sockaddr_storage), - "::", - stringify!(__ss_padding) - ) - ); - assert_eq!( - unsafe { - &(*(::core::ptr::null::())).__ss_align as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(sockaddr_storage), - "::", - stringify!(__ss_align) - ) - ); - } - pub const MSG_OOB: root::_bindgen_ty_7 = 1; - pub const MSG_PEEK: root::_bindgen_ty_7 = 2; - pub const MSG_DONTROUTE: root::_bindgen_ty_7 = 4; - pub const MSG_TRYHARD: root::_bindgen_ty_7 = 4; - pub const MSG_CTRUNC: root::_bindgen_ty_7 = 8; - pub const MSG_PROXY: root::_bindgen_ty_7 = 16; - pub const MSG_TRUNC: root::_bindgen_ty_7 = 32; - pub const MSG_DONTWAIT: root::_bindgen_ty_7 = 64; - pub const MSG_EOR: root::_bindgen_ty_7 = 128; - pub const MSG_WAITALL: root::_bindgen_ty_7 = 256; - pub const MSG_FIN: root::_bindgen_ty_7 = 512; - pub const MSG_SYN: root::_bindgen_ty_7 = 1024; - pub const MSG_CONFIRM: root::_bindgen_ty_7 = 2048; - pub const MSG_RST: root::_bindgen_ty_7 = 4096; - pub const MSG_ERRQUEUE: root::_bindgen_ty_7 = 8192; - pub const MSG_NOSIGNAL: root::_bindgen_ty_7 = 16384; - pub const MSG_MORE: root::_bindgen_ty_7 = 32768; - pub const MSG_WAITFORONE: root::_bindgen_ty_7 = 65536; - pub const MSG_BATCH: root::_bindgen_ty_7 = 262144; - pub const MSG_ZEROCOPY: root::_bindgen_ty_7 = 67108864; - pub const MSG_FASTOPEN: root::_bindgen_ty_7 = 536870912; - pub const MSG_CMSG_CLOEXEC: root::_bindgen_ty_7 = 1073741824; - pub type _bindgen_ty_7 = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct msghdr { - pub msg_name: *mut skyline_libc::c_void, - pub msg_namelen: root::socklen_t, - pub msg_iov: *mut root::iovec, - pub msg_iovlen: root::size_t, - pub msg_control: *mut skyline_libc::c_void, - pub msg_controllen: root::size_t, - pub msg_flags: skyline_libc::c_int, - } - #[test] - fn bindgen_test_layout_msghdr() { - assert_eq!( - ::core::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(msghdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(msghdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_name) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_namelen as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_namelen) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_iov as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_iov) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_iovlen as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_iovlen) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_control as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_control) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_controllen as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_controllen) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_flags as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(msghdr), - "::", - stringify!(msg_flags) - ) - ); - } - #[repr(C)] - #[derive(Debug)] - pub struct cmsghdr { - pub cmsg_len: root::size_t, - pub cmsg_level: skyline_libc::c_int, - pub cmsg_type: skyline_libc::c_int, - pub __cmsg_data: root::__IncompleteArrayField, - } - #[test] - fn bindgen_test_layout_cmsghdr() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(cmsghdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cmsghdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).cmsg_len as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cmsghdr), - "::", - stringify!(cmsg_len) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).cmsg_level as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cmsghdr), - "::", - stringify!(cmsg_level) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).cmsg_type as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(cmsghdr), - "::", - stringify!(cmsg_type) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).__cmsg_data as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cmsghdr), - "::", - stringify!(__cmsg_data) - ) - ); - } - extern "C" { - pub fn __cmsg_nxthdr( - __mhdr: *mut root::msghdr, - __cmsg: *mut root::cmsghdr, - ) -> *mut root::cmsghdr; - } - pub const SCM_RIGHTS: root::_bindgen_ty_8 = 1; - pub const SCM_CREDENTIALS: root::_bindgen_ty_8 = 2; - pub type _bindgen_ty_8 = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct ucred { - pub pid: root::pid_t, - pub uid: root::uid_t, - pub gid: root::gid_t, - } - #[test] - fn bindgen_test_layout_ucred() { - assert_eq!( - ::core::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(ucred)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(ucred)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).pid as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ucred), - "::", - stringify!(pid) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).uid as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ucred), - "::", - stringify!(uid) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).gid as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ucred), - "::", - stringify!(gid) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __kernel_fd_set { - pub fds_bits: [skyline_libc::c_ulong; 16usize], - } - #[test] - fn bindgen_test_layout___kernel_fd_set() { - assert_eq!( - ::core::mem::size_of::<__kernel_fd_set>(), - 128usize, - concat!("Size of: ", stringify!(__kernel_fd_set)) - ); - assert_eq!( - ::core::mem::align_of::<__kernel_fd_set>(), - 8usize, - concat!("Alignment of ", stringify!(__kernel_fd_set)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__kernel_fd_set>())).fds_bits as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__kernel_fd_set), - "::", - stringify!(fds_bits) - ) - ); - } - pub type __kernel_sighandler_t = - ::core::option::Option; - pub type __kernel_key_t = skyline_libc::c_int; - pub type __kernel_mqd_t = skyline_libc::c_int; - pub type __kernel_old_uid_t = skyline_libc::c_ushort; - pub type __kernel_old_gid_t = skyline_libc::c_ushort; - pub type __kernel_old_dev_t = skyline_libc::c_ulong; - pub type __kernel_long_t = skyline_libc::c_long; - pub type __kernel_ulong_t = skyline_libc::c_ulong; - pub type __kernel_ino_t = root::__kernel_ulong_t; - pub type __kernel_mode_t = skyline_libc::c_uint; - pub type __kernel_pid_t = skyline_libc::c_int; - pub type __kernel_ipc_pid_t = skyline_libc::c_int; - pub type __kernel_uid_t = skyline_libc::c_uint; - pub type __kernel_gid_t = skyline_libc::c_uint; - pub type __kernel_suseconds_t = root::__kernel_long_t; - pub type __kernel_daddr_t = skyline_libc::c_int; - pub type __kernel_uid32_t = skyline_libc::c_uint; - pub type __kernel_gid32_t = skyline_libc::c_uint; - pub type __kernel_size_t = root::__kernel_ulong_t; - pub type __kernel_ssize_t = root::__kernel_long_t; - pub type __kernel_ptrdiff_t = root::__kernel_long_t; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __kernel_fsid_t { - pub val: [skyline_libc::c_int; 2usize], - } - #[test] - fn bindgen_test_layout___kernel_fsid_t() { - assert_eq!( - ::core::mem::size_of::<__kernel_fsid_t>(), - 8usize, - concat!("Size of: ", stringify!(__kernel_fsid_t)) - ); - assert_eq!( - ::core::mem::align_of::<__kernel_fsid_t>(), - 4usize, - concat!("Alignment of ", stringify!(__kernel_fsid_t)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::<__kernel_fsid_t>())).val as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(__kernel_fsid_t), - "::", - stringify!(val) - ) - ); - } - pub type __kernel_off_t = root::__kernel_long_t; - pub type __kernel_loff_t = skyline_libc::c_longlong; - pub type __kernel_time_t = root::__kernel_long_t; - pub type __kernel_time64_t = skyline_libc::c_longlong; - pub type __kernel_clock_t = root::__kernel_long_t; - pub type __kernel_timer_t = skyline_libc::c_int; - pub type __kernel_clockid_t = skyline_libc::c_int; - pub type __kernel_caddr_t = *mut skyline_libc::c_char; - pub type __kernel_uid16_t = skyline_libc::c_ushort; - pub type __kernel_gid16_t = skyline_libc::c_ushort; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct linger { - pub l_onoff: skyline_libc::c_int, - pub l_linger: skyline_libc::c_int, - } - #[test] - fn bindgen_test_layout_linger() { - assert_eq!( - ::core::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(linger)) - ); - assert_eq!( - ::core::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(linger)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_onoff as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(linger), - "::", - stringify!(l_onoff) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).l_linger as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(linger), - "::", - stringify!(l_linger) - ) - ); - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct osockaddr { - pub sa_family: skyline_libc::c_ushort, - pub sa_data: [skyline_libc::c_uchar; 14usize], - } - #[test] - fn bindgen_test_layout_osockaddr() { - assert_eq!( - ::core::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(osockaddr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 2usize, - concat!("Alignment of ", stringify!(osockaddr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sa_family as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(osockaddr), - "::", - stringify!(sa_family) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).sa_data as *const _ as usize }, - 2usize, - concat!( - "Offset of field: ", - stringify!(osockaddr), - "::", - stringify!(sa_data) - ) - ); - } - pub const SHUT_RD: root::_bindgen_ty_9 = 0; - pub const SHUT_WR: root::_bindgen_ty_9 = 1; - pub const SHUT_RDWR: root::_bindgen_ty_9 = 2; - pub type _bindgen_ty_9 = u32; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct mmsghdr { - pub msg_hdr: root::msghdr, - pub msg_len: skyline_libc::c_uint, - } - #[test] - fn bindgen_test_layout_mmsghdr() { - assert_eq!( - ::core::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(mmsghdr)) - ); - assert_eq!( - ::core::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(mmsghdr)) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_hdr as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(mmsghdr), - "::", - stringify!(msg_hdr) - ) - ); - assert_eq!( - unsafe { &(*(::core::ptr::null::())).msg_len as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(mmsghdr), - "::", - stringify!(msg_len) - ) - ); - } - extern "C" { - pub fn socket( - __domain: skyline_libc::c_int, - __type: skyline_libc::c_int, - __protocol: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn socketpair( - __domain: skyline_libc::c_int, - __type: skyline_libc::c_int, - __protocol: skyline_libc::c_int, - __fds: *mut skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn bind( - __fd: skyline_libc::c_int, - __addr: *const root::sockaddr, - __len: root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn getsockname( - __fd: skyline_libc::c_int, - __addr: *mut root::sockaddr, - __len: *mut root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn connect( - __fd: skyline_libc::c_int, - __addr: *const root::sockaddr, - __len: root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn getpeername( - __fd: skyline_libc::c_int, - __addr: *mut root::sockaddr, - __len: *mut root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn send( - __fd: skyline_libc::c_int, - __buf: *const skyline_libc::c_void, - __n: root::size_t, - __flags: skyline_libc::c_int, - ) -> root::ssize_t; - } - extern "C" { - pub fn recv( - __fd: skyline_libc::c_int, - __buf: *mut skyline_libc::c_void, - __n: root::size_t, - __flags: skyline_libc::c_int, - ) -> root::ssize_t; - } - extern "C" { - pub fn sendto( - __fd: skyline_libc::c_int, - __buf: *const skyline_libc::c_void, - __n: root::size_t, - __flags: skyline_libc::c_int, - __addr: *const root::sockaddr, - __addr_len: root::socklen_t, - ) -> root::ssize_t; - } - extern "C" { - pub fn recvfrom( - __fd: skyline_libc::c_int, - __buf: *mut skyline_libc::c_void, - __n: root::size_t, - __flags: skyline_libc::c_int, - __addr: *mut root::sockaddr, - __addr_len: *mut root::socklen_t, - ) -> root::ssize_t; - } - extern "C" { - pub fn sendmsg( - __fd: skyline_libc::c_int, - __message: *const root::msghdr, - __flags: skyline_libc::c_int, - ) -> root::ssize_t; - } - extern "C" { - pub fn sendmmsg( - __fd: skyline_libc::c_int, - __vmessages: *mut root::mmsghdr, - __vlen: skyline_libc::c_uint, - __flags: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn recvmsg( - __fd: skyline_libc::c_int, - __message: *mut root::msghdr, - __flags: skyline_libc::c_int, - ) -> root::ssize_t; - } - extern "C" { - pub fn recvmmsg( - __fd: skyline_libc::c_int, - __vmessages: *mut root::mmsghdr, - __vlen: skyline_libc::c_uint, - __flags: skyline_libc::c_int, - __tmo: *mut root::timespec, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn getsockopt( - __fd: skyline_libc::c_int, - __level: skyline_libc::c_int, - __optname: skyline_libc::c_int, - __optval: *mut skyline_libc::c_void, - __optlen: *mut root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn setsockopt( - __fd: skyline_libc::c_int, - __level: skyline_libc::c_int, - __optname: skyline_libc::c_int, - __optval: *const skyline_libc::c_void, - __optlen: root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn listen(__fd: skyline_libc::c_int, __n: skyline_libc::c_int) -> skyline_libc::c_int; - } - extern "C" { - pub fn accept( - __fd: skyline_libc::c_int, - __addr: *mut root::sockaddr, - __addr_len: *mut root::socklen_t, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn accept4( - __fd: skyline_libc::c_int, - __addr: *mut root::sockaddr, - __addr_len: *mut root::socklen_t, - __flags: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn shutdown( - __fd: skyline_libc::c_int, - __how: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - pub fn sockatmark(__fd: skyline_libc::c_int) -> skyline_libc::c_int; - } - extern "C" { - pub fn isfdtype( - __fd: skyline_libc::c_int, - __fdtype: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - pub type __int128_t = i128; - pub type __uint128_t = u128; -} diff --git a/skyline/skyline_libc/Cargo.lock b/skyline/skyline_libc/Cargo.lock deleted file mode 100644 index 79646d0..0000000 --- a/skyline/skyline_libc/Cargo.lock +++ /dev/null @@ -1,5 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "skyline_libc" -version = "0.1.0" diff --git a/skyline/skyline_libc/Cargo.toml b/skyline/skyline_libc/Cargo.toml deleted file mode 100644 index c4caaa6..0000000 --- a/skyline/skyline_libc/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "skyline_libc" -version = "0.1.0" -authors = ["jam1garner "] -edition = "2018" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/skyline/skyline_libc/src/lib.rs b/skyline/skyline_libc/src/lib.rs deleted file mode 100644 index dbdf069..0000000 --- a/skyline/skyline_libc/src/lib.rs +++ /dev/null @@ -1,313 +0,0 @@ -#![no_std] - -//! Public exports of libc functions -#![allow(non_camel_case_types)] - -pub use core::ffi::c_void; - -pub type c_char = u8; -pub type time_t = i32; -pub type wchar_t = u16; -pub type c_long = i64; -pub type c_ulong = u64; - -pub type c_schar = i8; -pub type c_uchar = u8; -pub type c_short = i16; -pub type c_ushort = u16; -pub type c_int = i32; -pub type c_uint = u32; -pub type c_float = f32; -pub type c_double = f64; -pub type c_longlong = i64; -pub type c_ulonglong = u64; -pub type intmax_t = i64; -pub type uintmax_t = u64; - -pub type size_t = usize; -pub type ptrdiff_t = isize; -pub type intptr_t = isize; -pub type uintptr_t = usize; -pub type ssize_t = isize; - -pub type pid_t = i32; -pub type uid_t = u32; -pub type gid_t = u32; -pub type in_addr_t = u32; -pub type in_port_t = u16; - -pub type mode_t = c_uint; -pub type off_t = i64; -#[repr(C)] -pub struct sem_t { // Unverified - __size: [c_char; 16], -} -pub type pthread_key_t = c_uint; - -#[repr(C)] -pub struct tm { - pub tm_sec: c_int, - pub tm_min: c_int, - pub tm_hour: c_int, - pub tm_mday: c_int, - pub tm_mon: c_int, - pub tm_year: c_int, - pub tm_wday: c_int, - pub tm_yday: c_int, - pub tm_isdst: c_int, -} - -#[allow(non_snake_case, non_upper_case_globals, dead_code)] -pub mod FileOpenMode { - pub const Write: *const u8 = "w\0".as_bytes().as_ptr(); - pub const Read: *const u8 = "r\0".as_bytes().as_ptr(); - pub const Append: *const u8 = "a\0".as_bytes().as_ptr(); - pub const ReadUpdate: *const u8 = "r+\0".as_bytes().as_ptr(); - pub const WriteUpdate: *const u8 = "w+\0".as_bytes().as_ptr(); - pub const AppendUpdate: *const u8 = "a+\0".as_bytes().as_ptr(); -} - -#[derive(Debug, Clone, Copy)] -pub enum FILE {} - -#[derive(Debug, Clone, Copy)] -pub enum DIR {} - -extern "C" { - pub fn malloc(size: size_t) -> *const c_void; - pub fn free(ptr: *const c_void); - pub fn calloc(num: size_t, size: size_t) -> *const c_void; - pub fn realloc(ptr: *const c_void, size: size_t) -> *const c_void; - // fn aligned_alloc(align: usize, size: usize) -> *const c_void; -} - -extern "C" { - pub fn isalnum(c: c_int) -> c_int; - pub fn isalpha(c: c_int) -> c_int; - pub fn iscntrl(c: c_int) -> c_int; - pub fn isdigit(c: c_int) -> c_int; - pub fn isgraph(c: c_int) -> c_int; - pub fn islower(c: c_int) -> c_int; - pub fn isprint(c: c_int) -> c_int; - pub fn ispunct(c: c_int) -> c_int; - pub fn isspace(c: c_int) -> c_int; - pub fn isupper(c: c_int) -> c_int; - pub fn isxdigit(c: c_int) -> c_int; - pub fn isblank(c: c_int) -> c_int; - pub fn tolower(c: c_int) -> c_int; - pub fn toupper(c: c_int) -> c_int; - - pub fn qsort( - base: *mut c_void, - num: size_t, - size: size_t, - compar: Option< - unsafe extern "C" fn(*const c_void, *const c_void) -> c_int, - >, - ); - pub fn fopen(filename: *const c_char, mode: *const c_char) -> *mut FILE; - pub fn fflush(file: *mut FILE) -> c_int; - pub fn fclose(file: *mut FILE) -> c_int; - pub fn remove(filename: *const c_char) -> c_int; - pub fn rename(oldname: *const c_char, newname: *const c_char) -> c_int; - pub fn setvbuf( - stream: *mut FILE, - buffer: *mut c_char, - mode: c_int, - size: size_t, - ) -> c_int; - pub fn setbuf(stream: *mut FILE, buf: *mut c_char); - pub fn getchar() -> c_int; - pub fn putchar(c: c_int) -> c_int; - pub fn fgetc(stream: *mut FILE) -> c_int; - pub fn fputc(c: c_int, stream: *mut FILE) -> c_int; - pub fn puts(s: *const c_char) -> c_int; - pub fn ungetc(c: c_int, stream: *mut FILE) -> c_int; - pub fn fwrite( - ptr: *const c_void, - size: size_t, - nobj: size_t, - stream: *mut FILE, - ) -> size_t; - - pub fn fseek(stream: *mut FILE, offset: c_long, whence: c_int) -> c_int; - pub fn ftell(stream: *mut FILE) -> c_long; - pub fn rewind(stream: *mut FILE); - - pub fn perror(s: *const c_char); - pub fn atoi(s: *const c_char) -> c_int; - - pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double; - pub fn strtol( - s: *const c_char, - endp: *mut *mut c_char, - base: c_int, - ) -> c_long; - - pub fn abort() -> !; - pub fn exit(status: c_int) -> !; - - pub fn atexit(cb: extern "C" fn()) -> c_int; - - pub fn getenv(s: *const c_char) -> *mut c_char; - - pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char; - pub fn strncpy( - dst: *mut c_char, - src: *const c_char, - n: size_t, - ) -> *mut c_char; - pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char; - pub fn strncat( - s: *mut c_char, - ct: *const c_char, - n: size_t, - ) -> *mut c_char; - pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int; - pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int; - pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int; - pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char; - pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char; - pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t; - pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t; - pub fn strdup(cs: *const c_char) -> *mut c_char; - pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char; - pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char; - pub fn strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int; - pub fn strncasecmp( - s1: *const c_char, - s2: *const c_char, - n: size_t, - ) -> c_int; - pub fn strlen(cs: *const c_char) -> size_t; - pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t; - - pub fn strerror(n: c_int) -> *mut c_char; - pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char; - pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t; - - pub fn wcslen(buf: *const wchar_t) -> size_t; - pub fn wcstombs( - dest: *mut c_char, - src: *const wchar_t, - n: size_t, - ) -> size_t; - - pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void; - pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t; - pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int; - pub fn memcpy( - dest: *mut c_void, - src: *const c_void, - n: size_t, - ) -> *mut c_void; - - pub fn memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void; - - pub fn fprintf( - stream: *mut FILE, - format: *const c_char, - ... - ) -> c_int; - pub fn printf(format: *const c_char, ...) -> c_int; - pub fn snprintf( - s: *mut c_char, - n: size_t, - format: *const c_char, - ... - ) -> c_int; - pub fn sprintf(s: *mut c_char, format: *const c_char, ...) -> c_int; - pub fn mkdir(path: *const c_char, mode: mode_t) -> c_int; - - pub fn access(path: *const c_char, amode: c_int) -> c_int; - - pub fn chdir(dir: *const c_char) -> c_int; - - pub fn close(fd: c_int) -> c_int; - - pub fn getpid() -> pid_t; - - pub fn lseek(fd: c_int, offset: off_t, whence: c_int) -> off_t; - - pub fn posix_memalign( - memptr: *mut *mut c_void, - align: size_t, - size: size_t, - ) -> c_int; - - pub fn rmdir(path: *const c_char) -> c_int; - pub fn sleep(secs: c_uint) -> c_uint; - pub fn read(fd: c_int, buf: *mut c_void, count: size_t) - -> ssize_t; - - pub fn open(path: *const c_char, oflag: c_int, ...) -> c_int; - - pub fn unlink(c: *const c_char) -> c_int; - - pub fn write( - fd: c_int, - buf: *const c_void, - count: size_t, - ) -> ssize_t; - - pub fn pwrite( - fd: c_int, - buf: *const c_void, - count: size_t, - offset: off_t, - ) -> ssize_t; - - pub fn setenv( - name: *const c_char, - val: *const c_char, - overwrite: c_int, - ) -> c_int; - - pub fn unsetenv(name: *const c_char) -> c_int; - - pub fn ftruncate(fd: c_int, length: off_t) -> c_int; - - pub fn sched_yield() -> c_int; - - pub fn pthread_setspecific( - key: pthread_key_t, - value: *const c_void, - ) -> c_int; - - pub fn mktime(tm: *mut tm) -> time_t; - pub fn time(time: *mut time_t) -> time_t; - pub fn gmtime(time_p: *const time_t) -> *mut tm; - pub fn localtime(time_p: *const time_t) -> *mut tm; - pub fn difftime(time1: time_t, time0: time_t) -> c_double; - - pub fn putenv(string: *mut c_char) -> c_int; - - pub fn setlocale( - category: c_int, - locale: *const c_char, - ) -> *mut c_char; - - pub fn sem_wait(sem: *mut sem_t) -> c_int; - pub fn sem_trywait(sem: *mut sem_t) -> c_int; - pub fn sem_post(sem: *mut sem_t) -> c_int; - - pub fn strcasestr(cs: *const c_char, ct: *const c_char) -> *mut c_char; - pub fn getline( - lineptr: *mut *mut c_char, - n: *mut size_t, - stream: *mut FILE, - ) -> ssize_t; - - pub fn fdopendir(fd: c_int) -> *mut DIR; -} - -pub fn fwrite_slice(slice: &[T], stream: *mut FILE) -> size_t { - unsafe { - fwrite( - slice.as_ptr() as _, - core::mem::size_of::(), - slice.len(), - stream - ) - } -} diff --git a/skyline/skyline_macro/Cargo.lock b/skyline/skyline_macro/Cargo.lock deleted file mode 100644 index a45ad2e..0000000 --- a/skyline/skyline_macro/Cargo.lock +++ /dev/null @@ -1,52 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "proc-macro2" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df246d292ff63439fea9bc8c0a270bed0e390d5ebd4db4ba15aba81111b5abe3" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "quote" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bdc6c187c65bca4260c9011c9e3132efe4909da44726bad24cf7572ae338d7f" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "skyline_macro" -version = "0.1.0" -dependencies = [ - "lazy_static", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "syn" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0df0eb663f387145cab623dea85b09c2c5b4b0aef44e945d928e682fce71bb03" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "unicode-xid" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" diff --git a/skyline/skyline_macro/Cargo.toml b/skyline/skyline_macro/Cargo.toml deleted file mode 100644 index ed3a289..0000000 --- a/skyline/skyline_macro/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "skyline_macro" -version = "0.1.0" -authors = ["jam1garner "] -edition = "2018" - -[lib] -proc-macro = true - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -syn = { version = "1", features = ["full", "extra-traits"] } -quote = "1" -proc-macro2 = "1" -lazy_static = "1.4" diff --git a/skyline/skyline_macro/src/attributes/mod.rs b/skyline/skyline_macro/src/attributes/mod.rs deleted file mode 100644 index 1f3b7db..0000000 --- a/skyline/skyline_macro/src/attributes/mod.rs +++ /dev/null @@ -1,39 +0,0 @@ -use proc_macro2::TokenStream as TokenStream2; -use quote::ToTokens; -use syn::parse::{Parse, ParseStream}; - -pub struct Attrs { - name: String, - -} - -impl Parse for Attrs { - fn parse(input: ParseStream) -> syn::Result { - let meta: syn::MetaNameValue = match input.parse() { - Ok(x) => x, - Err(_) => return Ok(Attrs { name: "skyline_rust_plugin".into() }) - }; - - if meta.path.get_ident().unwrap().to_string() == "name" { - match meta.lit { - syn::Lit::Str(string) => { - Ok(Attrs { - name: string.value() - }) - } - _ => panic!("Invalid literal, must be a string") - } - } else { - panic!("Attributes other than 'name' not allowed"); - } - } -} - -impl ToTokens for Attrs { - fn to_tokens(&self, tokens: &mut TokenStream2) { - let name = &self.name[..]; - quote::quote!( - ::skyline::set_module_name!(#name); - ).to_tokens(tokens); - } -} diff --git a/skyline/skyline_macro/src/lib.rs b/skyline/skyline_macro/src/lib.rs deleted file mode 100644 index 798c8a4..0000000 --- a/skyline/skyline_macro/src/lib.rs +++ /dev/null @@ -1,127 +0,0 @@ -use quote::{ToTokens, quote}; -use proc_macro::TokenStream; -use syn::{parse_macro_input, token, Ident, AttrStyle, Lit, spanned::Spanned}; -use proc_macro2::{Span, TokenStream as TokenStream2}; - -mod attributes; - -fn new_attr(attr_name: &str) -> syn::Attribute { - syn::Attribute { - pound_token: token::Pound { spans: [Span::call_site()] }, - style: AttrStyle::Outer, - bracket_token: token::Bracket { span: Span::call_site() }, - path: Ident::new(attr_name, Span::call_site()).into(), - tokens: TokenStream2::new() - } -} - -#[proc_macro_attribute] -pub fn main(attrs: TokenStream, item: TokenStream) -> TokenStream { - let mut main_function = parse_macro_input!(item as syn::ItemFn); - - let attr_code = parse_macro_input!(attrs as attributes::Attrs); - - main_function.attrs.push( - new_attr("no_mangle") - ); - - main_function.sig.ident = Ident::new("main", Span::call_site()); - - let mut output = TokenStream2::new(); - - quote!( - #attr_code - use skyline::prelude::*; - ::skyline::setup!(); - ).to_tokens(&mut output); - main_function.to_tokens(&mut output); - - output.into() -} - -#[proc_macro_attribute] -pub fn hook(_: TokenStream, input: TokenStream) -> TokenStream { - let mut mod_fn = parse_macro_input!(input as syn::ItemFn); - let mut output = TokenStream2::new(); - - // #[no_mangle] - mod_fn.attrs.push( - new_attr("no_mangle") - ); - - // extern "C" - mod_fn.sig.abi = Some(syn::Abi { - extern_token: syn::token::Extern { span: Span::call_site() }, - name: Some(syn::LitStr::new("C", Span::call_site())) - }); - - mod_fn.to_tokens(&mut output); - - let mod_fn = mod_fn.sig.ident; - - let _info = quote::format_ident!( - "{}_skyline_internal_hook_info", - mod_fn - ); - - let _hook = quote::format_ident!( - "{}_skyline_internal_hook", - mod_fn - ); - - quote!( - /*#[allow(non_upper_case_globals)] - static #info: ::skyline::hooks::HookInfo = ::skyline::hooks::HookInfo { - name: None, - fn_name: stringify!(#mod_fn), - offset: None, - symbol: None, - inline: false - }; - #[allow(non_upper_case_globals)] - #[link_section = ".rodata.hooks"] - static #hook: ::skyline::hooks::Hook = ::skyline::hooks::Hook{ - ptr: #mod_fn as *const (), - info: &#info - };*/ - ).to_tokens(&mut output); - - output.into() -} - -fn lit_to_bytes(lit: &Lit) -> Option> { - match lit { - Lit::Str(lit_str) => { - Some(lit_str.value().into_bytes()) - } - Lit::ByteStr(lit_str) => { - Some(lit_str.value()) - } - _ => { - None - } - } -} - -#[proc_macro] -pub fn to_null_term_bytes(input: TokenStream) -> TokenStream { - let expr = parse_macro_input!(input as Lit); - - match lit_to_bytes(&expr) { - Some(mut bytes) => { - bytes.push(0); - - let bytes = syn::LitByteStr::new(&bytes, expr.span()); - - TokenStream::from(quote! { - (#bytes) - }) - } - None => { - let span = expr.span(); - TokenStream::from(quote::quote_spanned!{span => - compile_error!("Invalid literal"); - }) - } - } -} diff --git a/skyline/src/build.rs b/skyline/src/build.rs deleted file mode 100644 index 0cac279..0000000 --- a/skyline/src/build.rs +++ /dev/null @@ -1,65 +0,0 @@ -#[lang = "eh_personality"] -extern fn eh_personality() {} - -#[macro_export] macro_rules! install_panic_handler { - ($module_name:expr) => { - #[panic_handler] - fn panic(panic_info: &core::panic::PanicInfo) -> ! { - $crate::println!("{} panicked: {}", $module_name, panic_info); - - - loop { - unsafe { - $crate::nn::os::SleepThread( - $crate::nn::TimeSpan::milli(100) - ) - } - } - } - }; -} - -global_asm!(include_str!("mod0.s")); - -#[no_mangle] pub unsafe extern "C" fn __custom_init() {} -#[no_mangle] pub extern "C" fn __custom_fini() {} - -#[macro_export] macro_rules! set_module_name { - ($lit:literal) => { - ::skyline::install_panic_handler!($lit); - - const __SKYLINE_INTERNAL_MODULE_LEN: usize = $lit.len() + 1; - #[link_section = ".rodata.module_name"] - pub static __MODULE_NAME: ::skyline::build::ModuleName<__SKYLINE_INTERNAL_MODULE_LEN> = - ::skyline::build::ModuleName::new( - ::skyline::skyline_macro::to_null_term_bytes!($lit) - ); - }; -} - -#[repr(packed)] -#[allow(unused_variables)] -pub struct ModuleName { - pub unk: u32, - pub name_length: u32, - pub name: [u8; LEN], -} - -impl ModuleName { - pub const fn new(bytes: &[u8; LEN]) -> Self { - Self { - unk: 0, - name_length: LEN as u32 - 1, - name: *bytes, - } - } -} - -/// one-time setup for skyline -#[doc(hidden)] -#[macro_export] macro_rules! setup { - () => { - #[global_allocator] - pub static ALLOCATOR: $crate::extern_alloc::Allocator = $crate::extern_alloc::Allocator; - }; -} diff --git a/skyline/src/extern_alloc.rs b/skyline/src/extern_alloc.rs deleted file mode 100644 index ae2f3d7..0000000 --- a/skyline/src/extern_alloc.rs +++ /dev/null @@ -1,31 +0,0 @@ -use core::alloc::{GlobalAlloc, Layout}; -use crate::libc; - -pub struct Allocator; - -unsafe impl GlobalAlloc for Allocator { - #[inline] - unsafe fn alloc(&self, layout: Layout) -> *mut u8 { - libc::malloc(layout.size()) as *mut u8 - } - - #[inline] - unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { - libc::calloc(layout.size(), 1) as *mut u8 - } - - #[inline] - unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { - libc::free(ptr as *mut libc::c_void) - } - - #[inline] - unsafe fn realloc(&self, ptr: *mut u8, _layout: Layout, new_size: usize) -> *mut u8 { - libc::realloc(ptr as *mut libc::c_void, new_size) as *mut u8 - } -} - -#[alloc_error_handler] -fn _alloc_error(_layout: Layout) -> ! { - panic!("Allocation error"); -} diff --git a/skyline/src/hooks.rs b/skyline/src/hooks.rs deleted file mode 100644 index 0826b56..0000000 --- a/skyline/src/hooks.rs +++ /dev/null @@ -1,63 +0,0 @@ -use crate::alloc::string::String; - -pub struct HookInfo { - /// Name of the function being used as the override - pub fn_name: &'static str, - - /// User-given name of what the hook represents - pub name: Option, - - /// Offset of where to install the hook - pub offset: Option, - - /// Symbol of where to install the hook - pub symbol: Option, - - /// Whether or not this is an inline hook - pub inline: bool -} - -/// Type for representing a hook for this plugin -pub struct Hook { - /// Pointer to the overloading function - pub ptr: *const (), - - /// Info needed to identify and install this hook - pub info: &'static HookInfo, -} - -unsafe impl Sync for Hook { - -} - -impl Hook { - pub fn install(&self) { - todo!() - } -} - -#[allow(improper_ctypes)] -extern "C" { - static __hook_array_start: Hook; - static __hook_array_end: Hook; -} - -/// Iterate over the loaded hooks for this plugin -pub fn iter_hooks() -> impl Iterator { - let hook_start = unsafe {&__hook_array_start as *const Hook}; - let hook_end = unsafe {&__hook_array_end as *const Hook}; - - let hook_count = ((hook_start as usize) - (hook_end as usize)) / core::mem::size_of::(); - - crate::println!("hook_count: {}", hook_count); - crate::println!("hook_start: {:?}", hook_start); - crate::println!("hook_end: {:?}", hook_start); - - unsafe { - core::slice::from_raw_parts( - hook_start, - hook_count - ) - }.iter() -} - diff --git a/skyline/src/lib.rs b/skyline/src/lib.rs deleted file mode 100644 index c782c85..0000000 --- a/skyline/src/lib.rs +++ /dev/null @@ -1,47 +0,0 @@ -#![no_std] -#![allow(incomplete_features)] -#![feature(alloc_error_handler, lang_items, start, global_asm, const_generics, impl_trait_in_bindings, proc_macro_hygiene, alloc_prelude, panic_info_message)] - -/// The rust core allocation and collections library -pub extern crate alloc; - -#[doc(hidden)] -pub use skyline_macro; - -/// Types and functions for working with hooking -pub mod hooks; -pub mod logging; - -#[doc(hidden)] -pub mod extern_alloc; - -#[doc(hidden)] -pub mod build; - -// nnsdk API bindings -pub mod nn; - -#[doc(inline)] -pub use { - skyline_libc as libc, - skyline_macro::{main, hook}, - hooks::iter_hooks, -}; - -/// Helper to convert a str to a *const u8 (to be replaced) -pub fn c_str(string: &str) -> *const u8 { - string.as_bytes().as_ptr() -} - -/// A set of items that will likely be useful to import anyway -/// -/// Designed to be used as such: -/// ``` -/// use skyline::prelude::*; -/// ``` -pub mod prelude { - pub use crate::println; - pub use alloc::format; - pub use alloc::vec; - pub use crate::alloc::prelude::v1::*; -} diff --git a/skyline/src/logging.rs b/skyline/src/logging.rs deleted file mode 100644 index 485f116..0000000 --- a/skyline/src/logging.rs +++ /dev/null @@ -1,24 +0,0 @@ -extern "C" { - fn skyline_tcp_send_raw(bytes: *const u8, usize: u64); -} - -pub fn log(message: &str) { - unsafe { - skyline_tcp_send_raw(message.as_bytes().as_ptr(), message.as_bytes().len() as _); - } -} - -/// Prints to the standard output, with a newline. -#[macro_export] macro_rules! println { - () => { - $crate::log(); - }; - ($($arg:tt)*) => { - { - use $crate::alloc::format; - $crate::logging::log(&format!( - $($arg)* - )); - } - }; -} diff --git a/skyline/src/mod0.s b/skyline/src/mod0.s deleted file mode 100644 index bd14ce2..0000000 --- a/skyline/src/mod0.s +++ /dev/null @@ -1,24 +0,0 @@ -.section .nro_header -.global __nro_header_start -.word 0 -.word _mod_header -.word 0 -.word 0 - -.section .rodata.mod0 -.global _mod_header -_mod_header: - .ascii "MOD0" - .word __dynamic_start - _mod_header - .word __bss_start - _mod_header - .word __bss_end - _mod_header - .word __eh_frame_hdr_start - _mod_header - .word __eh_frame_hdr_end - _mod_header - .word __nx_module_runtime - _mod_header // runtime-generated module object offset -.global IS_NRO -IS_NRO: - .word 1 - -.section .bss.module_runtime -.space 0xD0 - diff --git a/skyline/src/nn.rs b/skyline/src/nn.rs deleted file mode 100644 index 55abf8a..0000000 --- a/skyline/src/nn.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub use nnsdk::root::nn::*; -pub use nnsdk::extensions::*; diff --git a/skyline_smash/Cargo.lock b/skyline_smash/Cargo.lock deleted file mode 100644 index f3fc44d..0000000 --- a/skyline_smash/Cargo.lock +++ /dev/null @@ -1,12 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "skyline_libc" -version = "0.1.0" - -[[package]] -name = "skyline_smash" -version = "0.1.0" -dependencies = [ - "skyline_libc", -] diff --git a/skyline_smash/Cargo.toml b/skyline_smash/Cargo.toml deleted file mode 100644 index 4d62b3e..0000000 --- a/skyline_smash/Cargo.toml +++ /dev/null @@ -1,13 +0,0 @@ -[package] -name = "skyline_smash" -version = "0.1.0" -authors = ["jam1garner "] -edition = "2018" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[lib] -name = "smash" - -[dependencies] -skyline_libc = { path = "../skyline/skyline_libc" } diff --git a/skyline_smash/src/cpp.rs b/skyline_smash/src/cpp.rs deleted file mode 100644 index d8b8d72..0000000 --- a/skyline_smash/src/cpp.rs +++ /dev/null @@ -1,7864 +0,0 @@ -/* automatically generated by rust-bindgen */ - -#[doc(hidden)] -#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] -pub mod root { - use super::root; - pub type s8 = i8; - pub type s16 = i16; - pub type s32 = i32; - pub type s64 = i64; - pub type s128 = root::__int128_t; - pub type vu8 = u8; - pub type vu16 = u16; - pub type vu32 = u32; - pub type vu64 = u64; - pub type vu128 = u128; - pub type vs8 = root::s8; - pub type vs16 = root::s16; - pub type vs32 = root::s32; - pub type vs64 = root::s64; - pub type vs128 = root::s128; - pub type Handle = u32; - pub type Result = u32; - pub type uint = skyline_libc::c_uint; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Vector2f { - pub x: f32, - pub y: f32, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Vector3f { - pub x: f32, - pub y: f32, - pub z: f32, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct Vector4f { - pub x: f32, - pub y: f32, - pub z: f32, - pub w: f32, - } - pub mod app { - #[allow(unused_imports)] - use self::super::super::root; - pub mod FL_sv_module_access { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app19FL_sv_module_access5slopeEP9lua_State"] - pub fn slope(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app19FL_sv_module_access7captureEP9lua_State"] - pub fn capture(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app19FL_sv_module_access4linkEP9lua_State"] - pub fn link(arg1: u64); - } - } - pub mod lua_bind { - #[allow(unused_imports)] - use self::super::super::super::root; - pub mod MotionModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33MotionModule__add_motion_2nd_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Effbf"] - pub fn add_motion_2nd( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: bool, - arg6: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37MotionModule__add_motion_partial_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Effbbfbbb"] - pub fn add_motion_partial( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: f32, - arg5: f32, - arg6: bool, - arg7: bool, - arg8: f32, - arg9: bool, - arg10: bool, - arg11: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36MotionModule__animcmd_name_hash_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn animcmd_name_hash(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__calc_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_RNS3_8Vector3fE"] - pub fn calc_joint( - arg1: u64, - arg2: u64, - arg3: u64, - arg4: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32MotionModule__change_motion_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Effbfbb"] - pub fn change_motion( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: bool, - arg6: f32, - arg7: bool, - arg8: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52MotionModule__change_motion_force_inherit_frame_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efff"] - pub fn change_motion_force_inherit_frame( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46MotionModule__change_motion_inherit_frame_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efffbb"] - pub fn change_motion_inherit_frame( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: bool, - arg7: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind56MotionModule__change_motion_inherit_frame_keep_rate_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efff"] - pub fn change_motion_inherit_frame_keep_rate( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37MotionModule__change_motion_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn change_motion_kind(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34MotionModule__clear_joint_srt_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn clear_joint_srt(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50MotionModule__enable_shift_material_animation_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn enable_shift_material_animation( - arg1: u64, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28MotionModule__end_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn end_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38MotionModule__end_frame_from_hash_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn end_frame_from_hash(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36MotionModule__end_frame_partial_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn end_frame_partial( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24MotionModule__frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn frame(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28MotionModule__frame_2nd_implEPNS_26BattleObjectModuleAccessorE"] - pub fn frame_2nd(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32MotionModule__frame_partial_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn frame_partial(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37MotionModule__get_frame_material_implEPNS_26BattleObjectModuleAccessorENS_17MaterialAnimeKindE"] - pub fn get_frame_material( - arg1: u64, - materialAnimeKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35MotionModule__is_anim_resource_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_anim_resource(arg1: u64, arg2: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27MotionModule__is_blend_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_blend(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25MotionModule__is_end_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_end(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__is_end_2nd_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_end_2nd(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33MotionModule__is_end_partial_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_end_partial(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31MotionModule__is_flag_link_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_flag_link(arg1: u64, arg2: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40MotionModule__is_flag_start_1_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_flag_start_1_frame(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind57MotionModule__is_flag_start_1_frame_from_motion_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_flag_start_1_frame_from_motion_kind( - arg1: u64, - arg2: u64, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26MotionModule__is_flip_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_flip(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35MotionModule__is_flip_resource_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_flip_resource(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31MotionModule__is_loop_flag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_loop_flag(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28MotionModule__is_looped_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_looped(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__is_no_comp_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_no_comp(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39MotionModule__joint_local_rotation_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fE"] - pub fn joint_local_rotation( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34MotionModule__joint_local_tra_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40EbRNS3_8Vector3fE"] - pub fn joint_local_tra( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__motion_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn motion_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34MotionModule__motion_kind_2nd_implEPNS_26BattleObjectModuleAccessorE"] - pub fn motion_kind_2nd(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38MotionModule__motion_kind_partial_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn motion_kind_partial( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__prev_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn prev_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__prev_weight_implEPNS_26BattleObjectModuleAccessorE"] - pub fn prev_weight(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23MotionModule__rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn rate(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31MotionModule__rate_partial_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn rate_partial(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40MotionModule__remove_motion_partial_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn remove_motion_partial( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45MotionModule__remove_motion_partial_comp_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn remove_motion_partial_comp( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__resource_id_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn resource_id(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27MotionModule__set_flip_implEPNS_26BattleObjectModuleAccessorEbbb"] - pub fn set_flip( - arg1: u64, - arg2: bool, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48MotionModule__set_force_progress_2nd_weight_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_force_progress_2nd_weight(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28MotionModule__set_frame_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_frame(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32MotionModule__set_frame_2nd_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_frame_2nd(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37MotionModule__set_frame_material_implEPNS_26BattleObjectModuleAccessorEfNS_17MaterialAnimeKindE"] - pub fn set_frame_material( - arg1: u64, - arg2: f32, - materialAnimeKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36MotionModule__set_frame_partial_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_frame_partial( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50MotionModule__set_frame_partial_sync_anim_cmd_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_frame_partial_sync_anim_cmd( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42MotionModule__set_frame_sync_anim_cmd_implEPNS_26BattleObjectModuleAccessorEfbbb"] - pub fn set_frame_sync_anim_cmd( - arg1: u64, - arg2: f32, - arg3: bool, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41MotionModule__set_helper_calculation_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_helper_calculation(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34MotionModule__set_kind_offset_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_kind_offset(arg1: u64, arg2: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45MotionModule__set_link_flip_target_joint_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_link_flip_target_joint(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__set_no_comp_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_comp(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27MotionModule__set_rate_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_rate(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31MotionModule__set_rate_2nd_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_rate_2nd(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36MotionModule__set_rate_material_implEPNS_26BattleObjectModuleAccessorEfNS_17MaterialAnimeKindE"] - pub fn set_rate_material( - arg1: u64, - arg2: f32, - materialAnimeKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35MotionModule__set_rate_partial_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_rate_partial( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32MotionModule__set_recalc_ik_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_recalc_ik(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__set_reverse_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_reverse(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32MotionModule__set_skip_rate_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_skip_rate(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41MotionModule__set_stop_interpolation_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_stop_interpolation( - arg1: u64, - arg2: f32, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37MotionModule__set_trans_joint_id_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn set_trans_joint_id(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48MotionModule__set_trans_move_speed_no_scale_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_trans_move_speed_no_scale(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__set_weight_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_weight(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34MotionModule__set_weight_rate_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_weight_rate(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33MotionModule__set_whole_rate_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_whole_rate(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36MotionModule__trans_joint_scale_implEPNS_26BattleObjectModuleAccessorE"] - pub fn trans_joint_scale(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35MotionModule__trans_move_speed_implEPNS_26BattleObjectModuleAccessorE"] - pub fn trans_move_speed(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28MotionModule__trans_tra_implEPNS_26BattleObjectModuleAccessorERN3phx8Vector3fEbb"] - pub fn trans_tra( - arg1: u64, - arg2: *mut root::Vector3f, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38MotionModule__trans_tra_end_frame_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fE"] - pub fn trans_tra_end_frame( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind66MotionModule__update_dynamic_skeleton_without_complete_matrix_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_dynamic_skeleton_without_complete_matrix( - arg1: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30MotionModule__update_rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_rate(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25MotionModule__weight_implEPNS_26BattleObjectModuleAccessorE"] - pub fn weight(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29MotionModule__whole_rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn whole_rate(arg1: u64) -> u64; - } - } - pub mod ControlModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__add_clatter_time_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn add_clatter_time( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__check_button_off_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_off(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__check_button_on_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_on(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ControlModule__check_button_on_release_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_on_release( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ControlModule__check_button_on_trriger_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_on_trriger( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__check_button_release_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_release(arg1: u64, arg2: skyline_libc::c_int) - -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__check_button_trigger_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn check_button_trigger(arg1: u64, arg2: skyline_libc::c_int) - -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__clear_command_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn clear_command(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__clear_command_one_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn clear_command_one( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__end_clatter_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn end_clatter(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ControlModule__end_clatter_motion_rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn end_clatter_motion_rate(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ControlModule__exec_command_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn exec_command(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ControlModule__get_attack_air_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attack_air_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ControlModule__get_attack_air_stick_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attack_air_stick_dir(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ControlModule__get_attack_air_stick_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attack_air_stick_x(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ControlModule__get_attack_hi3_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attack_hi3_fb_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ControlModule__get_attack_lw3_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attack_lw3_fb_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__get_clatter_time_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_clatter_time( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__get_command_flag_cat_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_command_flag_cat( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__get_command_life_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn get_command_life( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ControlModule__get_down_stand_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_down_stand_fb_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__get_flick_no_reset_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_no_reset_x(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__get_flick_no_reset_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_no_reset_y(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__get_flick_sub_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_sub_x(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__get_flick_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_x(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__get_flick_x_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_x_dir(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__get_flick_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_y(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__get_flick_y_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_flick_y_dir(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ControlModule__get_pad_flag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_pad_flag(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__get_stick_angle_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_angle(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__get_stick_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_dir(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__get_stick_prev_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_prev_y(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__get_stick_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_x(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__get_stick_x_no_clamp_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_x_no_clamp(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__get_stick_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_y(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__get_stick_y_no_clamp_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_stick_y_no_clamp(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__get_trigger_count_implEPNS_26BattleObjectModuleAccessorEh"] - pub fn get_trigger_count( - arg1: u64, - arg2: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ControlModule__get_trigger_count_prev_implEPNS_26BattleObjectModuleAccessorEh"] - pub fn get_trigger_count_prev( - arg1: u64, - arg2: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__is_clear_command_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_clear_command(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ControlModule__is_enable_flick_jump_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_enable_flick_jump(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__is_input_clatter_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_input_clatter(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ControlModule__is_jump_mini_button_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_jump_mini_button(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__is_remake_command_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_remake_command(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__is_stick_reversed_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_stick_reversed(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__is_stick_side_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_stick_side(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ControlModule__item_heavy_throw_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn item_heavy_throw_fb_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49ControlModule__item_light_throw_air_fb4_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn item_light_throw_air_fb4_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48ControlModule__item_light_throw_air_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn item_light_throw_air_fb_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45ControlModule__item_light_throw_fb4_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn item_light_throw_fb4_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ControlModule__item_light_throw_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn item_light_throw_fb_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ControlModule__reset_attack_air_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_attack_air_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ControlModule__reset_down_stand_fb_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_down_stand_fb_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__reset_flick_sub_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_flick_sub_x(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ControlModule__reset_flick_sub_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_flick_sub_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__reset_flick_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_flick_x(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__reset_flick_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_flick_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__reset_trigger_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_trigger(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ControlModule__reverse_x_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reverse_x_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49ControlModule__set_add_jump_mini_button_life_implEPNS_26BattleObjectModuleAccessorEa"] - pub fn set_add_jump_mini_button_life( - arg1: u64, - arg2: skyline_libc::c_schar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ControlModule__set_attack_air_kind_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_attack_air_kind( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__set_clatter_stop_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_clatter_stop(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__set_clatter_time_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn set_clatter_time( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ControlModule__set_command_life_extend_implEPNS_26BattleObjectModuleAccessorEh"] - pub fn set_command_life_extend( - arg1: u64, - arg2: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ControlModule__set_dec_time_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn set_dec_time( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ControlModule__set_dec_time_recovery_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn set_dec_time_recovery( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ControlModule__set_off_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_off(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ControlModule__set_rumble_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eibj"] - pub fn set_rumble( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind57ControlModule__set_special_command_life_count_extend_implEPNS_26BattleObjectModuleAccessorEh"] - pub fn set_special_command_life_count_extend( - arg1: u64, - arg2: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51ControlModule__set_special_command_life_extend_implEPNS_26BattleObjectModuleAccessorEa"] - pub fn set_special_command_life_extend( - arg1: u64, - arg2: skyline_libc::c_schar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ControlModule__special_s_turn_implEPNS_26BattleObjectModuleAccessorE"] - pub fn special_s_turn(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ControlModule__start_clatter_implEPNS_26BattleObjectModuleAccessorEfffaibb"] - pub fn start_clatter( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: skyline_libc::c_schar, - arg6: skyline_libc::c_int, - arg7: bool, - arg8: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45ControlModule__start_clatter_motion_rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn start_clatter_motion_rate(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ControlModule__stop_rumble_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn stop_rumble(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ControlModule__stop_rumble_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ej"] - pub fn stop_rumble_kind( - arg1: u64, - arg2: u64, - arg3: root::uint, - ) -> u64; - } - } - pub mod CancelModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32CancelModule__enable_cancel_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_cancel(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35CancelModule__is_enable_cancel_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_enable_cancel(arg1: u64) -> bool; - } - } - pub mod EffectModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31EffectModule__clear_screen_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn clear_screen( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25EffectModule__detach_implEPNS_26BattleObjectModuleAccessorEji"] - pub fn detach(arg1: u64, arg2: u64, arg3: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29EffectModule__detach_all_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn detach_all(arg1: u64, arg2: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30EffectModule__detach_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn detach_kind(arg1: u64, arg2: u64, arg3: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33EffectModule__enable_stencil_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn enable_stencil(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44EffectModule__enable_sync_init_pos_last_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_sync_init_pos_last(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27EffectModule__end_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn end_kind( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45EffectModule__force_update_common_effect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn force_update_common_effect(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40EffectModule__get_dead_effect_rot_z_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEfb"] - pub fn get_dead_effect_rot_z( - arg1: u64, - arg2: *const root::Vector3f, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40EffectModule__get_dead_effect_scale_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEfb"] - pub fn get_dead_effect_scale( - arg1: u64, - arg2: *const root::Vector3f, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34EffectModule__get_last_handle_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_last_handle(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44EffectModule__get_variation_effect_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn get_variation_effect_kind( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42EffectModule__is_enable_ground_effect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_enable_ground_effect(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34EffectModule__is_exist_common_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_exist_common(arg1: u64, arg2: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34EffectModule__is_exist_effect_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_exist_effect(arg1: u64, arg2: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37EffectModule__is_sync_visibility_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_sync_visibility(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23EffectModule__kill_implEPNS_26BattleObjectModuleAccessorEjbb"] - pub fn kill(arg1: u64, arg2: u64, arg3: bool, arg4: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27EffectModule__kill_all_implEPNS_26BattleObjectModuleAccessorEjbb"] - pub fn kill_all(arg1: u64, arg2: u64, arg3: bool, arg4: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32EffectModule__kill_joint_id_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebb"] - pub fn kill_joint_id(arg1: u64, arg2: u64, arg3: bool, arg4: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28EffectModule__kill_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebb"] - pub fn kill_kind(arg1: u64, arg2: u64, arg3: bool, arg4: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47EffectModule__preset_lifetime_rate_partial_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn preset_lifetime_rate_partial(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35EffectModule__preset_limit_num_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn preset_limit_num( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25EffectModule__remove_implEPNS_26BattleObjectModuleAccessorEjj"] - pub fn remove(arg1: u64, arg2: u64, arg3: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29EffectModule__remove_all_implEPNS_26BattleObjectModuleAccessorEjj"] - pub fn remove_all( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41EffectModule__remove_all_after_image_implEPNS_26BattleObjectModuleAccessorEjj"] - pub fn remove_all_after_image( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32EffectModule__remove_common_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn remove_common(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42EffectModule__remove_post_effect_line_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn remove_post_effect_line( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32EffectModule__remove_screen_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn remove_screen( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30EffectModule__remove_time_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn remove_time(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22EffectModule__req_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fES7_fjibi"] - pub fn req( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: *const root::Vector3f, - arg5: f32, - arg6: u64, - arg7: skyline_libc::c_int, - arg8: bool, - arg9: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25EffectModule__req_2d_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fES7_fj"] - pub fn req_2d( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: *const root::Vector3f, - arg5: f32, - arg6: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29EffectModule__req_common_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ef"] - pub fn req_common(arg1: u64, arg2: u64, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27EffectModule__req_emit_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ej"] - pub fn req_emit(arg1: u64, arg2: u64, arg3: u64) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29EffectModule__req_follow_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_RKNS3_8Vector3fES7_fbjiiiibb"] - pub fn req_follow( - arg1: u64, - arg2: u64, - arg3: u64, - arg4: *const root::Vector3f, - arg5: *const root::Vector3f, - arg6: f32, - arg7: bool, - arg8: u64, - arg9: skyline_libc::c_int, - arg10: skyline_libc::c_int, - arg11: skyline_libc::c_int, - arg12: skyline_libc::c_int, - arg13: bool, - arg14: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31EffectModule__req_on_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_RKNS3_8Vector3fES7_fS7_S7_bjii"] - pub fn req_on_joint( - arg1: u64, - arg2: u64, - arg3: u64, - arg4: *const root::Vector3f, - arg5: *const root::Vector3f, - arg6: f32, - arg7: *const root::Vector3f, - arg8: *const root::Vector3f, - arg9: bool, - arg10: u64, - arg11: skyline_libc::c_int, - arg12: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29EffectModule__req_screen_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebbb"] - pub fn req_screen( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27EffectModule__req_time_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40EiRKNS3_8Vector3fES7_fjbb"] - pub fn req_time( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: *const root::Vector3f, - arg5: *const root::Vector3f, - arg6: f32, - arg7: u64, - arg8: bool, - arg9: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50EffectModule__request_post_effect_line_circle_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_NS3_8Vector2fENS3_8Vector3fEbff"] - pub fn request_post_effect_line_circle( - arg1: u64, - arg2: u64, - arg3: u64, - arg4: root::Vector2f, - arg5: root::Vector3f, - arg6: bool, - arg7: f32, - arg8: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind55EffectModule__request_post_effect_line_parallel_2d_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ENS3_8Vector2fES5_S5_S5_bff"] - pub fn request_post_effect_line_parallel_2d( - arg1: u64, - arg2: u64, - arg3: root::Vector2f, - arg4: root::Vector2f, - arg5: root::Vector2f, - arg6: root::Vector2f, - arg7: bool, - arg8: f32, - arg9: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31EffectModule__reset_screen_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn reset_screen(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28EffectModule__set_alpha_implEPNS_26BattleObjectModuleAccessorEjf"] - pub fn set_alpha(arg1: u64, arg2: u64, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39EffectModule__set_custom_uv_offset_implEPNS_26BattleObjectModuleAccessorEjRKN3phx8Vector2fEi"] - pub fn set_custom_uv_offset( - arg1: u64, - arg2: u64, - arg3: *const root::Vector2f, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49EffectModule__set_disable_render_offset_last_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_disable_render_offset_last(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42EffectModule__set_disable_system_slow_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_disable_system_slow(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28EffectModule__set_frame_implEPNS_26BattleObjectModuleAccessorEjf"] - pub fn set_frame(arg1: u64, arg2: u64, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37EffectModule__set_offset_to_next_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_offset_to_next( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26EffectModule__set_pos_implEPNS_26BattleObjectModuleAccessorEjRKN3phx8Vector3fE"] - pub fn set_pos( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind53EffectModule__set_post_effect_line_circle_target_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ENS3_8Vector2fENS3_8Vector3fEb"] - pub fn set_post_effect_line_circle_target( - arg1: u64, - arg2: u64, - arg3: root::Vector2f, - arg4: root::Vector3f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27EffectModule__set_rate_implEPNS_26BattleObjectModuleAccessorEjf"] - pub fn set_rate(arg1: u64, arg2: u64, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32EffectModule__set_rate_last_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_rate_last(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26EffectModule__set_rgb_implEPNS_26BattleObjectModuleAccessorEjfff"] - pub fn set_rgb( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39EffectModule__set_rgb_partial_last_implEPNS_26BattleObjectModuleAccessorEfff"] - pub fn set_rgb_partial_last( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26EffectModule__set_rot_implEPNS_26BattleObjectModuleAccessorEjRKN3phx8Vector3fE"] - pub fn set_rot( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28EffectModule__set_scale_implEPNS_26BattleObjectModuleAccessorEjRKN3phx8Vector3fE"] - pub fn set_scale( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33EffectModule__set_sync_scale_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sync_scale(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38EffectModule__set_sync_visibility_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sync_visibility(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30EffectModule__set_visible_implEPNS_26BattleObjectModuleAccessorEjb"] - pub fn set_visible(arg1: u64, arg2: u64, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35EffectModule__set_visible_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn set_visible_kind( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28EffectModule__set_whole_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_whole(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33EffectModule__set_whole_attr_implEPNS_26BattleObjectModuleAccessorEbj"] - pub fn set_whole_attr( - arg1: u64, - arg2: bool, - arg3: u64, - ) -> u64; - } - } - pub mod WorkModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__add_float_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn add_float( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__add_int_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn add_int( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__clear_all_implEPNS_26BattleObjectModuleAccessorENS_8WorkKindE"] - pub fn clear_all(arg1: u64, workKind: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31WorkModule__count_down_int_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn count_down_int( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__dec_int_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn dec_int(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__div_float_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn div_float( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39WorkModule__enable_transition_term_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_transition_term( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46WorkModule__enable_transition_term_forbid_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_transition_term_forbid( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52WorkModule__enable_transition_term_forbid_group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_transition_term_forbid_group( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45WorkModule__enable_transition_term_group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_transition_term_group( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48WorkModule__enable_transition_term_group_ex_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_transition_term_group_ex( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__get_float_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_float(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__get_int_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_int( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__get_int64_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_int64(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32WorkModule__get_param_float_implEPNS_26BattleObjectModuleAccessorEmm"] - pub fn get_param_float( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30WorkModule__get_param_int_implEPNS_26BattleObjectModuleAccessorEmm"] - pub fn get_param_int( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32WorkModule__get_param_int64_implEPNS_26BattleObjectModuleAccessorEmm"] - pub fn get_param_int64( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__inc_int_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn inc_int(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42WorkModule__is_enable_transition_term_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_enable_transition_term( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49WorkModule__is_enable_transition_term_forbid_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_enable_transition_term_forbid( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48WorkModule__is_enable_transition_term_group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_enable_transition_term_group( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__is_flag_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_flag(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__mul_float_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn mul_float( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__mul_int_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn mul_int( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25WorkModule__off_flag_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn off_flag(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__on_flag_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn on_flag(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25WorkModule__set_flag_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_flag( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__set_float_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn set_float( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__set_int_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn set_int( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__set_int64_implEPNS_26BattleObjectModuleAccessorEli"] - pub fn set_int64( - arg1: u64, - arg2: root::s64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26WorkModule__sub_float_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn sub_float( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24WorkModule__sub_int_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn sub_int( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30WorkModule__turn_off_flag_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn turn_off_flag(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39WorkModule__unable_transition_term_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_transition_term( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46WorkModule__unable_transition_term_forbid_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_transition_term_forbid( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52WorkModule__unable_transition_term_forbid_group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_transition_term_forbid_group( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45WorkModule__unable_transition_term_group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_transition_term_group( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48WorkModule__unable_transition_term_group_ex_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_transition_term_group_ex( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - } - pub mod StatusModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40StatusModule__change_status_request_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn change_status_request( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52StatusModule__change_status_request_from_script_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn change_status_request_from_script( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52StatusModule__delete_status_request_from_script_implEPNS_26BattleObjectModuleAccessorE"] - pub fn delete_status_request_from_script(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32StatusModule__init_settings_implEPNS_26BattleObjectModuleAccessorENS_13SituationKindEijNS_20GroundCliffCheckKindEbiiii"] - pub fn init_settings( - arg1: u64, - situationKind: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: u64, - groundCliffCheckKind: skyline_libc::c_int, - arg4: bool, - arg5: skyline_libc::c_int, - arg6: skyline_libc::c_int, - arg7: skyline_libc::c_int, - arg8: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30StatusModule__is_changing_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_changing(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39StatusModule__is_situation_changed_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_situation_changed(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38StatusModule__prev_situation_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn prev_situation_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35StatusModule__prev_status_kind_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn prev_status_kind( - arg1: u64, - arg2: u64, - ) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41StatusModule__set_keep_situation_air_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_keep_situation_air(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37StatusModule__set_situation_kind_implEPNS_26BattleObjectModuleAccessorENS_13SituationKindEb"] - pub fn set_situation_kind( - arg1: u64, - situationKind: skyline_libc::c_int, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44StatusModule__set_status_kind_interrupt_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_status_kind_interrupt( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33StatusModule__situation_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn situation_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30StatusModule__status_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn status_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40StatusModule__status_kind_interrupt_implEPNS_26BattleObjectModuleAccessorE"] - pub fn status_kind_interrupt(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35StatusModule__status_kind_next_implEPNS_26BattleObjectModuleAccessorE"] - pub fn status_kind_next(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46StatusModule__status_kind_que_from_script_implEPNS_26BattleObjectModuleAccessorE"] - pub fn status_kind_que_from_script(arg1: u64) -> u64; - } - } - pub mod KineticModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29KineticModule__add_speed_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn add_speed(arg1: u64, arg2: *const root::Vector3f) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37KineticModule__add_speed_outside_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn add_speed_outside( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34KineticModule__change_kinetic_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn change_kinetic(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35KineticModule__clear_speed_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_speed_all(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36KineticModule__clear_speed_attr_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn clear_speed_attr(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41KineticModule__clear_speed_energy_id_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn clear_speed_energy_id(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__enable_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn enable_energy(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30KineticModule__get_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_energy(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36KineticModule__get_kinetic_type_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_kinetic_type(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36KineticModule__get_sum_rotation_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_rotation(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__get_sum_speed_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_speed(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35KineticModule__get_sum_speed3f_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_speed3f(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40KineticModule__get_sum_speed_length_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_speed_length(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35KineticModule__get_sum_speed_x_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_speed_x(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35KineticModule__get_sum_speed_y_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_sum_speed_y(arg1: u64, arg2: skyline_libc::c_int) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36KineticModule__is_enable_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_enable_energy(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37KineticModule__is_suspend_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_suspend_energy(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29KineticModule__mul_accel_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn mul_accel( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29KineticModule__mul_speed_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn mul_speed( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__reflect_accel_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn reflect_accel( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__reflect_speed_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn reflect_speed( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__resume_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn resume_energy(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37KineticModule__resume_energy_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn resume_energy_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48KineticModule__set_consider_ground_friction_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_consider_ground_friction( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25KineticModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34KineticModule__suspend_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn suspend_energy(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38KineticModule__suspend_energy_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn suspend_energy_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33KineticModule__unable_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn unable_energy(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37KineticModule__unable_energy_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn unable_energy_all(arg1: u64); - } - } - pub mod JostleModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27JostleModule__is_sleep_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_sleep(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28JostleModule__overlap_x_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn overlap_x(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26JostleModule__set_fix_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_fix(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32JostleModule__set_force_gap_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_force_gap(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38JostleModule__set_ignore_owner_id_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_ignore_owner_id( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37JostleModule__set_ignore_speed_x_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_ignore_speed_x(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48JostleModule__set_influence_opponent_weight_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_influence_opponent_weight(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28JostleModule__set_layer_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_layer(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39JostleModule__set_overlap_rate_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_overlap_rate_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31JostleModule__set_priority_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_priority(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43JostleModule__set_propagate_push_speed_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_propagate_push_speed(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35JostleModule__set_push_speed_x_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_push_speed_x(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48JostleModule__set_push_speed_x_overlap_rate_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_push_speed_x_overlap_rate(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28JostleModule__set_refer_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_refer(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29JostleModule__set_status_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_status(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27JostleModule__set_team_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_team(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29JostleModule__set_weight_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_weight(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24JostleModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32JostleModule__target_weight_implEPNS_26BattleObjectModuleAccessorE"] - pub fn target_weight(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25JostleModule__weight_implEPNS_26BattleObjectModuleAccessorE"] - pub fn weight(arg1: u64) -> u64; - } - } - pub mod GroundModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25GroundModule__attach_implEPNS_26BattleObjectModuleAccessorENS_15GroundTouchFlagE"] - pub fn attach( - arg1: u64, - groundTouchFlag: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__attach_ground_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn attach_ground(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__can_entry_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn can_entry_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44GroundModule__can_entry_cliff_hang_data_implEPNS_26BattleObjectModuleAccessorEjNS_20GroundCliffCheckKindE"] - pub fn can_entry_cliff_hang_data( - arg1: u64, - arg2: u64, - groundCliffCheckKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29GroundModule__center_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn center_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41GroundModule__check_down_correct_pos_implEPNS_26BattleObjectModuleAccessorEN3phx8Vector2fE"] - pub fn check_down_correct_pos( - arg1: u64, - arg2: root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__clear_cliff_point_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_cliff_point(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35GroundModule__clear_pass_floor_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_pass_floor(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__cliff_check_implEPNS_26BattleObjectModuleAccessorE"] - pub fn cliff_check(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26GroundModule__correct_implEPNS_26BattleObjectModuleAccessorENS_17GroundCorrectKindE"] - pub fn correct( - arg1: u64, - groundCorrectKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__correct_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn correct_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25GroundModule__detach_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn detach(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__entry_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn entry_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__get_center_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_center_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__get_circle_radius_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_circle_radius(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__get_cliff_movement_speed_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_cliff_movement_speed(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__get_correct_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_correct(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__get_correct_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_correct_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40GroundModule__get_correct_pos_local_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_correct_pos_local(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40GroundModule__get_distance_to_floor_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEfb"] - pub fn get_distance_to_floor( - arg1: u64, - arg2: *const root::Vector3f, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44GroundModule__get_down_correct_edge_pos_implEPNS_26BattleObjectModuleAccessorERN3phx8Vector2fERKS4_"] - pub fn get_down_correct_edge_pos( - arg1: u64, - arg2: *mut root::Vector2f, - arg3: *const root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__get_down_friction_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_down_friction(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42GroundModule__get_down_movement_speed_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_down_movement_speed(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__get_down_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_down_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46GroundModule__get_latest_down_correct_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_latest_down_correct_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__get_left_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_left_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42GroundModule__get_line_movement_speed_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_line_movement_speed(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__get_rhombus_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn get_rhombus(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__get_right_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_right_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__get_shape_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_shape_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__get_shape_safe_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_shape_safe_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__get_touch_flag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_touch_flag(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__get_touch_line_raw_implEPNS_26BattleObjectModuleAccessorENS_13GroundTouchIDE"] - pub fn get_touch_line_raw( - arg1: u64, - groundTouchID: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42GroundModule__get_touch_material_type_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_touch_material_type(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40GroundModule__get_touch_moment_flag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_touch_moment_flag(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35GroundModule__get_touch_normal_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_touch_normal(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52GroundModule__get_touch_normal_consider_gravity_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_touch_normal_consider_gravity( - arg1: u64, - arg2: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54GroundModule__get_touch_normal_x_consider_gravity_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_touch_normal_x_consider_gravity( - arg1: u64, - arg2: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__get_touch_pos_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_touch_pos(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__get_touch_wall_cliff_pos_implEPNS_26BattleObjectModuleAccessorEjRN3phx8Vector2fE"] - pub fn get_touch_wall_cliff_pos( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29GroundModule__get_up_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_up_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28GroundModule__get_width_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_width(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24GroundModule__get_z_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_z(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__ground_touch_flag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn ground_touch_flag(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39GroundModule__ground_touch_flag_ex_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn ground_touch_flag_ex( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__hang_can_entry_cliff_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hang_can_entry_cliff_dir(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__hang_can_entry_cliff_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hang_can_entry_cliff_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__hang_cliff_dir_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hang_cliff_dir(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__hang_cliff_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hang_cliff_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__hang_cliff_pos_3f_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hang_cliff_pos_3f(arg1: u64) -> *mut root::Vector3f; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28GroundModule__is_attach_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_attach(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__is_attach_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_attach_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__is_attachable_implEPNS_26BattleObjectModuleAccessorENS_15GroundTouchFlagE"] - pub fn is_attachable( - arg1: u64, - groundTouchFlag: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38GroundModule__is_floor_touch_line_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_floor_touch_line(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__is_floor_vanishing_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_floor_vanishing(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__is_miss_foot_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_miss_foot(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__is_near_cliff_implEPNS_26BattleObjectModuleAccessorEff"] - pub fn is_near_cliff(arg1: u64, arg2: f32, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29GroundModule__is_ottotto_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn is_ottotto(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__is_ottotto_lr_implEPNS_26BattleObjectModuleAccessorEff"] - pub fn is_ottotto_lr(arg1: u64, arg2: f32, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__is_passable_check_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_passable_check(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__is_passable_ground_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_passable_ground(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__is_status_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_status_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__is_still_on_floor_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn is_still_on_floor(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27GroundModule__is_touch_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_touch(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__is_wall_touch_line_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_wall_touch_line(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__leave_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn leave_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__modify_rhombus_implEPNS_26BattleObjectModuleAccessorEfff"] - pub fn modify_rhombus( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29GroundModule__pass_floor_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pass_floor(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28GroundModule__ray_check_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_b"] - pub fn ray_check( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__ray_check_get_line_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_b"] - pub fn ray_check_get_line( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45GroundModule__ray_check_get_line_hit_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_b"] - pub fn ray_check_get_line_hit_pos( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind56GroundModule__ray_check_get_line_hit_pos_ignore_any_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_j"] - pub fn ray_check_get_line_hit_pos_ignore_any( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind56GroundModule__ray_check_get_line_hit_pos_no_culling_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_b"] - pub fn ray_check_get_line_hit_pos_no_culling( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39GroundModule__ray_check_hit_normal_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_b"] - pub fn ray_check_hit_normal( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__ray_check_hit_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_b"] - pub fn ray_check_hit_pos( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__ray_check_hit_pos_normal_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_S7_b"] - pub fn ray_check_hit_pos_normal( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: *mut root::Vector2f, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54GroundModule__ray_check_hit_pos_normal_no_culling_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_S7_b"] - pub fn ray_check_hit_pos_normal_no_culling( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: *mut root::Vector2f, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__ray_check_hit_pos_target_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fES6_RS4_jb"] - pub fn ray_check_hit_pos_target( - arg1: u64, - arg2: *const root::Vector2f, - arg3: *const root::Vector2f, - arg4: *mut root::Vector2f, - arg5: u64, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GroundModule__reentry_cliff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reentry_cliff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40GroundModule__select_cliff_hangdata_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn select_cliff_hangdata(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__set_attach_ground_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_attach_ground(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__set_auto_detach_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_auto_detach(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__set_cliff_check_implEPNS_26BattleObjectModuleAccessorENS_20GroundCliffCheckKindE"] - pub fn set_cliff_check( - arg1: u64, - groundCliffCheckKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__set_cloud_through_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_cloud_through(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48GroundModule__set_coll_stop_slidable_length_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_coll_stop_slidable_length(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__set_collidable_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_collidable(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__set_correct_implEPNS_26BattleObjectModuleAccessorENS_17GroundCorrectKindE"] - pub fn set_correct( - arg1: u64, - groundCorrectKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__set_correct_ignore_slope_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_correct_ignore_slope(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__set_ignore_boss_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_ignore_boss(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38GroundModule__set_ignore_slide_up_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_ignore_slide_up(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34GroundModule__set_init_circle_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fEf"] - pub fn set_init_circle( - arg1: u64, - arg2: *const root::Vector2f, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38GroundModule__set_init_shape_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_init_shape_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41GroundModule__set_keep_distant_cliff_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_keep_distant_cliff(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43GroundModule__set_no_cliff_stop_energy_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_no_cliff_stop_energy( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__set_offset_x_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_offset_x(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__set_offset_y_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_offset_y(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__set_passable_check_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_passable_check(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40GroundModule__set_reverse_direction_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_reverse_direction( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__set_rhombus_offset_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn set_rhombus_offset( - arg1: u64, - arg2: *const root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind60GroundModule__set_shape_data_rhombus_modify_node_offset_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fE"] - pub fn set_shape_data_rhombus_modify_node_offset( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__set_shape_flag_implEPNS_26BattleObjectModuleAccessorEtb"] - pub fn set_shape_flag( - arg1: u64, - arg2: u16, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33GroundModule__set_shape_kind_implEPNS_26BattleObjectModuleAccessorENS_5grcol22GroundCorrectShapeTypeE"] - pub fn set_shape_kind( - arg1: u64, - groundCorrectShapeType: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__set_shape_safe_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn set_shape_safe_pos( - arg1: u64, - arg2: *const root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36GroundModule__set_status_ground_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_status_ground(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37GroundModule__set_test_coll_stop_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_test_coll_stop(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44GroundModule__set_test_coll_stop_status_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_test_coll_stop_status(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35GroundModule__set_update_shape_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_update_shape(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24GroundModule__set_z_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_z(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23GroundModule__test_implEPNS_26BattleObjectModuleAccessorE"] - pub fn test(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30GroundModule__test_ground_implEPNS_26BattleObjectModuleAccessorE"] - pub fn test_ground(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__update_force_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_force(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GroundModule__update_shape_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn update_shape(arg1: u64, arg2: bool) -> u64; - } - } - pub mod GrabModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26GrabModule__clear_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24GrabModule__is_grab_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_grab(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21GrabModule__node_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn node(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32GrabModule__set_check_front_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_check_front(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31GrabModule__set_constraint_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_constraint( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28GrabModule__set_rebound_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_rebound(arg1: u64, arg2: bool) -> u64; - } - } - pub mod DamageModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29DamageModule__add_damage_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn add_damage( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25DamageModule__damage_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn damage(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38DamageModule__end_damage_info_log_implEPNS_26BattleObjectModuleAccessorE"] - pub fn end_damage_info_log(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23DamageModule__heal_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn heal(arg1: u64, arg2: f32, arg3: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30DamageModule__init_damage_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn init_damage(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33DamageModule__is_capture_cut_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn is_capture_cut(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33DamageModule__is_damage_lock_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_damage_lock(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46DamageModule__is_no_reaction_mode_perfect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_no_reaction_mode_perfect(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30DamageModule__is_paralyze_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_paralyze(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47DamageModule__overwrite_log_reaction_frame_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn overwrite_log_reaction_frame(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27DamageModule__reaction_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn reaction(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48DamageModule__reset_no_reaction_mode_status_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_no_reaction_mode_status(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36DamageModule__set_attacker_info_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn set_attacker_info(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35DamageModule__set_critical_hit_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_critical_hit(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34DamageModule__set_damage_lock_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_damage_lock(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33DamageModule__set_damage_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_damage_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37DamageModule__set_damage_mul_2nd_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_damage_mul_2nd(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35DamageModule__set_force_damage_implEPNS_26BattleObjectModuleAccessorEjRKN3phx8Vector3fEiibbbb"] - pub fn set_force_damage( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: skyline_libc::c_int, - arg5: skyline_libc::c_int, - arg6: bool, - arg7: bool, - arg8: bool, - arg9: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52DamageModule__set_force_damage_from_last_damage_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_force_damage_from_last_damage(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44DamageModule__set_ignore_capture_cut_no_implEPNS_26BattleObjectModuleAccessorEa"] - pub fn set_ignore_capture_cut_no( - arg1: u64, - arg2: skyline_libc::c_schar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47DamageModule__set_no_reaction_damage_power_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_no_reaction_damage_power(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46DamageModule__set_no_reaction_mode_status_implEPNS_26BattleObjectModuleAccessorENS_20DamageNoReactionModeEffi"] - pub fn set_no_reaction_mode_status( - arg1: u64, - damageNoReactionMode: skyline_libc::c_int, - arg2: f32, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44DamageModule__set_no_reaction_no_effect_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_reaction_no_effect(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39DamageModule__set_reaction_mul_2nd_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_reaction_mul_2nd(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24DamageModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40DamageModule__start_damage_info_log_implEPNS_26BattleObjectModuleAccessorE"] - pub fn start_damage_info_log(arg1: u64) -> u64; - } - } - pub mod CatchModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35CatchModule__capture_object_id_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn capture_object_id(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CatchModule__capture_pos_x_diff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn capture_pos_x_diff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CatchModule__catch_cut_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn catch_cut(arg1: u64, arg2: bool, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30CatchModule__check_damage_implEPNS_26BattleObjectModuleAccessorE"] - pub fn check_damage(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CatchModule__cling_cut_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn cling_cut(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26CatchModule__is_catch_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_catch(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CatchModule__set_catch_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn set_catch(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CatchModule__set_send_cut_event_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_send_cut_event(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34CatchModule__update_pos_cling_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_pos_cling(arg1: u64) -> u64; - } - } - pub mod CaptureModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CaptureModule__capture_implEPNS_26BattleObjectModuleAccessorEjibi"] - pub fn capture( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31CaptureModule__capture_cut_implEPNS_26BattleObjectModuleAccessorEbbb"] - pub fn capture_cut( - arg1: u64, - arg2: bool, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50CaptureModule__capture_to_catch_node_pos_diff_implEPNS_26BattleObjectModuleAccessorE"] - pub fn capture_to_catch_node_pos_diff(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CaptureModule__catch_node_pos_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn catch_node_pos_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32CaptureModule__check_damage_implEPNS_26BattleObjectModuleAccessorEiff"] - pub fn check_damage( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39CaptureModule__check_damage_thrown_implEPNS_26BattleObjectModuleAccessorE"] - pub fn check_damage_thrown(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30CaptureModule__is_capture_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_capture(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37CaptureModule__is_catch_hit_stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_catch_hit_stop(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38CaptureModule__is_ignore_distance_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_ignore_distance(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35CaptureModule__is_motion_hi_lw_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_motion_hi_lw(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CaptureModule__is_thrown_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_thrown(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CaptureModule__is_thrown_finish_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_thrown_finish(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26CaptureModule__motion_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn motion( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CaptureModule__motion_lw_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn motion_lw( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33CaptureModule__motion_offset_implEPNS_26BattleObjectModuleAccessorE"] - pub fn motion_offset(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CaptureModule__motion_offset_lw_implEPNS_26BattleObjectModuleAccessorE"] - pub fn motion_offset_lw(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31CaptureModule__node_offset_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn node_offset(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CaptureModule__set_nodes_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_f"] - pub fn set_nodes( - arg1: u64, - arg2: u64, - arg3: u64, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38CaptureModule__set_send_cut_event_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_send_cut_event(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26CaptureModule__thrown_implEPNS_26BattleObjectModuleAccessorE"] - pub fn thrown(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30CaptureModule__thrown_cut_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn thrown_cut(arg1: u64, arg2: bool, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35CaptureModule__update_node_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_node_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37CaptureModule__update_pos_thrown_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_pos_thrown(arg1: u64) -> u64; - } - } - pub mod PostureModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27PostureModule__add_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn add_pos(arg1: u64, arg2: *const root::Vector3f) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30PostureModule__add_pos_2d_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn add_pos_2d(arg1: u64, arg2: *const root::Vector2f) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30PostureModule__base_scale_implEPNS_26BattleObjectModuleAccessorE"] - pub fn base_scale(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28PostureModule__init_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEbb"] - pub fn init_pos( - arg1: u64, - arg2: *const root::Vector3f, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28PostureModule__init_rot_implEPNS_26BattleObjectModuleAccessorE"] - pub fn init_rot(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50PostureModule__is_rot_y_lr_different_inner_lr_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_rot_y_lr_different_inner_lr(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22PostureModule__lr_implEPNS_26BattleObjectModuleAccessorE"] - pub fn lr(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PostureModule__owner_scale_implEPNS_26BattleObjectModuleAccessorE"] - pub fn owner_scale(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23PostureModule__pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26PostureModule__pos_2d_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pos_2d(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__pos_x_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pos_x(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__pos_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pos_y(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__pos_z_implEPNS_26BattleObjectModuleAccessorE"] - pub fn pos_z(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28PostureModule__prev_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn prev_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PostureModule__prev_pos_2d_implEPNS_26BattleObjectModuleAccessorE"] - pub fn prev_pos_2d(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30PostureModule__reverse_lr_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reverse_lr(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23PostureModule__rot_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn rot(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__rot_x_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn rot_x(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__rot_y_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn rot_y(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28PostureModule__rot_y_lr_implEPNS_26BattleObjectModuleAccessorE"] - pub fn rot_y_lr(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__rot_z_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn rot_z(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25PostureModule__scale_implEPNS_26BattleObjectModuleAccessorE"] - pub fn scale(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26PostureModule__set_lr_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_lr(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35PostureModule__set_owner_scale_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_owner_scale(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27PostureModule__set_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn set_pos(arg1: u64, arg2: *const root::Vector3f) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30PostureModule__set_pos_2d_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn set_pos_2d(arg1: u64, arg2: *const root::Vector2f) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27PostureModule__set_rot_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn set_rot( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29PostureModule__set_scale_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_scale(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32PostureModule__set_stick_lr_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_stick_lr(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45PostureModule__set_sync_constraint_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn set_sync_constraint_joint(arg1: u64, arg2: u64) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35PostureModule__update_rot_y_lr_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_rot_y_lr(arg1: u64) -> u64; - } - } - pub mod ArticleModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ArticleModule__add_motion_2nd_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Effbf"] - pub fn add_motion_2nd( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: f32, - arg5: f32, - arg6: bool, - arg7: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38ArticleModule__add_motion_partial_implEPNS_26BattleObjectModuleAccessorEiiN3phx6Hash40Effbbfbbb"] - pub fn add_motion_partial( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: u64, - arg5: f32, - arg6: f32, - arg7: bool, - arg8: bool, - arg9: f32, - arg10: bool, - arg11: bool, - arg12: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ArticleModule__change_motion_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Ebf"] - pub fn change_motion( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: bool, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ArticleModule__change_status_implEPNS_26BattleObjectModuleAccessorEiiNS_22ArticleOperationTargetE"] - pub fn change_status( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ArticleModule__change_status_exist_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn change_status_exist( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ArticleModule__generate_article_implEPNS_26BattleObjectModuleAccessorEibi"] - pub fn generate_article( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ArticleModule__generate_article_enable_implEPNS_26BattleObjectModuleAccessorEibi"] - pub fn generate_article_enable( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46ArticleModule__generate_article_have_item_implEPNS_26BattleObjectModuleAccessorEiiN3phx6Hash40E"] - pub fn generate_article_have_item( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ArticleModule__get_active_num_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_active_num(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ArticleModule__get_article_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_article(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ArticleModule__get_joint_pos_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40ENS_22ArticleOperationTargetE"] - pub fn get_joint_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ArticleModule__get_joint_rotate_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40ENS_22ArticleOperationTargetE"] - pub fn get_joint_rotate( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24ArticleModule__have_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40ENS_22ArticleOperationTargetEjb"] - pub fn have( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - articleOperationTarget: skyline_libc::c_int, - arg4: root::uint, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ArticleModule__is_exist_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_exist(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ArticleModule__is_generatable_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_generatable(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ArticleModule__motion_kind_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetE"] - pub fn motion_kind( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ArticleModule__motion_kind_2nd_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetE"] - pub fn motion_kind_2nd( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26ArticleModule__remove_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetE"] - pub fn remove( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ArticleModule__remove_exist_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetE"] - pub fn remove_exist( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42ArticleModule__remove_exist_object_id_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn remove_exist_object_id(arg1: u64, arg2: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ArticleModule__set_flag_implEPNS_26BattleObjectModuleAccessorEibi"] - pub fn set_flag( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ArticleModule__set_float_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn set_float( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ArticleModule__set_frame_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_frame( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ArticleModule__set_frame_2nd_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_frame_2nd( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ArticleModule__set_item_action_implEPNS_26BattleObjectModuleAccessorEiif"] - pub fn set_item_action( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ArticleModule__set_pos_implEPNS_26BattleObjectModuleAccessorEiN3phx8Vector3fE"] - pub fn set_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ArticleModule__set_rate_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_rate( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ArticleModule__set_visibility_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40ES4_NS_22ArticleOperationTargetE"] - pub fn set_visibility( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: u64, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ArticleModule__set_visibility_whole_implEPNS_26BattleObjectModuleAccessorEibNS_22ArticleOperationTargetE"] - pub fn set_visibility_whole( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - articleOperationTarget: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ArticleModule__set_weight_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_weight( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25ArticleModule__shoot_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetEb"] - pub fn shoot( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ArticleModule__shoot_exist_implEPNS_26BattleObjectModuleAccessorEiNS_22ArticleOperationTargetEb"] - pub fn shoot_exist( - arg1: u64, - arg2: skyline_libc::c_int, - articleOperationTarget: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - } - pub mod ColorBlendModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ColorBlendModule__cancel_main_color_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn cancel_main_color( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind57ColorBlendModule__set_disable_camera_depth_influence_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_disable_camera_depth_influence( - arg1: u64, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ColorBlendModule__set_enable_flash_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_enable_flash(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48ColorBlendModule__set_last_attack_direction_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn set_last_attack_direction( - arg1: u64, - arg2: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ColorBlendModule__set_main_color_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector4fES6_ffib"] - pub fn set_main_color( - arg1: u64, - arg2: *const root::Vector4f, - arg3: *const root::Vector4f, - arg4: f32, - arg5: f32, - arg6: skyline_libc::c_int, - arg7: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ColorBlendModule__set_shadow_bloom_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_shadow_bloom(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - } - pub mod SoundModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40SoundModule__get_common_sound_label_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn get_common_sound_label(arg1: u64, arg2: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SoundModule__get_se_vol_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_se_vol(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SoundModule__is_playing_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_playing(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35SoundModule__is_playing_status_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn is_playing_status(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25SoundModule__play_se_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40EbbbbNS_11SoundModule8enSETypeE"] - pub fn play_se( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: bool, - arg5: bool, - arg6: bool, - enSEType: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30SoundModule__play_se_no3d_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebb"] - pub fn play_se_no3d( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29SoundModule__play_se_pos_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fEbb"] - pub fn play_se_pos( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31SoundModule__play_sequence_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebb"] - pub fn play_sequence( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33SoundModule__play_status_bgm_implEPNS_26BattleObjectModuleAccessorENS_15enStatusBGMTypeE"] - pub fn play_status_bgm( - arg1: u64, - enStatusBGMType: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32SoundModule__play_status_se_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ebbb"] - pub fn play_status_se( - arg1: u64, - arg2: u64, - arg3: bool, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35SoundModule__set_auto_se_pitch_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_auto_se_pitch(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48SoundModule__set_continue_se_at_game_finish_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_continue_se_at_game_finish( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46SoundModule__set_gamespeed_se_calibration_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_gamespeed_se_calibration(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38SoundModule__set_play_hit_se_flag_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_play_hit_se_flag(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34SoundModule__set_play_inhivit_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ej"] - pub fn set_play_inhivit( - arg1: u64, - arg2: u64, - arg3: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34SoundModule__set_position_sub_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn set_position_sub( - arg1: u64, - arg2: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31SoundModule__set_remain_se_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_remain_se(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35SoundModule__set_se_pitch_cent_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ef"] - pub fn set_se_pitch_cent( - arg1: u64, - arg2: u64, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36SoundModule__set_se_pitch_ratio_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ef"] - pub fn set_se_pitch_ratio( - arg1: u64, - arg2: u64, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37SoundModule__set_se_pitch_status_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_se_pitch_status(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44SoundModule__set_se_pitch_status_handle_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_se_pitch_status_handle( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SoundModule__set_se_vol_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn set_se_vol( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31SoundModule__set_se_vol_db_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn set_se_vol_db( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32SoundModule__set_takeout_se_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn set_takeout_se(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25SoundModule__stop_se_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ej"] - pub fn stop_se(arg1: u64, arg2: u64, arg3: root::uint) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29SoundModule__stop_se_all_implEPNS_26BattleObjectModuleAccessorEjbb"] - pub fn stop_se_all( - arg1: u64, - arg2: root::uint, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32SoundModule__stop_se_handle_implEPNS_26BattleObjectModuleAccessorEij"] - pub fn stop_se_handle( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32SoundModule__stop_status_se_implEPNS_26BattleObjectModuleAccessorE"] - pub fn stop_status_se(arg1: u64) -> u64; - } - } - pub mod StopModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32StopModule__cancel_hit_stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn cancel_hit_stop(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34StopModule__cancel_other_stop_implEPNS_26BattleObjectModuleAccessorENS_13StopOtherKindE"] - pub fn cancel_other_stop( - arg1: u64, - stopOtherKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40StopModule__get_hit_stop_real_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_hit_stop_real_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26StopModule__is_damage_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_damage(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23StopModule__is_hit_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_hit(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24StopModule__is_stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_stop(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35StopModule__set_hit_stop_frame_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_hit_stop_frame( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30StopModule__set_link_stop_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_link_stop(arg1: u64, arg2: bool, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31StopModule__set_other_stop_implEPNS_26BattleObjectModuleAccessorEiNS_13StopOtherKindE"] - pub fn set_other_stop( - arg1: u64, - arg2: skyline_libc::c_int, - stopOtherKind: skyline_libc::c_int, - ) -> u64; - } - } - pub mod ShakeModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ShakeModule__disable_offset_implEPNS_26BattleObjectModuleAccessorE"] - pub fn disable_offset(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ShakeModule__enable_offset_implEPNS_26BattleObjectModuleAccessorERN3phx8Vector3fE"] - pub fn enable_offset(arg1: u64, arg2: *mut root::Vector3f) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24ShakeModule__extend_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn extend( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26ShakeModule__is_shake_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_shake(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21ShakeModule__req_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40EibRKNS3_8Vector2fEffbb"] - pub fn req( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: *const root::Vector2f, - arg6: f32, - arg7: f32, - arg8: bool, - arg9: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ShakeModule__req_time_scale_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40EibRKNS3_8Vector2fEffbbif"] - pub fn req_time_scale( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: *const root::Vector2f, - arg6: f32, - arg7: f32, - arg8: bool, - arg9: bool, - arg10: skyline_libc::c_int, - arg11: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ShakeModule__set_axis_xy_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn set_axis_xy_kind( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ShakeModule__set_scale_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ef"] - pub fn set_scale_kind(arg1: u64, arg2: u64, arg3: f32) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22ShakeModule__stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn stop(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ShakeModule__stop_kind_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn stop_kind(arg1: u64, arg2: u64) -> u64; - } - } - pub mod ShieldModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ShieldModule__set_hit_stop_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_hit_stop_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ShieldModule__set_shield_type_implEPNS_26BattleObjectModuleAccessorENS_10ShieldTypeEii"] - pub fn set_shield_type( - arg1: u64, - shieldType: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ShieldModule__set_status_implEPNS_26BattleObjectModuleAccessorEiNS_12ShieldStatusEi"] - pub fn set_status( - arg1: u64, - arg2: skyline_libc::c_int, - shieldStatus: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - } - pub mod SlopeModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30SlopeModule__floor_diff_l_implEPNS_26BattleObjectModuleAccessorE"] - pub fn floor_diff_l(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30SlopeModule__floor_diff_r_implEPNS_26BattleObjectModuleAccessorE"] - pub fn floor_diff_r(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40SlopeModule__update_model_top_angle_implEPNS_26BattleObjectModuleAccessorE"] - pub fn update_model_top_angle(arg1: u64) -> u64; - } - } - pub mod ShadowModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ShadowModule__set_draw_implEPNS_26BattleObjectModuleAccessorENS_14ShadowDrawFlagEb"] - pub fn set_draw( - arg1: u64, - shadowDrawFlag: skyline_libc::c_int, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ShadowModule__set_draw_status_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_draw_status(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ShadowModule__set_offset_y_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_offset_y(arg1: u64, arg2: f32) -> u64; - } - } - pub mod SlowModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22SlowModule__clear_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SlowModule__clear_whole_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_whole(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22SlowModule__frame_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn frame(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29SlowModule__is_prev_skip_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_prev_skip(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24SlowModule__is_skip_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_skip(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24SlowModule__is_slow_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_slow(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21SlowModule__rate_implEPNS_26BattleObjectModuleAccessorE"] - pub fn rate(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35SlowModule__rate_ignore_effect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn rate_ignore_effect(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind20SlowModule__set_implEPNS_26BattleObjectModuleAccessorEiiibj"] - pub fn set( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: skyline_libc::c_int, - arg5: bool, - arg6: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26SlowModule__set_whole_implEPNS_26BattleObjectModuleAccessorEhi"] - pub fn set_whole( - arg1: u64, - arg2: skyline_libc::c_uchar, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SlowModule__whole_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn whole_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26SlowModule__whole_mag_implEPNS_26BattleObjectModuleAccessorE"] - pub fn whole_mag(arg1: u64) -> u64; - } - } - pub mod TurnModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25TurnModule__end_turn_implEPNS_26BattleObjectModuleAccessorE"] - pub fn end_turn(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26TurnModule__is_extern_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_extern(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24TurnModule__is_turn_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_turn(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32TurnModule__is_turn_after90_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_turn_after90(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27TurnModule__ry_reverse_implEPNS_26BattleObjectModuleAccessorE"] - pub fn ry_reverse(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38TurnModule__set_omit_intermediate_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_omit_intermediate(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25TurnModule__set_turn_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efbbb"] - pub fn set_turn( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: bool, - arg5: bool, - arg6: bool, - ) -> u64; - } - } - pub mod VisibilityModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32VisibilityModule__get_whole_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_whole(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33VisibilityModule__is_visible_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_visible(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49VisibilityModule__reset_status_default_int64_implEPNS_26BattleObjectModuleAccessorEl"] - pub fn reset_status_default_int64( - arg1: u64, - arg2: root::s64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26VisibilityModule__set_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_"] - pub fn set(arg1: u64, arg2: u64, arg3: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34VisibilityModule__set_default_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn set_default(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38VisibilityModule__set_default_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_default_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40VisibilityModule__set_default_int64_implEPNS_26BattleObjectModuleAccessorEl"] - pub fn set_default_int64(arg1: u64, arg2: root::s64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32VisibilityModule__set_int64_implEPNS_26BattleObjectModuleAccessorEll"] - pub fn set_int64( - arg1: u64, - arg2: root::s64, - arg3: root::s64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49VisibilityModule__set_material_anim_priority_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn set_material_anim_priority( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42VisibilityModule__set_mesh_visibility_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eib"] - pub fn set_mesh_visibility( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48VisibilityModule__set_mesh_visibility_int64_implEPNS_26BattleObjectModuleAccessorElib"] - pub fn set_mesh_visibility_int64( - arg1: u64, - arg2: root::s64, - arg3: skyline_libc::c_int, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41VisibilityModule__set_status_default_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ES4_"] - pub fn set_status_default( - arg1: u64, - arg2: u64, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47VisibilityModule__set_status_default_int64_implEPNS_26BattleObjectModuleAccessorEll"] - pub fn set_status_default_int64( - arg1: u64, - arg2: root::s64, - arg3: root::s64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32VisibilityModule__set_whole_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_whole(arg1: u64, arg2: bool) -> u64; - } - } - pub mod TeamModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28TeamModule__hit_team_no_implEPNS_26BattleObjectModuleAccessorE"] - pub fn hit_team_no(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47TeamModule__metamon_owner_fighter_entry_id_implEPNS_26BattleObjectModuleAccessorE"] - pub fn metamon_owner_fighter_entry_id(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29TeamModule__set_hit_team_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_hit_team(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25TeamModule__set_team_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_team( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34TeamModule__set_team_owner_id_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn set_team_owner_id(arg1: u64, arg2: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32TeamModule__set_team_second_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_team_second(arg1: u64, arg2: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24TeamModule__team_no_implEPNS_26BattleObjectModuleAccessorE"] - pub fn team_no(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30TeamModule__team_owner_id_implEPNS_26BattleObjectModuleAccessorE"] - pub fn team_owner_id(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31TeamModule__team_second_no_implEPNS_26BattleObjectModuleAccessorE"] - pub fn team_second_no(arg1: u64) -> u64; - } - } - pub mod SearchModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24SearchModule__clear_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn clear(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SearchModule__clear_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34SearchModule__enable_safe_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_safe_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28SearchModule__is_search_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_search(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29SearchModule__set_offset_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn set_offset( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27SearchModule__set_size_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_size( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30SearchModule__set_sync_lr_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sync_lr(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38SearchModule__set_target_opponent_implEPNS_26BattleObjectModuleAccessorEiiij"] - pub fn set_target_opponent( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: skyline_libc::c_int, - arg5: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24SearchModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - } - pub mod ReflectorModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ReflectorModule__is_shield_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn is_shield( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ReflectorModule__set_no_team_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_team(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ReflectorModule__set_status_implEPNS_26BattleObjectModuleAccessorEiNS_12ShieldStatusEi"] - pub fn set_status( - arg1: u64, - arg2: skyline_libc::c_int, - shieldStatus: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ReflectorModule__set_status_all_implEPNS_26BattleObjectModuleAccessorENS_12ShieldStatusEi"] - pub fn set_status_all( - arg1: u64, - shieldStatus: skyline_libc::c_int, - arg2: skyline_libc::c_int, - ) -> u64; - } - } - pub mod ReflectModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ReflectModule__is_reflect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_reflect(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ReflectModule__object_id_implEPNS_26BattleObjectModuleAccessorE"] - pub fn object_id(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ReflectModule__reset_info_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_info(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ReflectModule__speed_mul_implEPNS_26BattleObjectModuleAccessorE"] - pub fn speed_mul(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ReflectModule__team_no_implEPNS_26BattleObjectModuleAccessorE"] - pub fn team_no(arg1: u64) -> u64; - } - } - pub mod PhysicsModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41PhysicsModule__get_2nd_active_length_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_2nd_active_length(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43PhysicsModule__get_2nd_active_node_num_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_2nd_active_node_num(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37PhysicsModule__get_2nd_joint_num_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_2nd_joint_num(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36PhysicsModule__get_2nd_node_num_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_2nd_node_num(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PhysicsModule__get_2nd_pos_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_2nd_pos(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33PhysicsModule__get_2nd_speed_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_2nd_speed(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49PhysicsModule__get_2nd_touch_ground_line_num_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_2nd_touch_ground_line_num( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39PhysicsModule__get_ik_end_joint_id_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_ik_end_joint_id( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PhysicsModule__reset_swing_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_swing(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43PhysicsModule__set_2nd_active_node_num_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_active_node_num(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42PhysicsModule__set_2nd_air_resistance_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_air_resistance(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38PhysicsModule__set_2nd_back_speed_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_back_speed(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42PhysicsModule__set_2nd_collision_size_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_2nd_collision_size( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45PhysicsModule__set_2nd_disable_collision_implEPNS_26BattleObjectModuleAccessorEjb"] - pub fn set_2nd_disable_collision( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35PhysicsModule__set_2nd_end_pos_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fES6_"] - pub fn set_2nd_end_pos( - arg1: u64, - arg2: *const root::Vector3f, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32PhysicsModule__set_2nd_flip_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_2nd_flip(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35PhysicsModule__set_2nd_gravity_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_gravity(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34PhysicsModule__set_2nd_length_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_2nd_length( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40PhysicsModule__set_2nd_node_num_max_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_2nd_node_num_max( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PhysicsModule__set_2nd_pos_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn set_2nd_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45PhysicsModule__set_2nd_restitution_range_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_restitution_range(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44PhysicsModule__set_2nd_restitution_rate_implEPNS_26BattleObjectModuleAccessorEff"] - pub fn set_2nd_restitution_rate( - arg1: u64, - arg2: f32, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46PhysicsModule__set_2nd_restitution_rate_2_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_2nd_restitution_rate_2( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34PhysicsModule__set_2nd_status_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_2nd_status(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44PhysicsModule__set_2nd_water_resistance_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_2nd_water_resistance(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35PhysicsModule__set_2nd_z_range_implEPNS_26BattleObjectModuleAccessorEff"] - pub fn set_2nd_z_range(arg1: u64, arg2: f32, arg3: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51PhysicsModule__set_enable_floor_collision_line_implEPNS_26BattleObjectModuleAccessorEPNS_19GroundCollisionLineE"] - pub fn set_enable_floor_collision_line( - arg1: u64, - arg2: *mut skyline_libc::c_void, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26PhysicsModule__set_ik_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_ik( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37PhysicsModule__set_ik_target_pos_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fES6_"] - pub fn set_ik_target_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - arg4: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42PhysicsModule__set_reflect_param_ceil_implEPNS_26BattleObjectModuleAccessorEfff"] - pub fn set_reflect_param_ceil( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43PhysicsModule__set_reflect_param_floor_implEPNS_26BattleObjectModuleAccessorEfff"] - pub fn set_reflect_param_floor( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42PhysicsModule__set_reflect_param_wall_implEPNS_26BattleObjectModuleAccessorEfff"] - pub fn set_reflect_param_wall( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50PhysicsModule__set_swing_ground_collision_all_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_swing_ground_collision_all(arg1: u64, arg2: bool) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40PhysicsModule__set_swing_joint_name_implEPNS_26BattleObjectModuleAccessorEbN3phx6Hash40Eb"] - pub fn set_swing_joint_name( - arg1: u64, - arg2: bool, - arg3: u64, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39PhysicsModule__set_swing_only_anim_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_swing_only_anim(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34PhysicsModule__set_swing_rate_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_swing_rate(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37PhysicsModule__set_swing_rebirth_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_swing_rebirth(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43PhysicsModule__set_swing_special_state_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_swing_special_state( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31PhysicsModule__stop_charge_implEPNS_26BattleObjectModuleAccessorE"] - pub fn stop_charge(arg1: u64) -> u64; - } - } - pub mod MotionAnimcmdModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44MotionAnimcmdModule__call_script_single_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Ei"] - pub fn call_script_single( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind58MotionAnimcmdModule__change_script_motion_line_single_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Ei"] - pub fn change_script_motion_line_single( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind52MotionAnimcmdModule__change_script_motion_lines_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efbbfb"] - pub fn change_script_motion_lines( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: bool, - arg5: bool, - arg6: f32, - arg7: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind60MotionAnimcmdModule__change_script_motion_partial_lines_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efbfb"] - pub fn change_script_motion_partial_lines( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: bool, - arg5: f32, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50MotionAnimcmdModule__enable_skip_delay_update_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_skip_delay_update(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54MotionAnimcmdModule__exec_motion_lines_initialize_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn exec_motion_lines_initialize( - arg1: u64, - arg2: f32, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31MotionAnimcmdModule__flush_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn flush(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46MotionAnimcmdModule__flush_current_motion_implEPNS_26BattleObjectModuleAccessorE"] - pub fn flush_current_motion(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35MotionAnimcmdModule__set_sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sleep(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42MotionAnimcmdModule__set_sleep_effect_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sleep_effect(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40MotionAnimcmdModule__set_sleep_game_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sleep_game(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41MotionAnimcmdModule__set_sleep_sound_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_sleep_sound(arg1: u64, arg2: bool) -> u64; - } - } - pub mod ModelModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ModelModule__clear_joint_srt_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn clear_joint_srt(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ModelModule__disable_gold_eye_implEPNS_26BattleObjectModuleAccessorE"] - pub fn disable_gold_eye(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ModelModule__enable_gold_eye_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_gold_eye(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46ModelModule__joint_global_offset_from_top_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fE"] - pub fn joint_global_offset_from_top( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ModelModule__joint_global_position_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fEb"] - pub fn joint_global_position( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51ModelModule__joint_global_position_with_offset_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fERS5_b"] - pub fn joint_global_position_with_offset( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: *mut root::Vector3f, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ModelModule__joint_global_rotation_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fEb"] - pub fn joint_global_rotation( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ModelModule__joint_rotate_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERNS3_8Vector3fE"] - pub fn joint_rotate( - arg1: u64, - arg2: u64, - arg3: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23ModelModule__scale_implEPNS_26BattleObjectModuleAccessorE"] - pub fn scale(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25ModelModule__scale_z_implEPNS_26BattleObjectModuleAccessorE"] - pub fn scale_z(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ModelModule__set_alpha_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_alpha(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ModelModule__set_color_rgb_implEPNS_26BattleObjectModuleAccessorEfffNS_16MODEL_COLOR_TYPEE"] - pub fn set_color_rgb( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - MODEL_COLOR_TYPE: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ModelModule__set_depth_offset_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_depth_offset(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ModelModule__set_depth_stencil_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_depth_stencil( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ModelModule__set_joint_rotate_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fENS_23MotionNodeRotateComposeENS_21MotionNodeRotateOrderE"] - pub fn set_joint_rotate( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - motionNodeRotateCompose: skyline_libc::c_int, - motionNodeRotateOrder: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ModelModule__set_joint_scale_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fE"] - pub fn set_joint_scale( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31ModelModule__set_joint_srt_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fES7_S7_"] - pub fn set_joint_srt( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: *const root::Vector3f, - arg5: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ModelModule__set_joint_translate_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fEbb"] - pub fn set_joint_translate( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ModelModule__set_mesh_visibility_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn set_mesh_visibility( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ModelModule__set_render_offset_position_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fE"] - pub fn set_render_offset_position( - arg1: u64, - arg2: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ModelModule__set_rotation_order_implEPNS_26BattleObjectModuleAccessorENS_21MotionNodeRotateOrderE"] - pub fn set_rotation_order( - arg1: u64, - motionNodeRotateOrder: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ModelModule__set_scale_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_scale(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ModelModule__set_temporary_scale_z_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_temporary_scale_z(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54ModelModule__top_joint_global_position_from_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ERKNS3_8Vector3fERS5_"] - pub fn top_joint_global_position_from_joint( - arg1: u64, - arg2: u64, - arg3: *const root::Vector3f, - arg4: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ModelModule__virtual_joint_tra_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn virtual_joint_tra(arg1: u64, arg2: u64) -> u64; - } - } - pub mod ItemModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ItemModule__attach_item_implEPNS_26BattleObjectModuleAccessorENS_8ItemKindEib"] - pub fn attach_item( - arg1: u64, - itemKind: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30ItemModule__attach_item_2_implEPNS_26BattleObjectModuleAccessorEPNS_4ItemEb"] - pub fn attach_item_2(arg1: u64, item: u64, arg2: bool) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ItemModule__attach_item_instance_implEPNS_26BattleObjectModuleAccessorEPNS_4ItemEb"] - pub fn attach_item_instance( - arg1: u64, - item: u64, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26ItemModule__born_item_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn born_item(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ItemModule__drop_attach_group_implEPNS_26BattleObjectModuleAccessorEhff"] - pub fn drop_attach_group( - arg1: u64, - arg2: skyline_libc::c_uchar, - arg3: f32, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26ItemModule__drop_item_implEPNS_26BattleObjectModuleAccessorEffi"] - pub fn drop_item( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ItemModule__eject_attach_implEPNS_26BattleObjectModuleAccessorENS_8ItemKindEbb"] - pub fn eject_attach( - arg1: u64, - itemKind: skyline_libc::c_int, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32ItemModule__eject_have_item_implEPNS_26BattleObjectModuleAccessorEibb"] - pub fn eject_have_item( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33ItemModule__get_have_item_id_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_have_item_id( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ItemModule__get_have_item_kind_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_have_item_kind( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ItemModule__get_have_item_size_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_have_item_size( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36ItemModule__get_have_item_trait_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_have_item_trait( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ItemModule__get_pickable_item_kind_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_pickable_item_kind(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ItemModule__get_pickable_item_object_id_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_pickable_item_object_id(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ItemModule__get_pickable_item_size_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_pickable_item_size(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38ItemModule__get_shoot_item_bullet_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_shoot_item_bullet( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26ItemModule__have_item_implEPNS_26BattleObjectModuleAccessorENS_8ItemKindEiibb"] - pub fn have_item( - arg1: u64, - itemKind: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35ItemModule__have_item_instance_implEPNS_26BattleObjectModuleAccessorEPNS_4ItemEibbbb"] - pub fn have_item_instance( - arg1: u64, - item: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - arg5: bool, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29ItemModule__is_have_item_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_have_item(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44ItemModule__is_success_auto_pickup_item_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_success_auto_pickup_item(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ItemModule__is_success_pickup_item_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_success_pickup_item(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ItemModule__pickup_item_implEPNS_26BattleObjectModuleAccessorENS_8ItemSizeEiiNS_18QuickItemTreatTypeENS_20ItemPickupSearchModeE"] - pub fn pickup_item( - arg1: u64, - itemSize: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - itemQuickItemTreatType: skyline_libc::c_int, - itemPickupSearchMode: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ItemModule__remove_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn remove_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28ItemModule__remove_item_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn remove_item(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48ItemModule__reset_have_item_constraint_node_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn reset_have_item_constraint_node( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39ItemModule__set_attach_item_action_implEPNS_26BattleObjectModuleAccessorENS_8ItemKindEif"] - pub fn set_attach_item_action( - arg1: u64, - itemKind: skyline_libc::c_int, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43ItemModule__set_attach_item_visibility_implEPNS_26BattleObjectModuleAccessorEbh"] - pub fn set_attach_item_visibility( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ItemModule__set_change_status_event_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_change_status_event(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37ItemModule__set_have_item_action_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn set_have_item_action( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47ItemModule__set_have_item_constraint_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn set_have_item_constraint_joint( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40ItemModule__set_have_item_hold_anim_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_have_item_hold_anim( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ItemModule__set_have_item_scale_anim_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn set_have_item_scale_anim( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ItemModule__set_have_item_visibility_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_have_item_visibility( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ItemModule__shoot_item_bullet_implEPNS_26BattleObjectModuleAccessorEifi"] - pub fn shoot_item_bullet( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ItemModule__shoot_item_bullet_blanks_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn shoot_item_bullet_blanks( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41ItemModule__success_auto_pickup_item_implEPNS_26BattleObjectModuleAccessorE"] - pub fn success_auto_pickup_item(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27ItemModule__throw_item_implEPNS_26BattleObjectModuleAccessorEfffibf"] - pub fn throw_item( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: skyline_libc::c_int, - arg6: bool, - arg7: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45ItemModule__update_have_item_action_info_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn update_have_item_action_info( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25ItemModule__use_item_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn use_item( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34ItemModule__use_item_instance_implEPNS_26BattleObjectModuleAccessorEPNS_4ItemEb"] - pub fn use_item_instance( - arg1: u64, - item: u64, - arg2: bool, - ) -> u64; - } - } - pub mod InkPaintModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38InkPaintModule__set_special_paint_implEPNS_26BattleObjectModuleAccessorENS_16SpecialPaintKindE"] - pub fn set_special_paint( - arg1: u64, - specialPaintKind: skyline_libc::c_int, - ) -> u64; - } - } - pub mod HitModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33HitModule__cancel_xlu_global_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn cancel_xlu_global( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21HitModule__clean_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clean(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25HitModule__exist_log_implEPNS_26BattleObjectModuleAccessorEji"] - pub fn exist_log( - arg1: u64, - arg2: root::uint, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30HitModule__get_center_pos_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn get_center_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26HitModule__get_status_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn get_status( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32HitModule__get_total_status_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_total_status( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25HitModule__get_whole_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_whole(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31HitModule__set_check_catch_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_check_catch( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38HitModule__set_defense_mul_status_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_defense_mul_status(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32HitModule__set_hit_stop_mul_implEPNS_26BattleObjectModuleAccessorEfNS_16HitStopMulTargetEf"] - pub fn set_hit_stop_mul( - arg1: u64, - arg2: f32, - hitStopMulTarget: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43HitModule__set_invincible_frame_global_implEPNS_26BattleObjectModuleAccessorEibi"] - pub fn set_invincible_frame_global( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27HitModule__set_no_team_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_team(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26HitModule__set_status_implEPNS_26BattleObjectModuleAccessorEiNS_9HitStatusEi"] - pub fn set_status( - arg1: u64, - arg2: skyline_libc::c_int, - hitStatus: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30HitModule__set_status_all_implEPNS_26BattleObjectModuleAccessorENS_9HitStatusEi"] - pub fn set_status_all( - arg1: u64, - hitStatus: skyline_libc::c_int, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32HitModule__set_status_joint_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ENS_9HitStatusEi"] - pub fn set_status_joint( - arg1: u64, - arg2: u64, - hitStatus: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25HitModule__set_whole_implEPNS_26BattleObjectModuleAccessorENS_9HitStatusEi"] - pub fn set_whole( - arg1: u64, - hitStatus: skyline_libc::c_int, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36HitModule__set_xlu_frame_global_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn set_xlu_frame_global( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30HitModule__set_xlu_global_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_xlu_global(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21HitModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - } - pub mod ComboModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23ComboModule__count_implEPNS_26BattleObjectModuleAccessorE"] - pub fn count(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23ComboModule__reset_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind21ComboModule__set_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - } - pub mod CameraModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42CameraModule__add_camera_range_offset_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn add_camera_range_offset( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37CameraModule__end_final_zoom_out_implEPNS_26BattleObjectModuleAccessorE"] - pub fn end_final_zoom_out(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37CameraModule__exit_being_carried_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn exit_being_carried( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34CameraModule__exit_damage_fly_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn exit_damage_fly(arg1: u64, arg2: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CameraModule__exit_run_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn exit_run(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43CameraModule__get_camera_type_for_save_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_camera_type_for_save(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49CameraModule__get_camera_view_volume_z0_rect_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_camera_view_volume_z0_rect(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49CameraModule__get_internal_camera_target_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_internal_camera_target_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40CameraModule__get_main_camera_range_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_main_camera_range(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CameraModule__is_clip_in_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn is_clip_in(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28CameraModule__req_quake_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn req_quake(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32CameraModule__req_quake_pos_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn req_quake_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28CameraModule__reset_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_all(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37CameraModule__reset_camera_range_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn reset_camera_range( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40CameraModule__reset_main_camera_fov_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reset_main_camera_fov(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CameraModule__set_being_carried_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_being_carried( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42CameraModule__set_camera_range_offset_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector3fEi"] - pub fn set_camera_range_offset( - arg1: u64, - arg2: *const root::Vector3f, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34CameraModule__set_camera_type_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_camera_type(arg1: u64, arg2: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33CameraModule__set_damage_fly_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_damage_fly(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36CameraModule__set_enable_camera_implEPNS_26BattleObjectModuleAccessorEbi"] - pub fn set_enable_camera( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40CameraModule__set_enable_update_pos_implEPNS_26BattleObjectModuleAccessorEhi"] - pub fn set_enable_update_pos( - arg1: u64, - arg2: skyline_libc::c_uchar, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31CameraModule__set_priority_implEPNS_26BattleObjectModuleAccessorEhi"] - pub fn set_priority( - arg1: u64, - arg2: skyline_libc::c_uchar, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26CameraModule__set_run_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_run(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CameraModule__set_status_implEPNS_26BattleObjectModuleAccessorENS_12CameraStatusEi"] - pub fn set_status( - arg1: u64, - cameraStatus: skyline_libc::c_int, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28CameraModule__set_whole_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_whole(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29CameraModule__stop_quake_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn stop_quake(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31CameraModule__update_force_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fES6_"] - pub fn update_force( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - arg4: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26CameraModule__zoom_in_implEPNS_26BattleObjectModuleAccessorEiifRKN3phx8Vector2fEb"] - pub fn zoom_in( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: f32, - arg5: *const root::Vector2f, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27CameraModule__zoom_out_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn zoom_out(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - } - pub mod AttackModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__add_power_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn add_power( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__attack_data_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn attack_data( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24AttackModule__clear_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn clear(arg1: u64, arg2: skyline_libc::c_int, arg3: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__clear_all_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_all(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44AttackModule__clear_inflict_kind_status_implEPNS_26BattleObjectModuleAccessorE"] - pub fn clear_inflict_kind_status(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__enable_safe_pos_implEPNS_26BattleObjectModuleAccessorE"] - pub fn enable_safe_pos(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__get_attacker_attribute_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_attacker_attribute(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__get_offset2_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn get_offset2( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__get_power_implEPNS_26BattleObjectModuleAccessorEibfb"] - pub fn get_power( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: f32, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AttackModule__get_power_up_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_power_up(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24AttackModule__group_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn group(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AttackModule__hit_absolute_implEPNS_26BattleObjectModuleAccessorEijRKN3phx8Vector3fEii"] - pub fn hit_absolute( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - arg4: *const root::Vector3f, - arg5: skyline_libc::c_int, - arg6: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__hit_absolute_joint_implEPNS_26BattleObjectModuleAccessorEijN3phx6Hash40Eii"] - pub fn hit_absolute_joint( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - arg4: u64, - arg5: skyline_libc::c_int, - arg6: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__init_attack_pos_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn init_attack_pos(arg1: u64, arg2: skyline_libc::c_int) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__is_attack_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn is_attack( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__is_attack_occur_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_attack_occur(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29AttackModule__is_hit_abs_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_hit_abs(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32AttackModule__is_infliction_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_infliction(arg1: u64, arg2: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__is_infliction_status_implEPNS_26BattleObjectModuleAccessorEj"] - pub fn is_infliction_status(arg1: u64, arg2: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__off_target_kind_implEPNS_26BattleObjectModuleAccessorEij"] - pub fn off_target_kind( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__part_size_implEPNS_26BattleObjectModuleAccessorE"] - pub fn part_size(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32AttackModule__power_mul_5th_implEPNS_26BattleObjectModuleAccessorE"] - pub fn power_mul_5th(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__power_mul_status_implEPNS_26BattleObjectModuleAccessorE"] - pub fn power_mul_status(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_accept_no_lr_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_accept_no_lr( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_add_reaction_frame_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_add_reaction_frame( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AttackModule__set_attack_2_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn set_attack_2( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind47AttackModule__set_attack_composition_speed_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_attack_composition_speed( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40AttackModule__set_attack_height_all_implEPNS_26BattleObjectModuleAccessorENS_12AttackHeightEb"] - pub fn set_attack_height_all( - arg1: u64, - attackHeight: skyline_libc::c_int, - arg2: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_attack_keep_rumble_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_attack_keep_rumble( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_attack_level_implEPNS_26BattleObjectModuleAccessorEih"] - pub fn set_attack_level( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48AttackModule__set_attack_reference_joint_id_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40ENS_19AttackDirectionAxisES5_S5_"] - pub fn set_attack_reference_joint_id( - arg1: u64, - arg2: u64, - attackDirectionAxis1: skyline_libc::c_int, - attackDirectionAxis2: skyline_libc::c_int, - attackDirectionAxis3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_attack_scale_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_attack_scale(arg1: u64, arg2: f32, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__set_base_offset_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn set_base_offset( - arg1: u64, - arg2: *const root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48AttackModule__set_captured_same_time_attack_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_captured_same_time_attack( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33AttackModule__set_catch_only_implEPNS_26BattleObjectModuleAccessorEibb"] - pub fn set_catch_only( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_catch_only_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_catch_only_all(arg1: u64, arg2: bool, arg3: bool) - -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_constraint_pos_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_constraint_pos(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49AttackModule__set_critical_attack_damage_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_critical_attack_damage_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51AttackModule__set_critical_attack_reaction_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_critical_attack_reaction_mul( - arg1: u64, - arg2: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45AttackModule__set_customize_attack_ratio_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_customize_attack_ratio(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46AttackModule__set_damage_effect_mul_scale_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_damage_effect_mul_scale(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_damage_shake_scale_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_damage_shake_scale(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42AttackModule__set_final_finish_cut_in_implEPNS_26BattleObjectModuleAccessorEibbfb"] - pub fn set_final_finish_cut_in( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - arg5: f32, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_force_reaction_implEPNS_26BattleObjectModuleAccessorEibb"] - pub fn set_force_reaction( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_ignore_just_shield_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_ignore_just_shield(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AttackModule__set_indirect_info_implEPNS_26BattleObjectModuleAccessorEjibb"] - pub fn set_indirect_info( - arg1: u64, - arg2: root::uint, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32AttackModule__set_ink_value_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_ink_value( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_invalid_invincible_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_invalid_invincible( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__set_invalid_xlu_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_invalid_xlu( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_is_critical_attack_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_is_critical_attack(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27AttackModule__set_lerp_implEPNS_26BattleObjectModuleAccessorEiii"] - pub fn set_lerp( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33AttackModule__set_lerp_ratio_implEPNS_26BattleObjectModuleAccessorEfi"] - pub fn set_lerp_ratio( - arg1: u64, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AttackModule__set_lr_check_back_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_lr_check_back( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_lr_check_front_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_lr_check_front( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40AttackModule__set_lr_check_front_lr_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn set_lr_check_front_lr( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__set_nearest_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_nearest( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46AttackModule__set_no_damage_fly_smoke_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_no_damage_fly_smoke_all( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42AttackModule__set_no_damage_orbit_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_no_damage_orbit_all( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__set_no_dead_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_no_dead_all(arg1: u64, arg2: bool, arg3: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_no_finish_camera_implEPNS_26BattleObjectModuleAccessorEibb"] - pub fn set_no_finish_camera( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42AttackModule__set_no_hop_opponent_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_no_hop_opponent_all( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51AttackModule__set_no_squat_damage_reaction_mul_implEPNS_26BattleObjectModuleAccessorEibb"] - pub fn set_no_squat_damage_reaction_mul( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__set_no_team_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_team(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_no_uniq_effect_all_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn set_no_uniq_effect_all( - arg1: u64, - arg2: bool, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_no_world_scale_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_no_world_scale(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27AttackModule__set_node_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40E"] - pub fn set_node( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29AttackModule__set_offset_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn set_offset( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__set_offset2_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector3fE"] - pub fn set_offset2( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42AttackModule__set_optional_hit_effect_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40E"] - pub fn set_optional_hit_effect( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_optional_hit_sound_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40E"] - pub fn set_optional_hit_sound( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AttackModule__set_overlap_hit_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_overlap_hit(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_poison_param_implEPNS_26BattleObjectModuleAccessorEiiifb"] - pub fn set_poison_param( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: skyline_libc::c_int, - arg5: f32, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__set_power_implEPNS_26BattleObjectModuleAccessorEifb"] - pub fn set_power( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_power_add_status_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_add_status(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind32AttackModule__set_power_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AttackModule__set_power_mul_5th_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_mul_5th(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_power_mul_status_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_mul_status(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind40AttackModule__set_power_speed_limit_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_speed_limit(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41AttackModule__set_power_speed_status_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_speed_status(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AttackModule__set_power_up_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_power_up(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_reaction_add_implEPNS_26BattleObjectModuleAccessorEiib"] - pub fn set_reaction_add( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38AttackModule__set_reaction_effect_implEPNS_26BattleObjectModuleAccessorEiib"] - pub fn set_reaction_effect( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__set_reaction_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_reaction_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_reaction_mul_2nd_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_reaction_mul_2nd(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_reaction_mul_3rd_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_reaction_mul_3rd(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_reflect_attack_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_reflect_attack(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_serial_hit_frame_implEPNS_26BattleObjectModuleAccessorEij"] - pub fn set_serial_hit_frame( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AttackModule__set_set_off_implEPNS_26BattleObjectModuleAccessorEiNS_16AttackSetOffKindE"] - pub fn set_set_off( - arg1: u64, - arg2: skyline_libc::c_int, - attackSetOffKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AttackModule__set_shield_stiff_mul_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn set_shield_stiff_mul(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27AttackModule__set_size_implEPNS_26BattleObjectModuleAccessorEif"] - pub fn set_size( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AttackModule__set_special_paint_implEPNS_26BattleObjectModuleAccessorEiNS_16SpecialPaintKindE"] - pub fn set_special_paint( - arg1: u64, - arg2: skyline_libc::c_int, - specialPaintKind: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__set_speed_implEPNS_26BattleObjectModuleAccessorERKN3phx8Vector2fE"] - pub fn set_speed(arg1: u64, arg2: *const root::Vector2f) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38AttackModule__set_target_category_implEPNS_26BattleObjectModuleAccessorEij"] - pub fn set_target_category( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: root::uint, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AttackModule__set_vec_target_pos_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40ERKNS3_8Vector2fEjb"] - pub fn set_vec_target_pos( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: *const root::Vector2f, - arg5: root::uint, - arg6: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind29AttackModule__set_vector_implEPNS_26BattleObjectModuleAccessorEiib"] - pub fn set_vector( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - arg4: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AttackModule__set_whole_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_whole( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind35AttackModule__shield_stiff_mul_implEPNS_26BattleObjectModuleAccessorE"] - pub fn shield_stiff_mul(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind23AttackModule__size_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn size(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind24AttackModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind33AttackModule__sleep_partialy_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn sleep_partialy( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - } - pub mod AreaModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind28AreaModule__enable_area_implEPNS_26BattleObjectModuleAccessorEibi"] - pub fn enable_area( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - arg4: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27AreaModule__erase_wind_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn erase_wind(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AreaModule__get_area_contact_count_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn get_area_contact_count( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind37AreaModule__get_area_contact_log_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn get_area_contact_log( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind43AreaModule__get_area_contact_target_id_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn get_area_contact_target_id( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AreaModule__get_water_surface_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_water_surface_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind34AreaModule__get_water_task_id_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_water_task_id(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AreaModule__is_enable_area_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_enable_area(arg1: u64, arg2: skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind39AreaModule__is_exist_area_instance_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn is_exist_area_instance( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind25AreaModule__is_water_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_water(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22AreaModule__layer_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn layer(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind27AreaModule__reset_area_implEPNS_26BattleObjectModuleAccessorEi"] - pub fn reset_area(arg1: u64, arg2: skyline_libc::c_int) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AreaModule__set_area_shape_aabb_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector2fES6_"] - pub fn set_area_shape_aabb( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector2f, - arg4: *const root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38AreaModule__set_area_shape_circle_implEPNS_26BattleObjectModuleAccessorEiRKN3phx8Vector2fEf"] - pub fn set_area_shape_circle( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: *const root::Vector2f, - arg4: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind36AreaModule__set_area_shape_type_implEPNS_26BattleObjectModuleAccessorEih"] - pub fn set_area_shape_type( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_uchar, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38AreaModule__set_auto_layer_update_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_auto_layer_update(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind30AreaModule__set_center_x0_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn set_center_x0( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26AreaModule__set_layer_implEPNS_26BattleObjectModuleAccessorEii"] - pub fn set_layer( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind26AreaModule__set_whole_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_whole(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind22AreaModule__sleep_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn sleep(arg1: u64, arg2: bool) -> u64; - } - } - pub mod AbsorberModule { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind31AbsorberModule__set_status_implEPNS_26BattleObjectModuleAccessorEiNS_12ShieldStatusEi"] - pub fn set_status( - arg1: u64, - arg2: skyline_libc::c_int, - shieldStatus: skyline_libc::c_int, - arg3: skyline_libc::c_int, - ) -> u64; - } - } - pub mod FighterWorkModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind55FighterWorkModuleImpl__calc_escape_air_slide_param_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn calc_escape_air_slide_param(arg1: u64, arg2: f32) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind38FighterWorkModuleImpl__calc_param_implEPNS_26BattleObjectModuleAccessorEbb"] - pub fn calc_param(arg1: u64, arg2: bool, arg3: bool) -> u64; - } - } - pub mod FighterStopModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind49FighterStopModuleImpl__get_damage_stop_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_damage_stop_frame(arg1: u64) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind42FighterStopModuleImpl__is_damage_stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_damage_stop(arg1: u64) -> bool; - } - } - pub mod FighterStatusModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51FighterStatusModuleImpl__reset_log_action_info_implEPNS_26BattleObjectModuleAccessorEm"] - pub fn reset_log_action_info(arg1: u64, arg2: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind53FighterStatusModuleImpl__set_fighter_status_data_implEPNS_26BattleObjectModuleAccessorEbibbbmjjj"] - pub fn set_fighter_status_data( - arg1: u64, - arg2: bool, - arg3: skyline_libc::c_int, - arg4: bool, - arg5: bool, - arg6: bool, - arg7: u64, - arg8: u64, - arg9: u64, - arg10: u64, - ) -> u64; - } - } - pub mod FighterMotionModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind48FighterMotionModuleImpl__add_body_type_hash_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Ei"] - pub fn add_body_type_hash( - arg1: u64, - arg2: u64, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind59FighterMotionModuleImpl__add_motion_partial_kirby_copy_implEPNS_26BattleObjectModuleAccessorEiN3phx6Hash40Effbbfbbb"] - pub fn add_motion_partial_kirby_copy( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: u64, - arg4: f32, - arg5: f32, - arg6: bool, - arg7: bool, - arg8: f32, - arg9: bool, - arg10: bool, - arg11: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind74FighterMotionModuleImpl__change_motion_force_inherit_frame_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efff"] - pub fn change_motion_force_inherit_frame_kirby_copy( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind78FighterMotionModuleImpl__change_motion_inherit_frame_keep_rate_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efff"] - pub fn change_motion_inherit_frame_keep_rate_kirby_copy( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind68FighterMotionModuleImpl__change_motion_inherit_frame_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Efffbb"] - pub fn change_motion_inherit_frame_kirby_copy( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: bool, - arg7: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54FighterMotionModuleImpl__change_motion_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Effbfbb"] - pub fn change_motion_kirby_copy( - arg1: u64, - arg2: u64, - arg3: f32, - arg4: f32, - arg5: bool, - arg6: f32, - arg7: bool, - arg8: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind60FighterMotionModuleImpl__end_frame_from_hash_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn end_frame_from_hash_kirby_copy( - arg1: u64, - arg2: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind46FighterMotionModuleImpl__get_cancel_frame_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn get_cancel_frame( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind57FighterMotionModuleImpl__get_cancel_frame_kirby_copy_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40Eb"] - pub fn get_cancel_frame_kirby_copy( - arg1: u64, - arg2: u64, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind51FighterMotionModuleImpl__is_valid_cancel_frame_implEPNS_26BattleObjectModuleAccessorEib"] - pub fn is_valid_cancel_frame( - arg1: u64, - arg2: skyline_libc::c_int, - arg3: bool, - ) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind61FighterMotionModuleImpl__motion_kind_kirby_copy_original_implEPNS_26BattleObjectModuleAccessorEN3phx6Hash40E"] - pub fn motion_kind_kirby_copy_original( - arg1: u64, - arg2: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind45FighterMotionModuleImpl__set_blend_waist_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn set_blend_waist(arg1: u64, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind64FighterMotionModuleImpl__set_frame_sync_anim_cmd_kirby_copy_implEPNS_26BattleObjectModuleAccessorEfb"] - pub fn set_frame_sync_anim_cmd_kirby_copy( - arg1: u64, - arg2: f32, - arg3: bool, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind65FighterMotionModuleImpl__set_pause_motion_interpolation_stop_implEPNS_26BattleObjectModuleAccessorE"] - pub fn set_pause_motion_interpolation_stop(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind61FighterMotionModuleImpl__start_damage_stop_interpolation_implEPNS_26BattleObjectModuleAccessorEf"] - pub fn start_damage_stop_interpolation(arg1: u64, arg2: f32) - -> u64; - } - } - pub mod FighterControlModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind59FighterControlModuleImpl__check_hit_stop_delay_command_implEPNS_26BattleObjectModuleAccessorERN3phx8Vector2fE"] - pub fn check_hit_stop_delay_command( - arg1: u64, - arg2: *mut root::Vector2f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind59FighterControlModuleImpl__get_param_attack_hi4_flick_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_param_attack_hi4_flick_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind59FighterControlModuleImpl__get_param_attack_lw4_flick_y_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_param_attack_lw4_flick_y(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind54FighterControlModuleImpl__get_param_dash_s4_frame_implEPNS_26BattleObjectModuleAccessorE"] - pub fn get_param_dash_s4_frame(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind55FighterControlModuleImpl__is_enable_hit_stop_delay_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_enable_hit_stop_delay(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind60FighterControlModuleImpl__is_enable_hit_stop_delay_life_implEPNS_26BattleObjectModuleAccessorE"] - pub fn is_enable_hit_stop_delay_life(arg1: u64) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind55FighterControlModuleImpl__reserve_on_attack_button_implEPNS_26BattleObjectModuleAccessorE"] - pub fn reserve_on_attack_button(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind53FighterControlModuleImpl__update_attack_air_kind_implEPNS_26BattleObjectModuleAccessorEb"] - pub fn update_attack_air_kind(arg1: u64, arg2: bool) -> u64; - } - } - pub mod FighterAreaModuleImpl { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind50FighterAreaModuleImpl__enable_fix_jostle_area_implEPNS_26BattleObjectModuleAccessorEff"] - pub fn enable_fix_jostle_area( - arg1: u64, - arg2: f32, - arg3: f32, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind53FighterAreaModuleImpl__enable_fix_jostle_area_xy_implEPNS_26BattleObjectModuleAccessorEffff"] - pub fn enable_fix_jostle_area_xy( - arg1: u64, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - ) -> u64; - } - } - pub mod FighterManager { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind44FighterManager__get_fighter_information_implEPNS_14FighterManagerENS_14FighterEntryIDE"] - pub fn get_fighter_information( - arg1: u64, - arg2: skyline_libc::c_int, - ) -> u64; - } - } - pub mod FighterInformation { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app8lua_bind41FighterInformation__is_operation_cpu_implEPNS_18FighterInformationE"] - pub fn is_operation_cpu(arg1: u64) -> bool; - } - } - } - pub mod sv_animcmd { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18ADD_SPEED_NO_LIMITEP9lua_State"] - pub fn ADD_SPEED_NO_LIMIT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26AFTER_IMAGE4_ON_WORK_arg29EP9lua_State"] - pub fn AFTER_IMAGE4_ON_WORK_arg29(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21AFTER_IMAGE4_ON_arg29EP9lua_State"] - pub fn AFTER_IMAGE4_ON_arg29(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15AFTER_IMAGE_OFFEP9lua_State"] - pub fn AFTER_IMAGE_OFF(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13AREA_WIND_2NDEP9lua_State"] - pub fn AREA_WIND_2ND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17AREA_WIND_2ND_RADEP9lua_State"] - pub fn AREA_WIND_2ND_RAD(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22AREA_WIND_2ND_RAD_arg9EP9lua_State"] - pub fn AREA_WIND_2ND_RAD_arg9(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19AREA_WIND_2ND_arg10EP9lua_State"] - pub fn AREA_WIND_2ND_arg10(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11ATK_HIT_ABSEP9lua_State"] - pub fn ATK_HIT_ABS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14ATK_LERP_RATIOEP9lua_State"] - pub fn ATK_LERP_RATIO(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd33ATK_NO_REACTION_SEARCH_WITCH_TIMEEP9lua_State"] - pub fn ATK_NO_REACTION_SEARCH_WITCH_TIME(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9ATK_POWEREP9lua_State"] - pub fn ATK_POWER(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd25ATK_SET_SHIELD_SETOFF_MULEP9lua_State"] - pub fn ATK_SET_SHIELD_SETOFF_MUL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30ATK_SET_SHIELD_SETOFF_MUL_arg3EP9lua_State"] - pub fn ATK_SET_SHIELD_SETOFF_MUL_arg3(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30ATK_SET_SHIELD_SETOFF_MUL_arg4EP9lua_State"] - pub fn ATK_SET_SHIELD_SETOFF_MUL_arg4(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30ATK_SET_SHIELD_SETOFF_MUL_arg5EP9lua_State"] - pub fn ATK_SET_SHIELD_SETOFF_MUL_arg5(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd6ATTACKEP9lua_State"] - pub fn ATTACK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10ATTACK_ABSEP9lua_State"] - pub fn ATTACK_ABS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19ATTACK_IGNORE_THROWEP9lua_State"] - pub fn ATTACK_IGNORE_THROW(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd49BACK_GROUND_EFFECT_STAGE_SET_HIDING_FOR_DIRECTIONEP9lua_State"] - pub fn BACK_GROUND_EFFECT_STAGE_SET_HIDING_FOR_DIRECTION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10BURN_COLOREP9lua_State"] - pub fn BURN_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16BURN_COLOR_FRAMEEP9lua_State"] - pub fn BURN_COLOR_FRAME(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17BURN_COLOR_NORMALEP9lua_State"] - pub fn BURN_COLOR_NORMAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17CAM_ZOOM_IN_FINALEP9lua_State"] - pub fn CAM_ZOOM_IN_FINAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23CAM_ZOOM_IN_FINAL_arg13EP9lua_State"] - pub fn CAM_ZOOM_IN_FINAL_arg13(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16CAM_ZOOM_IN_arg5EP9lua_State"] - pub fn CAM_ZOOM_IN_arg5(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16CAM_ZOOM_IN_arg6EP9lua_State"] - pub fn CAM_ZOOM_IN_arg6(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12CAM_ZOOM_OUTEP9lua_State"] - pub fn CAM_ZOOM_OUT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18CAM_ZOOM_OUT_FINALEP9lua_State"] - pub fn CAM_ZOOM_OUT_FINAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18CANCEL_FILL_SCREENEP9lua_State"] - pub fn CANCEL_FILL_SCREEN(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd5CATCHEP9lua_State"] - pub fn CATCH(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19CHECK_FINISH_CAMERAEP9lua_State"] - pub fn CHECK_FINISH_CAMERA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd34CHECK_FINISH_CAMERA_IF_NOT_HP_MODEEP9lua_State"] - pub fn CHECK_FINISH_CAMERA_IF_NOT_HP_MODE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30CHECK_VALID_FINAL_START_CAMERAEP9lua_State"] - pub fn CHECK_VALID_FINAL_START_CAMERA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9CLR_SPEEDEP9lua_State"] - pub fn CLR_SPEED(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16COLOR_COLLECTIONEP9lua_State"] - pub fn COLOR_COLLECTION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10COL_NORMALEP9lua_State"] - pub fn COL_NORMAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7COL_PRIEP9lua_State"] - pub fn COL_PRI(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7CORRECTEP9lua_State"] - pub fn CORRECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11DOWN_EFFECTEP9lua_State"] - pub fn DOWN_EFFECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd6EFFECTEP9lua_State"] - pub fn EFFECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12EFFECT_ALPHAEP9lua_State"] - pub fn EFFECT_ALPHA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11EFFECT_ATTREP9lua_State"] - pub fn EFFECT_ATTR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23EFFECT_BRANCH_SITUATIONEP9lua_State"] - pub fn EFFECT_BRANCH_SITUATION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12EFFECT_COLOREP9lua_State"] - pub fn EFFECT_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17EFFECT_COLOR_WORKEP9lua_State"] - pub fn EFFECT_COLOR_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18EFFECT_DETACH_KINDEP9lua_State"] - pub fn EFFECT_DETACH_KIND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23EFFECT_DETACH_KIND_WORKEP9lua_State"] - pub fn EFFECT_DETACH_KIND_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11EFFECT_FLIPEP9lua_State"] - pub fn EFFECT_FLIP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17EFFECT_FLIP_ALPHAEP9lua_State"] - pub fn EFFECT_FLIP_ALPHA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14EFFECT_FLW_POSEP9lua_State"] - pub fn EFFECT_FLW_POS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22EFFECT_FLW_POS_NO_STOPEP9lua_State"] - pub fn EFFECT_FLW_POS_NO_STOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd25EFFECT_FLW_POS_UNSYNC_VISEP9lua_State"] - pub fn EFFECT_FLW_POS_UNSYNC_VIS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21EFFECT_FLW_UNSYNC_VISEP9lua_State"] - pub fn EFFECT_FLW_UNSYNC_VIS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13EFFECT_FOLLOWEP9lua_State"] - pub fn EFFECT_FOLLOW(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19EFFECT_FOLLOW_ALPHAEP9lua_State"] - pub fn EFFECT_FOLLOW_ALPHA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19EFFECT_FOLLOW_COLOREP9lua_State"] - pub fn EFFECT_FOLLOW_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18EFFECT_FOLLOW_FLIPEP9lua_State"] - pub fn EFFECT_FOLLOW_FLIP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24EFFECT_FOLLOW_FLIP_ALPHAEP9lua_State"] - pub fn EFFECT_FOLLOW_FLIP_ALPHA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24EFFECT_FOLLOW_FLIP_COLOREP9lua_State"] - pub fn EFFECT_FOLLOW_FLIP_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22EFFECT_FOLLOW_FLIP_RNDEP9lua_State"] - pub fn EFFECT_FOLLOW_FLIP_RND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24EFFECT_FOLLOW_FLIP_arg13EP9lua_State"] - pub fn EFFECT_FOLLOW_FLIP_arg13(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19EFFECT_FOLLOW_LIGHTEP9lua_State"] - pub fn EFFECT_FOLLOW_LIGHT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22EFFECT_FOLLOW_NO_SCALEEP9lua_State"] - pub fn EFFECT_FOLLOW_NO_SCALE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21EFFECT_FOLLOW_NO_STOPEP9lua_State"] - pub fn EFFECT_FOLLOW_NO_STOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26EFFECT_FOLLOW_NO_STOP_FLIPEP9lua_State"] - pub fn EFFECT_FOLLOW_NO_STOP_FLIP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17EFFECT_FOLLOW_RNDEP9lua_State"] - pub fn EFFECT_FOLLOW_RND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22EFFECT_FOLLOW_RND_WORKEP9lua_State"] - pub fn EFFECT_FOLLOW_RND_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30EFFECT_FOLLOW_UNSYNC_VIS_WHOLEEP9lua_State"] - pub fn EFFECT_FOLLOW_UNSYNC_VIS_WHOLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23EFFECT_FOLLOW_VARIATIONEP9lua_State"] - pub fn EFFECT_FOLLOW_VARIATION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18EFFECT_FOLLOW_WORKEP9lua_State"] - pub fn EFFECT_FOLLOW_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19EFFECT_FOLLOW_arg11EP9lua_State"] - pub fn EFFECT_FOLLOW_arg11(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19EFFECT_FOLLOW_arg12EP9lua_State"] - pub fn EFFECT_FOLLOW_arg12(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13EFFECT_GLOBALEP9lua_State"] - pub fn EFFECT_GLOBAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd25EFFECT_GLOBAL_BACK_GROUNDEP9lua_State"] - pub fn EFFECT_GLOBAL_BACK_GROUND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd41EFFECT_GLOBAL_BACK_GROUND_CENTER_TOP_NODEEP9lua_State"] - pub fn EFFECT_GLOBAL_BACK_GROUND_CENTER_TOP_NODE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd43EFFECT_GLOBAL_BACK_GROUND_CUT_IN_CENTER_POSEP9lua_State"] - pub fn EFFECT_GLOBAL_BACK_GROUND_CUT_IN_CENTER_POS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16EFFECT_LIGHT_ENDEP9lua_State"] - pub fn EFFECT_LIGHT_END(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10EFFECT_OFFEP9lua_State"] - pub fn EFFECT_OFF(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17EFFECT_OFF_HANDLEEP9lua_State"] - pub fn EFFECT_OFF_HANDLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15EFFECT_OFF_KINDEP9lua_State"] - pub fn EFFECT_OFF_KIND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd20EFFECT_OFF_KIND_WORKEP9lua_State"] - pub fn EFFECT_OFF_KIND_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18EFFECT_REMOVE_ATTREP9lua_State"] - pub fn EFFECT_REMOVE_ATTR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18EFFECT_STENCIL_OFFEP9lua_State"] - pub fn EFFECT_STENCIL_OFF(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17EFFECT_STENCIL_ONEP9lua_State"] - pub fn EFFECT_STENCIL_ON(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16EFFECT_VARIATIONEP9lua_State"] - pub fn EFFECT_VARIATION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11EFFECT_WORKEP9lua_State"] - pub fn EFFECT_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13EFFECT_WORK_REP9lua_State"] - pub fn EFFECT_WORK_R(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11ENABLE_AREAEP9lua_State"] - pub fn ENABLE_AREA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18FILL_SCREEN_LEGACYEP9lua_State"] - pub fn FILL_SCREEN_LEGACY(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23FILL_SCREEN_MODEL_COLOREP9lua_State"] - pub fn FILL_SCREEN_MODEL_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16FILL_SCREEN_arg9EP9lua_State"] - pub fn FILL_SCREEN_arg9(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd5FLASHEP9lua_State"] - pub fn FLASH(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9FLASH_FRMEP9lua_State"] - pub fn FLASH_FRM(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13FLASH_NO_STOPEP9lua_State"] - pub fn FLASH_NO_STOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd31FLASH_SET_LAST_ATTACK_DIRECTIONEP9lua_State"] - pub fn FLASH_SET_LAST_ATTACK_DIRECTION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11FOOT_EFFECTEP9lua_State"] - pub fn FOOT_EFFECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16FOOT_EFFECT_FLIPEP9lua_State"] - pub fn FOOT_EFFECT_FLIP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13FT_ADD_DAMAGEEP9lua_State"] - pub fn FT_ADD_DAMAGE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26FT_ATTACK_ABS_CAMERA_QUAKEEP9lua_State"] - pub fn FT_ATTACK_ABS_CAMERA_QUAKE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13FT_CATCH_STOPEP9lua_State"] - pub fn FT_CATCH_STOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21FT_DISABLE_CURRY_FACEEP9lua_State"] - pub fn FT_DISABLE_CURRY_FACE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd27FT_IS_SAME_FIGHTER_CATEGORYEP9lua_State"] - pub fn FT_IS_SAME_FIGHTER_CATEGORY(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21FT_LEAVE_NEAR_OTTOTTOEP9lua_State"] - pub fn FT_LEAVE_NEAR_OTTOTTO(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26FT_MOTION_CHANGE_HAVE_ITEMEP9lua_State"] - pub fn FT_MOTION_CHANGE_HAVE_ITEM(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23FT_MOTION_INTP_TURN_ENDEP9lua_State"] - pub fn FT_MOTION_INTP_TURN_END(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19FT_MOTION_INTP_WAITEP9lua_State"] - pub fn FT_MOTION_INTP_WAIT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14FT_MOTION_RATEEP9lua_State"] - pub fn FT_MOTION_RATE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd20FT_REMOVE_FINAL_AURAEP9lua_State"] - pub fn FT_REMOVE_FINAL_AURA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22FT_SET_FINAL_FEAR_FACEEP9lua_State"] - pub fn FT_SET_FINAL_FEAR_FACE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24FT_SET_FINAL_SMASH_LIGHTEP9lua_State"] - pub fn FT_SET_FINAL_SMASH_LIGHT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd35FT_SHOOTING_ATTACK_GROUND_CHECK_NEWEP9lua_State"] - pub fn FT_SHOOTING_ATTACK_GROUND_CHECK_NEW(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd40FT_SHOOTING_ATTACK_GROUND_CHECK_NEW_arg5EP9lua_State"] - pub fn FT_SHOOTING_ATTACK_GROUND_CHECK_NEW_arg5(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd33FT_START_ADJUST_MOTION_FRAME_arg1EP9lua_State"] - pub fn FT_START_ADJUST_MOTION_FRAME_arg1(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14FT_START_CUTINEP9lua_State"] - pub fn FT_START_CUTIN(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd25FT_START_CUTIN_JACK_FINALEP9lua_State"] - pub fn FT_START_CUTIN_JACK_FINAL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19FT_START_CUTIN_arg1EP9lua_State"] - pub fn FT_START_CUTIN_arg1(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21FT_UPDATE_FACE_MOTIONEP9lua_State"] - pub fn FT_UPDATE_FACE_MOTION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16GET_VOICE_REGIONEP9lua_State"] - pub fn GET_VOICE_REGION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd20GET_VOICE_REGION_NEWEP9lua_State"] - pub fn GET_VOICE_REGION_NEW(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19GET_VOICE_VARIATIONEP9lua_State"] - pub fn GET_VOICE_VARIATION(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd6HIT_NOEP9lua_State"] - pub fn HIT_NO(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd8HIT_NODEEP9lua_State"] - pub fn HIT_NODE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13HIT_RESET_ALLEP9lua_State"] - pub fn HIT_RESET_ALL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16IS_EXIST_ARTICLEEP9lua_State"] - pub fn IS_EXIST_ARTICLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22IS_FIGHTER_STATUS_KINDEP9lua_State"] - pub fn IS_FIGHTER_STATUS_KIND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22IS_GENERATABLE_ARTICLEEP9lua_State"] - pub fn IS_GENERATABLE_ARTICLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17IS_HAVE_ITEM_KINDEP9lua_State"] - pub fn IS_HAVE_ITEM_KIND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7IS_MENUEP9lua_State"] - pub fn IS_MENU(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9IS_RANDOMEP9lua_State"] - pub fn IS_RANDOM(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14IS_STATUS_KINDEP9lua_State"] - pub fn IS_STATUS_KIND(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14LANDING_EFFECTEP9lua_State"] - pub fn LANDING_EFFECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19LANDING_EFFECT_FLIPEP9lua_State"] - pub fn LANDING_EFFECT_FLIP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21LAST_EFFECT_SET_ALPHAEP9lua_State"] - pub fn LAST_EFFECT_SET_ALPHA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21LAST_EFFECT_SET_COLOREP9lua_State"] - pub fn LAST_EFFECT_SET_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd35LAST_EFFECT_SET_DISABLE_SYSTEM_SLOWEP9lua_State"] - pub fn LAST_EFFECT_SET_DISABLE_SYSTEM_SLOW(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd37LAST_EFFECT_SET_OFFSET_TO_CAMERA_FLATEP9lua_State"] - pub fn LAST_EFFECT_SET_OFFSET_TO_CAMERA_FLAT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd20LAST_EFFECT_SET_RATEEP9lua_State"] - pub fn LAST_EFFECT_SET_RATE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd25LAST_EFFECT_SET_RATE_WORKEP9lua_State"] - pub fn LAST_EFFECT_SET_RATE_WORK(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23LAST_EFFECT_SET_SCALE_WEP9lua_State"] - pub fn LAST_EFFECT_SET_SCALE_W(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26LAST_EFFECT_SET_TOP_OFFSETEP9lua_State"] - pub fn LAST_EFFECT_SET_TOP_OFFSET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24LAST_EFFECT_SET_WORK_INTEP9lua_State"] - pub fn LAST_EFFECT_SET_WORK_INT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd23LAST_PARTICLE_SET_COLOREP9lua_State"] - pub fn LAST_PARTICLE_SET_COLOR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15PLAY_DAMAGESTOPEP9lua_State"] - pub fn PLAY_DAMAGESTOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12PLAY_DOWN_SEEP9lua_State"] - pub fn PLAY_DOWN_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14PLAY_FLY_VOICEEP9lua_State"] - pub fn PLAY_FLY_VOICE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18PLAY_ITEM_EMPTY_SEEP9lua_State"] - pub fn PLAY_ITEM_EMPTY_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15PLAY_LANDING_SEEP9lua_State"] - pub fn PLAY_LANDING_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7PLAY_SEEP9lua_State"] - pub fn PLAY_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13PLAY_SEQUENCEEP9lua_State"] - pub fn PLAY_SEQUENCE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24PLAY_SEQUENCE_DAMAGESTOPEP9lua_State"] - pub fn PLAY_SEQUENCE_DAMAGESTOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13PLAY_SE_NO_3DEP9lua_State"] - pub fn PLAY_SE_NO_3D(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd30PLAY_SE_NO_3D_FORCE_AUTO_PITCHEP9lua_State"] - pub fn PLAY_SE_NO_3D_FORCE_AUTO_PITCH(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14PLAY_SE_REMAINEP9lua_State"] - pub fn PLAY_SE_REMAIN(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18PLAY_SE_SET_HANDLEEP9lua_State"] - pub fn PLAY_SE_SET_HANDLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11PLAY_STATUSEP9lua_State"] - pub fn PLAY_STATUS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9PLAY_STEPEP9lua_State"] - pub fn PLAY_STEP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19PLAY_STEP_FLIPPABLEEP9lua_State"] - pub fn PLAY_STEP_FLIPPABLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd5QUAKEEP9lua_State"] - pub fn QUAKE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10QUAKE_STOPEP9lua_State"] - pub fn QUAKE_STOP(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14REG_LANDING_SEEP9lua_State"] - pub fn REG_LANDING_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd26REMOVE_FINAL_SCREEN_EFFECTEP9lua_State"] - pub fn REMOVE_FINAL_SCREEN_EFFECT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22REQ_FINAL_START_CAMERAEP9lua_State"] - pub fn REQ_FINAL_START_CAMERA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd27REQ_FINAL_START_CAMERA_arg3EP9lua_State"] - pub fn REQ_FINAL_START_CAMERA_arg3(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10REVERSE_LREP9lua_State"] - pub fn REVERSE_LR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10RUMBLE_ALLEP9lua_State"] - pub fn RUMBLE_ALL(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12RUMBLE_DUMMYEP9lua_State"] - pub fn RUMBLE_DUMMY(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18RUMBLE_FINAL_OTHEREP9lua_State"] - pub fn RUMBLE_FINAL_OTHER(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd19RUMBLE_FINAL_TARGETEP9lua_State"] - pub fn RUMBLE_FINAL_TARGET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10RUMBLE_HITEP9lua_State"] - pub fn RUMBLE_HIT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17RUMBLE_HIT_STATUSEP9lua_State"] - pub fn RUMBLE_HIT_STATUS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd6SA_SETEP9lua_State"] - pub fn SA_SET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24SCREEN_EFFECT_SLOW_WHOLEEP9lua_State"] - pub fn SCREEN_EFFECT_SLOW_WHOLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd6SEARCHEP9lua_State"] - pub fn SEARCH(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7SET_AIREP9lua_State"] - pub fn SET_AIR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16SET_PLAY_INHIVITEP9lua_State"] - pub fn SET_PLAY_INHIVIT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd16SET_RATE_ARTICLEEP9lua_State"] - pub fn SET_RATE_ARTICLE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18SET_RATE_ARTICLE_VEP9lua_State"] - pub fn SET_RATE_ARTICLE_V(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21SET_SEARCH_SIZE_EXISTEP9lua_State"] - pub fn SET_SEARCH_SIZE_EXIST(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9SET_SPEEDEP9lua_State"] - pub fn SET_SPEED(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd12SET_SPEED_EXEP9lua_State"] - pub fn SET_SPEED_EX(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd14SET_TAKEOUT_SEEP9lua_State"] - pub fn SET_TAKEOUT_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd21SET_TAKEOUT_SE_STATUSEP9lua_State"] - pub fn SET_TAKEOUT_SE_STATUS(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17SHOOT_ITEM_BULLETEP9lua_State"] - pub fn SHOOT_ITEM_BULLET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd24SHOOT_ITEM_BULLET_CHARGEEP9lua_State"] - pub fn SHOOT_ITEM_BULLET_CHARGE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13SLOW_OPPONENTEP9lua_State"] - pub fn SLOW_OPPONENT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd20START_INFO_FLASH_EYEEP9lua_State"] - pub fn START_INFO_FLASH_EYE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd8STICK_LREP9lua_State"] - pub fn STICK_LR(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7STOP_SEEP9lua_State"] - pub fn STOP_SE(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10THROW_ITEMEP9lua_State"] - pub fn THROW_ITEM(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17THROW_ITEM_OFFSETEP9lua_State"] - pub fn THROW_ITEM_OFFSET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd22THROW_ITEM_OFFSET_arg4EP9lua_State"] - pub fn THROW_ITEM_OFFSET_arg4(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd17THROW_ITEM_REFLETEP9lua_State"] - pub fn THROW_ITEM_REFLET(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15THROW_ITEM_arg3EP9lua_State"] - pub fn THROW_ITEM_arg3(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11UNABLE_AREAEP9lua_State"] - pub fn UNABLE_AREA(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd10UPDATE_ROTEP9lua_State"] - pub fn UPDATE_ROT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9WHOLE_HITEP9lua_State"] - pub fn WHOLE_HIT(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd7executeEP9lua_Statef"] - pub fn execute(arg1: u64, arg2: f32); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd5frameEP9lua_Statef"] - pub fn frame(arg1: u64, arg2: f32); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd11frame_clearEP9lua_State"] - pub fn frame_clear(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15get_value_floatEP9lua_Statei"] - pub fn get_value_float(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd13get_value_intEP9lua_Statei"] - pub fn get_value_int(arg1: u64, arg2: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9is_excuteEP9lua_State"] - pub fn is_excute(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd4stopEP9lua_State"] - pub fn stop(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd4waitEP9lua_Statef"] - pub fn wait(arg1: u64, arg2: f32); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd9wait_loopEP9lua_State"] - pub fn wait_loop(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd15wait_loop_clearEP9lua_State"] - pub fn wait_loop_clear(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app10sv_animcmd18wait_loop_sync_motEP9lua_State"] - pub fn wait_loop_sync_mot(arg1: u64); - } - } - pub mod sv_battle_object { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object17add_speed_outsideEjiRKN3phx8Vector3fE"] - pub fn add_speed_outside() -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object7is_nullEj"] - pub fn is_null(arg1: root::uint) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object20notify_event_msc_cmdEP9lua_State"] - pub fn notify_event_msc_cmd(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object9is_activeEj"] - pub fn is_active(arg1: root::uint) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object8categoryEj"] - pub fn category() -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object13fixed_scalingEjbiifi"] - pub fn fixed_scaling( - arg1: root::uint, - arg2: bool, - arg3: skyline_libc::c_int, - arg4: skyline_libc::c_int, - arg5: f32, - arg6: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object15log_attack_kindEj"] - pub fn log_attack_kind(arg1: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object3posEj"] - pub fn pos(arg1: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object18get_item_hold_kindEj"] - pub fn get_item_hold_kind(arg1: root::uint) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object14get_founder_idEj"] - pub fn get_founder_id(arg1: root::uint) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object9set_floatEjfi"] - pub fn set_float( - arg1: root::uint, - arg2: f32, - arg3: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object33joint_global_position_with_offsetEjN3phx6Hash40ERKNS1_8Vector3fERS3_"] - pub fn joint_global_position_with_offset( - arg1: root::uint, - arg2: u64, - arg3: *mut root::Vector3f, - arg4: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object11end_inhaledEjb"] - pub fn end_inhaled(arg1: root::uint, arg2: bool) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object30set_power_mul_region_attr_infoERNS_26BattleObjectModuleAccessorES2_"] - pub fn set_power_mul_region_attr_info(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object15module_accessorEj"] - pub fn module_accessor(arg1: root::uint) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object4kindEj"] - pub fn kind(arg1: root::uint) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object21joint_global_positionEjN3phx6Hash40ERNS1_8Vector3fE"] - pub fn joint_global_position( - arg1: root::uint, - arg2: u64, - arg3: *mut root::Vector3f, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_battle_object8entry_idEj"] - pub fn entry_id(arg1: root::uint) -> skyline_libc::c_int; - } - } - pub mod sv_kinetic_energy { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11clear_speedEP9lua_State"] - pub fn clear_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11friction_onEP9lua_State"] - pub fn friction_on(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11get_accel_yEP9lua_State"] - pub fn get_accel_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11get_brake_yEP9lua_State"] - pub fn get_brake_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11get_speed3fEP9lua_State"] - pub fn get_speed3f(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11get_speed_xEP9lua_State"] - pub fn get_speed_x(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy11get_speed_yEP9lua_State"] - pub fn get_speed_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy12friction_offEP9lua_State"] - pub fn friction_off(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy12get_rotationEP9lua_State"] - pub fn get_rotation(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy12reset_energyEP9lua_State"] - pub fn reset_energy(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy13get_speed_mulEP9lua_State"] - pub fn get_speed_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy13set_chara_dirEP9lua_State"] - pub fn set_chara_dir(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy13set_speed_mulEP9lua_State"] - pub fn set_speed_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy14clear_speed_exEP9lua_State"] - pub fn clear_speed_ex(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy14get_rotation_xEP9lua_State"] - pub fn get_rotation_x(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy14get_rotation_yEP9lua_State"] - pub fn get_rotation_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy14get_rotation_zEP9lua_State"] - pub fn get_rotation_z(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15mul_x_accel_addEP9lua_State"] - pub fn mul_x_accel_add(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15mul_x_accel_mulEP9lua_State"] - pub fn mul_x_accel_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15mul_x_speed_maxEP9lua_State"] - pub fn mul_x_speed_max(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15set_accel_x_addEP9lua_State"] - pub fn set_accel_x_add(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15set_accel_x_mulEP9lua_State"] - pub fn set_accel_x_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15set_accel_y_addEP9lua_State"] - pub fn set_accel_y_add(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15set_accel_y_mulEP9lua_State"] - pub fn set_accel_y_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy15set_limit_speedEP9lua_State"] - pub fn set_limit_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy16get_speed_lengthEP9lua_State"] - pub fn get_speed_length(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy16set_damage_speedEP9lua_State"] - pub fn set_damage_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy16set_ground_transEP9lua_State"] - pub fn set_ground_trans(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy16set_stable_speedEP9lua_State"] - pub fn set_stable_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy17get_limit_speed_xEP9lua_State"] - pub fn get_limit_speed_x(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy17get_limit_speed_yEP9lua_State"] - pub fn get_limit_speed_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy17set_speed_mul_2ndEP9lua_State"] - pub fn set_speed_mul_2nd(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy18get_stable_speed_xEP9lua_State"] - pub fn get_stable_speed_x(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy18get_stable_speed_yEP9lua_State"] - pub fn get_stable_speed_y(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy20is_gravity_fix_accelEP9lua_State"] - pub fn is_gravity_fix_accel(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy21is_cliff_ground_transEP9lua_State"] - pub fn is_cliff_ground_trans(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy23set_gravity_coefficientEP9lua_State"] - pub fn set_gravity_coefficient(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy26controller_set_accel_x_addEP9lua_State"] - pub fn controller_set_accel_x_add(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy26controller_set_accel_x_mulEP9lua_State"] - pub fn controller_set_accel_x_mul(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy29set_motion_energy_update_flagEP9lua_State"] - pub fn set_motion_energy_update_flag(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy6enableEP9lua_State"] - pub fn enable(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy6resumeEP9lua_State"] - pub fn resume(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy6unableEP9lua_State"] - pub fn unable(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy7suspendEP9lua_State"] - pub fn suspend(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9add_speedEP9lua_State"] - pub fn add_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9get_accelEP9lua_State"] - pub fn get_accel(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9get_speedEP9lua_State"] - pub fn get_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9is_enableEP9lua_State"] - pub fn is_enable(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9mul_accelEP9lua_State"] - pub fn mul_accel(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9mul_speedEP9lua_State"] - pub fn mul_speed(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9set_accelEP9lua_State"] - pub fn set_accel(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9set_angleEP9lua_State"] - pub fn set_angle(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9set_brakeEP9lua_State"] - pub fn set_brake(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app17sv_kinetic_energy9set_speedEP9lua_State"] - pub fn set_speed(arg1: u64); - } - } - pub mod sv_math { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math10vec2_angleEffff"] - pub fn vec2_angle(arg1: f32, arg2: f32, arg3: f32, arg4: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math10vec3_crossEffffff"] - pub fn vec3_cross( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - ) -> *mut root::Vector3f; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math11vec2_lengthEff"] - pub fn vec2_length(arg1: f32, arg2: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math11vec3_lengthEfff"] - pub fn vec3_length(arg1: f32, arg2: f32, arg3: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math12bezier_curveEfffff"] - pub fn bezier_curve(arg1: f32, arg2: f32, arg3: f32, arg4: f32, arg5: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math12vec2_is_zeroEff"] - pub fn vec2_is_zero(arg1: f32, arg2: f32) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math12vec3_is_zeroEfff"] - pub fn vec3_is_zero(arg1: f32, arg2: f32, arg3: f32) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math13vec2_distanceEffff"] - pub fn vec2_distance(arg1: f32, arg2: f32, arg3: f32, arg4: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math13vec3_distanceEffffff"] - pub fn vec3_distance( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - ) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math14vec2_normalizeEff"] - pub fn vec2_normalize(arg1: f32, arg2: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math14vec3_normalizeEfff"] - pub fn vec3_normalize(arg1: f32, arg2: f32, arg3: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math15vec2_reflectionEffff"] - pub fn vec2_reflection(arg1: f32, arg2: f32, arg3: f32, arg4: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math18vec2_length_squareEff"] - pub fn vec2_length_square(arg1: f32, arg2: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math18vec3_between_angleEfffffffff"] - pub fn vec3_between_angle( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - arg7: f32, - arg8: f32, - arg9: f32, - ) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math18vec3_length_squareEfff"] - pub fn vec3_length_square(arg1: f32, arg2: f32, arg3: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math4powfEff"] - pub fn powf(arg1: f32, arg2: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math4randEN3phx6Hash40Ei"] - pub fn rand(arg1: u64, arg2: skyline_libc::c_int) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math5randfEN3phx6Hash40Ef"] - pub fn randf(arg1: u64, arg2: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math7is_zeroEf"] - pub fn is_zero(arg1: f32) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math8vec2_dotEffff"] - pub fn vec2_dot(arg1: f32, arg2: f32, arg3: f32, arg4: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math8vec2_rotEfff"] - pub fn vec2_rot(arg1: f32, arg2: f32, arg3: f32) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math8vec3_dotEffffff"] - pub fn vec3_dot( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - ) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math8vec3_rotEffffff"] - pub fn vec3_rot( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - ) -> f32; - } - extern "C" { - #[link_name = "\u{1}_ZN3app7sv_math9vec3_lerpEfffffff"] - pub fn vec3_lerp( - arg1: f32, - arg2: f32, - arg3: f32, - arg4: f32, - arg5: f32, - arg6: f32, - arg7: f32, - ) -> f32; - } - } - pub mod sv_module_access { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access11color_blendEP9lua_State"] - pub fn color_blend(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6searchEP9lua_State"] - pub fn search(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access7articleEP9lua_State"] - pub fn article(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6_catchEP9lua_State"] - pub fn _catch(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access4linkEP9lua_State"] - pub fn link(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6shieldEP9lua_State"] - pub fn shield(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6cameraEP9lua_State"] - pub fn camera(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6attackEP9lua_State"] - pub fn attack(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access5soundEP9lua_State"] - pub fn sound(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access7physicsEP9lua_State"] - pub fn physics(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access7captureEP9lua_State"] - pub fn capture(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6effectEP9lua_State"] - pub fn effect(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access5slopeEP9lua_State"] - pub fn slope(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access4grabEP9lua_State"] - pub fn grab(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6cancelEP9lua_State"] - pub fn cancel(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access4itemEP9lua_State"] - pub fn item(arg1: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3app16sv_module_access6damageEP9lua_State"] - pub fn damage(arg1: u64); - } - } - pub mod sv_system { - #[allow(unused_imports)] - use self::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3app9sv_system13battle_objectEP9lua_State"] - pub fn battle_object(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app9sv_system29battle_object_module_accessorEP9lua_State"] - pub fn battle_object_module_accessor(arg1: u64) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3app9sv_system22battle_object_categoryEP9lua_State"] - pub fn battle_object_category(arg1: u64) -> u8; - } - extern "C" { - #[link_name = "\u{1}_ZN3app9sv_system18battle_object_kindEP9lua_State"] - pub fn battle_object_kind(arg1: u64) -> skyline_libc::c_int; - } - extern "C" { - #[link_name = "\u{1}_ZN3app9sv_system8owner_idEP9lua_State"] - pub fn owner_id(arg1: u64) -> skyline_libc::c_int; - } - } - } - pub mod lib { - #[allow(unused_imports)] - use self::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZN3lib18lua_bind_get_valueIiEEbmRT_"] - pub fn lua_bind_get_value(arg1: u64, arg2: *mut skyline_libc::c_int) -> bool; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib9lua_constEPKc"] - pub fn lua_const(str: *const skyline_libc::c_char) -> skyline_libc::c_int; - } - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum L2CVarType { - Void = 0, - Bool = 1, - Integer = 2, - Number = 3, - Pointer = 4, - Table = 5, - InnerFunction = 6, - Hash = 7, - String = 8, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct L2CTable_meta { - pub a: u64, - pub b: u64, - pub c: u64, - pub d: u64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct L2CTable { - pub refcnt: u32, - pub unk: u32, - pub begin: u64, - pub end: u64, - pub also_end: u64, - pub meta: root::lib::L2CTable_meta, - pub unk_ptr: u64, - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct L2CInnerFunctionBase { - pub unk: u64, - pub refcnt: u32, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub struct L2CValue { - pub type_: L2CVarType, - pub unk: u32, - pub __bindgen_anon_1: root::lib::L2CValue__bindgen_ty_1, - } - #[repr(C)] - #[derive(Copy, Clone)] - pub union L2CValue__bindgen_ty_1 { - pub raw: u64, - pub raw_float: f32, - pub raw_pointer: *mut skyline_libc::c_void, - pub raw_table: *mut root::lib::L2CTable, - pub raw_innerfunc: *mut root::lib::L2CInnerFunctionBase, - _bindgen_union_align: u64, - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValue13push_variadicEmPKcRNS_7utility8VariadicE"] - pub fn L2CValue_push_variadic( - this: *mut root::lib::L2CValue, - arg1: u64, - arg2: *const skyline_libc::c_char, - arg3: *mut skyline_libc::c_void, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Ev"] - pub fn L2CValue_L2CValue(this: *mut root::lib::L2CValue); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Eb"] - pub fn L2CValue_L2CValue1(this: *mut root::lib::L2CValue, val: bool); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Ei"] - pub fn L2CValue_L2CValue2(this: *mut root::lib::L2CValue, val: skyline_libc::c_int); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Em"] - pub fn L2CValue_L2CValue3(this: *mut root::lib::L2CValue, val: u64); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Ef"] - pub fn L2CValue_L2CValue4(this: *mut root::lib::L2CValue, val: f32); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1Ed"] - pub fn L2CValue_L2CValue5(this: *mut root::lib::L2CValue, val: f64); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CValueC1EPKc"] - pub fn L2CValue_L2CValue6( - this: *mut root::lib::L2CValue, - str: *const skyline_libc::c_char, - ); - } - impl L2CValue { - #[inline] - pub unsafe fn push_variadic( - &mut self, - arg1: u64, - arg2: *const skyline_libc::c_char, - arg3: *mut skyline_libc::c_void, - ) { - L2CValue_push_variadic(self, arg1, arg2, arg3) - } - #[inline] - pub unsafe fn new() -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue(__bindgen_tmp.as_mut_ptr()); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new1(val: bool) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue1(__bindgen_tmp.as_mut_ptr(), val); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new2(val: skyline_libc::c_int) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue2(__bindgen_tmp.as_mut_ptr(), val); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new3(val: u64) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue3(__bindgen_tmp.as_mut_ptr(), val); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new4(val: f32) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue4(__bindgen_tmp.as_mut_ptr(), val); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new5(val: f64) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue5(__bindgen_tmp.as_mut_ptr(), val); - __bindgen_tmp.assume_init() - } - #[inline] - pub unsafe fn new6(str: *const skyline_libc::c_char) -> Self { - let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); - L2CValue_L2CValue6(__bindgen_tmp.as_mut_ptr(), str); - __bindgen_tmp.assume_init() - } - } - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct L2CAgent { - pub vtable: u64, - pub lua_state_agent: u64, - pub unk10: u64, - pub unk18: u64, - pub unk20: u64, - pub unk28: u64, - pub unk30: u64, - pub unk38: u64, - pub lua_state_agentbase: u64, - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgentC2EP9lua_State"] - pub fn L2CAgent_L2CAgent_constr( - this: *mut root::lib::L2CAgent, - lua_state: u64, - ) -> *mut root::lib::L2CAgent; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent14push_lua_stackERKNS_8L2CValueE"] - pub fn L2CAgent_push_lua_stack( - this: *mut root::lib::L2CAgent, - l2c_value: *mut root::lib::L2CValue, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent13pop_lua_stackEi"] - pub fn L2CAgent_pop_lua_stack( - this: *mut root::lib::L2CAgent, - index: skyline_libc::c_int, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent13get_lua_stackEiPNS_8L2CValueE"] - pub fn L2CAgent_get_lua_stack( - this: *mut root::lib::L2CAgent, - index: skyline_libc::c_int, - l2c_val: *mut root::lib::L2CValue, - ); - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent20sv_set_function_hashEPvN3phx6Hash40E"] - pub fn L2CAgent_sv_set_function_hash( - this: *mut root::lib::L2CAgent, - func: ::core::option::Option< - unsafe extern "C" fn( - arg1: *mut root::lib::L2CAgent, - arg2: *mut skyline_libc::c_void, - ) -> u64, - >, - hash: u64, - ) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent15clear_lua_stackEv"] - pub fn L2CAgent_clear_lua_stack(this: *mut root::lib::L2CAgent) -> u64; - } - extern "C" { - #[link_name = "\u{1}_ZN3lib8L2CAgent16_clear_lua_stackEv"] - pub fn L2CAgent__clear_lua_stack(this: *mut root::lib::L2CAgent) -> u64; - } - impl L2CAgent { - #[inline] - pub unsafe fn L2CAgent_constr( - &mut self, - lua_state: u64, - ) -> *mut root::lib::L2CAgent { - L2CAgent_L2CAgent_constr(self, lua_state) - } - #[inline] - pub unsafe fn push_lua_stack( - &mut self, - l2c_value: *mut root::lib::L2CValue, - ) -> u64 { - L2CAgent_push_lua_stack(self, l2c_value) - } - #[inline] - pub unsafe fn pop_lua_stack(&mut self, index: skyline_libc::c_int) -> u64 { - L2CAgent_pop_lua_stack(self, index) - } - #[inline] - pub unsafe fn get_lua_stack( - &mut self, - index: skyline_libc::c_int, - l2c_val: *mut root::lib::L2CValue, - ) { - L2CAgent_get_lua_stack(self, index, l2c_val) - } - #[inline] - pub unsafe fn sv_set_function_hash( - &mut self, - func: ::core::option::Option< - unsafe extern "C" fn( - arg1: *mut root::lib::L2CAgent, - arg2: *mut skyline_libc::c_void, - ) -> u64, - >, - hash: u64, - ) -> u64 { - L2CAgent_sv_set_function_hash(self, func, hash) - } - #[inline] - pub unsafe fn clear_lua_stack(&mut self) -> u64 { - L2CAgent_clear_lua_stack(self) - } - #[inline] - pub unsafe fn _clear_lua_stack(&mut self) -> u64 { - L2CAgent__clear_lua_stack(self) - } - } - pub mod utility { - #[allow(unused_imports)] - use self::super::super::super::root; - pub mod Variadic { - #[allow(unused_imports)] - use self::super::super::super::super::root; - extern "C" { - #[link_name = "\u{1}_ZNK3lib7utility8Variadic10get_formatEv"] - pub fn get_format( - variadic: *mut skyline_libc::c_void, - ) -> *const skyline_libc::c_char; - } - } - } - } - pub type __uint128_t = u128; - pub type __int128_t = i128; - pub type __builtin_va_list = root::__va_list; - #[repr(C)] - #[derive(Debug, Copy, Clone)] - pub struct __va_list { - pub __stack: *mut skyline_libc::c_void, - pub __gr_top: *mut skyline_libc::c_void, - pub __vr_top: *mut skyline_libc::c_void, - pub __gr_offs: skyline_libc::c_int, - pub __vr_offs: skyline_libc::c_int, - } -} diff --git a/skyline_smash/src/crc32.rs b/skyline_smash/src/crc32.rs deleted file mode 100644 index cf701f7..0000000 --- a/skyline_smash/src/crc32.rs +++ /dev/null @@ -1,66 +0,0 @@ -/// const crc32 implementation by leo60288 - -macro_rules! reflect { - ($bits:expr, $value:expr) => {{ - let mut reflection = 0; - let mut value = $value; - let mut i = 0; - - while i < $bits { - if (value & 0x01) == 1 { - reflection |= 1 << (($bits - 1) - i) - } - - value >>= 1; - i += 1; - } - - reflection - }}; -} - -const fn make_table(poly: u32) -> [u32; 256] { - let mut table = [0; 256]; - let top_bit = 1 << 31; - let mut byte; - - let mut i = 0; - while i <= 255 { - byte = reflect!(8, i); - - let mut value = byte << 24; - - let mut j = 0; - while j < 8 { - if (value & top_bit) != 0 { - value = (value << 1) ^ poly - } else { - value <<= 1 - } - - j += 1; - } - - value = reflect!(32, value); - - table[i as usize] = value; - - i += 1; - } - - table -} - -const IEEE_TABLE: [u32; 256] = make_table(0x04C11DB7); - -pub const fn crc32(bytes: &[u8]) -> u32 { - let mut value = !0u32; - let mut i = 0; - while i < bytes.len() { - value = (value >> 8) ^ (IEEE_TABLE[((value ^ (bytes[i] as u32)) & 0xFF) as usize]); - i += 1; - } - - !value -} - diff --git a/skyline_smash/src/lib.rs b/skyline_smash/src/lib.rs deleted file mode 100644 index 03de503..0000000 --- a/skyline_smash/src/lib.rs +++ /dev/null @@ -1,18 +0,0 @@ -#![no_std] -#![feature(const_if_match, const_loop)] - -pub mod crc32; - -#[doc(hidden)] -pub mod cpp; - -#[doc(inline)] -pub use cpp::root::*; - -// Find the hash40 of a given string -pub const fn hash40(string: &str) -> u64 { - let bytes = string.as_bytes(); - - ((bytes.len() as u64) << 32) + crc32::crc32(bytes) as u64 -} - diff --git a/src/lib.rs b/src/lib.rs index fad57f5..4513972 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![no_std] #![feature(proc_macro_hygiene)] use skyline::nn::account::{self, Uid, GetLastOpenedUser, GetNickname, Nickname}; @@ -6,7 +5,7 @@ use smash::hash40; #[skyline::main(name = "module_name_test")] pub fn main() { - println!("Hello from Skyline Rust Plugin!\n"); + println!("Hello from Skyline Rust Plugin!"); for i in 0..3 { println!("{}", i); @@ -16,6 +15,8 @@ pub fn main() { println!("Last nickname: {}", nickname); + println!("Contents of file: {:?}", std::fs::read_to_string("sd:/test.txt")); + println!("Compile-time hash40 of 'accel_x': {:010X}", hash40("accel_x")); let string = "accel_x";