Expand description
The declarations of libdrm and libgbm the DRM output uses (the port
of Output/Drm.cs).
The structures are those of xf86drmMode.h, xf86drm.h and gbm.h,
declared #[repr(C)] and tested for their sizes and the offsets of
their fields. The reference declares platform invokes of libdrm.so.2
and libgbm.so.1; here both libraries are opened at run time and their
functions resolved into a table ([lib_drm::LibDrm]), as the libinput
backend does (native_library.rs).
Modules§
- lib_drm
- The functions and structures of the two libraries (the static class
LibDrmof the reference).
Structs§
- DrmMode
Connection - The state of a connector (
drmModeConnection). - DrmMode
SubPixel - The order of the subpixels of a connector (
drmModeSubPixel).