1 #ifndef LS_C_LICENSE_HANDLER_H
2 #define LS_C_LICENSE_HANDLER_H
36 const char* ( *getSSOUrl )(
struct LSLicenseHandler*
self,
const char* accountCode,
bool useAuthCode );
39 const char* accountCode,
bool useAuthCode );
46 const char* channel,
const char* env,
int* lengths,
char** versionList );
49 const char* version,
const char* channel,
const char* env );
59 const char* ( *getAirGapActivationCode )(
struct LSLicenseHandler*
self,
const char* initializationCode,
const char* licenseKey );
60 const char* ( *getAirGapDeactivationCode )(
struct LSLicenseHandler*
self,
const char* initializationCode );
80 const wchar_t* ( *createOfflineActivationFile )(
struct LSLicenseHandler*
self,
struct LSLicenseID licenseID, const wchar_t* activationRequestFile );
82 const wchar_t* ( *deactivateLicenseOffline )(
struct LSLicenseHandler*
self,
const wchar_t* deactivationRequestFile );
194 #endif // LS_C_LICENSE_HANDLER_H
bool(* isInitializationError)(struct LSLicenseHandler *self)
LSConsumptionPeriod
Consumption period.
LS_API struct LSCustomField LSCustomField
LSErrorCode
LicenseSpring Error codes enum.
enum LSLicenseType(* getLicenseType)(struct LSLicenseHandler *self)
int(* getLicenseMaxConsumption)(struct LSLicenseHandler *self)
LSLicenseType
License type.
struct LSLicenseID(* getLicenseID)(struct LSLicenseHandler *self)
void(* setupFeatureWatchdog)(struct LSLicenseHandler *self, LSWatchdogCallback callback, unsigned long timeout)
struct LSLicenseID(* getTrialLicense)(struct LSLicenseHandler *self, LSCustomer *user, const char *licensePolicy)
struct tm(* getLicenseFloatingEndDateTime)(struct LSLicenseHandler *self)
int(* getLicenseCustomFields)(struct LSLicenseHandler *self, struct LSCustomField *fields)
void(* syncConsumption)(struct LSLicenseHandler *self)
void(* syncFeatureConsumption)(struct LSLicenseHandler *self, const char *featureCode)
void(* reconfigure)(struct LSLicenseHandler *self, struct LSConfiguration *config)
void(* activateLicenseOffline)(struct LSLicenseHandler *self, const wchar_t *activationResponseFile)
bool(* isLicenseFloating)(struct LSLicenseHandler *self)
bool(* updateOffline)(struct LSLicenseHandler *self, const wchar_t *path, bool resetConsumption)
void(* releaseFloatingLicense)(struct LSLicenseHandler *self)
bool(* isGeneralError)(struct LSLicenseHandler *self)
void(* activateLicense)(struct LSLicenseHandler *self, struct LSLicenseID licenseID)
unsigned long(* getLicenseMaxFloatingUsers)(struct LSLicenseHandler *self)
bool(* canIgnoreError)(struct LSLicenseHandler *self)
void(* relinkLicense)(struct LSLicenseHandler *self, enum DeviceIDAlgorithm deviceIdAlgorithm, const char *userPassword)
struct tm(* getLicenseLastCheckDate)(struct LSLicenseHandler *self)
int(* gracePeriodHoursRemaining)(struct LSLicenseHandler *self)
unsigned long(* getLicenseFloatingTimeout)(struct LSLicenseHandler *self)
struct tm(* getLicenseFloatingEndDateTimeUtc)(struct LSLicenseHandler *self)
int(* getDaysPassedSinceLastCheck)(struct LSLicenseHandler *self)
bool(* isOnline)(struct LSLicenseHandler *self)
bool(* isInitialized)(struct LSLicenseHandler *self)
struct tm(* getLicenseMaintenancePeriod)(struct LSLicenseHandler *self)
bool(* isGracePeriodStarted)(struct LSLicenseHandler *self)
bool(* isLicenseExpired)(struct LSLicenseHandler *self)
int(* getVersionListEx)(struct LSLicenseHandler *self, struct LSLicenseID licenseID, const char *channel, const char *env, int *lengths, char **versionList)
int(* getDaysRemaining)(struct LSLicenseHandler *self)
LS_API struct LSLicenseHandler * CreateLSLicenseHandler(struct LSConfiguration *config)
int(* getLicenseTransferLimit)(struct LSLicenseHandler *self)
struct tm(* getLicenseMaintenancePeriodUtc)(struct LSLicenseHandler *self)
void(* borrowFloatingLicenseTill)(struct LSLicenseHandler *self, const char *borrowEndDateTime)
bool(* isLicenseActive)(struct LSLicenseHandler *self)
struct tm(* getLicenseLastCheckDateUtc)(struct LSLicenseHandler *self)
struct tm(* getLicenseExpiryDate)(struct LSLicenseHandler *self)
bool(* isLicenseStateError)(struct LSLicenseHandler *self)
void(* resumeFeaturewatchdog)(struct LSLicenseHandler *self)
void(* setupLicenseWatchdog)(struct LSLicenseHandler *self, LSWatchdogCallback callback, unsigned long timeout)
unsigned long(* getLicenseTransferCount)(struct LSLicenseHandler *self)
struct tm(* validityWithGracePeriodUtc)(struct LSLicenseHandler *self)
unsigned long(* getLicenseFloatingInUseCount)(struct LSLicenseHandler *self)
bool(* isNetworkTimeoutError)(struct LSLicenseHandler *self)
void(* registerFloatingLicense)(struct LSLicenseHandler *self)
bool(* isLicenseTrial)(struct LSLicenseHandler *self)
bool(* wasError)(struct LSLicenseHandler *self)
unsigned long(* getLicensePolicyId)(struct LSLicenseHandler *self)
void(* borrowFloatingLicense)(struct LSLicenseHandler *self, uint32_t hours, uint32_t days)
void(* updateFeatureConsumption)(struct LSLicenseHandler *self, const char *featureCode, int value, bool saveLicense)
bool(* isLicenseVMAllowed)(struct LSLicenseHandler *self)
bool(* isLicenseOfflineActivated)(struct LSLicenseHandler *self)
void(* updateConsumption)(struct LSLicenseHandler *self, int value, bool saveLicense)
unsigned long(* getMaxBorrowTime)(struct LSLicenseHandler *self)
bool(* hasLicenseCustomFields)(struct LSLicenseHandler *self)
bool(* isDeviceTransferLimited)(struct LSLicenseHandler *self)
unsigned long(* getSubscriptionLicenseGracePeriod)(struct LSLicenseHandler *self)
bool(* isLicenseExpiredError)(struct LSLicenseHandler *self)
void(* deactivateAirGapLicense)(struct LSLicenseHandler *self, const char *confirmationCode)
bool(* isResetLicenseConsumptionEnabled)(struct LSLicenseHandler *self)
bool(* isInternalServerError)(struct LSLicenseHandler *self)
bool(* isHardwareIDError)(struct LSLicenseHandler *self)
int(* getLicenseTrialPeriod)(struct LSLicenseHandler *self)
void(* activateAirGapLicense)(struct LSLicenseHandler *self, const char *confirmationCode, const wchar_t *policyFile, const char *licenseKey, unsigned long policyId)
bool(* deactivateLicense)(struct LSLicenseHandler *self)
void(* activateLicenseViaSSO)(struct LSLicenseHandler *self, const char *authData, const char *accountCode, bool useAuthCode)
struct LSLicenseID(* getTrialLicenseByEmail)(struct LSLicenseHandler *self, const char *userEmail)
bool(* isLicenseNotFoundError)(struct LSLicenseHandler *self)
struct tm(* validityWithGracePeriod)(struct LSLicenseHandler *self)
void(* stopFeatureWatchdog)(struct LSLicenseHandler *self)
bool(* isLicenseExists)(struct LSLicenseHandler *self)
DeviceIDAlgorithm
Type of Device ID algorithm used by the SDK.
bool(* isSubscriptionGracePeriodStarted)(struct LSLicenseHandler *self)
bool(* isLicenseFeatureError)(struct LSLicenseHandler *self)
bool(* isLicenseBorrowed)(struct LSLicenseHandler *self)
enum LSConsumptionPeriod(* getLicenseConsumptionPeriod)(struct LSLicenseHandler *self)
int(* getVersionList)(struct LSLicenseHandler *self, struct LSLicenseID licenseID, int *lengths, char **versionList)
bool(* isLicenseOveragesAllowed)(struct LSLicenseHandler *self)
bool(* isLicenseEnabled)(struct LSLicenseHandler *self)
bool(* isLicenseMaintenanceExpired)(struct LSLicenseHandler *self)
enum LSErrorCode(* getLastError)(struct LSLicenseHandler *self)
void(* sendDeviceData)(struct LSLicenseHandler *self, struct LSCustomField *data, int dataSize)
int(* getLicenseMaxOverages)(struct LSLicenseHandler *self)
void(* clearLocalStorage)(struct LSLicenseHandler *self)
void(* checkLicenseLocal)(struct LSLicenseHandler *self)
bool(* isActivationFailed)(struct LSLicenseHandler *self)
struct tm(* gracePeriodEndDateTimeUTC)(struct LSLicenseHandler *self)
bool(* isLicenseAirGapped)(struct LSLicenseHandler *self)
bool(* isLicenseUnlimitedConsumptionAllowed)(struct LSLicenseHandler *self)
int(* getLicenseTotalConsumption)(struct LSLicenseHandler *self)
LS_API struct LSLicenseHandler LSLicenseHandler
bool(* hasLicenseFeatures)(struct LSLicenseHandler *self)
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
LS_API typedef void(* LSWatchdogCallback)(const char *message, enum LSErrorCode errorCode, void *handler)
unsigned long(* getLicenseTimesActivated)(struct LSLicenseHandler *self)
bool(* changePassword)(struct LSLicenseHandler *self, const char *password, const char *newPassword, const char *user)
unsigned long(* getLicenseMaxActivations)(struct LSLicenseHandler *self)
int(* getMaintenanceDaysRemaining)(struct LSLicenseHandler *self)
LS_API void FreeLSLicenseHandler(struct LSLicenseHandler *handler)
bool(* isLicenseValid)(struct LSLicenseHandler *self)
bool(* isDeviceTransferAllowed)(struct LSLicenseHandler *self)
int(* getLicenseFeatures)(struct LSLicenseHandler *self, struct LSLicenseFeature *features)
void(* registerFloatingFeature)(struct LSLicenseHandler *self, const char *featureCode, bool addToWatchdog)
void(* resumeLicenseWatchdog)(struct LSLicenseHandler *self)
void(* stopLicenseWatchdog)(struct LSLicenseHandler *self)
struct tm(* gracePeriodEndDateTime)(struct LSLicenseHandler *self)
bool(* isNoInternetError)(struct LSLicenseHandler *self)
void(* releaseFloatingFeature)(struct LSLicenseHandler *self, const char *featureCode)
struct tm(* getLicenseExpiryDateUtc)(struct LSLicenseHandler *self)
struct LSConfiguration * currentConfig