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

pub const FLB_ERROR : u32 = 0 ; pub const FLB_OK : u32 = 1 ; pub const FLB_RETRY : u32 = 2 ; pub const FLB_PROXY_OUTPUT_PLUGIN : u32 = 2 ; pub const FLB_PROXY_GOLANG : u32 = 11 ; pub const FLB_LOG_OFF : u32 = 0 ; pub const FLB_LOG_ERROR : u32 = 1 ; pub const FLB_LOG_WARN : u32 = 2 ; pub const FLB_LOG_INFO : u32 = 3 ; pub const FLB_LOG_DEBUG : u32 = 4 ; pub const FLB_LOG_TRACE : u32 = 5 ; pub const FLB_LOG_HELP : u32 = 6 ; pub const FLB_LOG_IDEBUG : u32 = 10 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct flb_api { pub output_get_property : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_char , arg2 : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_char > , } # [ test ] fn bindgen_test_layout_flb_api ( ) { assert_eq ! ( :: std :: mem :: size_of :: < flb_api > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( flb_api ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < flb_api > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( flb_api ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_api > ( ) ) ) . output_get_property as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( flb_api ) , "::" , stringify ! ( output_get_property ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct flb_plugin_proxy_context { pub remote_context : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_flb_plugin_proxy_context ( ) { assert_eq ! ( :: std :: mem :: size_of :: < flb_plugin_proxy_context > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( flb_plugin_proxy_context ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < flb_plugin_proxy_context > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( flb_plugin_proxy_context ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_context > ( ) ) ) . remote_context as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_context ) , "::" , stringify ! ( remote_context ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct flbgo_output_plugin { pub __ : * mut :: std :: os :: raw :: c_void , pub api : * mut flb_api , pub o_ins : * mut flb_output_instance , pub context : * mut flb_plugin_proxy_context , } # [ test ] fn bindgen_test_layout_flbgo_output_plugin ( ) { assert_eq ! ( :: std :: mem :: size_of :: < flbgo_output_plugin > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( flbgo_output_plugin ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < flbgo_output_plugin > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( flbgo_output_plugin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flbgo_output_plugin > ( ) ) ) . __ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( flbgo_output_plugin ) , "::" , stringify ! ( __ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flbgo_output_plugin > ( ) ) ) . api as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( flbgo_output_plugin ) , "::" , stringify ! ( api ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flbgo_output_plugin > ( ) ) ) . o_ins as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( flbgo_output_plugin ) , "::" , stringify ! ( o_ins ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flbgo_output_plugin > ( ) ) ) . context as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( flbgo_output_plugin ) , "::" , stringify ! ( context ) ) ) ; } extern "C" { pub fn output_get_property ( key : * mut :: std :: os :: raw :: c_char , plugin : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_char ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct flb_plugin_proxy_def { pub type_ : :: std :: os :: raw :: c_int , pub proxy : :: std :: os :: raw :: c_int , pub flags : :: std :: os :: raw :: c_int , pub name : * mut :: std :: os :: raw :: c_char , pub description : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_flb_plugin_proxy_def ( ) { assert_eq ! ( :: std :: mem :: size_of :: < flb_plugin_proxy_def > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( flb_plugin_proxy_def ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < flb_plugin_proxy_def > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( flb_plugin_proxy_def ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_def > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_def ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_def > ( ) ) ) . proxy as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_def ) , "::" , stringify ! ( proxy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_def > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_def ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_def > ( ) ) ) . name as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_def ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < flb_plugin_proxy_def > ( ) ) ) . description as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( flb_plugin_proxy_def ) , "::" , stringify ! ( description ) ) ) ; } extern "C" { pub fn flb_log_print ( type_ : :: std :: os :: raw :: c_int , file : * const :: std :: os :: raw :: c_char , line : :: std :: os :: raw :: c_int , fmt : * const :: std :: os :: raw :: c_char , ... ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct flb_output_instance { pub _address : u8 , }