Initial implementation of seatd and libseat

This commit is contained in:
Kenny Levinsen 2020-07-31 00:22:18 +02:00
parent f85434de66
commit 61716a2c77
32 changed files with 4744 additions and 0 deletions

15
common/evdev.c Normal file
View file

@ -0,0 +1,15 @@
#include <linux/input.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include "evdev.h"
int evdev_revoke(int fd) {
return ioctl(fd, EVIOCREVOKE, NULL);
}
int dev_is_evdev(dev_t device) {
return major(device) == 13;
}