aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-05-25 19:23:10 -0400
committerSimon Ser <contact@emersion.fr>2021-09-08 11:09:07 +0200
commit94ed8f9496b11cb084a1d4f83e13fc910f52033f (patch)
treebceca0df1a97f1c1e761c60bd21e7ddc487f46c0 /include
parente5a949a9550ad2d6c5aca3c8d0997dbfdca086d5 (diff)
backend/drm: introduce wlr_drm_backend_get_non_master_fd
Diffstat (limited to 'include')
-rw-r--r--include/wlr/backend/drm.h7
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.