summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--enterprise.cpp9
-rw-r--r--enterprise.h7
2 files changed, 16 insertions, 0 deletions
diff --git a/enterprise.cpp b/enterprise.cpp
index 41421c55..29f89045 100644
--- a/enterprise.cpp
+++ b/enterprise.cpp
@@ -123,6 +123,15 @@ std::string BinaryNinja::Enterprise::GetServerName()
}
+std::string BinaryNinja::Enterprise::GetServerUrl()
+{
+ char* value = BNGetEnterpriseServerUrl();
+ std::string result = value;
+ BNFreeString(value);
+ return result;
+}
+
+
std::string BinaryNinja::Enterprise::GetServerId()
{
char* value = BNGetEnterpriseServerId();
diff --git a/enterprise.h b/enterprise.h
index 34d8acac..b15dbba7 100644
--- a/enterprise.h
+++ b/enterprise.h
@@ -124,6 +124,13 @@ namespace BinaryNinja
std::string GetServerName();
/*!
+ Get the url of the currently connected server, or the server that will be connected to if a connection has
+ not yet been made.
+ \return Url of server
+ */
+ std::string GetServerUrl();
+
+ /*!
Get the internal id of the currently connected server
\return Id of the currently connected server
*/