aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-01 16:00:12 +0100
committerSimon Ser <contact@emersion.fr>2021-01-16 08:57:42 +0100
commita53ab146feaf01a93bf5a4e38d99d84d8858591b (patch)
tree5e7cb89a4b20da830d805c3ccca7c4bc15f23e30 /include/wlr
parent87293d1b15f539aae59219fa1e1b367bf55382dc (diff)
backend: add get_drm_fd to interface
This function allows backends to return the DRM FD they are using. This will allow the allocator and the renderer to use the right device.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h
index 8782ae0b..3426bb45 100644
--- a/include/wlr/backend/interface.h
+++ b/include/wlr/backend/interface.h
@@ -19,6 +19,7 @@ struct wlr_backend_impl {
struct wlr_renderer *(*get_renderer)(struct wlr_backend *backend);
struct wlr_session *(*get_session)(struct wlr_backend *backend);
clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
+ int (*get_drm_fd)(struct wlr_backend *backend);
};
/**