aboutsummaryrefslogtreecommitdiffhomepage
path: root/evdev.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-02-24 04:49:53 +0100
committercbdev <cb@cbcdn.com>2018-02-24 04:49:53 +0100
commitab037a3232cb752ea0d3678705091a07b7022448 (patch)
tree3762fbc1fb62388f3bcdb942a2c5514ccd704915 /evdev.h
parenta8739fab5c159c93392172632e28fad7487584ed (diff)
downloadmidimonster-ab037a3232cb752ea0d3678705091a07b7022448.tar.gz
midimonster-ab037a3232cb752ea0d3678705091a07b7022448.tar.bz2
midimonster-ab037a3232cb752ea0d3678705091a07b7022448.zip
Allow the evdev backend to be built without uinput
Diffstat (limited to 'evdev.h')
-rw-r--r--evdev.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/evdev.h b/evdev.h
index dccc641..89a08ae 100644
--- a/evdev.h
+++ b/evdev.h
@@ -1,8 +1,13 @@
#include <sys/types.h>
-#include <linux/input.h>
#include "midimonster.h"
+/*
+ * This provides read-write access to the Linux kernel evdev subsystem
+ * via libevdev. On systems where uinput is not supported, output can be
+ * disabled by building with -DEVDEV_NO_UINPUT
+ */
+
int init();
static int evdev_configure(char* option, char* value);
static int evdev_configure_instance(instance* instance, char* option, char* value);
@@ -19,6 +24,8 @@ typedef struct /*_evdev_instance_model*/ {
int exclusive;
int output_enabled;
+#ifndef EVDEV_NO_UINPUT
struct libevdev* output_proto;
struct libevdev_uinput* output_ev;
+#endif
} evdev_instance_data;