diff options
| author | Rusty Wagner <dontpanic@binaryninja.com> | 2015-03-20 03:35:54 -0400 |
|---|---|---|
| committer | Rusty Wagner <dontpanic@binaryninja.com> | 2015-03-20 03:35:54 -0400 |
| commit | c9e5aed3001ebb119ee6f3184449327731ec0d32 (patch) | |
| tree | c26e39930078a1ae020b357184cfe6e5b2bd4fb0 | |
| parent | dde32cdf497fe54312eca476bc32e147671d3c0d (diff) | |
Function list filtering UI
| -rw-r--r-- | binaryninjaapi.h | 1 | ||||
| -rw-r--r-- | function.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 26bf6759..8ec7a5f9 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -769,6 +769,7 @@ namespace BinaryNinja Ref<Architecture> GetArchitecture() const; uint64_t GetStart() const; + Ref<Symbol> GetSymbol() const; std::vector<Ref<BasicBlock>> GetBasicBlocks() const; void MarkRecentUse(); diff --git a/function.cpp b/function.cpp index eb42c46c..2219ba57 100644 --- a/function.cpp +++ b/function.cpp @@ -27,6 +27,12 @@ uint64_t Function::GetStart() const } +Ref<Symbol> Function::GetSymbol() const +{ + return new Symbol(BNNewSymbolReference(BNGetFunctionSymbol(m_func))); +} + + vector<Ref<BasicBlock>> Function::GetBasicBlocks() const { size_t count; |
