ze-filter  (ze-filter-0.8.0-develop-180218)
ze-history.c File Reference
#include <ze-sys.h>
#include "libmilter/mfapi.h"
#include "ze-filter.h"
#include "ze-filter-data.h"

Go to the source code of this file.

Classes

struct  HistRaw_T
 
struct  HistRes_T
 
struct  History_T
 
struct  RawData_T
 
struct  log_history_T
 

Macros

#define HISTORY_T_INIT   {0, JBT_INITIALIZER}
 
#define HISTORY_LOCK()   MUTEX_LOCK(&hfile.st_mutex)
 
#define HISTORY_UNLOCK()   MUTEX_UNLOCK(&hfile.st_mutex)
 

Typedefs

typedef struct RawData_T RawData_T
 
typedef struct log_history_T log_history_T
 

Functions

void res_history_clear (History_T *)
 
HistRes_Tres_history_lookup (History_T *, char *)
 
bool raw_history_open (bool ronly)
 
void raw_history_close ()
 
bool raw_history_add_entry (SMFICTX *ctx)
 
bool res_history_update (History_T *hst, char *ip, time_t tf, time_t dt, bool verbose)
 
void res_history_summary (History_T *hst, char *ip, time_t tf, time_t dt, bool verbose, bool hostnames, int type, int nbrecs)
 
bool load_live_history (History_T *hst, time_t tf, time_t dt)
 

Macro Definition Documentation

◆ HISTORY_LOCK

#define HISTORY_LOCK ( )    MUTEX_LOCK(&hfile.st_mutex)

Definition at line 219 of file ze-history.c.

◆ HISTORY_T_INIT

#define HISTORY_T_INIT   {0, JBT_INITIALIZER}

Definition at line 195 of file ze-history.c.

◆ HISTORY_UNLOCK

#define HISTORY_UNLOCK ( )    MUTEX_UNLOCK(&hfile.st_mutex)

Definition at line 220 of file ze-history.c.

Typedef Documentation

◆ log_history_T

typedef struct log_history_T log_history_T

◆ RawData_T

typedef struct RawData_T RawData_T

Definition at line 215 of file ze-history.c.

Function Documentation

◆ load_live_history()

bool load_live_history ( History_T hst,
time_t  tf,
time_t  dt 
)

Definition at line 1184 of file ze-history.c.

◆ raw_history_add_entry()

bool raw_history_add_entry ( SMFICTX *  ctx)

Definition at line 309 of file ze-history.c.

◆ raw_history_close()

void raw_history_close ( )

Definition at line 296 of file ze-history.c.

◆ raw_history_open()

bool raw_history_open ( bool  ronly)

Definition at line 227 of file ze-history.c.

◆ res_history_clear()

void res_history_clear ( History_T c)

Definition at line 565 of file ze-history.c.

◆ res_history_lookup()

HistRes_T* res_history_lookup ( History_T ,
char *   
)

◆ res_history_summary()

void res_history_summary ( History_T hst,
char *  ip,
time_t  tf,
time_t  dt,
bool  verbose,
bool  hostnames,
int  type,
int  nbrecs 
)

Definition at line 1044 of file ze-history.c.

◆ res_history_update()

bool res_history_update ( History_T hst,
char *  ip,
time_t  tf,
time_t  dt,
bool  verbose 
)

Definition at line 631 of file ze-history.c.