#include <stdio.h>
#include <keymap/context.h>
Go to the source code of this file.
|
int | lk_dump_bkeymap (struct lk_ctx *ctx, FILE *fd) |
|
int | lk_dump_ctable (struct lk_ctx *ctx, FILE *fd) |
|
void | lk_dump_keymap (struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric) |
|
void | lk_dump_keys (struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric) |
|
void | lk_dump_keymaps (struct lk_ctx *ctx, FILE *fd) |
|
void | lk_dump_funcs (struct lk_ctx *ctx, FILE *fd) |
|
void | lk_dump_diacs (struct lk_ctx *ctx, FILE *fd) |
|
int | lk_get_kmapinfo (struct lk_ctx *ctx, struct kmapinfo *res) |
|
void | lk_dump_summary (struct lk_ctx *ctx, FILE *fd, int console) |
|
void | lk_dump_symbols (FILE *fd) |
|
Flags controlling the output keymap.
Enumerator |
---|
LK_SHAPE_DEFAULT |
|
LK_SHAPE_FULL_TABLE |
one line for each keycode
|
LK_SHAPE_SEPARATE_LINES |
one line for each (modifier,keycode) pair
|
LK_SHAPE_UNTIL_HOLE |
one line for each keycode until 1st hole
|
int lk_dump_bkeymap |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd |
|
) |
| |
Outputs a keymap in binary format.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
- Returns
- 0 on success, -1 on error.
int lk_dump_ctable |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd |
|
) |
| |
Outputs a keymap in C format.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
- Returns
- 0 on success, -1 on error.
void lk_dump_keymap |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd, |
|
|
lk_table_shape |
table, |
|
|
char |
numeric |
|
) |
| |
Outputs whole keymap. This is a high-level function that calls lk_dump_keys, lk_dump_keymaps, lk_dump_funcs and lk_dump_diacs.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
table | specifies the output format of the keycode table. |
numeric | indicates whether to output the keycodes in numerical form. |
void lk_dump_keys |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd, |
|
|
lk_table_shape |
table, |
|
|
char |
numeric |
|
) |
| |
Outputs keycodes.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
table | specifies the output format of the keycode table. |
numeric | indicates whether to output the keycodes in numerical form. |
void lk_dump_keymaps |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd |
|
) |
| |
Outputs 'keymaps' line.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
void lk_dump_funcs |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd |
|
) |
| |
Outputs function keys.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
void lk_dump_diacs |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd |
|
) |
| |
Outputs accent table.
- Parameters
-
ctx | is a keymap library context. |
fd | is a FILE pointer for output. |
int lk_get_kmapinfo |
( |
struct lk_ctx * |
ctx, |
|
|
struct kmapinfo * |
res |
|
) |
| |
void lk_dump_summary |
( |
struct lk_ctx * |
ctx, |
|
|
FILE * |
fd, |
|
|
int |
console |
|
) |
| |
void lk_dump_symbols |
( |
FILE * |
fd | ) |
|