diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-05-14 13:07:34 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-05-14 13:07:34 +1200 |
commit | f9d363fece0046cabfa00ad6b72b50f45b70db60 (patch) | |
tree | 5387efd85f29f1acdb8908cf3a479192c50846db /include | |
parent | 7efdd3c9fc38de377a43bb368cf113524b5a73d7 (diff) |
Added device matching
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/backend.h | 1 | ||||
-rw-r--r-- | include/wlr/session.h | 7 |
2 files changed, 8 insertions, 0 deletions
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 <wayland-server.h> +#include <sys/types.h> 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; |