From 390576c3839ee7abb845e27b7267de45495e6b2f Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Mon, 23 Dec 2019 15:44:19 +0100 Subject: Starting to turn relabsd into a proper daemon... --- src/input.h | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/input.h (limited to 'src/input.h') 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 - -#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 -- cgit v1.2.3-70-g09d2