From f9d363fece0046cabfa00ad6b72b50f45b70db60 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 14 May 2017 13:07:34 +1200 Subject: Added device matching --- include/backend/drm/backend.h | 1 + include/wlr/session.h | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/backend/drm/backend.h b/include/backend/drm/backend.h index 4df86e21..e603bccd 100644 --- a/include/backend/drm/backend.h +++ b/include/backend/drm/backend.h @@ -19,6 +19,7 @@ struct wlr_backend_state { int fd; + dev_t dev; struct wlr_backend *backend; struct wl_event_source *drm_event; diff --git a/include/wlr/session.h b/include/wlr/session.h index 4dfb026c..5f210f10 100644 --- a/include/wlr/session.h +++ b/include/wlr/session.h @@ -2,9 +2,16 @@ #define WLR_SESSION_H #include +#include struct session_interface; +// Passed to the listeners of device_paused/resumed +struct device_arg { + dev_t dev; + int fd; // Only for device_resumed +}; + struct wlr_session { const struct session_interface *iface; -- cgit v1.2.3