backend/session/dev_udev.c, backend/libinput/backend.c: decouple udev from include/wlr/backend/session/session.h

This commit is contained in:
illiliti 2022-03-13 22:13:27 +03:00
parent e706875432
commit 68652158b7
3 changed files with 34 additions and 24 deletions

View file

@ -1,12 +1,12 @@
#ifndef WLR_BACKEND_SESSION_H
#define WLR_BACKEND_SESSION_H
#include <libudev.h>
#include <stdbool.h>
#include <sys/types.h>
#include <wayland-server-core.h>
struct libseat;
struct dev;
struct wlr_device {
int fd;
@ -34,9 +34,7 @@ struct wlr_session {
unsigned vtnr;
char seat[256];
struct udev *udev;
struct udev_monitor *mon;
struct wl_event_source *udev_event;
struct dev *dev;
struct libseat *seat_handle;
struct wl_event_source *libseat_event;