| 154 | |
| 155 | |
| 156 | void PluginCommand::HighLevelILInstructionPluginCommandActionCallback( |
| 157 | void* ctxt, BNBinaryView* view, BNHighLevelILFunction* func, size_t instr) |
| 158 | { |
| 159 | RegisteredHighLevelILInstructionCommand* cmd = (RegisteredHighLevelILInstructionCommand*)ctxt; |
| 160 | Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view)); |
| 161 | Ref<HighLevelILFunction> funcObject = new HighLevelILFunction(BNNewHighLevelILFunctionReference(func)); |
| 162 | HighLevelILInstruction instrObject = funcObject->GetInstruction(instr); |
| 163 | cmd->action(viewObject, instrObject); |
| 164 | } |
| 165 | |
| 166 | |
| 167 | bool PluginCommand::DefaultPluginCommandIsValidCallback(void* ctxt, BNBinaryView* view) |
nothing calls this directly
no test coverage detected