mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
Refactor backend state management
This commit is contained in:
parent
7e9feb70a0
commit
15b1ce9e6c
11 changed files with 196 additions and 126 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue