diff options
| author | Markus PiƩton <marpie@a12d404.net> | 2021-04-19 19:33:34 +0200 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2021-04-28 14:18:34 -0400 |
| commit | b01f92a7efe481e67d1eb96c98078cbd793b67d9 (patch) | |
| tree | 9725eefabae090657bd2e7a8bee961bea74fe01e /rust/src | |
| parent | 4567dee5d8cee82dfdcd21befedc99296f8cf623 (diff) | |
Fix wrong CorePluginABIVersion, plugin_abi_version, and plugin_abi_minimum_version
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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 |
