libkeymap  2.0.4
Library to manage the Linux keymaps
src/libkeymap/keymap/common.h
Go to the documentation of this file.
00001 
00006 #ifndef LK_COMMON_H
00007 #define LK_COMMON_H
00008 
00009 #include <stdarg.h>
00010 
00011 #include <keymap/context.h>
00012 
00017 struct lk_ctx *lk_init(void);
00018 
00024 int lk_free(struct lk_ctx *ctx);
00025 
00031 lk_flags lk_get_parser_flags(struct lk_ctx *ctx);
00032 
00039 int lk_set_parser_flags(struct lk_ctx *ctx, lk_flags flags);
00040 
00046 int lk_get_log_priority(struct lk_ctx *ctx);
00047 
00054 int lk_set_log_priority(struct lk_ctx *ctx, int priority);
00055 
00065 int lk_set_log_fn(struct lk_ctx *ctx,
00066                   void (*log_fn)(void *data, int priority,
00067                                  const char *file, int line, const char *fn,
00068                                  const char *format, va_list args),
00069                   const void *data);
00070 
00071 #endif /* LK_COMMON_H */