Skip to content

Commit

Permalink
Merge pull request #20 from cryptlex/ahmad/unlimited-syntax
Browse files Browse the repository at this point in the history
Unlimited syntax
  • Loading branch information
ahmad-kemsan authored Aug 6, 2024
2 parents 03b67c2 + 8235ae7 commit 73799f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cryptlex/lexfloatclient/lexfloatclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ def GetHostLicenseMeterAttribute(name):
HostLicenseMeterAttribute: values of meter attribute allowed and total uses
"""
cstring_name = LexFloatClientNative.get_ctype_string(name)
allowed_uses = ctypes.c_uint()
total_uses = ctypes.c_uint()
gross_uses = ctypes.c_uint()
allowed_uses = ctypes.c_int64()
total_uses = ctypes.c_uint64()
gross_uses = ctypes.c_uint64()
status = LexFloatClientNative.GetHostLicenseMeterAttribute(
cstring_name, ctypes.byref(allowed_uses), ctypes.byref(total_uses), ctypes.byref(gross_uses))
if status == LexFloatStatusCodes.LF_OK:
Expand Down
2 changes: 1 addition & 1 deletion cryptlex/lexfloatclient/lexfloatclient_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def byte_to_string(input):
GetHostLicenseMetadata.restype = c_int

GetHostLicenseMeterAttribute = library.GetHostLicenseMeterAttribute
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_uint32), POINTER(c_uint32), POINTER(c_uint32)]
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_int64), POINTER(c_uint64), POINTER(c_uint64)]
GetHostLicenseMeterAttribute.restype = c_int

GetHostLicenseExpiryDate = library.GetHostLicenseExpiryDate
Expand Down

0 comments on commit 73799f1

Please sign in to comment.