Slot structure now holds the TV it belongs to

remotes/origin/master-1.1.x
Anoop Saldanha 14 years ago committed by Victor Julien
parent 9552e6f696
commit 15359dc47e

@ -804,6 +804,7 @@ void TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, void *data)
if (slot == NULL)
return;
memset(slot, 0, sizeof(TmSlot));
slot->tv = tv;
slot->SlotThreadInit = tm->ThreadInit;
slot->slot_initdata = data;
slot->SlotFunc = tm->Func;

@ -30,6 +30,9 @@
#include "tm-modules.h"
typedef struct TmSlot_ {
/* the TV holding this slot */
ThreadVars *tv;
/* function pointers */
TmEcode (*SlotFunc)(ThreadVars *, Packet *, void *, PacketQueue *,
PacketQueue *);

Loading…
Cancel
Save