-
Notifications
You must be signed in to change notification settings - Fork 669
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
Feature Request: Expose device underlying file descriptor via API #144
Comments
Cc: @mcuee This would require patches to the backend libraries, as well as be linux[/mac] specific, no? |
I think libusb api has that. I think it is generic, Windows libusb implementation has emulated poll-fd as well. I am not an expert in libusb internals. If needed we can ask in libusb mailing list. |
Oops, looks like we do have a limitation under Windows. But it may still be okay, just return unsupported under WIndows (same for hotplug now for libusb Windows). https://github.com/libusb/libusb/wiki/Windows |
@jonasmalacofilho Is this worth looking at? Thanks. |
I think it is, and IIRC getting the fd has also been mentioned in the Termux/Android discussions. EDIT: regarding the initial "I think is", I wasn't really thinking about any specific use case besides the one mentioned in #143 (i.e. polling). |
As described in #143, it would be great if devices provide the underlying file descriptor via API.
The text was updated successfully, but these errors were encountered: