40 #ifndef __EVT_INTERNALS_H_INCLUDED
41 #define __EVT_INTERNALS_H_INCLUDED
45 #include <syslog-ng-config.h>
51 #include <sys/types.h>
54 #define EF_ADD_PID 0x0001
55 #define EF_ADD_PROG 0x0002
56 #define EF_ADD_ISOSTAMP 0x0004
57 #define EF_ADD_UTCSTAMP 0x0008
58 #define EF_ADD_TIMEZONE 0x0010
59 #define EF_ADD_MSGID 0x0020
60 #define EF_ADD_ALL 0x003F
62 #define EF_INITIALIZED 0x8000
70 void (*
es_openlog)(
const char *ident,
int option,
int facility);
72 void (*
es_syslog)(
int priority,
const char *format, ...) G_GNUC_PRINTF(2, 3);
80 char *(*ec_formatter_fn)(EVTREC *e);
void evt_str_free(EVTSTR *es, int free_buf)
Definition: evtstr.c:164
int evt_str_append(EVTSTR *es, char *str)
Definition: evtstr.c:83
EVTSTR * evt_str_init(size_t init_alloc)
Definition: evtstr.c:140
EVTCONTEXT * evt_ctx_ref(EVTCONTEXT *ctx)
Definition: evtctx.c:130
void evt_tag_free(EVTTAG *et)
Definition: evttags.c:57
char * evt_str_get_str(EVTSTR *es)
Definition: evtstr.c:134
int evt_str_append_escape_bs(EVTSTR *es, char *unescaped, size_t unescaped_len, char escape_char)
Definition: evtstr.c:89
void evt_syslog_wrapper_init(void)
Definition: evtsyslog.c:85
EVTSYSLOGOPTS syslog_opts
Definition: evtsyslog.c:45
EVTREC * evt_rec_ref(EVTREC *e)
Definition: evtrec.c:126
int evt_str_append_len(EVTSTR *es, char *str, size_t len)
Definition: evtstr.c:67
Definition: evt_internals.h:77
char ec_outmethod[32]
Definition: evt_internals.h:81
int ec_syslog_fac
Definition: evt_internals.h:84
char ec_formatter[32]
Definition: evt_internals.h:79
char * ec_prog
Definition: evt_internals.h:83
EVTTAGHOOK * ec_tag_hooks
Definition: evt_internals.h:85
int ec_ref
Definition: evt_internals.h:78
int(* ec_outmethod_fn)(EVTREC *e)
Definition: evt_internals.h:82
unsigned long ec_flags
Definition: evt_internals.h:86
Definition: evt_internals.h:97
EVTTAG * ev_pairs
Definition: evt_internals.h:101
int ev_syslog_pri
Definition: evt_internals.h:99
char * ev_desc
Definition: evt_internals.h:100
int ev_ref
Definition: evt_internals.h:98
EVTTAG * ev_last_pair
Definition: evt_internals.h:102
EVTCONTEXT * ev_ctx
Definition: evt_internals.h:103
Definition: evt_internals.h:114
size_t es_length
Definition: evt_internals.h:116
size_t es_allocated
Definition: evt_internals.h:115
char * es_buf
Definition: evt_internals.h:117
Definition: evt_internals.h:69
void(* es_closelog)(void)
Definition: evt_internals.h:71
void(* es_openlog)(const char *ident, int option, int facility)
Definition: evt_internals.h:70
void(* es_syslog)(int priority, const char *format,...) G_GNUC_PRINTF(2
Definition: evt_internals.h:72
void(*) in es_options)
Definition: evt_internals.h:72
Definition: evt_internals.h:107
EVTTAG * et_next
Definition: evt_internals.h:108
char * et_tag
Definition: evt_internals.h:109
char * et_value
Definition: evt_internals.h:110
Definition: evt_internals.h:90
int(* et_callback)(EVTREC *e, void *user_ptr)
Definition: evt_internals.h:92
struct __evttaghook * et_next
Definition: evt_internals.h:91
void * et_userptr
Definition: evt_internals.h:93