diff options
| author | Rubens Brandao <git@rubens.io> | 2024-05-16 16:44:24 -0300 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-07-26 18:38:40 -0400 |
| commit | 031456e41d4b1bc5a185934fb7a0a506618d3a8d (patch) | |
| tree | 94c51bd5593a3a3a73fc283e44a9be13b3a86c95 /rust/src/headless.rs | |
| parent | 8a5cd4b42efd254672d9e3e60e13702de7149ad4 (diff) | |
Add more core API's to rust
Diffstat (limited to 'rust/src/headless.rs')
| -rw-r--r-- | rust/src/headless.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs index d4d8892a..fdde2608 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -99,6 +99,10 @@ pub fn shutdown() { unsafe { binaryninjacore_sys::BNShutdown() }; } +pub fn is_shutdown_requested() { + unsafe { binaryninjacore_sys::BNIsShutdownRequested() }; +} + /// Prelued-postlued helper function (calls [`init`] and [`shutdown`] for you) /// ```no_run /// # use binaryninja::binaryview::BinaryViewExt; |
