|
suricata
|


Go to the source code of this file.
Typedefs | |
| typedef void(* | SCThreadInitCallbackFn) (ThreadVars *tv, void *user) |
| Function type for thread intialization callbacks. More... | |
Functions | |
| bool | SCThreadRegisterInitCallback (SCThreadInitCallbackFn fn, void *user) |
| Register a thread init callback. More... | |
| void | SCThreadRunInitCallbacks (ThreadVars *tv) |
| typedef void(* SCThreadInitCallbackFn) (ThreadVars *tv, void *user) |
Function type for thread intialization callbacks.
Once registered by SCThreadRegisterInitCallback, this function will be called for every thread being initialized during Suricata startup.
| tv | The ThreadVars struct that has just been initialized. |
| user | The user data provided when registering the callback. |
Definition at line 33 of file thread-callbacks.h.
| bool SCThreadRegisterInitCallback | ( | SCThreadInitCallbackFn | fn, |
| void * | user | ||
| ) |
Register a thread init callback.
Register a user provided function to be called every time a thread is initialized for use.
| fn | Pointer to function to be called |
| user | Additional user data to be passed to callback |
Definition at line 28 of file thread-callbacks.c.
References ThreadInitCallback_::Callback, SCCalloc, and ThreadInitCallback_::user.
| void SCThreadRunInitCallbacks | ( | ThreadVars * | tv | ) |
Definition at line 48 of file thread-callbacks.c.