diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/backend/drm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index c5351d65..0d8c51e0 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -34,6 +34,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. * Returns a valid opened DRM FD or -1 on error. |