mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Added device matching
This commit is contained in:
parent
7efdd3c9fc
commit
f9d363fece
4 changed files with 39 additions and 8 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
struct wlr_backend_state {
|
||||
int fd;
|
||||
dev_t dev;
|
||||
|
||||
struct wlr_backend *backend;
|
||||
struct wl_event_source *drm_event;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue