From 1af58bb8886673ac115f019094853fa763e79187 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 1 Sep 2015 22:48:51 +0200 Subject: Initial commit. --- src/relabsd_device.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/relabsd_device.h (limited to 'src/relabsd_device.h') 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 + +#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 -- cgit v1.2.3-70-g09d2