From b01f92a7efe481e67d1eb96c98078cbd793b67d9 Mon Sep 17 00:00:00 2001 From: Markus PiƩton Date: Mon, 19 Apr 2021 19:33:34 +0200 Subject: Fix wrong CorePluginABIVersion, plugin_abi_version, and plugin_abi_minimum_version --- rust/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rust/src') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 471c04ce..b822523a 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -217,12 +217,14 @@ pub fn version() -> string::BnString { unsafe { string::BnString::from_raw(binaryninjacore_sys::BNGetVersionString()) } } +// TODO : We need to get this from uitypes.h::BN_CURRENT_UI_ABI_VERSION pub fn plugin_abi_version() -> u32 { - binaryninjacore_sys::BN_CURRENT_CORE_ABI_VERSION + 2 } +// TODO : We need to get this from uitypes.h::BN_MINIMUM_UI_ABI_VERSION pub fn plugin_abi_minimum_version() -> u32 { - binaryninjacore_sys::BN_MINIMUM_CORE_ABI_VERSION + 2 } pub fn core_abi_version() -> u32 { @@ -238,7 +240,7 @@ pub fn core_abi_minimum_version() -> u32 { #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginABIVersion() -> u32 { - plugin_abi_version() + core_abi_version() } // TODO : We need to get this from uitypes.h -- cgit v1.3.1