diff options
| author | 0cyn <kat@vector35.com> | 2026-04-21 09:36:57 -0400 |
|---|---|---|
| committer | 0cyn <kat@vector35.com> | 2026-04-22 09:15:37 -0400 |
| commit | 37f159a0ef0d517f88d78c8450d120b8aa6d9ccb (patch) | |
| tree | b928013e6289653662911c29d93d4745031d9e8d /binaryninjaapi.h | |
| parent | 8ed744a615909ac4bec2bc6dd92cf5cb0485cf07 (diff) | |
Expose all version-specific info for extensions in API
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 20 |
1 files changed, 18 insertions, 2 deletions
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<PlatformInfo> platforms; std::string created; }; |
