Initial implementation of seatd and libseat
This commit is contained in:
parent
f85434de66
commit
61716a2c77
32 changed files with 4744 additions and 0 deletions
15
common/evdev.c
Normal file
15
common/evdev.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue