Go to the documentation of this file.
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_STREAM_TM 0x04
35 #define TM_FLAG_DETECT_TM 0x08
36 #define TM_FLAG_MANAGEMENT_TM 0x10
37 #define TM_FLAG_COMMAND_TM 0x20
int TmModuleGetIDForTM(TmModule *tm)
Given a TM Module, returns its id.
TmModule * TmModuleGetById(int id)
Returns a TM Module by its id.
const char * TmModuleTmmIdToString(TmmId id)
Maps the TmmId, to its string equivalent.
bool(* ThreadBusy)(ThreadVars *tv, void *thread_data)
TmModule * TmModuleGetByName(const char *name)
get a tm module ptr by name
TmEcode(* PktAcqLoop)(ThreadVars *, void *, void *)
TmEcode(* ThreadDeinit)(ThreadVars *, void *)
void TmModuleRegisterTests(void)
register all unittests for the tm modules
TAILQ_HEAD(, OutputModule_) submodules
TmEcode(* PktAcqBreakLoop)(ThreadVars *, void *)
Per thread variable structure.
TmEcode TmModuleRegister(char *name, int(*module_func)(ThreadVars *, Packet *, void *))
TmEcode(* Management)(ThreadVars *, void *)
TmEcode(* Func)(ThreadVars *, Packet *, void *)
TmEcode(* ThreadInitFunc)(ThreadVars *, const void *, void **)
void TmModuleDebugList(void)
void(* RegisterTests)(void)
void TmModuleRunDeInit(void)
void TmModuleRunInit(void)
void(* DeInit)(struct OutputCtx_ *)
struct OutputCtx_ OutputCtx
void(* ThreadExitPrintStatsFunc)(ThreadVars *, void *)
TmEcode(* ThreadInit)(ThreadVars *, const void *, void **)
TmmId
Thread Model Module id's.
void(* ThreadExitPrintStats)(ThreadVars *, void *)
struct TmModule_ TmModule
TmModule tmm_modules[TMM_SIZE]
TmEcode(* ThreadDeinitFunc)(ThreadVars *, void *)