• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![allow(
2     dead_code,
3     non_snake_case,
4     non_camel_case_types,
5     non_upper_case_globals
6 )]
7 
8 #[repr(C)]
9 pub struct C__bindgen_vtable {
10     pub C_do_thing:
11         unsafe extern "C" fn(this: *mut C, arg1: ::std::os::raw::c_char),
12     pub C_do_thing1:
13         unsafe extern "C" fn(this: *mut C, arg1: ::std::os::raw::c_int),
14 }
15 #[repr(C)]
16 #[derive(Debug, Copy, Clone)]
17 pub struct C {
18     pub vtable_: *const C__bindgen_vtable,
19 }
20 #[test]
bindgen_test_layout_C()21 fn bindgen_test_layout_C() {
22     assert_eq!(
23         ::std::mem::size_of::<C>(),
24         8usize,
25         concat!("Size of: ", stringify!(C))
26     );
27     assert_eq!(
28         ::std::mem::align_of::<C>(),
29         8usize,
30         concat!("Alignment of ", stringify!(C))
31     );
32 }
33 impl Default for C {
default() -> Self34     fn default() -> Self {
35         let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
36         unsafe {
37             ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
38             s.assume_init()
39         }
40     }
41 }
42 extern "C" {
43     #[link_name = "\u{1}_ZN1C8do_thingEc"]
C_do_thing( this: *mut ::std::os::raw::c_void, arg1: ::std::os::raw::c_char, )44     pub fn C_do_thing(
45         this: *mut ::std::os::raw::c_void,
46         arg1: ::std::os::raw::c_char,
47     );
48 }
49 extern "C" {
50     #[link_name = "\u{1}_ZN1C8do_thingEi"]
C_do_thing1( this: *mut ::std::os::raw::c_void, arg1: ::std::os::raw::c_int, )51     pub fn C_do_thing1(
52         this: *mut ::std::os::raw::c_void,
53         arg1: ::std::os::raw::c_int,
54     );
55 }
56