libkeymap  2.4.0
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 #undef __attribute__
13 #define __attribute__(x) /*NOTHING*/
14 #endif
15 
16 typedef void (*lk_logger_t)(void *, int, const char *, int, const char *, const char *, va_list)
17  __attribute__((nonnull(1)))
18  __attribute__((format(printf, 6, 0)));
19 
26 void
27 lk_log(struct lk_ctx *ctx, int priority,
28  const char *file, int line, const char *fn,
29  const char *fmt, ...)
30  __attribute__((format(printf, 6, 7)))
31  __attribute__((nonnull(1)));
32 
33 #endif /* LK_LOGGING_H */
Header contains flags, keywords and context structure.
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
#define __attribute__(x)
Definition: logging.h:13
void(*) voi lk_log)(struct lk_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *fmt,...) __attribute__((format(printf
Definition: logging.h:27