diff --git a/lexactivator.go b/lexactivator.go index f68e266..e419722 100644 --- a/lexactivator.go +++ b/lexactivator.go @@ -324,12 +324,13 @@ func SetLicenseCallback(callbackFunction func(int)) int { lease duration property is enabled. PARAMETERS: - * leaseDuration - value of the lease duration. + * leaseDuration - value of the lease duration. A value of -1 indicates unlimited + lease duration. RETURN CODES: LA_OK, LA_E_PRODUCT_ID, LA_E_LICENSE_KEY */ -func SetActivationLeaseDuration(leaseDuration uint) int { - cLeaseDuration := (C.uint)(leaseDuration) +func SetActivationLeaseDuration(leaseDuration int64) int { + cLeaseDuration := (C.int64_t)(leaseDuration) status := C.SetActivationLeaseDuration(cLeaseDuration) return int(status) } diff --git a/lexactivator/LexActivator.h b/lexactivator/LexActivator.h index 9f05f04..31df283 100644 --- a/lexactivator/LexActivator.h +++ b/lexactivator/LexActivator.h @@ -278,11 +278,12 @@ LEXACTIVATOR_API int LA_CC SetLicenseCallback(CallbackType callback); lease duration property is enabled. PARAMETERS: - * leaseDuration - value of the lease duration. + * leaseDuration - value of the lease duration. A value of -1 indicates unlimited + lease duration. RETURN CODES: LA_OK, LA_E_PRODUCT_ID, LA_E_LICENSE_KEY */ -LEXACTIVATOR_API int LA_CC SetActivationLeaseDuration(uint32_t leaseDuration); +LEXACTIVATOR_API int LA_CC SetActivationLeaseDuration(int64_t leaseDuration); /* FUNCTION: SetActivationMetadata()