From f68aa8ba0145f17a9ad76f59b1885c998f5fffa5 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 6 Sep 2022 18:18:27 -0400 Subject: [Enterprise] API for license status callbacks --- binaryninjacore.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/binaryninjacore.h b/binaryninjacore.h index c3209b80..18ceb971 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -2871,6 +2871,12 @@ extern "C" size_t sourceCount; }; + struct BNEnterpriseServerCallbacks + { + void* context; + void (*licenseStatusChanged)(void* ctxt, bool stillValid); + }; + BINARYNINJACOREAPI char* BNAllocString(const char* contents); BINARYNINJACOREAPI void BNFreeString(char* str); BINARYNINJACOREAPI char** BNAllocStringList(const char** contents, size_t size); @@ -2919,6 +2925,8 @@ extern "C" BINARYNINJACOREAPI uint64_t BNGetEnterpriseServerReservationTimeLimit(void); BINARYNINJACOREAPI bool BNIsEnterpriseServerLicenseStillActivated(void); BINARYNINJACOREAPI char* BNGetEnterpriseServerLastError(void); + BINARYNINJACOREAPI void BNRegisterEnterpriseServerNotification(BNEnterpriseServerCallbacks* notify); + BINARYNINJACOREAPI void BNUnregisterEnterpriseServerNotification(BNEnterpriseServerCallbacks* notify); BINARYNINJACOREAPI bool BNIsEnterpriseServerInitialized(void); BINARYNINJACOREAPI void BNRegisterObjectDestructionCallbacks(BNObjectDestructionCallbacks* callbacks); -- cgit v1.3.1