From 6caff3d100abcc1f1415de924334a04ecd50f1fd Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 20 Jan 2017 19:20:41 -0500 Subject: also add product type and license count to the API --- binaryninjacore.h | 2 ++ python/__init__.py | 6 ++++++ 2 files changed, 8 insertions(+) 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''' -- cgit v1.3.1