summaryrefslogtreecommitdiff
path: root/console-client/xkb
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/xkb')
-rw-r--r--console-client/xkb/xkb.c15
-rw-r--r--console-client/xkb/xkb.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/console-client/xkb/xkb.c b/console-client/xkb/xkb.c
index 077667dc..fd84c6b6 100644
--- a/console-client/xkb/xkb.c
+++ b/console-client/xkb/xkb.c
@@ -1353,3 +1353,18 @@ xkb_input (keypress_t key)
}
error_t parse_xkbconfig (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap);
+
+error_t
+xkb_load_layout (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap)
+{
+ error_t err;
+ int lastarg;
+
+ err = parse_xkbconfig (xkbdir, xkbkeymapfile, xkbkeymap);
+ if (err)
+ return err;
+
+ determine_keytypes ();
+ interpret_all ();
+ return 0;
+}
diff --git a/console-client/xkb/xkb.h b/console-client/xkb/xkb.h
index 9792431f..3039089e 100644
--- a/console-client/xkb/xkb.h
+++ b/console-client/xkb/xkb.h
@@ -433,3 +433,5 @@ error_t xkb_init_repeat (int delay, int repeat);
void xkb_input (keypress_t key);
int debug_printf (const char *f, ...);
+
+error_t xkb_load_layout (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap);