From 37f159a0ef0d517f88d78c8450d120b8aa6d9ccb Mon Sep 17 00:00:00 2001 From: 0cyn Date: Tue, 21 Apr 2026 09:36:57 -0400 Subject: Expose all version-specific info for extensions in API --- binaryninjaapi.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 57f896dd..fe57d92d 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1962,8 +1962,16 @@ namespace BinaryNinja { { char* smallerChan = BNAllocString(channel.c_str()); char* largerChan = BNAllocString(other.channel.c_str()); - BNVersionInfo smaller = { major, minor, build, smallerChan }; - BNVersionInfo larger = { other.major, other.minor, other.build, largerChan }; + BNVersionInfo smaller = {}; + smaller.major = major; + smaller.minor = minor; + smaller.build = build; + smaller.channel = smallerChan; + BNVersionInfo larger = {}; + larger.major = other.major; + larger.minor = other.minor; + larger.build = other.build; + larger.channel = largerChan; bool result = BNVersionLessThan(smaller, larger); BNFreeString(smallerChan); BNFreeString(largerChan); @@ -19145,6 +19153,13 @@ namespace BinaryNinja { struct ExtensionVersion { + struct PlatformInfo + { + std::string name; + std::string downloadUrl; + std::string untrackedDownloadUrl; + }; + std::string id; std::string version; @@ -19152,6 +19167,7 @@ namespace BinaryNinja { std::string changelog; uint64_t minimumClientVersion; + std::vector platforms; std::string created; }; -- cgit v1.3.1