aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-04-15 16:10:22 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-04-15 16:10:22 +0200
commit090307b7d3270c1bab3299c6e101c5577b5ad7c0 (patch)
tree3bcd21461e30a95a213f30922004891003ab991b /kbd.h
parent6dc4cd217733e81c9a6b59cf526b1e54b23c457d (diff)
downloadfbida-090307b7d3270c1bab3299c6e101c5577b5ad7c0.tar.gz
xkb: move variables to kbd.c
Diffstat (limited to 'kbd.h')
-rw-r--r--kbd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kbd.h b/kbd.h
index fc5048e..82130a0 100644
--- a/kbd.h
+++ b/kbd.h
@@ -4,6 +4,7 @@
#include <libudev.h>
#include <libinput.h>
+#include <xkbcommon/xkbcommon.h>
#define KEY_MOD_SHIFT (1 << 0)
#define KEY_MOD_CTRL (1 << 1)
@@ -12,6 +13,11 @@ extern int libinput_devcount;
extern int libinput_deverror;
extern const struct libinput_interface libinput_if_default;
+extern struct xkb_context *xkb_ctx;
+extern struct xkb_keymap *xkb_map;
+extern struct xkb_state *xkb_state;
+extern struct xkb_rule_names xkb_layout;
+
void kbd_init(int use_libinput, dev_t gfx);
int kbd_wait(int timeout);
int kbd_read(char *buf, uint32_t len,