summaryrefslogtreecommitdiff
path: root/shared.h
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2015-07-22 23:39:29 +0200
committerDavid Härdeman <david@hardeman.nu>2015-07-22 23:39:29 +0200
commit10836ae78302aa778553300167f6cdebdf8d884b (patch)
treeebb7a3501b11682de18055b813ed5007cb7ffd5d /shared.h
parentb51c1c648146e49c25c4d6a2a6f5b9b66ea3190d (diff)
Improve rcm-server integration with evdev generation
Diffstat (limited to 'shared.h')
-rw-r--r--shared.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/shared.h b/shared.h
index 28eed39..dda43ff 100644
--- a/shared.h
+++ b/shared.h
@@ -1,8 +1,25 @@
-#ifndef foosharedfooh
+#ifndef foosharedhfoo
#define foosharedhfoo
+#include <unistd.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include "linux-input.h"
+
#define REMOTE_LAYOUT_MAX_WIDTH 1000
#define REMOTE_LAYOUT_MAX_HEIGHT 1000
-#endif
+extern const char *rc_protocols[];
+
+struct linux_input_keycode {
+ const char *name;
+ uint32_t value;
+ bool alias;
+ void *cairo_surface;
+};
+extern struct linux_input_keycode linux_input_keycodes[];
+
+struct linux_input_keycode *get_linux_keycode_by_name(const char *name);
+
+#endif