libkeymap  2.0.4
Library to manage the Linux keymaps
Functions
src/libkeymap/keymap/kmap.h File Reference

Functions for keymaps manipulation (add/delete keys). More...

#include <keymap/context.h>
#include <keymap/findfile.h>

Go to the source code of this file.

Functions

int lk_add_map (struct lk_ctx *ctx, unsigned int k_table)
int lk_map_exists (struct lk_ctx *ctx, unsigned int k_table)
int lk_get_keys_total (struct lk_ctx *ctx, unsigned int k_table)
int lk_add_key (struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index, int keycode)
int lk_del_key (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_key_exists (struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index)
int lk_get_func (struct lk_ctx *ctx, struct kbsentry *kbs)
int lk_add_func (struct lk_ctx *ctx, struct kbsentry *kbs)
int lk_del_func (struct lk_ctx *ctx, unsigned int index)
int lk_func_exists (struct lk_ctx *ctx, unsigned int index)
int lk_get_diacr (struct lk_ctx *ctx, unsigned int index, struct lk_kbdiacr *dcr)
int lk_add_diacr (struct lk_ctx *ctx, unsigned int index, struct lk_kbdiacr *dcr)
int lk_del_diacr (struct lk_ctx *ctx, unsigned int index)
int lk_diacr_exists (struct lk_ctx *ctx, unsigned int index)
int lk_append_diacr (struct lk_ctx *ctx, struct lk_kbdiacr *dcr)
int lk_append_compose (struct lk_ctx *ctx, struct lk_kbdiacr *dcr)
int lk_add_constants (struct lk_ctx *ctx)
int lk_parse_keymap (struct lk_ctx *ctx, lkfile_t *f)
int lk_load_keymap (struct lk_ctx *ctx, int fd, int kbd_mode)

Detailed Description

Functions for keymaps manipulation (add/delete keys).


Function Documentation

int lk_add_map ( struct lk_ctx *  ctx,
unsigned int  k_table 
)
int lk_map_exists ( struct lk_ctx *  ctx,
unsigned int  k_table 
)
int lk_get_keys_total ( struct lk_ctx *  ctx,
unsigned int  k_table 
)
int lk_add_key ( struct lk_ctx *  ctx,
unsigned int  k_table,
unsigned int  k_index,
int  keycode 
)
int lk_del_key ( 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_key_exists ( struct lk_ctx *  ctx,
unsigned int  k_table,
unsigned int  k_index 
)
int lk_get_func ( struct lk_ctx *  ctx,
struct kbsentry *  kbs 
)
int lk_add_func ( struct lk_ctx *  ctx,
struct kbsentry *  kbs 
)
int lk_del_func ( struct lk_ctx *  ctx,
unsigned int  index 
)
int lk_func_exists ( struct lk_ctx *  ctx,
unsigned int  index 
)
int lk_get_diacr ( struct lk_ctx *  ctx,
unsigned int  index,
struct lk_kbdiacr dcr 
)
int lk_add_diacr ( struct lk_ctx *  ctx,
unsigned int  index,
struct lk_kbdiacr dcr 
)
int lk_del_diacr ( struct lk_ctx *  ctx,
unsigned int  index 
)
int lk_diacr_exists ( struct lk_ctx *  ctx,
unsigned int  index 
)
int lk_append_diacr ( struct lk_ctx *  ctx,
struct lk_kbdiacr dcr 
)
int lk_append_compose ( struct lk_ctx *  ctx,
struct lk_kbdiacr dcr 
)
int lk_add_constants ( struct lk_ctx *  ctx)
int lk_parse_keymap ( struct lk_ctx *  ctx,
lkfile_t f 
)
int lk_load_keymap ( struct lk_ctx *  ctx,
int  fd,
int  kbd_mode 
)