From d5dc1c2e3169760156ac54c976bbe1ea3d9a8441 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 23 Mar 2015 22:52:58 -0400 Subject: Add E hotkey to in-place edit instructions in graph view --- binaryninjaapi.h | 1 + functiongraphblock.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 379e0d88..358d278b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -832,6 +832,7 @@ namespace BinaryNinja BNFunctionGraphBlock* GetBlockObject() const { return m_block; } + Ref GetArchitecture() const; uint64_t GetStart() const; uint64_t GetEnd() const; int GetX() const; diff --git a/functiongraphblock.cpp b/functiongraphblock.cpp index 3653d749..d598c4a1 100644 --- a/functiongraphblock.cpp +++ b/functiongraphblock.cpp @@ -15,6 +15,12 @@ FunctionGraphBlock::~FunctionGraphBlock() } +Ref FunctionGraphBlock::GetArchitecture() const +{ + return new CoreArchitecture(BNGetFunctionGraphBlockArchitecture(m_block)); +} + + uint64_t FunctionGraphBlock::GetStart() const { return BNGetFunctionGraphBlockStart(m_block); -- cgit v1.3.1