diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-06 10:16:07 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-19 22:47:49 +0100 |
commit | 44a4792fd80acfeb15e2cf88304f283855689fd0 (patch) | |
tree | 5236060ec1e8a226476378f8c9c4ad4795ca250f /include/backend | |
parent | 63df2bcbe656b394b0bd152ab69147194dd74815 (diff) |
backend/session: operate on wlr_device
Instead of operating on FDs in {open,close}_device, operate on
wlr_devices. This avoids the device lookup in wlr_session and allows
callers to have access to wlr_device fields.
For now, we use it to remove wlr_session_signal_add and replace it with
a more idiomatic wlr_session.events.change field. In the future, other
events will be added.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 80bc7669..f46d565c 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -82,6 +82,7 @@ struct wlr_drm_backend { bool addfb2_modifiers; int fd; + struct wlr_device *dev; size_t num_crtcs; struct wlr_drm_crtc *crtcs; |