-
Notifications
You must be signed in to change notification settings - Fork 53
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
Missing xf86drm.h bindings #207
Comments
I don't think we actually link It may be good to include an implementation of similar functionality, if we don't already. #202 moved some code related to dealing with device nodes to drm-rs from Smithay, but I guess it doesn't include a simple way to get a list of devices. |
If that is the case, then we can probably port the code directly from libdrm, since its also MIT licensed. |
@ids1024 I made a pull request with the code I believe will be enough to list devices. I would appreciate if you could review it. |
First of all thanks for the wonderful library.
When generating the bindings, bindgen is only looking at
drm.h
anddrm_mode.h
leavingxf86drm.h
out. Most of the functions defined inxf86drm.h
are just IOCTL calls, so I guess it made sense to not directly import them and instead implement the IOCTLs in Rust.There is one function called
drmGetDevices2()
which isn't just plain IOCTL calls, but rather does quite some processing to list the DRM devices. I have a use-case in which I would like to use this function from Rust, but since the binding is missing, I'm unable to do.I tried to understand the bindings configuration and propose a PR, but they are just mind-blowing to me.
Is it possible to generate bindings only for that specific function?
Thanks in advance.
The text was updated successfully, but these errors were encountered: