-
Notifications
You must be signed in to change notification settings - Fork 87
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
How do I get the file descriptors for use with event loops #69
Comments
I achieved this through using rusb as a submodule and getting at |
You can add both
unsafe {
libusb1_sys::libusb_get_pollfds(std::ptr::null_mut());
} You don't need to add |
Won't this pull |
Great, thanks! |
I am trying to integrate
rusb
with the Calloop event loop. Usually this involves getting file descriptors for polling and adding them to the loop. Anything that implementsAsRawFd
works.In my case I'm mainly interested in hotplug events, so I want the "whole-context" file descriptors that are available from the
get_pollfds()
call. Is there any (safe, preferably) way to get these?The text was updated successfully, but these errors were encountered: