summaryrefslogtreecommitdiff
path: root/binaryninjaapi.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-03-05 13:12:01 -0500
committerPeter LaFosse <peter@vector35.com>2017-03-05 13:12:01 -0500
commitcf5997848b8819725315bd2c8dd8a04c70da3b63 (patch)
tree24d9360e3ccfaee361aca4d345072c142c386a41 /binaryninjaapi.cpp
parenta0132eed82d28d4408a2475847e1804a157b3dc1 (diff)
parent27f1271083efb09efc6405f91be893ab38dad9a0 (diff)
Merginging with dev
Diffstat (limited to 'binaryninjaapi.cpp')
-rw-r--r--binaryninjaapi.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp
index 1864e389..661892e3 100644
--- a/binaryninjaapi.cpp
+++ b/binaryninjaapi.cpp
@@ -63,6 +63,17 @@ void BinaryNinja::SetBundledPluginDirectory(const string& path)
}
+string BinaryNinja::GetInstallDirectory()
+{
+ char* path = BNGetInstallDirectory();
+ if (!path)
+ return string();
+ string result = path;
+ BNFreeString(path);
+ return result;
+}
+
+
string BinaryNinja::GetUserPluginDirectory()
{
char* path = BNGetUserPluginDirectory();
@@ -126,6 +137,26 @@ string BinaryNinja::GetVersionString()
return result;
}
+string BinaryNinja::GetProduct()
+{
+ char* str = BNGetProduct();
+ string result = str;
+ BNFreeString(str);
+ return result;
+}
+
+string BinaryNinja::GetProductType()
+{
+ char* str = BNGetProductType();
+ string result = str;
+ BNFreeString(str);
+ return result;
+}
+
+int BinaryNinja::GetLicenseCount()
+{
+ return BNGetLicenseCount();
+}
uint32_t BinaryNinja::GetBuildId()
{
@@ -241,3 +272,12 @@ void BinaryNinja::SetWorkerThreadCount(size_t count)
{
BNSetWorkerThreadCount(count);
}
+
+
+string BinaryNinja::GetUniqueIdentifierString()
+{
+ char* str = BNGetUniqueIdentifierString();
+ string result = str;
+ BNFreeString(str);
+ return result;
+}