| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 |
| commit | 1af58bb8886673ac115f019094853fa763e79187 (patch) | |
| tree | c2ab030898e74288f82c557287272546a990e932 /src/relabsd_device.h | |
Initial commit.
Diffstat (limited to 'src/relabsd_device.h')
| -rw-r--r-- | src/relabsd_device.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/relabsd_device.h b/src/relabsd_device.h new file mode 100644 index 0000000..35a4830 --- /dev/null +++ b/src/relabsd_device.h @@ -0,0 +1,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 |


