diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-06-30 17:15:19 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-06-30 17:15:32 -0400 |
| commit | a7eaa72caa4a5e3e7cd7ea7c32236c93b06d1442 (patch) | |
| tree | ef0178c735374bc86f499379a342e6a61b916367 /binaryninjacore.h | |
| parent | 32153536526753edc3e80ea43512ad7ab65a3271 (diff) | |
Add API for analysis progress
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 6a1e6a63..048255b1 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -735,6 +735,19 @@ extern "C" uint64_t address; }; + enum BNAnalysisState + { + IdleState, + DisassembleState, + AnalyzeState + }; + + struct BNAnalysisProgress + { + BNAnalysisState state; + size_t count, total; + }; + BINARYNINJACOREAPI char* BNAllocString(const char* contents); BINARYNINJACOREAPI void BNFreeString(char* str); @@ -1211,6 +1224,8 @@ extern "C" BINARYNINJACOREAPI void BNFreeAnalysisCompletionEvent(BNAnalysisCompletionEvent* event); BINARYNINJACOREAPI void BNCancelAnalysisCompletionEvent(BNAnalysisCompletionEvent* event); + BINARYNINJACOREAPI BNAnalysisProgress BNGetAnalysisProgress(BNBinaryView* view); + // Function graph BINARYNINJACOREAPI BNFunctionGraph* BNCreateFunctionGraph(BNFunction* func); BINARYNINJACOREAPI BNFunctionGraph* BNNewFunctionGraphReference(BNFunctionGraph* graph); |
