diff options
| author | Brian Potchik <brian@vector35.com> | 2018-01-22 23:57:00 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2018-01-22 23:57:00 -0500 |
| commit | 80a5b6d9bca0b0ef4d2a7d33b632d558d6d9b0f0 (patch) | |
| tree | 2cf772cae9cc111c43db4ab3ca58e6b9a790af89 /binaryview.cpp | |
| parent | 6580ae315ea60d630625f7f8592ebddfc95bf563 (diff) | |
Add Access to Background Analysis Task.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 0ee428e1..96fd161d 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1351,6 +1351,16 @@ BNAnalysisProgress BinaryView::GetAnalysisProgress() } +Ref<BackgroundTask> BinaryView::GetBackgroundAnalysisTask() +{ + BNBackgroundTask* task = BNGetBackgroundAnalysisTask(m_object); + if (!task) + return nullptr; + + return new BackgroundTask(BNNewBackgroundTaskReference(task)); +} + + uint64_t BinaryView::GetNextFunctionStartAfterAddress(uint64_t addr) { return BNGetNextFunctionStartAfterAddress(m_object, addr); |
