diff options
Diffstat (limited to 'console-client/xkb/xkb.c')
-rw-r--r-- | console-client/xkb/xkb.c | 15 |
1 files changed, 15 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; +} |