24#ifndef SURICATA_TM_MODULES_H
25#define SURICATA_TM_MODULES_H
32#define TM_FLAG_RECEIVE_TM 0x01
33#define TM_FLAG_DECODE_TM 0x02
34#define TM_FLAG_FLOWWORKER_TM 0x04
35#define TM_FLAG_VERDICT_TM 0x08
36#define TM_FLAG_MANAGEMENT_TM 0x10
37#define TM_FLAG_COMMAND_TM 0x20
40#define TM_FLAG_PACKET_ALL \
41 (TM_FLAG_RECEIVE_TM | TM_FLAG_DECODE_TM | TM_FLAG_FLOWWORKER_TM | TM_FLAG_VERDICT_TM)
TAILQ_HEAD(, OutputModule_) submodules
void(* DeInit)(struct OutputCtx_ *)
Per thread variable structure.
TmEcode(* ThreadDeinit)(ThreadVars *, void *)
void(* RegisterTests)(void)
void(* ThreadExitPrintStats)(ThreadVars *, void *)
bool(* ThreadBusy)(ThreadVars *tv, void *thread_data)
TmEcode(* PktAcqBreakLoop)(ThreadVars *, void *)
TmEcode(* Func)(ThreadVars *, Packet *, void *)
TmEcode(* PktAcqLoop)(ThreadVars *, void *, void *)
TmEcode(* ThreadInit)(ThreadVars *, const void *, void **)
TmEcode(* Management)(ThreadVars *, void *)
void TmModuleRegisterTests(void)
register all unittests for the tm modules
void TmModuleRunDeInit(void)
void TmModuleRunInit(void)
void(* ThreadExitPrintStatsFunc)(ThreadVars *, void *)
const char * TmModuleTmmIdToString(TmmId id)
Maps the TmmId, to its string equivalent.
struct OutputCtx_ OutputCtx
int TmModuleGetIDForTM(TmModule *tm)
Given a TM Module, returns its id.
TmEcode TmModuleRegister(char *name, int(*module_func)(ThreadVars *, Packet *, void *))
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)
TmModule * TmModuleGetById(int id)
Returns a TM Module by its id.
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
TmModule * TmModuleGetByName(const char *name)
get a tm module ptr by name
TmModule tmm_modules[TMM_SIZE]
struct TmModule_ TmModule
void TmModuleDebugList(void)
TmmId
Thread Model Module id's.