|
Packit Service |
50ad14 |
/**
|
|
Packit Service |
50ad14 |
* @file kmap.h
|
|
Packit Service |
50ad14 |
* @brief Functions for keymaps manipulation (add/delete keys).
|
|
Packit Service |
50ad14 |
*/
|
|
Packit Service |
50ad14 |
#ifndef LK_KMAP_H
|
|
Packit Service |
50ad14 |
#define LK_KMAP_H
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#include <keymap/context.h>
|
|
Packit Service |
50ad14 |
#include <keymap/findfile.h>
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int lk_add_map(struct lk_ctx *ctx, unsigned int k_table);
|
|
Packit Service |
50ad14 |
int lk_map_exists(struct lk_ctx *ctx, unsigned int k_table);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int lk_get_keys_total(struct lk_ctx *ctx, unsigned int k_table);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int lk_add_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index, int keycode);
|
|
Packit Service |
50ad14 |
int lk_del_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
|
|
Packit Service |
50ad14 |
int lk_get_key(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
|
|
Packit Service |
50ad14 |
int lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* Functions for key string manipulations */
|
|
Packit Service |
50ad14 |
int lk_get_func(struct lk_ctx *ctx, struct kbsentry *kbs);
|
|
Packit Service |
50ad14 |
int lk_add_func(struct lk_ctx *ctx, struct kbsentry *kbs);
|
|
Packit Service |
50ad14 |
int lk_del_func(struct lk_ctx *ctx, unsigned int index);
|
|
Packit Service |
50ad14 |
int lk_func_exists(struct lk_ctx *ctx, unsigned int index);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
/* Functions for manipulations with diacritical table */
|
|
Packit Service |
50ad14 |
int lk_get_diacr(struct lk_ctx *ctx, unsigned int index, struct lk_kbdiacr *dcr);
|
|
Packit Service |
50ad14 |
int lk_add_diacr(struct lk_ctx *ctx, unsigned int index, struct lk_kbdiacr *dcr);
|
|
Packit Service |
50ad14 |
int lk_del_diacr(struct lk_ctx *ctx, unsigned int index);
|
|
Packit Service |
50ad14 |
int lk_diacr_exists(struct lk_ctx *ctx, unsigned int index);
|
|
Packit Service |
50ad14 |
int lk_append_diacr(struct lk_ctx *ctx, struct lk_kbdiacr *dcr);
|
|
Packit Service |
50ad14 |
int lk_append_compose(struct lk_ctx *ctx, struct lk_kbdiacr *dcr);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int lk_add_constants(struct lk_ctx *ctx);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
int lk_parse_keymap(struct lk_ctx *ctx, lkfile_t *f);
|
|
Packit Service |
50ad14 |
int lk_load_keymap(struct lk_ctx *ctx, int fd, int kbd_mode);
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
#endif /* LK_KMAP_H */
|