update bindings

This commit is contained in:
Jules Youngberg 2022-06-06 23:44:28 -07:00
parent 87bc848557
commit 76b6f2bbdf

View File

@ -82,12 +82,13 @@ pub struct mediagraph_Mediagraph__bindgen_vtable(::std::os::raw::c_void);
#[derive(Debug)] #[derive(Debug)]
pub struct mediagraph_Mediagraph { pub struct mediagraph_Mediagraph {
pub vtable_: *const mediagraph_Mediagraph__bindgen_vtable, pub vtable_: *const mediagraph_Mediagraph__bindgen_vtable,
pub m_graph_type: mediagraph_GraphType,
} }
#[test] #[test]
fn bindgen_test_layout_mediagraph_Mediagraph() { fn bindgen_test_layout_mediagraph_Mediagraph() {
assert_eq!( assert_eq!(
::std::mem::size_of::<mediagraph_Mediagraph>(), ::std::mem::size_of::<mediagraph_Mediagraph>(),
8usize, 16usize,
concat!("Size of: ", stringify!(mediagraph_Mediagraph)) concat!("Size of: ", stringify!(mediagraph_Mediagraph))
); );
assert_eq!( assert_eq!(
@ -95,6 +96,18 @@ fn bindgen_test_layout_mediagraph_Mediagraph() {
8usize, 8usize,
concat!("Alignment of ", stringify!(mediagraph_Mediagraph)) concat!("Alignment of ", stringify!(mediagraph_Mediagraph))
); );
assert_eq!(
unsafe {
&(*(::std::ptr::null::<mediagraph_Mediagraph>())).m_graph_type as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(mediagraph_Mediagraph),
"::",
stringify!(m_graph_type)
)
);
} }
extern "C" { extern "C" {
#[link_name = "\u{1}__ZN10mediagraph10Mediagraph6CreateENS_9GraphTypeEPKcS3_"] #[link_name = "\u{1}__ZN10mediagraph10Mediagraph6CreateENS_9GraphTypeEPKcS3_"]