From 09a967c5eae079c82fb6c498c0fcf1720723c42b Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Thu, 16 May 2024 17:56:07 -0300 Subject: [PATCH] add `is_enterprise_server_initialized` --- rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index bfe301ab1..e966af411 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -577,6 +577,10 @@ pub fn is_enterprise_server_authenticated() -> bool { unsafe { binaryninjacore_sys::BNIsEnterpriseServerAuthenticated() } } +pub fn is_enterprise_server_initialized() -> bool { + unsafe { binaryninjacore_sys::BNIsEnterpriseServerInitialized() } +} + pub fn enterprise_server_last_error() -> string::BnString { unsafe { string::BnString::from_raw(binaryninjacore_sys::BNGetEnterpriseServerLastError()) } }