/* automatically generated by rust-bindgen */ pub const __GNUC_VA_LIST: u32 = 1; pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; /// @brief The callback function which is used as the continuation to call the va_list function /// @param data The callback additoinal data /// @param ap The valist pointer /// @return nothing pub type rust_va_list_callback_func_t = ::std::option::Option< unsafe extern "C" fn(ap: *mut __va_list_tag, data: *mut ::std::os::raw::c_void), >; /// @brief The wrapper function for rust calling a function with valist pointer /// @param cont The continuation function /// @param data The additional data pointer /// @return nothing pub type rust_va_list_wrapper_func_t = ::std::option::Option< unsafe extern "C" fn( cont: rust_va_list_callback_func_t, data: *mut ::std::os::raw::c_void, ... ), >; pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __va_list_tag { pub gp_offset: ::std::os::raw::c_uint, pub fp_offset: ::std::os::raw::c_uint, pub overflow_arg_area: *mut ::std::os::raw::c_void, pub reg_save_area: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout___va_list_tag() { assert_eq!( ::std::mem::size_of::<__va_list_tag>(), 24usize, concat!("Size of: ", stringify!(__va_list_tag)) ); assert_eq!( ::std::mem::align_of::<__va_list_tag>(), 8usize, concat!("Alignment of ", stringify!(__va_list_tag)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(gp_offset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(fp_offset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(overflow_arg_area) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(reg_save_area) ) ); }