summaryrefslogtreecommitdiff
path: root/rust/src/enterprise.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/enterprise.rs')
-rw-r--r--rust/src/enterprise.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/src/enterprise.rs b/rust/src/enterprise.rs
index aecbf974..6a4088dc 100644
--- a/rust/src/enterprise.rs
+++ b/rust/src/enterprise.rs
@@ -1,5 +1,6 @@
use crate::rc::Array;
use crate::string::{BnStrCompatible, BnString};
+use std::ffi::c_void;
use std::marker::PhantomData;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use thiserror::Error;
@@ -245,14 +246,14 @@ pub fn register_license_changed_callback<'a, F: FnMut(bool) + 'a>(
callback: F,
) -> EnterpriseServerCallback<'a> {
unsafe extern "C" fn cb_license_status_changed<F: FnMut(bool)>(
- ctxt: *mut ::std::os::raw::c_void,
+ ctxt: *mut c_void,
still_valid: bool,
) {
let ctxt: &mut F = &mut *(ctxt as *mut F);
ctxt(still_valid)
}
let mut handle = binaryninjacore_sys::BNEnterpriseServerCallbacks {
- context: Box::leak(Box::new(callback)) as *mut F as *mut core::ffi::c_void,
+ context: Box::leak(Box::new(callback)) as *mut F as *mut c_void,
licenseStatusChanged: Some(cb_license_status_changed::<F>),
};
unsafe { binaryninjacore_sys::BNRegisterEnterpriseServerNotification(&mut handle) }