summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2017-07-18 00:27:11 -0400
committerBrian Potchik <brian@vector35.com>2017-07-18 00:27:11 -0400
commitaa024d1525d52055b738f7c27c945aa205dd182a (patch)
tree1ea94764fb1c246f20c10a01c2fc61485bba4594
parentb7c5486f26386c7c165b9b05cc2d6800db082b6f (diff)
Add IsUIEnabled to API.
-rw-r--r--binaryninjaapi.cpp12
-rw-r--r--binaryninjaapi.h1
-rw-r--r--binaryninjacore.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp
index c425df88..aac92d7c 100644
--- a/binaryninjaapi.cpp
+++ b/binaryninjaapi.cpp
@@ -41,11 +41,13 @@ void BinaryNinja::InitUserPlugins()
BNInitUserPlugins();
}
+
void BinaryNinja::InitRepoPlugins()
{
BNInitRepoPlugins();
}
+
string BinaryNinja::GetBundledPluginDirectory()
{
char* path = BNGetBundledPluginDirectory();
@@ -137,6 +139,7 @@ string BinaryNinja::GetVersionString()
return result;
}
+
string BinaryNinja::GetProduct()
{
char* str = BNGetProduct();
@@ -145,6 +148,7 @@ string BinaryNinja::GetProduct()
return result;
}
+
string BinaryNinja::GetProductType()
{
char* str = BNGetProductType();
@@ -153,11 +157,19 @@ string BinaryNinja::GetProductType()
return result;
}
+
int BinaryNinja::GetLicenseCount()
{
return BNGetLicenseCount();
}
+
+bool BinaryNinja::IsUIEnabled()
+{
+ return BNIsUIEnabled();
+}
+
+
uint32_t BinaryNinja::GetBuildId()
{
return BNGetBuildId();
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 2562334d..c4a54b79 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -392,6 +392,7 @@ namespace BinaryNinja
std::string GetProduct();
std::string GetProductType();
int GetLicenseCount();
+ bool IsUIEnabled();
uint32_t GetBuildId();
bool AreAutoUpdatesEnabled();
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 5ee00003..1036e98c 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1510,6 +1510,7 @@ extern "C"
BINARYNINJACOREAPI char* BNGetProduct(void);
BINARYNINJACOREAPI char* BNGetProductType(void);
BINARYNINJACOREAPI int BNGetLicenseCount(void);
+ BINARYNINJACOREAPI bool BNIsUIEnabled(void);
BINARYNINJACOREAPI void BNRegisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);
BINARYNINJACOREAPI void BNUnregisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks);