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