diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-01 16:00:12 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-16 08:57:42 +0100 |
commit | a53ab146feaf01a93bf5a4e38d99d84d8858591b (patch) | |
tree | 5e7cb89a4b20da830d805c3ccca7c4bc15f23e30 /include/backend | |
parent | 87293d1b15f539aae59219fa1e1b367bf55382dc (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/backend')
-rw-r--r-- | include/backend/backend.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <wlr/backend.h> + +int backend_get_drm_fd(struct wlr_backend *backend); + +#endif |