syslog-ng source
evt_internals.h File Reference
#include "evtlog.h"
#include <syslog-ng-config.h>
#include <sys/types.h>
Include dependency graph for evt_internals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EVTSYSLOGOPTS
 
struct  EVTCONTEXT
 
struct  EVTTAGHOOK
 
struct  EVTREC
 
struct  EVTTAG
 
struct  EVTSTR
 

Macros

#define EF_ADD_PID   0x0001
 
#define EF_ADD_PROG   0x0002
 
#define EF_ADD_ISOSTAMP   0x0004
 
#define EF_ADD_UTCSTAMP   0x0008
 
#define EF_ADD_TIMEZONE   0x0010
 
#define EF_ADD_MSGID   0x0020
 
#define EF_ADD_ALL   0x003F
 
#define EF_INITIALIZED   0x8000
 

Functions

EVTCONTEXT * evt_ctx_ref (EVTCONTEXT *ctx)
 
EVTREC * evt_rec_ref (EVTREC *e)
 
void evt_tag_free (EVTTAG *et)
 
EVTSTR * evt_str_init (size_t init_alloc)
 
void evt_str_free (EVTSTR *es, int free_buf)
 
int evt_str_append (EVTSTR *es, char *str)
 
int evt_str_append_len (EVTSTR *es, char *str, size_t len)
 
int evt_str_append_escape_bs (EVTSTR *es, char *unescaped, size_t unescaped_len, char escape_char)
 
char * evt_str_get_str (EVTSTR *es)
 
void evt_syslog_wrapper_init (void)
 

Variables

EVTSYSLOGOPTS syslog_opts
 

Macro Definition Documentation

◆ EF_ADD_ALL

#define EF_ADD_ALL   0x003F

◆ EF_ADD_ISOSTAMP

#define EF_ADD_ISOSTAMP   0x0004

◆ EF_ADD_MSGID

#define EF_ADD_MSGID   0x0020

◆ EF_ADD_PID

#define EF_ADD_PID   0x0001

◆ EF_ADD_PROG

#define EF_ADD_PROG   0x0002

◆ EF_ADD_TIMEZONE

#define EF_ADD_TIMEZONE   0x0010

◆ EF_ADD_UTCSTAMP

#define EF_ADD_UTCSTAMP   0x0008

◆ EF_INITIALIZED

#define EF_INITIALIZED   0x8000

Function Documentation

◆ evt_ctx_ref()

EVTCONTEXT* evt_ctx_ref ( EVTCONTEXT *  ctx)

◆ evt_rec_ref()

EVTREC* evt_rec_ref ( EVTREC *  e)

◆ evt_str_append()

int evt_str_append ( EVTSTR *  es,
char *  str 
)

◆ evt_str_append_escape_bs()

int evt_str_append_escape_bs ( EVTSTR *  es,
char *  unescaped,
size_t  unescaped_len,
char  escape_char 
)

◆ evt_str_append_len()

int evt_str_append_len ( EVTSTR *  es,
char *  str,
size_t  len 
)

◆ evt_str_free()

void evt_str_free ( EVTSTR *  es,
int  free_buf 
)

◆ evt_str_get_str()

char* evt_str_get_str ( EVTSTR *  es)

◆ evt_str_init()

EVTSTR* evt_str_init ( size_t  init_alloc)

◆ evt_syslog_wrapper_init()

void evt_syslog_wrapper_init ( void  )

◆ evt_tag_free()

void evt_tag_free ( EVTTAG *  et)

Variable Documentation

◆ syslog_opts

EVTSYSLOGOPTS syslog_opts
extern