1
2
3
/* automatically generated by rust-bindgen */

# [ repr ( u32 ) ] # [ derive ( Debug , Copy , Clone , PartialEq , Eq , Hash ) ] pub enum cr_op { CR_LOAD = 0 , CR_STEP = 1 , CR_UNLOAD = 2 , CR_CLOSE = 3 , } # [ repr ( u32 ) ] # [ derive ( Debug , Copy , Clone , PartialEq , Eq , Hash ) ] pub enum cr_failure { CR_NONE = 0 , CR_SEGFAULT = 1 , CR_ILLEGAL = 2 , CR_ABORT = 3 , CR_MISALIGN = 4 , CR_BOUNDS = 5 , CR_STACKOVERFLOW = 6 , CR_STATE_INVALIDATED = 7 , CR_BAD_IMAGE = 8 , CR_OTHER = 9 , CR_USER = 256 , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct cr_plugin { pub p : * mut :: std :: os :: raw :: c_void , pub userdata : * mut :: std :: os :: raw :: c_void , pub version : :: std :: os :: raw :: c_uint , pub failure : cr_failure , } # [ test ] fn bindgen_test_layout_cr_plugin ( ) { assert_eq ! ( :: std :: mem :: size_of :: < cr_plugin > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( cr_plugin ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < cr_plugin > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( cr_plugin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < cr_plugin > ( ) ) ) . p as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( cr_plugin ) , "::" , stringify ! ( p ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < cr_plugin > ( ) ) ) . userdata as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( cr_plugin ) , "::" , stringify ! ( userdata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < cr_plugin > ( ) ) ) . version as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( cr_plugin ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < cr_plugin > ( ) ) ) . failure as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( cr_plugin ) , "::" , stringify ! ( failure ) ) ) ; } extern "C" { pub fn cr_plugin_load ( ctx : * mut cr_plugin , fullpath : * const :: std :: os :: raw :: c_char ) -> bool ; } extern "C" { pub fn cr_plugin_close ( ctx : * mut cr_plugin ) ; } extern "C" { pub fn wrap_cr_set_temporary_path ( ctx : * mut cr_plugin , path : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn rust_cr_plugin_reload_fix ( ctx : * mut cr_plugin ) ; } extern "C" { pub fn rust_cr_plugin_update_fix ( ctx : * mut cr_plugin , reloadCheck : bool ) -> :: std :: os :: raw :: c_int ; }