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/input.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/input.h (limited to 'src/input.h') diff --git a/src/input.h b/src/input.h new file mode 100644 index 0000000..03b5c5a --- /dev/null +++ b/src/input.h @@ -0,0 +1,28 @@ +#ifndef RELABSD_INPUT_H +#define RELABSD_INPUT_H + +#include + +struct relabsd_input +{ + struct libevdev * dev; + int fd; +}; + +int relabsd_input_open +( + struct relabsd_input * const input, + const char * const filename +); + +void relabsd_input_close (const struct relabsd_input * const input); + +int relabsd_input_read +( + const struct relabsd_input * const input, + unsigned int * const input_type, + unsigned int * const input_code, + int * const input_value +); + +#endif -- cgit v1.2.3-70-g09d2