Skip to content

Commit

Permalink
feat: add GetFloatingClientLeaseExpiryDate
Browse files Browse the repository at this point in the history
  • Loading branch information
muneebkq committed Jul 9, 2024
1 parent 2781d3c commit 743ee84
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lexfloatclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
12 changes: 12 additions & 0 deletions lexfloatclient/LexFloatClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 743ee84

Please sign in to comment.