aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/backend.h10
-rw-r--r--include/backend/drm/drm.h3
2 files changed, 5 insertions, 8 deletions
diff --git a/include/backend/drm/backend.h b/include/backend/drm/backend.h
index bdda7ea7..0c725ccb 100644
--- a/include/backend/drm/backend.h
+++ b/include/backend/drm/backend.h
@@ -12,21 +12,17 @@
#include <wlr/common/list.h>
#include <wlr/backend/drm.h>
+#include "backend.h"
#include "udev.h"
#include "event.h"
#include "drm.h"
-struct wlr_drm_backend {
+struct wlr_backend_state {
int fd;
+ struct wlr_backend *backend;
struct wl_event_source *drm_event;
- struct {
- struct wl_signal output_add;
- struct wl_signal output_rem;
- struct wl_signal output_render;
- } signals;
-
uint32_t taken_crtcs;
list_t *outputs;
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 51b0cdc6..3e83058a 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -8,6 +8,7 @@
#include <gbm.h>
#include "backend/egl.h"
+#include "backend.h"
struct wlr_drm_renderer {
int fd;
@@ -50,7 +51,7 @@ struct wlr_drm_output {
void wlr_drm_output_cleanup(struct wlr_drm_output *out, bool restore);
-void wlr_drm_scan_connectors(struct wlr_drm_backend *backend);
+void wlr_drm_scan_connectors(struct wlr_backend_state *state);
int wlr_drm_event(int fd, uint32_t mask, void *data);
#endif