xref: /aosp_15_r20/tools/netsim/rust/hostapd-rs/src/hostapd_sys/windows/bindings.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 /* automatically generated by rust-bindgen 0.69.4 */
2 
3 pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
4 pub const _SAL_VERSION: u32 = 20;
5 pub const __SAL_H_VERSION: u32 = 180000000;
6 pub const _USE_DECLSPECS_FOR_SAL: u32 = 0;
7 pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
8 pub const _CRT_PACKING: u32 = 8;
9 pub const _HAS_EXCEPTIONS: u32 = 1;
10 pub const _STL_LANG: u32 = 0;
11 pub const _HAS_CXX17: u32 = 0;
12 pub const _HAS_CXX20: u32 = 0;
13 pub const _HAS_NODISCARD: u32 = 0;
14 pub const WCHAR_MIN: u32 = 0;
15 pub const WCHAR_MAX: u32 = 65535;
16 pub const WINT_MIN: u32 = 0;
17 pub const WINT_MAX: u32 = 65535;
18 pub const MAX_KEY_MATERIAL_LEN: u32 = 32;
19 pub const VIRTIO_WIFI_CTRL_CMD_TERMINATE: &[u8; 19] = b"CTRL_CMD_TERMINATE\0";
20 pub const VIRTIO_WIFI_CTRL_CMD_RELOAD_CONFIG: &[u8; 23] = b"CTRL_CMD_RELOAD_CONFIG\0";
21 pub type va_list = *mut ::std::os::raw::c_char;
22 extern "C" {
__va_start(arg1: *mut *mut ::std::os::raw::c_char, ...)23     pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...);
24 }
25 pub type __vcrt_bool = bool;
26 pub type wchar_t = ::std::os::raw::c_ushort;
27 extern "C" {
__security_init_cookie()28     pub fn __security_init_cookie();
29 }
30 extern "C" {
__security_check_cookie(_StackCookie: usize)31     pub fn __security_check_cookie(_StackCookie: usize);
32 }
33 extern "C" {
__report_gsfailure(_StackCookie: usize) -> !34     pub fn __report_gsfailure(_StackCookie: usize) -> !;
35 }
36 extern "C" {
37     pub static mut __security_cookie: usize;
38 }
39 pub type int_least8_t = ::std::os::raw::c_schar;
40 pub type int_least16_t = ::std::os::raw::c_short;
41 pub type int_least32_t = ::std::os::raw::c_int;
42 pub type int_least64_t = ::std::os::raw::c_longlong;
43 pub type uint_least8_t = ::std::os::raw::c_uchar;
44 pub type uint_least16_t = ::std::os::raw::c_ushort;
45 pub type uint_least32_t = ::std::os::raw::c_uint;
46 pub type uint_least64_t = ::std::os::raw::c_ulonglong;
47 pub type int_fast8_t = ::std::os::raw::c_schar;
48 pub type int_fast16_t = ::std::os::raw::c_int;
49 pub type int_fast32_t = ::std::os::raw::c_int;
50 pub type int_fast64_t = ::std::os::raw::c_longlong;
51 pub type uint_fast8_t = ::std::os::raw::c_uchar;
52 pub type uint_fast16_t = ::std::os::raw::c_uint;
53 pub type uint_fast32_t = ::std::os::raw::c_uint;
54 pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
55 pub type intmax_t = ::std::os::raw::c_longlong;
56 pub type uintmax_t = ::std::os::raw::c_ulonglong;
57 extern "C" {
set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int58     pub fn set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
59 }
60 extern "C" {
set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int61     pub fn set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
62 }
63 #[repr(C)]
64 #[derive(Debug, Copy, Clone)]
65 pub struct virtio_wifi_key_data {
66     pub key_material: [u8; 32usize],
67     pub key_len: ::std::os::raw::c_int,
68     pub key_idx: ::std::os::raw::c_int,
69 }
70 #[test]
bindgen_test_layout_virtio_wifi_key_data()71 fn bindgen_test_layout_virtio_wifi_key_data() {
72     const UNINIT: ::std::mem::MaybeUninit<virtio_wifi_key_data> = ::std::mem::MaybeUninit::uninit();
73     let ptr = UNINIT.as_ptr();
74     assert_eq!(
75         ::std::mem::size_of::<virtio_wifi_key_data>(),
76         40usize,
77         concat!("Size of: ", stringify!(virtio_wifi_key_data))
78     );
79     assert_eq!(
80         ::std::mem::align_of::<virtio_wifi_key_data>(),
81         4usize,
82         concat!("Alignment of ", stringify!(virtio_wifi_key_data))
83     );
84     assert_eq!(
85         unsafe { ::std::ptr::addr_of!((*ptr).key_material) as usize - ptr as usize },
86         0usize,
87         concat!(
88             "Offset of field: ",
89             stringify!(virtio_wifi_key_data),
90             "::",
91             stringify!(key_material)
92         )
93     );
94     assert_eq!(
95         unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize },
96         32usize,
97         concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_len))
98     );
99     assert_eq!(
100         unsafe { ::std::ptr::addr_of!((*ptr).key_idx) as usize - ptr as usize },
101         36usize,
102         concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_idx))
103     );
104 }
105 extern "C" {
get_active_ptk() -> virtio_wifi_key_data106     pub fn get_active_ptk() -> virtio_wifi_key_data;
107 }
108 extern "C" {
get_active_gtk() -> virtio_wifi_key_data109     pub fn get_active_gtk() -> virtio_wifi_key_data;
110 }
111