(
ctxt: *mut c_void,
bv: *mut BNBinaryView,
func: *mut BNFunction,
llil: *mut BNLowLevelILFunction,
)
| 38 | } |
| 39 | |
| 40 | extern "C" fn cb_recognize_low_level_il<R>( |
| 41 | ctxt: *mut c_void, |
| 42 | bv: *mut BNBinaryView, |
| 43 | func: *mut BNFunction, |
| 44 | llil: *mut BNLowLevelILFunction, |
| 45 | ) -> bool |
| 46 | where |
| 47 | R: 'static + FunctionRecognizer + Send + Sync, |
| 48 | { |
| 49 | let context = unsafe { &*(ctxt as *mut FunctionRecognizerHandlerContext<R>) }; |
| 50 | let bv = unsafe { BinaryView::from_raw(bv).to_owned() }; |
| 51 | let func = unsafe { Function::from_raw(func).to_owned() }; |
| 52 | let llil = unsafe { LowLevelILFunction::from_raw(func.arch(), llil).to_owned() }; |
| 53 | context.recognizer.recognize_low_level_il(&bv, &func, &llil) |
| 54 | } |
| 55 | |
| 56 | extern "C" fn cb_recognize_medium_level_il<R>( |
| 57 | ctxt: *mut c_void, |
nothing calls this directly
no test coverage detected