diff options
author | cbdev <cb@cbcdn.com> | 2018-02-24 04:49:53 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-02-24 04:49:53 +0100 |
commit | ab037a3232cb752ea0d3678705091a07b7022448 (patch) | |
tree | 3762fbc1fb62388f3bcdb942a2c5514ccd704915 /evdev.h | |
parent | a8739fab5c159c93392172632e28fad7487584ed (diff) | |
download | midimonster-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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |