From 94ed8f9496b11cb084a1d4f83e13fc910f52033f Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Tue, 25 May 2021 19:23:10 -0400 Subject: backend/drm: introduce wlr_drm_backend_get_non_master_fd --- include/wlr/backend/drm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ -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. -- cgit v1.2.3