libkeymap  2.0.4
Library to manage the Linux keymaps
Macros | Typedefs | Functions
logging.h File Reference

Functions for logging. More...

#include <syslog.h>
#include <keymap/context.h>

Go to the source code of this file.

Macros

#define __attribute__(x)   /*NOTHING*/
 

Typedefs

typedef void(* lk_logger_t) (void *, int, const char *, int, const char *, const char *, va_list)
 

Functions

void lk_log (struct lk_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *fmt,...)
 

Detailed Description

Functions for logging.

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   x)    /*NOTHING*/

Typedef Documentation

◆ lk_logger_t

typedef void(* lk_logger_t) (void *, int, const char *, int, const char *, const char *, va_list)

Function Documentation

◆ lk_log()

void lk_log ( struct lk_ctx *  ctx,
int  priority,
const char *  file,
int  line,
const char *  fn,
const char *  fmt,
  ... 
)

Logging function which uses log_fn and log_data to write log messages.

Parameters
ctxis a keymap library context.
priorityindicates the priority.