| 
 | 1 | +/* automatically generated by rust-bindgen 0.72.1 */  | 
 | 2 | + | 
 | 3 | +pub const MARKER_TYPE_SAMPLE_START: u32 = 0;  | 
 | 4 | +pub const MARKER_TYPE_SAMPLE_END: u32 = 1;  | 
 | 5 | +pub const MARKER_TYPE_BENCHMARK_START: u32 = 2;  | 
 | 6 | +pub const MARKER_TYPE_BENCHMARK_END: u32 = 3;  | 
 | 7 | +pub type InstrumentHooks = *mut u64;  | 
 | 8 | +extern "C" {  | 
 | 9 | +    pub fn instrument_hooks_init() -> *mut InstrumentHooks;  | 
 | 10 | +}  | 
 | 11 | +extern "C" {  | 
 | 12 | +    pub fn instrument_hooks_deinit(arg1: *mut InstrumentHooks);  | 
 | 13 | +}  | 
 | 14 | +extern "C" {  | 
 | 15 | +    pub fn instrument_hooks_is_instrumented(arg1: *mut InstrumentHooks) -> bool;  | 
 | 16 | +}  | 
 | 17 | +extern "C" {  | 
 | 18 | +    pub fn instrument_hooks_start_benchmark(arg1: *mut InstrumentHooks) -> u8;  | 
 | 19 | +}  | 
 | 20 | +extern "C" {  | 
 | 21 | +    pub fn instrument_hooks_stop_benchmark(arg1: *mut InstrumentHooks) -> u8;  | 
 | 22 | +}  | 
 | 23 | +extern "C" {  | 
 | 24 | +    pub fn instrument_hooks_set_executed_benchmark(  | 
 | 25 | +        arg1: *mut InstrumentHooks,  | 
 | 26 | +        pid: i32,  | 
 | 27 | +        uri: *const ::std::os::raw::c_char,  | 
 | 28 | +    ) -> u8;  | 
 | 29 | +}  | 
 | 30 | +extern "C" {  | 
 | 31 | +    pub fn instrument_hooks_executed_benchmark(  | 
 | 32 | +        arg1: *mut InstrumentHooks,  | 
 | 33 | +        pid: i32,  | 
 | 34 | +        uri: *const ::std::os::raw::c_char,  | 
 | 35 | +    ) -> u8;  | 
 | 36 | +}  | 
 | 37 | +extern "C" {  | 
 | 38 | +    pub fn instrument_hooks_set_integration(  | 
 | 39 | +        arg1: *mut InstrumentHooks,  | 
 | 40 | +        name: *const ::std::os::raw::c_char,  | 
 | 41 | +        version: *const ::std::os::raw::c_char,  | 
 | 42 | +    ) -> u8;  | 
 | 43 | +}  | 
 | 44 | +extern "C" {  | 
 | 45 | +    pub fn instrument_hooks_add_marker(  | 
 | 46 | +        arg1: *mut InstrumentHooks,  | 
 | 47 | +        pid: u32,  | 
 | 48 | +        marker_type: u8,  | 
 | 49 | +        timestamp: u64,  | 
 | 50 | +    ) -> u8;  | 
 | 51 | +}  | 
 | 52 | +extern "C" {  | 
 | 53 | +    pub fn instrument_hooks_current_timestamp() -> u64;  | 
 | 54 | +}  | 
 | 55 | +pub const instrument_hooks_feature_t_FEATURE_DISABLE_CALLGRIND_MARKERS: instrument_hooks_feature_t =  | 
 | 56 | +    0;  | 
 | 57 | +pub type instrument_hooks_feature_t = ::std::os::raw::c_uint;  | 
 | 58 | +extern "C" {  | 
 | 59 | +    pub fn instrument_hooks_set_feature(feature: instrument_hooks_feature_t, enabled: bool);  | 
 | 60 | +}  | 
0 commit comments