From a53ab146feaf01a93bf5a4e38d99d84d8858591b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 1 Dec 2020 16:00:12 +0100 Subject: 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. --- include/backend/backend.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 include/backend/backend.h (limited to 'include/backend') diff --git a/include/backend/backend.h b/include/backend/backend.h new file mode 100644 index 00000000..f920cc9f --- /dev/null +++ b/include/backend/backend.h @@ -0,0 +1,8 @@ +#ifndef BACKEND_H +#define BACKEND_H + +#include + +int backend_get_drm_fd(struct wlr_backend *backend); + +#endif -- cgit v1.2.3