diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-05-07 10:00:23 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-05-07 10:12:54 -0400 |
commit | 15b1ce9e6ced22a90ab0df7a6b86c6d35c40ca93 (patch) | |
tree | 5fde5b7177005e3270509d3a119323d1f5897907 /include/backend/drm | |
parent | 7e9feb70a0b50caf7e9072d3b5c77b4e91235efa (diff) |
Refactor backend state management
Diffstat (limited to 'include/backend/drm')
-rw-r--r-- | include/backend/drm/backend.h | 10 | ||||
-rw-r--r-- | include/backend/drm/drm.h | 3 |
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 |