From 4beca85ef057f93b7f07a46580ae1c920fd571a1 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Fri, 20 Jan 2017 18:52:34 -0500 Subject: add product id from license file --- binaryninjacore.h | 1 + python/__init__.py | 6 ++++++ 2 files changed, 7 insertions(+) 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''' -- cgit v1.3.1