Skip to content

Commit 8235ae7

Browse files
authored
Merge pull request #17 from cryptlex/ahmad/unlimited-implementation
feat: unlimited implementation of meter attribute getter
2 parents 1cd54fc + 39008ab commit 8235ae7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cryptlex/lexfloatclient/lexfloatclient.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ def GetHostLicenseMeterAttribute(name):
217217
HostLicenseMeterAttribute: values of meter attribute allowed and total uses
218218
"""
219219
cstring_name = LexFloatClientNative.get_ctype_string(name)
220-
allowed_uses = ctypes.c_uint()
221-
total_uses = ctypes.c_uint()
222-
gross_uses = ctypes.c_uint()
220+
allowed_uses = ctypes.c_int64()
221+
total_uses = ctypes.c_uint64()
222+
gross_uses = ctypes.c_uint64()
223223
status = LexFloatClientNative.GetHostLicenseMeterAttribute(
224224
cstring_name, ctypes.byref(allowed_uses), ctypes.byref(total_uses), ctypes.byref(gross_uses))
225225
if status == LexFloatStatusCodes.LF_OK:

cryptlex/lexfloatclient/lexfloatclient_native.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def byte_to_string(input):
148148
GetHostLicenseMetadata.restype = c_int
149149

150150
GetHostLicenseMeterAttribute = library.GetHostLicenseMeterAttribute
151-
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_uint32), POINTER(c_uint32), POINTER(c_uint32)]
151+
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_int64), POINTER(c_uint64), POINTER(c_uint64)]
152152
GetHostLicenseMeterAttribute.restype = c_int
153153

154154
GetHostLicenseExpiryDate = library.GetHostLicenseExpiryDate

0 commit comments

Comments
 (0)