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.
This commit is contained in:
Simon Ser 2020-12-01 16:00:12 +01:00
parent 87293d1b15
commit a53ab146fe
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#ifndef BACKEND_H
#define BACKEND_H
#include <wlr/backend.h>
int backend_get_drm_fd(struct wlr_backend *backend);
#endif