ze-filter  (ze-filter-0.8.0-develop-180218)
ze-modules.c File Reference
#include <ze-sys.h>
#include <ze-filter.h>
#include <ze-modules.h>

Go to the source code of this file.

Classes

struct  module_T
 

Macros

#define NMOD   128
 
#define MOD_INFO(mod, minfo)
 

Typedefs

typedef bool(* MOD_INIT_F) (int, mod_open_T *)
 
typedef bool(* MOD_CLOSE_F) ()
 
typedef bool(* MOD_INFO_F) (mod_info_T *)
 
typedef bool(* MOD_CALL_F) (int, int, mod_ctx_T *)
 
typedef bool(* MOD_SERVICE_F) (int)
 

Functions

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

Macro Definition Documentation

◆ MOD_INFO

#define MOD_INFO (   mod,
  minfo 
)
Value:
do { \
ZE_MessageInfo(9, " * Register info"); \
ZE_MessageInfo(9, " NAME : %s\n", mod->name); \
ZE_MessageInfo(9, " NAME : %s\n", mod->fname); \
ZE_MessageInfo(9, " ARGS : %s\n", STRNULL(mod->args, "NO ARGS")); \
ZE_MessageInfo(9, " ENABLE : %s\n", STRBOOL(mod->enable, "YES", "NO")); \
ZE_MessageInfo(9, " CALLBACKS : %08X\n", mod->callbacks); \
ZE_MessageInfo(9, " * Module info"); \
ZE_MessageInfo(9, " NAME : %s\n", minfo->name); \
ZE_MessageInfo(9, " AUTHOR : %s\n", minfo->author); \
ZE_MessageInfo(9, " VERSION : %s\n", minfo->version); \
} while (0)
#define STRBOOL(x, t, f)
Definition: macros.h:87
#define STRNULL(x, r)
Definition: macros.h:81

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

◆ NMOD

#define NMOD   128

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

Typedef Documentation

◆ MOD_CALL_F

typedef bool(* MOD_CALL_F) (int, int, mod_ctx_T *)

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

◆ MOD_CLOSE_F

typedef bool(* MOD_CLOSE_F) ()

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

◆ MOD_INFO_F

typedef bool(* MOD_INFO_F) (mod_info_T *)

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

◆ MOD_INIT_F

typedef bool(* MOD_INIT_F) (int, mod_open_T *)

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

◆ MOD_SERVICE_F

typedef bool(* MOD_SERVICE_F) (int)

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

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 mctx 
)

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.