diff options
author | Kenny Levinsen <kl@kl.wtf> | 2022-03-29 10:41:16 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2022-03-29 10:54:27 +0200 |
commit | 0462e9331d1648171bd47e62a2808f0a4d647239 (patch) | |
tree | 2d91785d72da23c25fa4146fab09580f7e2d9375 /include | |
parent | 684dd619455011bc08c85ae4c1b39394268b5646 (diff) |
wscons: Move to its own device type
This reduces ifdefs and avoids overloading evdev as something it is not.
Diffstat (limited to 'include')
-rw-r--r-- | include/evdev.h | 5 | ||||
-rw-r--r-- | include/seat.h | 1 | ||||
-rw-r--r-- | include/wscons.h | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/include/evdev.h b/include/evdev.h index da57828..5e6cfbf 100644 --- a/include/evdev.h +++ b/include/evdev.h @@ -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 diff --git a/include/seat.h b/include/seat.h index cc243b6..ff857e7 100644 --- a/include/seat.h +++ b/include/seat.h @@ -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 { diff --git a/include/wscons.h b/include/wscons.h new file mode 100644 index 0000000..bf0c10c --- /dev/null +++ b/include/wscons.h @@ -0,0 +1,6 @@ +#ifndef _SEATD_WSCONS_H +#define _SEATD_WSCONS_H + +int path_is_wscons(const char *path); + +#endif |