From ab037a3232cb752ea0d3678705091a07b7022448 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 24 Feb 2018 04:49:53 +0100 Subject: Allow the evdev backend to be built without uinput --- evdev.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'evdev.h') diff --git a/evdev.h b/evdev.h index dccc641..89a08ae 100644 --- a/evdev.h +++ b/evdev.h @@ -1,8 +1,13 @@ #include -#include #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; -- cgit v1.2.3