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

Allow to get ffi types from the rust API #22

Open
pbor opened this issue Nov 21, 2021 · 1 comment
Open

Allow to get ffi types from the rust API #22

pbor opened this issue Nov 21, 2021 · 1 comment

Comments

@pbor
Copy link

pbor commented Nov 21, 2021

I would like to use the pcsc-rs crate to implement a rust module which in turn exposes a C api.

In my case I would need to

  1. Go from Context to SCARDCONTEXT
  2. Go from ReaderState to SCARD_READERSTATE`

It would be great if there were into_raw and from_raw methods.

@bluetech
Copy link
Owner

Now that we explicitly reexport pcsc-sys, this sounds fine to me. Will accept a PR for this.

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

No branches or pull requests

2 participants