libkeymap  2.0.90
Library to manage the Linux keymaps
logging.h
Go to the documentation of this file.
1 
5 #ifndef LK_LOGGING_H
6 #define LK_LOGGING_H
7 
8 #include <syslog.h>
9 #include <keymap/context.h>
10 
11 #ifndef __GNUC__
12 #define __attribute__(x) /*NOTHING*/
13 #endif
14 
15 typedef void (*lk_logger_t)(void *, int, const char *, int, const char *, const char *, va_list) __attribute__((format(printf, 6, 0)));
16 
23 void
24 __attribute__((format(printf, 6, 7)))
25 lk_log(struct lk_ctx *ctx, int priority,
26  const char *file, int line, const char *fn,
27  const char *fmt, ...);
28 
29 #endif /* LK_LOGGING_H */
Header contains flags, keywords and context structure.
void lk_log(struct lk_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *fmt,...)
#define __attribute__(x)
Definition: logging.h:12
void(* lk_logger_t)(void *, int, const char *, int, const char *, const char *, va_list)
Definition: logging.h:15