| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-12-23 15:44:19 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-12-23 15:44:19 +0100 | 
| commit | 390576c3839ee7abb845e27b7267de45495e6b2f (patch) | |
| tree | c481c37c868ccc65a3476f60b17369b21a90b79b /src/input.h | |
| parent | 4355548f79375a62bb5e3bb5695190d48e4c0bc3 (diff) | |
Starting to turn relabsd into a proper daemon...
Diffstat (limited to 'src/input.h')
| -rw-r--r-- | src/input.h | 53 | 
1 files changed, 0 insertions, 53 deletions
| diff --git a/src/input.h b/src/input.h deleted file mode 100644 index 2e1b502..0000000 --- a/src/input.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef RELABSD_INPUT_H -#define RELABSD_INPUT_H - -#include <libevdev/libevdev.h> - -#include "config.h" - -struct relabsd_input -{ -   struct libevdev * dev; -   int fd; -   int timed_out; -}; - -/* - * Returns -1 on (fatal) error, - *         0  on success. - * - * 'input' does not need to be initialized, as the function will to that for - * you (on success). - * On success, 'input' will need to be closed. - */ -int relabsd_input_open -( -   struct relabsd_input * const input, -   const struct relabsd_config * const conf -); - -void relabsd_input_close (const struct relabsd_input * const input); - -/* - * Returns -1 on (warning) error, - *         0 on successful read. - * - * The 'input_*' parameters do not need to be initialized, as the function will - * do that for you (on success). - * Requires 'input' to be open. - */ -int relabsd_input_read -( -   const struct relabsd_input * const input, -   unsigned int * const input_type, -   unsigned int * const input_code, -   int * const input_value -); - -int relabsd_input_wait_for_next_event -( -   const struct relabsd_input * const input, -   const struct relabsd_config * const config -); - -#endif | 


