From 470457e22a1b5537013603d5e367c51e47bb61bf Mon Sep 17 00:00:00 2001 From: James Date: Mon, 5 May 2014 17:50:20 +0100 Subject: fish --- project.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 project.h (limited to 'project.h') diff --git a/project.h b/project.h new file mode 100644 index 0000000..eba3de8 --- /dev/null +++ b/project.h @@ -0,0 +1,57 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef BROMIUM +#define APPLE_KEYBOARD +#define N_COMPUTER 4 +#define N_CONSOLE 1 +#define MAP_NULL +#define LAYOUT_NULL +#endif + +#ifdef HOME +#define N_COMPUTER 7 +#define N_CONSOLE 3 +#define MAP_HOME +#define LAYOUT_HOME +#endif + +typedef struct MM_struct MM; + +typedef struct input_dev +{ + struct input_dev *next; + int id; /* /dev/input/event%d */ + int present; /* !0 if the device file exists */ + int fd; /* fd if the device is open, -1 otherwise */ + int blacklistid; /* !0 if the device is a km link */ +} input_dev_t; + +#define OUTPUT_KEY_LIST_LEN 10 + +typedef struct output_dev +{ + struct output_dev *next; + + char filename[PATH_MAX + 1]; + int present; + + struct usb_dev_handle *devh; + uint32_t seq; + + uint8_t keys[OUTPUT_KEY_LIST_LEN]; + +} output_dev_t; + + + +#include "prototypes.h" -- cgit v1.2.3