#include "evt_internals.h"#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <time.h>#include <string.h>#include <assert.h>
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) |
| void evt_ctx_free | ( | EVTCONTEXT * | ctx | ) |
evt_ctx_free: @ctx: context to free
This function frees an eventlog context.
| 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
| EVTCONTEXT* evt_ctx_ref | ( | EVTCONTEXT * | ctx | ) |
| int evt_ctx_tag_hook_add | ( | EVTCONTEXT * | ctx, |
| int(*)(EVTREC *e, void *user_ptr) | func, | ||
| void * | user_ptr | ||
| ) |
evt_ctx_tag_hook_add: