blob: fe6922da40403c9404a8ac05ec4769037b8676ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|