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
18struct lk_ctx *lk_init(void);
19
25int lk_free(struct lk_ctx *ctx);
26
32lk_flags lk_get_parser_flags(struct lk_ctx *ctx);
33
40int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags);
41
47int lk_get_log_priority(struct lk_ctx *ctx);
48
55int lk_set_log_priority(struct lk_ctx *ctx, int priority);
56
66int lk_set_log_fn(struct lk_ctx *ctx, lk_logger_t log_fn, const void *data);
67
68#endif /* LK_COMMON_H */
int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags)
int lk_set_log_priority(struct lk_ctx *ctx, int priority)
int lk_free(struct lk_ctx *ctx)
int lk_get_log_priority(struct lk_ctx *ctx)
lk_flags lk_get_parser_flags(struct lk_ctx *ctx)
struct lk_ctx * lk_init(void)
int lk_set_log_fn(struct lk_ctx *ctx, lk_logger_t log_fn, const void *data)
Header contains flags, keywords and context structure.
lk_flags
Parser flags that are set outside the library.
Definition: context.h:16
Functions for logging.
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