blob: 35a48302a9fd1854c090f9f529b4b5735340494d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef RELABSD_RELABSD_DEVICE_H
#define RELABSD_RELABSD_DEVICE_H
#include <libevdev/libevdev.h>
#include "config.h"
#include "input.h"
struct relabsd_device
{
struct libevdev * dev;
struct libevdev_uinput * uidev;
};
int relabsd_device_create
(
struct relabsd_device * const dev,
const struct relabsd_config * const config
);
void relabsd_device_destroy (const struct relabsd_device * const dev);
int relabsd_device_write_evdev_event
(
const struct relabsd_device * const dev,
unsigned int const type,
unsigned int const code,
int const value
);
#endif
|