diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-12-14 14:43:19 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-12-14 14:43:45 -0500 |
| commit | 73d4094f1d3f666c30f7533231261eb375cef6e8 (patch) | |
| tree | c66050223d09b2b3ecba4630b273da089f785642 | |
| parent | 08a2e3fc0310ae7cc6d8374fef9301711cb26ae6 (diff) | |
Plugin command UI
| -rw-r--r-- | binaryninjaapi.h | 4 | ||||
| -rw-r--r-- | plugin.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 59b4379f..c7bb0dd7 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1473,7 +1473,7 @@ namespace BinaryNinja std::string GetName() const { return m_command.name; } std::string GetDescription() const { return m_command.description; } - bool IsValid(const PluginCommandContext& ctxt); - void Execute(const PluginCommandContext& ctxt); + bool IsValid(const PluginCommandContext& ctxt) const; + void Execute(const PluginCommandContext& ctxt) const; }; } @@ -200,7 +200,7 @@ vector<PluginCommand> PluginCommand::GetValidList(const PluginCommandContext& ct } -bool PluginCommand::IsValid(const PluginCommandContext& ctxt) +bool PluginCommand::IsValid(const PluginCommandContext& ctxt) const { if (!ctxt.view) return false; @@ -234,7 +234,7 @@ bool PluginCommand::IsValid(const PluginCommandContext& ctxt) } -void PluginCommand::Execute(const PluginCommandContext& ctxt) +void PluginCommand::Execute(const PluginCommandContext& ctxt) const { if (!IsValid(ctxt)) return; |
