From 1c9293031e8b4554756350ccd33363cdd83bfc43 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 10 Mar 2015 03:21:04 -0400 Subject: Implement make function hotkey and disassembly navigation --- binaryninjaapi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index b0ed5a04..4e6c09b3 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -308,6 +308,7 @@ namespace BinaryNinja class Architecture; class Function; + class BasicBlock; class BinaryView: public RefCountObject { @@ -381,6 +382,9 @@ namespace BinaryNinja uint64_t GetLength() const; uint64_t GetEntryPoint() const; + Ref GetDefaultArchitecture() const; + void SetDefaultArchitecture(Architecture* arch); + bool IsExecutable() const; bool Save(FileAccessor* file); @@ -396,7 +400,12 @@ namespace BinaryNinja std::vector> GetAnalysisFunctionList(); Ref GetAnalysisFunction(Architecture* arch, uint64_t addr); + Ref GetRecentAnalysisFunctionForAddress(uint64_t addr); + std::vector> GetAnalysisFunctionsForAddress(uint64_t addr); Ref GetAnalysisEntryPoint(); + + Ref GetRecentBasicBlockForAddress(uint64_t addr); + std::vector> GetBasicBlocksForAddress(uint64_t addr); }; class BinaryData: public BinaryView @@ -690,6 +699,8 @@ namespace BinaryNinja uint64_t GetLength() const; std::vector GetOutgoingEdges() const; + + void MarkRecentUse(); }; class FunctionGraph; @@ -708,6 +719,7 @@ namespace BinaryNinja uint64_t GetStart() const; std::vector> GetBasicBlocks() const; + void MarkRecentUse(); Ref CreateFunctionGraph(); }; @@ -736,6 +748,8 @@ namespace BinaryNinja BNFunctionGraphBlock* GetBlockObject() const { return m_block; } + uint64_t GetStart() const; + uint64_t GetEnd() const; int GetX() const; int GetY() const; int GetWidth() const; -- cgit v1.3.1