summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorJosh F <josh@vector35.com>2022-06-30 20:26:11 -0400
committerJosh F <josh@vector35.com>2022-06-30 20:26:11 -0400
commit76a4788ca80deae75c43108142658a1b1fbfbdb7 (patch)
tree82f2f00d34059f5d1e5cdb509feb8f7085f4aaac /binaryninjacore.h
parent6e282b0e11fa15e9aacddf52f0fedb5ab2f13bbc (diff)
Add GetVersionInfo() and BNVersionInfo struct
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index a7ec092c..d092a8bd 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -2834,6 +2834,13 @@ extern "C"
bool (*deleteData)(void* ctxt, const char* key);
};
+ struct BNVersionInfo
+ {
+ uint32_t major;
+ uint32_t minor;
+ uint32_t build;
+ };
+
BINARYNINJACOREAPI char* BNAllocString(const char* contents);
BINARYNINJACOREAPI void BNFreeString(char* str);
BINARYNINJACOREAPI char** BNAllocStringList(const char** contents, size_t size);
@@ -2842,6 +2849,7 @@ extern "C"
BINARYNINJACOREAPI void BNShutdown(void);
BINARYNINJACOREAPI bool BNIsShutdownRequested(void);
+ BINARYNINJACOREAPI BNVersionInfo BNGetVersionInfo(void);
BINARYNINJACOREAPI char* BNGetVersionString(void);
BINARYNINJACOREAPI uint32_t BNGetBuildId(void);
BINARYNINJACOREAPI uint32_t BNGetCurrentCoreABIVersion(void);