syslog-ng source
evtctx.c File Reference
#include "evt_internals.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <assert.h>
Include dependency graph for evtctx.c:

Functions

int evt_ctx_tag_hook_add (EVTCONTEXT *ctx, int(*func)(EVTREC *e, void *user_ptr), void *user_ptr)
 
EVTCONTEXT * evt_ctx_init (const char *prog, int syslog_fac)
 
EVTCONTEXT * evt_ctx_ref (EVTCONTEXT *ctx)
 
void evt_ctx_free (EVTCONTEXT *ctx)
 

Function Documentation

◆ evt_ctx_free()

void evt_ctx_free ( EVTCONTEXT *  ctx)

evt_ctx_free: @ctx: context to free

This function frees an eventlog context.

◆ evt_ctx_init()

EVTCONTEXT* evt_ctx_init ( const char *  prog,
int  syslog_fac 
)

evt_ctx_init: @prog: program name to use to identify this process as @syslog_fac: syslog facility code, like EVT_FAC_AUTH

This function creates a new eventlog context.

Returns: the new context, or NULL on failure

◆ evt_ctx_ref()

EVTCONTEXT* evt_ctx_ref ( EVTCONTEXT *  ctx)

◆ evt_ctx_tag_hook_add()

int evt_ctx_tag_hook_add ( EVTCONTEXT *  ctx,
int(*)(EVTREC *e, void *user_ptr)  func,
void *  user_ptr 
)

evt_ctx_tag_hook_add: