xref: /aosp_15_r20/tools/netsim/rust/hostapd-rs/src/hostapd_sys/linux/bindings.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 /* automatically generated by rust-bindgen 0.69.4 */
2 
3 pub const _STDINT_H: u32 = 1;
4 pub const _FEATURES_H: u32 = 1;
5 pub const _DEFAULT_SOURCE: u32 = 1;
6 pub const __GLIBC_USE_ISOC2X: u32 = 0;
7 pub const __USE_ISOC11: u32 = 1;
8 pub const __USE_ISOC99: u32 = 1;
9 pub const __USE_ISOC95: u32 = 1;
10 pub const __USE_POSIX_IMPLICITLY: u32 = 1;
11 pub const _POSIX_SOURCE: u32 = 1;
12 pub const _POSIX_C_SOURCE: u32 = 200809;
13 pub const __USE_POSIX: u32 = 1;
14 pub const __USE_POSIX2: u32 = 1;
15 pub const __USE_POSIX199309: u32 = 1;
16 pub const __USE_POSIX199506: u32 = 1;
17 pub const __USE_XOPEN2K: u32 = 1;
18 pub const __USE_XOPEN2K8: u32 = 1;
19 pub const _ATFILE_SOURCE: u32 = 1;
20 pub const __WORDSIZE: u32 = 64;
21 pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
22 pub const __SYSCALL_WORDSIZE: u32 = 64;
23 pub const __TIMESIZE: u32 = 64;
24 pub const __USE_MISC: u32 = 1;
25 pub const __USE_ATFILE: u32 = 1;
26 pub const __USE_FORTIFY_LEVEL: u32 = 0;
27 pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
28 pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
29 pub const __GLIBC_USE_C2X_STRTOL: u32 = 0;
30 pub const _STDC_PREDEF_H: u32 = 1;
31 pub const __STDC_IEC_559__: u32 = 1;
32 pub const __STDC_IEC_60559_BFP__: u32 = 201404;
33 pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
34 pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
35 pub const __STDC_ISO_10646__: u32 = 201706;
36 pub const __GNU_LIBRARY__: u32 = 6;
37 pub const __GLIBC__: u32 = 2;
38 pub const __GLIBC_MINOR__: u32 = 38;
39 pub const _SYS_CDEFS_H: u32 = 1;
40 pub const __glibc_c99_flexarr_available: u32 = 1;
41 pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
42 pub const __HAVE_GENERIC_SELECTION: u32 = 1;
43 pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
44 pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
45 pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
46 pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
47 pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
48 pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
49 pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
50 pub const _BITS_TYPES_H: u32 = 1;
51 pub const _BITS_TYPESIZES_H: u32 = 1;
52 pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
53 pub const __INO_T_MATCHES_INO64_T: u32 = 1;
54 pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
55 pub const __STATFS_MATCHES_STATFS64: u32 = 1;
56 pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
57 pub const __FD_SETSIZE: u32 = 1024;
58 pub const _BITS_TIME64_H: u32 = 1;
59 pub const _BITS_WCHAR_H: u32 = 1;
60 pub const _BITS_STDINT_INTN_H: u32 = 1;
61 pub const _BITS_STDINT_UINTN_H: u32 = 1;
62 pub const INT8_MIN: i32 = -128;
63 pub const INT16_MIN: i32 = -32768;
64 pub const INT32_MIN: i32 = -2147483648;
65 pub const INT8_MAX: u32 = 127;
66 pub const INT16_MAX: u32 = 32767;
67 pub const INT32_MAX: u32 = 2147483647;
68 pub const UINT8_MAX: u32 = 255;
69 pub const UINT16_MAX: u32 = 65535;
70 pub const UINT32_MAX: u32 = 4294967295;
71 pub const INT_LEAST8_MIN: i32 = -128;
72 pub const INT_LEAST16_MIN: i32 = -32768;
73 pub const INT_LEAST32_MIN: i32 = -2147483648;
74 pub const INT_LEAST8_MAX: u32 = 127;
75 pub const INT_LEAST16_MAX: u32 = 32767;
76 pub const INT_LEAST32_MAX: u32 = 2147483647;
77 pub const UINT_LEAST8_MAX: u32 = 255;
78 pub const UINT_LEAST16_MAX: u32 = 65535;
79 pub const UINT_LEAST32_MAX: u32 = 4294967295;
80 pub const INT_FAST8_MIN: i32 = -128;
81 pub const INT_FAST16_MIN: i64 = -9223372036854775808;
82 pub const INT_FAST32_MIN: i64 = -9223372036854775808;
83 pub const INT_FAST8_MAX: u32 = 127;
84 pub const INT_FAST16_MAX: u64 = 9223372036854775807;
85 pub const INT_FAST32_MAX: u64 = 9223372036854775807;
86 pub const UINT_FAST8_MAX: u32 = 255;
87 pub const UINT_FAST16_MAX: i32 = -1;
88 pub const UINT_FAST32_MAX: i32 = -1;
89 pub const INTPTR_MIN: i64 = -9223372036854775808;
90 pub const INTPTR_MAX: u64 = 9223372036854775807;
91 pub const UINTPTR_MAX: i32 = -1;
92 pub const PTRDIFF_MIN: i64 = -9223372036854775808;
93 pub const PTRDIFF_MAX: u64 = 9223372036854775807;
94 pub const SIG_ATOMIC_MIN: i32 = -2147483648;
95 pub const SIG_ATOMIC_MAX: u32 = 2147483647;
96 pub const SIZE_MAX: i32 = -1;
97 pub const WINT_MIN: u32 = 0;
98 pub const WINT_MAX: u32 = 4294967295;
99 pub const MAX_KEY_MATERIAL_LEN: u32 = 32;
100 pub const VIRTIO_WIFI_CTRL_CMD_TERMINATE: &[u8; 19] = b"CTRL_CMD_TERMINATE\0";
101 pub const VIRTIO_WIFI_CTRL_CMD_RELOAD_CONFIG: &[u8; 23] = b"CTRL_CMD_RELOAD_CONFIG\0";
102 pub type __u_char = ::std::os::raw::c_uchar;
103 pub type __u_short = ::std::os::raw::c_ushort;
104 pub type __u_int = ::std::os::raw::c_uint;
105 pub type __u_long = ::std::os::raw::c_ulong;
106 pub type __int8_t = ::std::os::raw::c_schar;
107 pub type __uint8_t = ::std::os::raw::c_uchar;
108 pub type __int16_t = ::std::os::raw::c_short;
109 pub type __uint16_t = ::std::os::raw::c_ushort;
110 pub type __int32_t = ::std::os::raw::c_int;
111 pub type __uint32_t = ::std::os::raw::c_uint;
112 pub type __int64_t = ::std::os::raw::c_long;
113 pub type __uint64_t = ::std::os::raw::c_ulong;
114 pub type __int_least8_t = __int8_t;
115 pub type __uint_least8_t = __uint8_t;
116 pub type __int_least16_t = __int16_t;
117 pub type __uint_least16_t = __uint16_t;
118 pub type __int_least32_t = __int32_t;
119 pub type __uint_least32_t = __uint32_t;
120 pub type __int_least64_t = __int64_t;
121 pub type __uint_least64_t = __uint64_t;
122 pub type __quad_t = ::std::os::raw::c_long;
123 pub type __u_quad_t = ::std::os::raw::c_ulong;
124 pub type __intmax_t = ::std::os::raw::c_long;
125 pub type __uintmax_t = ::std::os::raw::c_ulong;
126 pub type __dev_t = ::std::os::raw::c_ulong;
127 pub type __uid_t = ::std::os::raw::c_uint;
128 pub type __gid_t = ::std::os::raw::c_uint;
129 pub type __ino_t = ::std::os::raw::c_ulong;
130 pub type __ino64_t = ::std::os::raw::c_ulong;
131 pub type __mode_t = ::std::os::raw::c_uint;
132 pub type __nlink_t = ::std::os::raw::c_ulong;
133 pub type __off_t = ::std::os::raw::c_long;
134 pub type __off64_t = ::std::os::raw::c_long;
135 pub type __pid_t = ::std::os::raw::c_int;
136 #[repr(C)]
137 #[derive(Debug, Copy, Clone)]
138 pub struct __fsid_t {
139     pub __val: [::std::os::raw::c_int; 2usize],
140 }
141 #[test]
bindgen_test_layout___fsid_t()142 fn bindgen_test_layout___fsid_t() {
143     const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
144     let ptr = UNINIT.as_ptr();
145     assert_eq!(
146         ::std::mem::size_of::<__fsid_t>(),
147         8usize,
148         concat!("Size of: ", stringify!(__fsid_t))
149     );
150     assert_eq!(
151         ::std::mem::align_of::<__fsid_t>(),
152         4usize,
153         concat!("Alignment of ", stringify!(__fsid_t))
154     );
155     assert_eq!(
156         unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
157         0usize,
158         concat!("Offset of field: ", stringify!(__fsid_t), "::", stringify!(__val))
159     );
160 }
161 pub type __clock_t = ::std::os::raw::c_long;
162 pub type __rlim_t = ::std::os::raw::c_ulong;
163 pub type __rlim64_t = ::std::os::raw::c_ulong;
164 pub type __id_t = ::std::os::raw::c_uint;
165 pub type __time_t = ::std::os::raw::c_long;
166 pub type __useconds_t = ::std::os::raw::c_uint;
167 pub type __suseconds_t = ::std::os::raw::c_long;
168 pub type __suseconds64_t = ::std::os::raw::c_long;
169 pub type __daddr_t = ::std::os::raw::c_int;
170 pub type __key_t = ::std::os::raw::c_int;
171 pub type __clockid_t = ::std::os::raw::c_int;
172 pub type __timer_t = *mut ::std::os::raw::c_void;
173 pub type __blksize_t = ::std::os::raw::c_long;
174 pub type __blkcnt_t = ::std::os::raw::c_long;
175 pub type __blkcnt64_t = ::std::os::raw::c_long;
176 pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
177 pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
178 pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
179 pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
180 pub type __fsword_t = ::std::os::raw::c_long;
181 pub type __ssize_t = ::std::os::raw::c_long;
182 pub type __syscall_slong_t = ::std::os::raw::c_long;
183 pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
184 pub type __loff_t = __off64_t;
185 pub type __caddr_t = *mut ::std::os::raw::c_char;
186 pub type __intptr_t = ::std::os::raw::c_long;
187 pub type __socklen_t = ::std::os::raw::c_uint;
188 pub type __sig_atomic_t = ::std::os::raw::c_int;
189 pub type int_least8_t = __int_least8_t;
190 pub type int_least16_t = __int_least16_t;
191 pub type int_least32_t = __int_least32_t;
192 pub type int_least64_t = __int_least64_t;
193 pub type uint_least8_t = __uint_least8_t;
194 pub type uint_least16_t = __uint_least16_t;
195 pub type uint_least32_t = __uint_least32_t;
196 pub type uint_least64_t = __uint_least64_t;
197 pub type int_fast8_t = ::std::os::raw::c_schar;
198 pub type int_fast16_t = ::std::os::raw::c_long;
199 pub type int_fast32_t = ::std::os::raw::c_long;
200 pub type int_fast64_t = ::std::os::raw::c_long;
201 pub type uint_fast8_t = ::std::os::raw::c_uchar;
202 pub type uint_fast16_t = ::std::os::raw::c_ulong;
203 pub type uint_fast32_t = ::std::os::raw::c_ulong;
204 pub type uint_fast64_t = ::std::os::raw::c_ulong;
205 pub type intmax_t = __intmax_t;
206 pub type uintmax_t = __uintmax_t;
207 extern "C" {
set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int208     pub fn set_virtio_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
209 }
210 extern "C" {
set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int211     pub fn set_virtio_ctrl_sock(sock: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
212 }
213 #[repr(C)]
214 #[derive(Debug, Copy, Clone)]
215 pub struct virtio_wifi_key_data {
216     pub key_material: [u8; 32usize],
217     pub key_len: ::std::os::raw::c_int,
218     pub key_idx: ::std::os::raw::c_int,
219 }
220 #[test]
bindgen_test_layout_virtio_wifi_key_data()221 fn bindgen_test_layout_virtio_wifi_key_data() {
222     const UNINIT: ::std::mem::MaybeUninit<virtio_wifi_key_data> = ::std::mem::MaybeUninit::uninit();
223     let ptr = UNINIT.as_ptr();
224     assert_eq!(
225         ::std::mem::size_of::<virtio_wifi_key_data>(),
226         40usize,
227         concat!("Size of: ", stringify!(virtio_wifi_key_data))
228     );
229     assert_eq!(
230         ::std::mem::align_of::<virtio_wifi_key_data>(),
231         4usize,
232         concat!("Alignment of ", stringify!(virtio_wifi_key_data))
233     );
234     assert_eq!(
235         unsafe { ::std::ptr::addr_of!((*ptr).key_material) as usize - ptr as usize },
236         0usize,
237         concat!(
238             "Offset of field: ",
239             stringify!(virtio_wifi_key_data),
240             "::",
241             stringify!(key_material)
242         )
243     );
244     assert_eq!(
245         unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize },
246         32usize,
247         concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_len))
248     );
249     assert_eq!(
250         unsafe { ::std::ptr::addr_of!((*ptr).key_idx) as usize - ptr as usize },
251         36usize,
252         concat!("Offset of field: ", stringify!(virtio_wifi_key_data), "::", stringify!(key_idx))
253     );
254 }
255 extern "C" {
get_active_ptk() -> virtio_wifi_key_data256     pub fn get_active_ptk() -> virtio_wifi_key_data;
257 }
258 extern "C" {
get_active_gtk() -> virtio_wifi_key_data259     pub fn get_active_gtk() -> virtio_wifi_key_data;
260 }
261