summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2017-01-20 18:52:34 -0500
committerJordan Wiens <jordan@psifertex.com>2017-01-20 18:52:34 -0500
commit4beca85ef057f93b7f07a46580ae1c920fd571a1 (patch)
treed3213c61c5b73dbb480f7e8fa8aa05a72bb118ca
parenta050faeb0fcc978faed1bc528fa6c9c57c73d3ab (diff)
add product id from license file
-rw-r--r--binaryninjacore.h1
-rw-r--r--python/__init__.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index b2ed7cd3..fd0c7b00 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1197,6 +1197,7 @@ extern "C"
BINARYNINJACOREAPI uint32_t BNGetBuildId(void);
BINARYNINJACOREAPI bool BNIsLicenseValidated(void);
+ BINARYNINJACOREAPI char* BNGetProduct(void);
BINARYNINJACOREAPI void BNRegisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);
BINARYNINJACOREAPI void BNUnregisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);
diff --git a/python/__init__.py b/python/__init__.py
index 0576fedd..6b285c1c 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -79,4 +79,10 @@ bundled_plugin_path = core.BNGetBundledPluginDirectory()
user_plugin_path = core.BNGetUserPluginDirectory()
core_version = core.BNGetVersionString()
+'''Core version'''
+
core_build_id = core.BNGetBuildId()
+'''Build ID'''
+
+core_product = core.BNGetProduct()
+'''Product string from the license file'''