libkeymap  2.2.0
Library to manage the Linux keymaps
common.h
Go to the documentation of this file.
1 
6 #ifndef LK_COMMON_H
7 #define LK_COMMON_H
8 
9 #include <stdarg.h>
10 
11 #include <keymap/context.h>
12 #include <keymap/logging.h>
13 
18 struct lk_ctx *lk_init(void);
19 
25 int lk_free(struct lk_ctx *ctx);
26 
32 lk_flags lk_get_parser_flags(struct lk_ctx *ctx);
33 
40 int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags);
41 
47 int lk_get_log_priority(struct lk_ctx *ctx);
48 
55 int lk_set_log_priority(struct lk_ctx *ctx, int priority);
56 
66 int lk_set_log_fn(struct lk_ctx *ctx, lk_logger_t log_fn, const void *data);
67 
68 #endif /* LK_COMMON_H */