| 250 | |
| 251 | |
| 252 | bool PluginCommand::HighLevelILInstructionPluginCommandIsValidCallback( |
| 253 | void* ctxt, BNBinaryView* view, BNHighLevelILFunction* func, size_t instr) |
| 254 | { |
| 255 | RegisteredHighLevelILInstructionCommand* cmd = (RegisteredHighLevelILInstructionCommand*)ctxt; |
| 256 | Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view)); |
| 257 | Ref<HighLevelILFunction> funcObject = new HighLevelILFunction(BNNewHighLevelILFunctionReference(func)); |
| 258 | HighLevelILInstruction instrObject = funcObject->GetInstruction(instr); |
| 259 | return cmd->isValid(viewObject, instrObject); |
| 260 | } |
| 261 | |
| 262 | |
| 263 | void PluginCommand::Register( |
nothing calls this directly
no test coverage detected