| 208 | |
| 209 | |
| 210 | bool PluginCommand::LowLevelILInstructionPluginCommandIsValidCallback( |
| 211 | void* ctxt, BNBinaryView* view, BNLowLevelILFunction* func, size_t instr) |
| 212 | { |
| 213 | RegisteredLowLevelILInstructionCommand* cmd = (RegisteredLowLevelILInstructionCommand*)ctxt; |
| 214 | Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view)); |
| 215 | Ref<LowLevelILFunction> funcObject = new LowLevelILFunction(BNNewLowLevelILFunctionReference(func)); |
| 216 | LowLevelILInstruction instrObject = funcObject->GetInstruction(instr); |
| 217 | return cmd->isValid(viewObject, instrObject); |
| 218 | } |
| 219 | |
| 220 | |
| 221 | bool PluginCommand::MediumLevelILFunctionPluginCommandIsValidCallback( |
nothing calls this directly
no test coverage detected