ze-filter  (ze-filter-0.8.0-develop-180218)
ze-modules.h File Reference

Go to the source code of this file.

Classes

struct  mod_info_T
 
struct  mod_ctx_T
 
struct  mod_open_T
 

Macros

#define MOD_API_MAJOR   0x00
 
#define MOD_API_MINOR   0x02
 
#define MOD_API_PATCH   0x00
 
#define MOD_VERSION   ((MOD_API_MAJOR << 16) | (MOD_API_MINOR << 8) | MOD_API_PATCH)
 
#define MOD_API_VERSION   "0.01.00"
 
#define MODR_CONTINUE   0x0000
 
#define MODR_REJECT   0x0001
 
#define MODR_TEMPFAIL   0x0002
 
#define MODF_QUARANTINE   0x0100
 
#define MODF_STOP_CHECKS   0x0200
 
#define MOD_QUARANTINE(flag)   (((flag) & MODF_QUARANTINE) != 0)
 
#define MOD_STOP_CHECKS(flag)   (((flag) & MODF_STOP_CHECKS) != 0)
 
#define __ZE_MODULES_H   1
 

Functions

bool load_all_modules (char *cfdir, char *modcf, char *moddir)
 
bool module_info ()
 
bool module_call (int callback, int step, mod_ctx_T *arg)
 
bool module_service (int why)
 

Macro Definition Documentation

◆ __ZE_MODULES_H

#define __ZE_MODULES_H   1

Definition at line 95 of file ze-modules.h.

◆ MOD_API_MAJOR

#define MOD_API_MAJOR   0x00

Definition at line 27 of file ze-modules.h.

◆ MOD_API_MINOR

#define MOD_API_MINOR   0x02

Definition at line 28 of file ze-modules.h.

◆ MOD_API_PATCH

#define MOD_API_PATCH   0x00

Definition at line 29 of file ze-modules.h.

◆ MOD_API_VERSION

#define MOD_API_VERSION   "0.01.00"

Definition at line 33 of file ze-modules.h.

◆ MOD_QUARANTINE

#define MOD_QUARANTINE (   flag)    (((flag) & MODF_QUARANTINE) != 0)

Definition at line 42 of file ze-modules.h.

◆ MOD_STOP_CHECKS

#define MOD_STOP_CHECKS (   flag)    (((flag) & MODF_STOP_CHECKS) != 0)

Definition at line 43 of file ze-modules.h.

◆ MOD_VERSION

#define MOD_VERSION   ((MOD_API_MAJOR << 16) | (MOD_API_MINOR << 8) | MOD_API_PATCH)

Definition at line 31 of file ze-modules.h.

◆ MODF_QUARANTINE

#define MODF_QUARANTINE   0x0100

Definition at line 39 of file ze-modules.h.

◆ MODF_STOP_CHECKS

#define MODF_STOP_CHECKS   0x0200

Definition at line 40 of file ze-modules.h.

◆ MODR_CONTINUE

#define MODR_CONTINUE   0x0000

Definition at line 35 of file ze-modules.h.

◆ MODR_REJECT

#define MODR_REJECT   0x0001

Definition at line 36 of file ze-modules.h.

◆ MODR_TEMPFAIL

#define MODR_TEMPFAIL   0x0002

Definition at line 37 of file ze-modules.h.

Function Documentation

◆ load_all_modules()

bool load_all_modules ( char *  cfdir,
char *  modcf,
char *  moddir 
)

Definition at line 318 of file ze-modules.c.

◆ module_call()

bool module_call ( int  callback,
int  step,
mod_ctx_T arg 
)

Definition at line 421 of file ze-modules.c.

◆ module_info()

bool module_info ( )

Definition at line 380 of file ze-modules.c.

◆ module_service()

bool module_service ( int  why)

Definition at line 488 of file ze-modules.c.