Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add GetFloatingClientMetadata method #10

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

muneebkq
Copy link
Collaborator

GetFloatingClientMetadata, to retrieve the value of the floating client metadata. The method takes a key as an argument and returns the corresponding value.

@muneebkq muneebkq requested a review from ahmad-kemsan July 16, 2024 09:05
@muneebkq muneebkq changed the base branch from master to borrowing-develop August 1, 2024 04:09
GetFloatingClientMetadata.argtypes = [CSTRTYPE, STRTYPE, c_uint32]
GetFloatingClientMetadata.restype = c_int


RequestFloatingLicense = library.RequestFloatingLicense
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muneebkq Why this extra line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


Returns:
str: value of metadata for the key
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muneebkq Update the docs, it does not return the value of metadata for the key, instead it simply returns value of the floating client metadata

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Collaborator

@ahmad-kemsan ahmad-kemsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

@muneebkq muneebkq requested a review from ahmad-kemsan August 6, 2024 06:25
str: value of the floating client metadata
"""
cstring_key = LexFloatClientNative.get_ctype_string(key)
buffer_size = 256
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muneebkq Updated the buffer size to 4096

@muneebkq muneebkq requested a review from ahmad-kemsan August 6, 2024 10:30
@ahmad-kemsan ahmad-kemsan merged commit a4e5a34 into borrowing-develop Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants