backend/drm: introduce wlr_drm_backend_get_non_master_fd

This commit is contained in:
Simon Zeni 2021-05-25 19:23:10 -04:00 committed by Simon Ser
parent e5a949a955
commit 94ed8f9496
2 changed files with 33 additions and 0 deletions

View file

@ -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.