summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2017-01-20 19:20:41 -0500
committerJordan Wiens <jordan@psifertex.com>2017-01-20 19:20:41 -0500
commit6caff3d100abcc1f1415de924334a04ecd50f1fd (patch)
treea5505cfe0f4a0760741acc351ebebdf9ef8c3523
parent56cedb70bf10e93445174f2ac7d00233155e9c88 (diff)
also add product type and license count to the API
-rw-r--r--binaryninjacore.h2
-rw-r--r--python/__init__.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index fd0c7b00..1ee71402 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1198,6 +1198,8 @@ extern "C"
BINARYNINJACOREAPI bool BNIsLicenseValidated(void);
BINARYNINJACOREAPI char* BNGetProduct(void);
+ BINARYNINJACOREAPI char* BNGetProductType(void);
+ BINARYNINJACOREAPI int BNGetLicenseCount(void);
BINARYNINJACOREAPI void BNRegisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);
BINARYNINJACOREAPI void BNUnregisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);
diff --git a/python/__init__.py b/python/__init__.py
index 6b285c1c..e4d45435 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -86,3 +86,9 @@ core_build_id = core.BNGetBuildId()
core_product = core.BNGetProduct()
'''Product string from the license file'''
+
+core_product_type = core.BNGetProductType()
+'''Product type from the license file'''
+
+core_license_count = core.BNGetLicenseCount()
+'''License count from the license file'''