summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-09-15 01:55:28 -0400
committerRusty Wagner <rusty@vector35.com>2016-09-15 01:55:28 -0400
commit124cf1bc4f465a915621b7ac81af94b9a69a937a (patch)
tree2e9319c6ac28141a26a83197a210923ef161e58c /binaryninjacore.h
parentfb0d896cd5cc3197a8dd259a9ca53f2788ef5fdb (diff)
Add APIs to display busy indicator for long running plugin tasks
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index de7b77fd..89dceba1 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -102,6 +102,7 @@ extern "C"
struct BNScriptingProvider;
struct BNScriptingInstance;
struct BNMainThreadAction;
+ struct BNBackgroundTask;
//! Console log levels
enum BNLogLevel
@@ -2014,6 +2015,21 @@ extern "C"
BINARYNINJACOREAPI size_t BNGetWorkerThreadCount(void);
BINARYNINJACOREAPI void BNSetWorkerThreadCount(size_t count);
+ // Background task progress reporting
+ BINARYNINJACOREAPI BNBackgroundTask* BNBeginBackgroundTask(const char* initialText, bool canCancel);
+ BINARYNINJACOREAPI void BNFinishBackgroundTask(BNBackgroundTask* task);
+ BINARYNINJACOREAPI void BNSetBackgroundTaskProgressText(BNBackgroundTask* task, const char* text);
+ BINARYNINJACOREAPI bool BNIsBackgroundTaskCancelled(BNBackgroundTask* task);
+
+ BINARYNINJACOREAPI BNBackgroundTask** BNGetRunningBackgroundTasks(size_t* count);
+ BINARYNINJACOREAPI BNBackgroundTask* BNNewBackgroundTaskReference(BNBackgroundTask* task);
+ BINARYNINJACOREAPI void BNFreeBackgroundTask(BNBackgroundTask* task);
+ BINARYNINJACOREAPI void BNFreeBackgroundTaskList(BNBackgroundTask** tasks, size_t count);
+ BINARYNINJACOREAPI char* BNGetBackgroundTaskProgressText(BNBackgroundTask* task);
+ BINARYNINJACOREAPI bool BNCanCancelBackgroundTask(BNBackgroundTask* task);
+ BINARYNINJACOREAPI void BNCancelBackgroundTask(BNBackgroundTask* task);
+ BINARYNINJACOREAPI bool BNIsBackgroundTaskFinished(BNBackgroundTask* task);
+
#ifdef __cplusplus
}
#endif