52 if (init_callbacks == NULL) {
56 while (current->
next != NULL) {
57 current = current->
next;
81 if (update_callbacks == NULL) {
82 update_callbacks = cb;
85 while (current->
next != NULL) {
86 current = current->
next;
110 if (finish_callbacks == NULL) {
111 finish_callbacks = cb;
114 while (current->
next != NULL) {
115 current = current->
next;
void SCFlowRunUpdateCallbacks(ThreadVars *tv, Flow *f, Packet *p)
bool SCFlowRegisterFinishCallback(SCFlowFinishCallbackFn fn, void *user)
Register a flow init callback.
struct FlowFinishCallback_ FlowFinishCallback
void SCFlowRunInitCallbacks(ThreadVars *tv, Flow *f, const Packet *p)
bool SCFlowRegisterInitCallback(SCFlowInitCallbackFn fn, void *user)
Register a flow init callback.
struct FlowInitCallback_ FlowInitCallback
struct FlowUpdateCallback_ FlowUpdateCallback
bool SCFlowRegisterUpdateCallback(SCFlowUpdateCallbackFn fn, void *user)
Register a flow update callback.
void SCFlowRunFinishCallbacks(ThreadVars *tv, Flow *f)
void(* SCFlowFinishCallbackFn)(ThreadVars *tv, Flow *f, void *user)
Function type for flow finish callbacks.
void(* SCFlowUpdateCallbackFn)(ThreadVars *tv, Flow *f, Packet *p, void *user)
Function type for flow update callbacks.
void(* SCFlowInitCallbackFn)(ThreadVars *tv, Flow *f, const Packet *p, void *user)
Function type for flow initialization callbacks.
SCFlowFinishCallbackFn Callback
struct FlowFinishCallback_ * next
struct FlowInitCallback_ * next
SCFlowInitCallbackFn Callback
struct FlowUpdateCallback_ * next
SCFlowUpdateCallbackFn Callback
Per thread variable structure.