wlroots-hyprland/include/backend/drm/backend.h

40 lines
709 B
C
Raw Normal View History

2017-05-01 07:49:18 +02:00
#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>
2017-05-01 07:49:18 +02:00
#include <wlr/session.h>
2017-05-02 04:34:33 +02:00
#include <wlr/common/list.h>
2017-05-02 08:13:17 +02:00
#include <wlr/backend/drm.h>
2017-05-02 04:34:33 +02:00
2017-05-07 16:00:23 +02:00
#include "backend.h"
2017-06-02 02:29:10 +02:00
#include "backend/udev.h"
2017-05-01 07:49:18 +02:00
#include "event.h"
#include "drm.h"
2017-05-07 16:00:23 +02:00
struct wlr_backend_state {
2017-05-01 07:49:18 +02:00
int fd;
2017-05-14 03:07:34 +02:00
dev_t dev;
2017-05-01 07:49:18 +02:00
2017-05-07 16:00:23 +02:00
struct wlr_backend *backend;
2017-05-03 11:28:44 +02:00
struct wl_event_source *drm_event;
2017-05-13 15:12:47 +02:00
struct wl_listener device_paused;
struct wl_listener device_resumed;
2017-06-02 02:29:10 +02:00
struct wl_listener drm_invalidated;
2017-05-13 15:12:47 +02:00
2017-05-01 07:49:18 +02:00
uint32_t taken_crtcs;
2017-05-03 11:28:44 +02:00
list_t *outputs;
2017-05-01 07:49:18 +02:00
struct wlr_drm_renderer renderer;
struct wlr_session *session;
2017-06-02 02:29:10 +02:00
struct wlr_udev *udev;
2017-05-01 07:49:18 +02:00
};
#endif