Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

logging.h File Reference

#include "common.h"
#include <stdarg.h>

Go to the source code of this file.

Defines

#define I2L_DBG   1
#define I2L_INFO   2
#define I2L_ERR   3
#define IKE_PRETTY_LOCATION
#define LOCATION(x)   x

Typedefs

typedef void(* t_ikev2_log_vcallback )(int, const char *, va_list ap)

Functions

void ikev2_set_log_callback (t_ikev2_log_vcallback callback)
 Set log function callback.
void xlogf (int level, const char *,...)
 Logging function.


Define Documentation

#define I2L_DBG   1
 

#define I2L_ERR   3
 

#define I2L_INFO   2
 

#define IKE_PRETTY_LOCATION
 

#define LOCATION  )     x
 


Typedef Documentation

typedef void(* t_ikev2_log_vcallback)(int, const char *, va_list ap)
 


Function Documentation

void ikev2_set_log_callback t_ikev2_log_vcallback  callback  ) 
 

Set log function callback.

Parameters:
callback log function callback

void xlogf int  level,
const char *  fmt,
  ...
 

Logging function.

Parameters:
level log level
*fmt format string (like printf)
... other params


Project hosted by: SourceForge.net Logo