libkeymap 2.4.0
Library to manage the Linux keymaps
Macros | Functions
kmap.h File Reference

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

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

Go to the source code of this file.

Macros

#define __attribute__(x)   /*NOTHING*/
 

Functions

int lk_add_map (struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
 
int lk_map_exists (struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
 
int lk_get_keys_total (struct lk_ctx *ctx, int k_table) __attribute__((nonnull(1)))
 
int lk_add_key (struct lk_ctx *ctx, int k_table, int k_index, int keycode) __attribute__((nonnull(1)))
 
int lk_del_key (struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
 
int lk_get_key (struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
 
int lk_key_exists (struct lk_ctx *ctx, int k_table, int k_index) __attribute__((nonnull(1)))
 
int lk_get_func (struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1
 
int int lk_add_func (struct lk_ctx *ctx, struct kbsentry *kbs) __attribute__((nonnull(1
 
int int int lk_del_func (struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
 
int lk_func_exists (struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
 
int lk_get_diacr (struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
 
int int lk_add_diacr (struct lk_ctx *ctx, int index, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
 
int int int lk_del_diacr (struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
 
int lk_diacr_exists (struct lk_ctx *ctx, int index) __attribute__((nonnull(1)))
 
int lk_append_diacr (struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
 
int int lk_append_compose (struct lk_ctx *ctx, struct lk_kbdiacr *dcr) __attribute__((nonnull(1
 
int int int lk_add_constants (struct lk_ctx *ctx) __attribute__((nonnull(1)))
 
int lk_parse_keymap (struct lk_ctx *ctx, struct kbdfile *f) __attribute__((nonnull(1
 
int int lk_load_keymap (struct lk_ctx *ctx, int fd, int kbd_mode) __attribute__((nonnull(1)))
 

Detailed Description

Functions for keymaps manipulation (add/delete keys).

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   x)    /*NOTHING*/

Function Documentation

◆ lk_add_map()

int lk_add_map ( struct lk_ctx *  ctx,
int  k_table 
)

◆ lk_map_exists()

int lk_map_exists ( struct lk_ctx *  ctx,
int  k_table 
)

◆ lk_get_keys_total()

int lk_get_keys_total ( struct lk_ctx *  ctx,
int  k_table 
)

◆ lk_add_key()

int lk_add_key ( struct lk_ctx *  ctx,
int  k_table,
int  k_index,
int  keycode 
)

◆ lk_del_key()

int lk_del_key ( struct lk_ctx *  ctx,
int  k_table,
int  k_index 
)

◆ lk_get_key()

int lk_get_key ( struct lk_ctx *  ctx,
int  k_table,
int  k_index 
)

◆ lk_key_exists()

int lk_key_exists ( struct lk_ctx *  ctx,
int  k_table,
int  k_index 
)

◆ lk_get_func()

int lk_get_func ( struct lk_ctx *  ctx,
struct kbsentry *  kbs 
)

◆ lk_add_func()

int int lk_add_func ( struct lk_ctx *  ctx,
struct kbsentry *  kbs 
)

◆ lk_del_func()

int int int lk_del_func ( struct lk_ctx *  ctx,
int  index 
)

◆ lk_func_exists()

int lk_func_exists ( struct lk_ctx *  ctx,
int  index 
)

◆ lk_get_diacr()

int lk_get_diacr ( struct lk_ctx *  ctx,
int  index,
struct lk_kbdiacr dcr 
)

◆ lk_add_diacr()

int int lk_add_diacr ( struct lk_ctx *  ctx,
int  index,
struct lk_kbdiacr dcr 
)

◆ lk_del_diacr()

int int int lk_del_diacr ( struct lk_ctx *  ctx,
int  index 
)

◆ lk_diacr_exists()

int lk_diacr_exists ( struct lk_ctx *  ctx,
int  index 
)

◆ lk_append_diacr()

int lk_append_diacr ( struct lk_ctx *  ctx,
struct lk_kbdiacr dcr 
)

◆ lk_append_compose()

int int lk_append_compose ( struct lk_ctx *  ctx,
struct lk_kbdiacr dcr 
)

◆ lk_add_constants()

int int int lk_add_constants ( struct lk_ctx *  ctx)

◆ lk_parse_keymap()

int lk_parse_keymap ( struct lk_ctx *  ctx,
struct kbdfile *  f 
)

◆ lk_load_keymap()

int int lk_load_keymap ( struct lk_ctx *  ctx,
int  fd,
int  kbd_mode 
)