From 39008ab5229bc6baa1cbff162a9cb06a6fe0a459 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Tue, 30 Jul 2024 08:38:18 +0530 Subject: [PATCH] feat: unlimited implementation of meter attribute getter --- cryptlex/lexfloatclient/lexfloatclient.py | 6 +++--- cryptlex/lexfloatclient/lexfloatclient_native.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cryptlex/lexfloatclient/lexfloatclient.py b/cryptlex/lexfloatclient/lexfloatclient.py index 9f6c0cc..813df46 100644 --- a/cryptlex/lexfloatclient/lexfloatclient.py +++ b/cryptlex/lexfloatclient/lexfloatclient.py @@ -217,9 +217,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: diff --git a/cryptlex/lexfloatclient/lexfloatclient_native.py b/cryptlex/lexfloatclient/lexfloatclient_native.py index e116d62..12a5627 100644 --- a/cryptlex/lexfloatclient/lexfloatclient_native.py +++ b/cryptlex/lexfloatclient/lexfloatclient_native.py @@ -148,7 +148,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