diff --git a/lexfloatclient.go b/lexfloatclient.go index 0862ca6..449a288 100644 --- a/lexfloatclient.go +++ b/lexfloatclient.go @@ -292,6 +292,23 @@ func RequestFloatingLicense() int { return int(status) } +/* + FUNCTION: GetFloatingClientLeaseExpiryDate() + + PURPOSE: Gets the lease expiry date timestamp of the floating client. + + PARAMETERS: + * leaseExpiryDate - pointer to the integer that receives the value + + RETURN CODES: LF_OK, LF_E_PRODUCT_ID, LF_E_NO_LICENSE +*/ +func GetFloatingClientLeaseExpiryDate(leaseExpiryDate *uint) int { + var cLeaseExpiryDate C.uint + status := C.GetFloatingClientLeaseExpiryDate(&cLeaseExpiryDate) + *leaseExpiryDate = uint(cLeaseExpiryDate) + return int(status) +} + /* FUNCTION: DropFloatingLicense() diff --git a/lexfloatclient/LexFloatClient.h b/lexfloatclient/LexFloatClient.h index 619e290..ee04a47 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: GetFloatingClientLeaseExpiryDate() + + PURPOSE: Gets the lease expiry date timestamp of the floating client. + + PARAMETERS: + * leaseExpiryDate - pointer to the integer that receives the value + + RETURN CODES: LF_OK, LF_E_PRODUCT_ID, LF_E_NO_LICENSE +*/ +LEXFLOATCLIENT_API int LF_CC GetFloatingClientLeaseExpiryDate(uint32_t *leaseExpiryDate); + /* FUNCTION: IncrementFloatingClientMeterAttributeUses()