libkeymap  2.0.1
Library to manage the Linux keymaps
dump.h
Go to the documentation of this file.
1 #ifndef LK_DUMP_H
2 #define LK_DUMP_H
3 
4 #include <stdio.h>
5 
6 #include <keymap/context.h>
7 
11 typedef enum {
12  LK_SHAPE_DEFAULT = (1 << 1),
13  LK_SHAPE_FULL_TABLE = (1 << 2),
15  LK_SHAPE_UNTIL_HOLE = (1 << 4)
17 
21 struct kmapinfo {
24  size_t keymaps;
25  size_t keymaps_alloced;
26  size_t functions;
27  size_t composes;
28 };
29 
37 int lk_dump_bkeymap(struct lk_ctx *ctx, FILE *fd);
38 
46 int lk_dump_ctable(struct lk_ctx *ctx, FILE *fd);
47 
56 void lk_dump_keymap(struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric);
57 
65 void lk_dump_keys(struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric);
66 
72 void lk_dump_keymaps(struct lk_ctx *ctx, FILE *fd);
73 
79 void lk_dump_funcs(struct lk_ctx *ctx, FILE *fd);
80 
86 void lk_dump_diacs(struct lk_ctx *ctx, FILE *fd);
87 
88 int lk_get_kmapinfo(struct lk_ctx *ctx, struct kmapinfo *res);
89 void lk_dump_summary(struct lk_ctx *ctx, FILE *fd, int console);
90 void lk_dump_symbols(FILE *fd);
91 
92 #endif /* LK_DUMP_H */
lk_keywords keywords
Definition: dump.h:23
General information about the keymap.
Definition: dump.h:21
lk_flags
Parser flags that are set outside the library.
Definition: context.h:12
size_t functions
Definition: dump.h:26
Definition: dump.h:13
void lk_dump_keys(struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric)
Definition: dump.h:15
lk_table_shape
Flags controlling the output keymap.
Definition: dump.h:11
Definition: dump.h:12
size_t keymaps
Definition: dump.h:24
size_t composes
Definition: dump.h:27
int lk_dump_ctable(struct lk_ctx *ctx, FILE *fd)
int lk_dump_bkeymap(struct lk_ctx *ctx, FILE *fd)
Definition: dump.h:14
lk_keywords
Keywords used in keymap files.
Definition: context.h:22
void lk_dump_symbols(FILE *fd)
int lk_get_kmapinfo(struct lk_ctx *ctx, struct kmapinfo *res)
size_t keymaps_alloced
Definition: dump.h:25
lk_flags flags
Definition: dump.h:22
void lk_dump_keymaps(struct lk_ctx *ctx, FILE *fd)
void lk_dump_funcs(struct lk_ctx *ctx, FILE *fd)
void lk_dump_summary(struct lk_ctx *ctx, FILE *fd, int console)
void lk_dump_diacs(struct lk_ctx *ctx, FILE *fd)
void lk_dump_keymap(struct lk_ctx *ctx, FILE *fd, lk_table_shape table, char numeric)