cpl_log.h File Reference

#include <stdarg.h>
#include "../../str.h"

Include dependency graph for cpl_log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ERR   "Error: "
#define ERR_LEN   (sizeof(ERR)-1)
#define LF   "\n"
#define LF_LEN   (1)
#define MAX_LOG_NR   64
#define NOTE   "Notice: "
#define NOTE_LEN   (sizeof(NOTE)-1)
#define WARN   "Warning: "
#define WARN_LEN   (sizeof(WARN)-1)

Functions

void append_log (int nr,...)
void compile_logs (str *log)
void reset_logs (void)


Define Documentation

#define ERR   "Error: "

Definition at line 39 of file cpl_log.h.

Referenced by encodeCPL().

#define ERR_LEN   (sizeof(ERR)-1)

Definition at line 40 of file cpl_log.h.

Referenced by encodeCPL().

#define LF   "\n"

Definition at line 46 of file cpl_log.h.

Referenced by ConfGetToken(), ConfReadLine(), encodeCPL(), GetToken(), and processHeaderLine().

#define LF_LEN   (1)

Definition at line 47 of file cpl_log.h.

Referenced by encodeCPL().

#define MAX_LOG_NR   64

Definition at line 37 of file cpl_log.h.

Referenced by append_log().

#define NOTE   "Notice: "

Definition at line 43 of file cpl_log.h.

#define NOTE_LEN   (sizeof(NOTE)-1)

Definition at line 44 of file cpl_log.h.

#define WARN   "Warning: "

Definition at line 41 of file cpl_log.h.

#define WARN_LEN   (sizeof(WARN)-1)

Definition at line 42 of file cpl_log.h.


Function Documentation

void append_log ( int  nr,
  ... 
)

Definition at line 47 of file cpl_log.c.

References _str::len, LM_ERR, MAX_LOG_NR, nr_logs, and _str::s.

Referenced by encodeCPL().

void compile_logs ( str log  ) 

Definition at line 70 of file cpl_log.c.

References len, _str::len, LM_ERR, nr_logs, pkg_malloc, s, and _str::s.

Referenced by encodeCPL().

void reset_logs ( void   ) 

Definition at line 40 of file cpl_log.c.

References nr_logs.

Referenced by encodeCPL().


Generated on Mon May 21 18:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6