diff --git a/lexfloatclient.go b/lexfloatclient.go index 0862ca6..713d597 100644 --- a/lexfloatclient.go +++ b/lexfloatclient.go @@ -322,6 +322,22 @@ func HasFloatingLicense() int { return int(status) } +/* + FUNCTION: RequestOfflineFloatingLicense() + + PURPOSE: Sends the request to lease the license from the LexFloatServer for offline usage. + + RETURN CODES: LF_OK, LF_FAIL, LF_E_PRODUCT_ID, LF_E_LICENSE_EXISTS, LF_E_HOST_URL, + LF_E_LICENSE_LIMIT_REACHED, LF_E_INET, LF_E_TIME, LF_E_CLIENT, LF_E_IP, LF_E_SERVER, + LF_E_SERVER_LICENSE_NOT_ACTIVATED, LF_E_SERVER_TIME_MODIFIED, LF_E_SERVER_LICENSE_SUSPENDED, + LF_E_SERVER_LICENSE_GRACE_PERIOD_OVER, LF_E_SERVER_LICENSE_EXPIRED, LF_E_WMIC, LF_E_SYSTEM_PERMISSION +*/ +func RequestOfflineFloatingLicense(leaseDuration uint) int { + cLeaseDuration := (C.uint)(leaseDuration) + status := C.RequestOfflineFloatingLicense(cLeaseDuration) + return int(status) +}; + /* FUNCTION: IncrementFloatingClientMeterAttributeUses() diff --git a/lexfloatclient/LexFloatClient.h b/lexfloatclient/LexFloatClient.h index 619e290..556589a 100644 --- a/lexfloatclient/LexFloatClient.h +++ b/lexfloatclient/LexFloatClient.h @@ -269,6 +269,18 @@ LEXFLOATCLIENT_API int LF_CC DropFloatingLicense(); */ LEXFLOATCLIENT_API int LF_CC HasFloatingLicense(); +/* + FUNCTION: RequestOfflineFloatingLicense() + + PURPOSE: Sends the request to lease the license from the LexFloatServer for offline usage. + + RETURN CODES: LF_OK, LF_FAIL, LF_E_PRODUCT_ID, LF_E_LICENSE_EXISTS, LF_E_HOST_URL, + LF_E_LICENSE_LIMIT_REACHED, LF_E_INET, LF_E_TIME, LF_E_CLIENT, LF_E_IP, LF_E_SERVER, + LF_E_SERVER_LICENSE_NOT_ACTIVATED, LF_E_SERVER_TIME_MODIFIED, LF_E_SERVER_LICENSE_SUSPENDED, + LF_E_SERVER_LICENSE_GRACE_PERIOD_OVER, LF_E_SERVER_LICENSE_EXPIRED, LF_E_WMIC, LF_E_SYSTEM_PERMISSION +*/ +LEXFLOATCLIENT_API int LF_CC RequestOfflineFloatingLicense(uint32_t leaseDuration); + /* FUNCTION: IncrementFloatingClientMeterAttributeUses()