summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-12-23 15:44:19 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-12-23 15:44:19 +0100
commit390576c3839ee7abb845e27b7267de45495e6b2f (patch)
treec481c37c868ccc65a3476f60b17369b21a90b79b /src/relabsd_device.h
parent4355548f79375a62bb5e3bb5695190d48e4c0bc3 (diff)
Starting to turn relabsd into a proper daemon...
Diffstat (limited to 'src/relabsd_device.h')
-rw-r--r--src/relabsd_device.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/relabsd_device.h b/src/relabsd_device.h
deleted file mode 100644
index 4aa181d..0000000
--- a/src/relabsd_device.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#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;
-};
-
-/*
- * - Clones the (real) input device.
- * - Adds ABS event support to the clone.
- * - Adds the ABS axis described in 'config' to the clone (overwriting if
- * needed).
- * - Disables the associated REL events from the clone.
- *
- * Returns -1 on (fatal) error,
- * 0 on success.
- *
- * 'dev' does not need to be initialized, as the function will to that for you
- * (on success).
- * On success, 'dev' will need to be closed.
- * This opens the (real) input device in read only mode to copy its properties.
- */
-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);
-
-/*
- * Write an event to 'dev'. At this time, every event written to 'dev' is
- * followed by an EV_SYN event.
- *
- * Returns 0 if both the event and the EV_SYN were successful,
- * -1 if either failed.
- */
-int relabsd_device_write_evdev_event
-(
- const struct relabsd_device * const dev,
- unsigned int const type,
- unsigned int const code,
- int const value
-);
-
-/*
- * Send an event for each enabled axis, setting it to zero.
- * An EV_SYN event is sent afterwards.
- */
-void relabsd_device_set_axes_to_zero
-(
- const struct relabsd_device * const dev,
- const struct relabsd_config * const config
-);
-
-
-#endif