Go to the documentation of this file.
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;
SCFlowInitCallbackFn Callback
struct FlowInitCallback_ FlowInitCallback
bool SCFlowRegisterInitCallback(SCFlowInitCallbackFn fn, void *user)
Register a flow init callback.
void SCFlowRunUpdateCallbacks(ThreadVars *tv, Flow *f, Packet *p)
bool SCFlowRegisterUpdateCallback(SCFlowUpdateCallbackFn fn, void *user)
Register a flow update callback.
struct FlowUpdateCallback_ FlowUpdateCallback
void(* SCFlowInitCallbackFn)(ThreadVars *tv, Flow *f, const Packet *p, void *user)
Function type for flow initialization callbacks.
void SCFlowRunFinishCallbacks(ThreadVars *tv, Flow *f)
void(* SCFlowFinishCallbackFn)(ThreadVars *tv, Flow *f, void *user)
Function type for flow finish callbacks.
Per thread variable structure.
struct FlowInitCallback_ * next
struct FlowFinishCallback_ FlowFinishCallback
SCFlowUpdateCallbackFn Callback
struct FlowUpdateCallback_ * next
void SCFlowRunInitCallbacks(ThreadVars *tv, Flow *f, const Packet *p)
void(* SCFlowUpdateCallbackFn)(ThreadVars *tv, Flow *f, Packet *p, void *user)
Function type for flow update callbacks.
SCFlowFinishCallbackFn Callback
bool SCFlowRegisterFinishCallback(SCFlowFinishCallbackFn fn, void *user)
Register a flow init callback.
struct FlowFinishCallback_ * next