summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-13 07:37:58 +0000
committernicm <nicm>2021-08-13 07:37:58 +0000
commit13a0da205b8c24995de11776b93244e914e4694d (patch)
tree261c65e1a3e1b122dc2671ce80f0e661262da96c /tty-keys.c
parent2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c (diff)
Break message type stuff out into its own header.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 156fceba..6dfa70f3 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -58,6 +58,17 @@ static int tty_keys_device_attributes(struct tty *, const char *, size_t,
static int tty_keys_extended_device_attributes(struct tty *, const char *,
size_t, size_t *);
+/* A key tree entry. */
+struct tty_key {
+ char ch;
+ key_code key;
+
+ struct tty_key *left;
+ struct tty_key *right;
+
+ struct tty_key *next;
+};
+
/* Default raw keys. */
struct tty_default_key_raw {
const char *string;