Skip to content

Commit 79e9d21

Browse files
authored
Merge pull request #3 from cryptlex/updateFucntions
Update feature functions name
2 parents 81a5664 + e072669 commit 79e9d21

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

cryptlex/lexfloatclient/lexfloatclient.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def SetFloatingClientMetadata(key, value):
102102
raise LexFloatClientException(status)
103103

104104
@staticmethod
105-
def GetProductVersionName():
105+
def GetHostProductVersionName():
106106
"""Gets the product version name.
107107
108108
Raises:
@@ -114,13 +114,13 @@ def GetProductVersionName():
114114

115115
buffer_size = 256
116116
buffer = LexFloatClientNative.get_ctype_string_buffer(buffer_size)
117-
status = LexFloatClientNative.GetProductVersionName(buffer,buffer_size)
117+
status = LexFloatClientNative.GetHostProductVersionName(buffer,buffer_size)
118118
if status != LexFloatStatusCodes.LF_OK:
119119
raise LexFloatClientException(status)
120120
return LexFloatClientNative.byte_to_string(buffer.value)
121121

122122
@staticmethod
123-
def GetProductVersionDisplayName():
123+
def GetHostProductVersionDisplayName():
124124
"""Gets the product version display name.
125125
126126
Raises:
@@ -132,13 +132,13 @@ def GetProductVersionDisplayName():
132132

133133
buffer_size = 256
134134
buffer = LexFloatClientNative.get_ctype_string_buffer(buffer_size)
135-
status = LexFloatClientNative.GetProductVersionDisplayName(buffer,buffer_size)
135+
status = LexFloatClientNative.GetHostProductVersionDisplayName(buffer,buffer_size)
136136
if status != LexFloatStatusCodes.LF_OK:
137137
raise LexFloatClientException(status)
138138
return LexFloatClientNative.byte_to_string(buffer.value)
139139

140140
@staticmethod
141-
def GetProductVersionFeatureFlag(name):
141+
def GetHostProductVersionFeatureFlag(name):
142142
"""Gets the product version feature flag.
143143
144144
Args:
@@ -154,7 +154,7 @@ def GetProductVersionFeatureFlag(name):
154154
enabled = ctypes.c_uint()
155155
buffer_size = 256
156156
buffer = LexFloatClientNative.get_ctype_string_buffer(buffer_size)
157-
status = LexFloatClientNative.GetProductVersionFeatureFlag(cstring_name, ctypes.byref(enabled), buffer, buffer_size)
157+
status = LexFloatClientNative.GetHostProductVersionFeatureFlag(cstring_name, ctypes.byref(enabled), buffer, buffer_size)
158158
if status == LexFloatStatusCodes.LF_OK:
159159
isEnabled = enabled.value > 0
160160
return ProductVersionFeatureFlag(name, isEnabled, LexFloatClientNative.byte_to_string(buffer.value))

cryptlex/lexfloatclient/lexfloatclient_native.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,17 @@ def byte_to_string(input):
127127
SetFloatingClientMetadata.argtypes = [CSTRTYPE, CSTRTYPE]
128128
SetFloatingClientMetadata.restype = c_int
129129

130-
GetProductVersionName = library.GetProductVersionName
131-
GetProductVersionName.argtypes = [STRTYPE,c_uint32]
132-
GetProductVersionName.restype = c_int
130+
GetHostProductVersionName = library.GetHostProductVersionName
131+
GetHostProductVersionName.argtypes = [STRTYPE,c_uint32]
132+
GetHostProductVersionName.restype = c_int
133133

134-
GetProductVersionDisplayName = library.GetProductVersionDisplayName
135-
GetProductVersionDisplayName.argtypes = [STRTYPE,c_uint32]
136-
GetProductVersionDisplayName.restype = c_int
134+
GetHostProductVersionDisplayName = library.GetHostProductVersionDisplayName
135+
GetHostProductVersionDisplayName.argtypes = [STRTYPE,c_uint32]
136+
GetHostProductVersionDisplayName.restype = c_int
137137

138-
GetProductVersionFeatureFlag = library.GetProductVersionFeatureFlag
139-
GetProductVersionFeatureFlag.argtypes = [CSTRTYPE, POINTER(c_uint32), STRTYPE, c_uint32]
140-
GetProductVersionFeatureFlag.restype = c_int
138+
GetHostProductVersionFeatureFlag = library.GetHostProductVersionFeatureFlag
139+
GetHostProductVersionFeatureFlag.argtypes = [CSTRTYPE, POINTER(c_uint32), STRTYPE, c_uint32]
140+
GetHostProductVersionFeatureFlag.restype = c_int
141141

142142
GetHostLicenseMetadata = library.GetHostLicenseMetadata
143143
GetHostLicenseMetadata.argtypes = [CSTRTYPE, STRTYPE, c_uint32]

0 commit comments

Comments
 (0)