Move lk_ctx content to private part of library
[platform/upstream/kbd.git] / tests / libkeymap-mktable.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         ctx = lk_init();
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_ctable(ctx, stdout);
19
20         lk_free(ctx);
21         return 0;
22 }