blob: f3b39c671c8141ab12e5cb7deecf4721b513c02d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#if defined(__linux__)
#include <linux/input.h>
#include <sys/sysmacros.h>
#elif defined(__FreeBSD__)
#include <dev/evdev/input.h>
#else
#error Unsupported platform
#endif
#include "evdev.h"
int evdev_revoke(int fd) {
return ioctl(fd, EVIOCREVOKE, NULL);
}
int dev_is_evdev(dev_t device) {
return major(device) == 13;
}
|