libkeymap  2.0.1
Library to manage the Linux keymaps
kmap.h
Go to the documentation of this file.
1 #ifndef LK_KMAP_H
2 #define LK_KMAP_H
3 
4 #include <keymap/context.h>
5 #include <keymap/findfile.h>
6 
7 int lk_add_map(struct lk_ctx *ctx, unsigned int k_table);
8 int lk_map_exists(struct lk_ctx *ctx, unsigned int k_table);
9 
10 int lk_add_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index, int keycode);
11 int lk_del_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
12 int lk_get_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
13 int lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
14 
15 int lk_get_func(struct lk_ctx *ctx, struct kbsentry *kbs);
16 int lk_add_func(struct lk_ctx *ctx, struct kbsentry kbs);
17 
18 int lk_add_diacr(struct lk_ctx *ctx, unsigned int diacr, unsigned int base, unsigned int res);
19 int lk_add_compose(struct lk_ctx *ctx, unsigned int diacr, unsigned int base, unsigned int res);
20 
21 int lk_add_constants(struct lk_ctx *ctx);
22 
23 int lk_parse_keymap(struct lk_ctx *ctx, lkfile_t *f);
24 int lk_load_keymap(struct lk_ctx *ctx, int fd, int kbd_mode);
25 
26 #endif /* LK_KMAP_H */
int lk_get_func(struct lk_ctx *ctx, struct kbsentry *kbs)
int lk_add_map(struct lk_ctx *ctx, unsigned int k_table)
int lk_parse_keymap(struct lk_ctx *ctx, lkfile_t *f)
int lk_del_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index)
int lk_add_constants(struct lk_ctx *ctx)
int lk_add_diacr(struct lk_ctx *ctx, unsigned int diacr, unsigned int base, unsigned int res)
Definition: findfile.h:7
int lk_add_func(struct lk_ctx *ctx, struct kbsentry kbs)
int lk_add_compose(struct lk_ctx *ctx, unsigned int diacr, unsigned int base, unsigned int res)
int lk_add_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index, int keycode)
int lk_map_exists(struct lk_ctx *ctx, unsigned int k_table)
int lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index)
int lk_get_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index)
int lk_load_keymap(struct lk_ctx *ctx, int fd, int kbd_mode)