aboutsummaryrefslogtreecommitdiffstats
path: root/utils/keytable/keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/keytable/keymap.h')
-rw-r--r--utils/keytable/keymap.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/keytable/keymap.h b/utils/keytable/keymap.h
index 645a9bd0..df0ba814 100644
--- a/utils/keytable/keymap.h
+++ b/utils/keytable/keymap.h
@@ -2,11 +2,37 @@
#ifndef __KEYMAP_H
#define __KEYMAP_H
+struct keymap {
+ struct keymap *next;
+ char *name;
+ char *protocol;
+ char *variant;
+ struct protocol_param *param;
+ struct scancode_entry *scancode;
+ struct raw_entry *raw;
+};
+
+struct protocol_param {
+ struct protocol_param *next;
+ char *name;
+ long int value;
+};
+
+struct scancode_entry {
+ struct scancode_entry *next;
+ u_int32_t scancode;
+ char *keycode;
+};
+
struct raw_entry {
struct raw_entry *next;
u_int32_t scancode;
u_int32_t raw_length;
+ char *keycode;
u_int32_t raw[1];
};
+void free_keymap(struct keymap *map);
+error_t parse_keyfile(char *fname, struct keymap **keymap, bool verbose);
+
#endif

Privacy Policy