| 229 | |
| 230 | |
| 231 | bool PluginCommand::MediumLevelILInstructionPluginCommandIsValidCallback( |
| 232 | void* ctxt, BNBinaryView* view, BNMediumLevelILFunction* func, size_t instr) |
| 233 | { |
| 234 | RegisteredMediumLevelILInstructionCommand* cmd = (RegisteredMediumLevelILInstructionCommand*)ctxt; |
| 235 | Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view)); |
| 236 | Ref<MediumLevelILFunction> funcObject = new MediumLevelILFunction(BNNewMediumLevelILFunctionReference(func)); |
| 237 | MediumLevelILInstruction instrObject = funcObject->GetInstruction(instr); |
| 238 | return cmd->isValid(viewObject, instrObject); |
| 239 | } |
| 240 | |
| 241 | |
| 242 | bool PluginCommand::HighLevelILFunctionPluginCommandIsValidCallback( |
nothing calls this directly
no test coverage detected