diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-09-26 23:12:20 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-09-29 21:02:20 -0400 |
| commit | 207925956bb8ca0174d40523fda70bfb5bc7bd38 (patch) | |
| tree | 4d5c8cba9ee2ad2b061f1e420c681a793ad397b8 /binaryninjaapi.cpp | |
| parent | 5c8aa2ad6c2c03b37cacad4021f81310be12f375 (diff) | |
Interaction::RunProgressDialog
Diffstat (limited to 'binaryninjaapi.cpp')
| -rw-r--r-- | binaryninjaapi.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp index 610cb494..3c7f5e83 100644 --- a/binaryninjaapi.cpp +++ b/binaryninjaapi.cpp @@ -422,3 +422,12 @@ std::function<bool(size_t, size_t)> BinaryNinja::SplitProgress( return originalFn(subpartStarts[subpart] * steps + subpartProgress, steps); }; } + + +bool BinaryNinja::ProgressCallback(void* ctxt, size_t current, size_t total) +{ + ProgressContext* pctxt = reinterpret_cast<ProgressContext*>(ctxt); + if (!pctxt->callback) + return true; + return pctxt->callback(current, total); +} |
