summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 9090fdd5..085c52fb 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -2314,6 +2314,35 @@ extern "C"
char* latestVersion;
} BNUpdateChannel;
+ typedef struct BNVersionInfo {
+ uint32_t major;
+ uint32_t minor;
+ uint32_t build;
+ char* channel;
+ } BNVersionInfo;
+
+ typedef struct BNChangelogEntry {
+ BNVersionInfo version;
+ char* notes;
+ uint64_t time;
+ } BNChangelogEntry;
+
+ typedef struct BNUpdateVersionNew {
+ BNVersionInfo version;
+ char* name;
+ uint64_t time;
+ } BNUpdateVersionNew;
+
+ typedef struct BNUpdateChannelFullInfo {
+ BNUpdateVersionNew* versions;
+ uint64_t versionCount;
+ BNChangelogEntry* changelogEntries;
+ uint64_t changelogEntryCount;
+ char* name;
+ char* desc;
+ char* latestVersion;
+ } BNUpdateChannelFullInfo;
+
typedef struct BNUpdateVersion
{
char* version;
@@ -3051,14 +3080,6 @@ extern "C"
bool (*deleteData)(void* ctxt, const char* key);
} BNSecretsProviderCallbacks;
- typedef struct BNVersionInfo
- {
- uint32_t major;
- uint32_t minor;
- uint32_t build;
- const char* channel;
- } BNVersionInfo;
-
typedef struct BNMergedVariable
{
BNVariable target;
@@ -5969,6 +5990,8 @@ extern "C"
BINARYNINJACOREAPI void BNFreeUpdateChannelList(BNUpdateChannel* list, size_t count);
BINARYNINJACOREAPI BNUpdateVersion* BNGetUpdateChannelVersions(const char* channel, size_t* count, char** errors);
BINARYNINJACOREAPI void BNFreeUpdateChannelVersionList(BNUpdateVersion* list, size_t count);
+ BINARYNINJACOREAPI BNUpdateChannelFullInfo* BNGetFullInfoUpdateChannels(size_t* count, char** errors);
+ BINARYNINJACOREAPI void BNFreeFullInfoUpdateChannels(BNUpdateChannelFullInfo* list, size_t count);
BINARYNINJACOREAPI bool BNAreUpdatesAvailable(
const char* channel, uint64_t* expireTime, uint64_t* serverTime, char** errors);