libkeymap  2.0.1
Library to manage the Linux keymaps
common.h
Go to the documentation of this file.
1 #ifndef LK_COMMON_H
2 #define LK_COMMON_H
3 
8 #include <keymap/context.h>
9 
14 struct lk_ctx *lk_init(void);
15 
21 int lk_free(struct lk_ctx *ctx);
22 
28 lk_flags lk_get_parser_flags(struct lk_ctx *ctx);
29 
36 int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags);
37 
43 int lk_get_log_priority(struct lk_ctx *ctx);
44 
51 int lk_set_log_priority(struct lk_ctx *ctx, int priority);
52 
62 int lk_set_log_fn(struct lk_ctx *ctx,
63  void (*log_fn)(void *data, int priority,
64  const char *file, int line, const char *fn,
65  const char *format, va_list args),
66  const void *data);
67 
68 #endif /* LK_COMMON_H */
lk_flags lk_get_parser_flags(struct lk_ctx *ctx)
struct lk_ctx * lk_init(void)
int lk_get_log_priority(struct lk_ctx *ctx)
lk_flags
Parser flags that are set outside the library.
Definition: context.h:12
int lk_set_log_fn(struct lk_ctx *ctx, void(*log_fn)(void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args), const void *data)
int lk_set_log_priority(struct lk_ctx *ctx, int priority)
int lk_free(struct lk_ctx *ctx)
int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags)