diff options
| author | Alexander Taylor <alex@vector35.com> | 2023-03-10 01:59:21 -0500 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2023-03-10 01:59:21 -0500 |
| commit | 688a36a98c65c71baafbde9a20926f34ce9b3a5f (patch) | |
| tree | b6845ec45b00414a5bfeb4d7fcf632bb75377ca2 /enterprise.h | |
| parent | 98f82f57bfc4283d3c00e1da5ac68d2e737c7640 (diff) | |
Make Enterprise C++ API more clear.
Diffstat (limited to 'enterprise.h')
| -rw-r--r-- | enterprise.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<BinaryView> bv = OpenView("/bin/ls", true, {}, options); printf("%llx\n", bv->GetStart()); // License is released at end of scope |
