aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend/drm.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-06 10:16:07 +0100
committerSimon Ser <contact@emersion.fr>2020-11-19 22:47:49 +0100
commit44a4792fd80acfeb15e2cf88304f283855689fd0 (patch)
tree5236060ec1e8a226476378f8c9c4ad4795ca250f /include/wlr/backend/drm.h
parent63df2bcbe656b394b0bd152ab69147194dd74815 (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/wlr/backend/drm.h')
-rw-r--r--include/wlr/backend/drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index c1380323..cd0f3405 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -22,7 +22,8 @@
* a DRM backend, other kinds of backends raise SIGABRT).
*/
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
- struct wlr_session *session, int gpu_fd, struct wlr_backend *parent,
+ struct wlr_session *session, struct wlr_device *dev,
+ struct wlr_backend *parent,
wlr_renderer_create_func_t create_renderer_func);
bool wlr_backend_is_drm(struct wlr_backend *backend);