libkeymap  2.4.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 */
lk_flags lk_get_parser_flags(struct lk_ctx *ctx)
struct lk_ctx * lk_init(void)
Header contains flags, keywords and context structure.
int lk_get_log_priority(struct lk_ctx *ctx)
lk_flags
Parser flags that are set outside the library.
Definition: context.h:16
int lk_set_log_priority(struct lk_ctx *ctx, int priority)
Functions for logging.
int lk_free(struct lk_ctx *ctx)
void(* lk_logger_t)(void *, int, const char *, int, const char *, const char *, va_list) __attribute__((nonnull(1))) __attribute__((format(printf
Definition: logging.h:16
int lk_set_log_fn(struct lk_ctx *ctx, lk_logger_t log_fn, const void *data)
int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags)