evdi_sys/
wrapper_bindings.rs1#[repr(C)]
4#[derive(Debug, Copy, Clone)]
5pub struct wrapper_log_cb {
6 pub function: ::std::option::Option<
7 unsafe extern "C" fn(
8 user_data: *mut ::std::os::raw::c_void,
9 msg: *const ::std::os::raw::c_char,
10 ),
11 >,
12 pub user_data: *mut ::std::os::raw::c_void,
13}
14#[test]
15fn bindgen_test_layout_wrapper_log_cb() {
16 assert_eq!(
17 ::std::mem::size_of::<wrapper_log_cb>(),
18 16usize,
19 concat!("Size of: ", stringify!(wrapper_log_cb))
20 );
21 assert_eq!(
22 ::std::mem::align_of::<wrapper_log_cb>(),
23 8usize,
24 concat!("Alignment of ", stringify!(wrapper_log_cb))
25 );
26 assert_eq!(
27 unsafe { &(*(::std::ptr::null::<wrapper_log_cb>())).function as *const _ as usize },
28 0usize,
29 concat!(
30 "Offset of field: ",
31 stringify!(wrapper_log_cb),
32 "::",
33 stringify!(function)
34 )
35 );
36 assert_eq!(
37 unsafe { &(*(::std::ptr::null::<wrapper_log_cb>())).user_data as *const _ as usize },
38 8usize,
39 concat!(
40 "Offset of field: ",
41 stringify!(wrapper_log_cb),
42 "::",
43 stringify!(user_data)
44 )
45 );
46}
47extern "C" {
48 pub static mut wrapper_log_cb: wrapper_log_cb;
49}
50extern "C" {
51 pub fn wrapper_evdi_set_logging(cb: wrapper_log_cb);
52}