1e10291ff68546a11b4856005d394c89334aa4ec
[platform/upstream/kbd.git] / tests / libkeymap-bkeymap.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <keymap.h>
5
6 int main(int argc, char **argv)
7 {
8         struct lk_ctx ctx;
9         lkfile_t f;
10
11         lk_init(&ctx);
12
13         f.pipe = 0;
14         strcpy(f.pathname, argv[1]);
15         f.fd = fopen( argv[1], "r");
16
17         lk_parse_keymap(&ctx, &f);
18         lk_dump_bkeymap(&ctx, stdout);
19
20         lk_free(&ctx);
21         return 0;
22 }