wscons: Move to its own device type

This reduces ifdefs and avoids overloading evdev as something it is not.
This commit is contained in:
Kenny Levinsen 2022-03-29 10:41:16 +02:00
parent 684dd61945
commit 0462e9331d
7 changed files with 51 additions and 27 deletions

View file

@ -4,9 +4,4 @@
int evdev_revoke(int fd);
int path_is_evdev(const char *path);
#if defined(__linux__) || defined(__NetBSD__)
#include <sys/types.h>
int dev_is_evdev(dev_t device);
#endif
#endif

View file

@ -13,6 +13,7 @@ enum seat_device_type {
SEAT_DEVICE_TYPE_NORMAL,
SEAT_DEVICE_TYPE_EVDEV,
SEAT_DEVICE_TYPE_DRM,
SEAT_DEVICE_TYPE_WSCONS,
};
struct seat_device {

6
include/wscons.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _SEATD_WSCONS_H
#define _SEATD_WSCONS_H
int path_is_wscons(const char *path);
#endif