diff options
Diffstat (limited to 'include/backend/drm/backend.h')
-rw-r--r-- | include/backend/drm/backend.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/backend/drm/backend.h b/include/backend/drm/backend.h new file mode 100644 index 00000000..0c725ccb --- /dev/null +++ b/include/backend/drm/backend.h @@ -0,0 +1,34 @@ +#ifndef DRM_BACKEND_H +#define DRM_BACKEND_H + +#include <stdbool.h> +#include <stddef.h> +#include <EGL/egl.h> +#include <gbm.h> +#include <libudev.h> +#include <wayland-server.h> + +#include <wlr/session.h> +#include <wlr/common/list.h> +#include <wlr/backend/drm.h> + +#include "backend.h" +#include "udev.h" +#include "event.h" +#include "drm.h" + +struct wlr_backend_state { + int fd; + + struct wlr_backend *backend; + struct wl_event_source *drm_event; + + uint32_t taken_crtcs; + list_t *outputs; + + struct wlr_drm_renderer renderer; + struct wlr_session *session; + struct wlr_udev udev; +}; + +#endif |