Added device matching

This commit is contained in:
Scott Anderson 2017-05-14 13:07:34 +12:00
parent 7efdd3c9fc
commit f9d363fece
4 changed files with 39 additions and 8 deletions

View file

@ -19,6 +19,7 @@
struct wlr_backend_state {
int fd;
dev_t dev;
struct wlr_backend *backend;
struct wl_event_source *drm_event;

View file

@ -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;