libkeymap 2.4.0 Library to manage the Linux keymaps

kmap.h
Go to the documentation of this file.
1
5#ifndef LK_KMAP_H
6#define LK_KMAP_H
7
8#include <keymap/context.h>
9
10#ifndef __GNUC__
11#undef __attribute__
12#define __attribute__(x) /*NOTHING*/
13#endif
14
15 int lk_add_map(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)));
16 int lk_map_exists(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)));
17
18 int lk_get_keys_total(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)));
19
20 int lk_add_key(struct lk_ctx *ctx, int k_table, int k_index, int keycode) __attribute__((nonnull(1)));
21 int lk_del_key(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)));
22 int lk_get_key(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)));
23 int lk_key_exists(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)));
24
25/* Functions for key string manipulations */
26 int lk_get_func(struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1, 2)));
27 int lk_add_func(struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1, 2)));
28 int lk_del_func(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)));
29 int lk_func_exists(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)));
30
31/* Functions for manipulations with diacritical table */
32 int lk_get_diacr(struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1, 3)));
33 int lk_add_diacr(struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1, 3)));
34 int lk_del_diacr(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)));
35 int lk_diacr_exists(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)));
36 int lk_append_diacr(struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1, 2)));
37 int lk_append_compose(struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1, 2)));
38
39 int lk_add_constants(struct lk_ctx *ctx) __attribute__((nonnull(1)));
40
41#include <kbdfile.h>
42
43 int lk_parse_keymap(struct lk_ctx *ctx, struct kbdfile *f) __attribute__((nonnull(1, 2)));
44 int lk_load_keymap(struct lk_ctx *ctx, int fd, int kbd_mode) __attribute__((nonnull(1)));
45
46#endif /* LK_KMAP_H */
context.h
Header contains flags, keywords and context structure.
lk_add_func
int int lk_add_func(struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1
lk_add_constants
int int int lk_add_constants(struct lk_ctx *ctx) __attribute__((nonnull(1)))
lk_load_keymap
int int lk_load_keymap(struct lk_ctx *ctx, int fd, int kbd_mode) __attribute__((nonnull(1)))
lk_diacr_exists
int lk_diacr_exists(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
lk_add_key
int lk_add_key(struct lk_ctx *ctx, int k_table, int k_index, int keycode) __attribute__((nonnull(1)))
lk_append_compose
int int lk_append_compose(struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
lk_add_diacr
int int lk_add_diacr(struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
lk_func_exists
int lk_func_exists(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
lk_del_func
int int int lk_del_func(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
lk_del_key
int lk_del_key(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
lk_parse_keymap
int lk_parse_keymap(struct lk_ctx *ctx, struct kbdfile *f) __attribute__((nonnull(1
__attribute__
#define __attribute__(x)
Definition: kmap.h:12
lk_get_func
int lk_get_func(struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1
lk_get_key
int lk_get_key(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
lk_map_exists
int lk_map_exists(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
lk_get_keys_total
int lk_get_keys_total(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
lk_del_diacr
int int int lk_del_diacr(struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
lk_get_diacr
int lk_get_diacr(struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
lk_append_diacr
int lk_append_diacr(struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
lk_add_map
int lk_add_map(struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
lk_key_exists
int lk_key_exists(struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
lk_kbdiacr
Copy of struct kbdiacruc.
Definition: context.h:36