blob: f61ca4f03894f91b7313e66269f034c467371337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <sys/types.h>
#include <linux/input.h>
#include "midimonster.h"
int init();
static int backend_configure(char* option, char* value);
static int backend_configure_instance(instance* instance, char* option, char* value);
static instance* backend_instance();
static channel* backend_channel(instance* instance, char* spec);
static int backend_set(instance* inst, size_t num, channel** c, channel_value* v);
static int backend_handle(size_t num, managed_fd* fds);
static int backend_start();
static int backend_shutdown();
/* uinput_instance */
typedef struct {
int ident;
char* device_path;
char* name;
int fd_in;
int fd_out;
int exclusive;
size_t size_events;
struct input_event* events;
} uinput_instance;
|