libkeymap  2.0.4
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 
17 struct lk_ctx *lk_init(void);
18 
24 int lk_free(struct lk_ctx *ctx);
25 
31 lk_flags lk_get_parser_flags(struct lk_ctx *ctx);
32 
39 int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags);
40 
46 int lk_get_log_priority(struct lk_ctx *ctx);
47 
54 int lk_set_log_priority(struct lk_ctx *ctx, int priority);
55 
65 int lk_set_log_fn(struct lk_ctx *ctx,
66  void (*log_fn)(void *data, int priority,
67  const char *file, int line, const char *fn,
68  const char *format, va_list args),
69  const void *data);
70 
71 #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:17
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)