aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-18 10:23:41 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-18 11:03:55 +0100
commit1e49f9371f39475be7d2a3a9be2994ce5d27870b (patch)
treeb84ba5b35e846beddca3c78b6f01d12a6d5116a7 /kbd.h
parent03c8b71a085afb2a856fcf9a6e53c0b83cd9795c (diff)
downloadfbida-1e49f9371f39475be7d2a3a9be2994ce5d27870b.tar.gz
abstract away some kbd details
Diffstat (limited to 'kbd.h')
-rw-r--r--kbd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/kbd.h b/kbd.h
index 86aec75..10d09f9 100644
--- a/kbd.h
+++ b/kbd.h
@@ -3,8 +3,8 @@
#define KEY_MOD_SHIFT (1 << 0)
#define KEY_MOD_CTRL (1 << 1)
-uint32_t kbd_parse(const char *key, uint32_t *mod);
+void kbd_init(void);
int kbd_wait(int timeout);
-
-void tty_raw(void);
-void tty_restore(void);
+int kbd_read(char *buf, uint32_t len,
+ uint32_t *keycode, uint32_t *modifier);
+void kbd_fini(void);