-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add get_token_info #27
Conversation
6cb818f
to
2679ef7
Compare
I think the place where you put them is the right one. That file/module is supposed to cover section |
This function can be used to retrieve manufacturer ID or serial number of the token in the slot. Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
2679ef7
to
d135273
Compare
Okay, I've vastly simplified the code when it occurred to me that I've converted I've also added Deref and From implementations to be somehow similar to what you use with other types. (This can be used to access properties that don't have convenience accessor functions). |
We already have bindings commited for a number of architectures, you can see them here - this is to have faster/easier builds on those platforms. Otherwise, you should be able to find them in something like |
Yes! The builds for architectures are great for looking for what's available, thanks @ionut-arm! I didn't spot this previously. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👌
Okay folks, I'll need some more help on this one.
TokenInfo
struct (should it be in the-sys
crate?)get_token_info
uses some raw ffi code I found that works but I'm not sure if that's the best approach.Please ignore placeholder docs for a moment. I'll add them when other issues are fixed :)