mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: introduce wlr_drm_backend_get_non_master_fd
This commit is contained in:
parent
e5a949a955
commit
94ed8f9496
2 changed files with 33 additions and 0 deletions
|
|
@ -33,6 +33,13 @@ bool wlr_output_is_drm(struct wlr_output *output);
|
|||
*/
|
||||
uint32_t wlr_drm_connector_get_id(struct wlr_output *output);
|
||||
|
||||
/**
|
||||
* Tries to open non-master DRM FD. The compositor must not call `drmSetMaster`
|
||||
* on the returned FD.
|
||||
* Returns a valid opened DRM FD, or -1 on error.
|
||||
*/
|
||||
int wlr_drm_backend_get_non_master_fd(struct wlr_backend *backend);
|
||||
|
||||
/**
|
||||
* Leases a given output to the caller. The output must be from the associated
|
||||
* DRM backend.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue