From 688a36a98c65c71baafbde9a20926f34ce9b3a5f Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Fri, 10 Mar 2023 01:59:21 -0500 Subject: Make Enterprise C++ API more clear. --- enterprise.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'enterprise.h') diff --git a/enterprise.h b/enterprise.h index abf010e9..f6f77de8 100644 --- a/enterprise.h +++ b/enterprise.h @@ -31,7 +31,7 @@ namespace BinaryNinja API for interacting with an Enterprise Server. These methods will only do anything on Enterprise editions of Binary Ninja. */ - namespace EnterpriseServer + namespace Enterprise { /*! Custom exception class for all Enterprise functions that can throw exceptions @@ -85,7 +85,7 @@ namespace BinaryNinja \param timeout Time (in minutes) \return True if successful */ - bool AcquireLicense(uint64_t timeout); + bool UpdateLicense(uint64_t timeout); /*! Release the current hold on a license @@ -197,10 +197,10 @@ namespace BinaryNinja \code{.cpp} using namespace BinaryNinja; - assert(EnterpriseServer::Connect()); - assert(EnterpriseServer::AuthenticateWithCredentials("username", "password", true)); + assert(Enterprise::Connect()); + assert(Enterprise::AuthenticateWithCredentials("username", "password", true)); { - EnterpriseServer::LicenseCheckout _{}; + Enterprise::LicenseCheckout _{}; Ref bv = OpenView("/bin/ls", true, {}, options); printf("%llx\n", bv->GetStart()); // License is released at end of scope -- cgit v1.3.1