Go to the documentation of this file.
70 static void StorageTestFree(
void *x)
76 static int FlowStorageTest01(
void)
126 static int FlowStorageTest02(
void)
157 static int FlowStorageTest03(
void)
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
void * SCFlowGetStorageById(const Flow *f, SCFlowStorageId id)
void SCStorageFreeById(Storage *storage, StorageEnum type, int id)
unsigned int SCFlowStorageSize(void)
int SCStorageSetById(Storage *storage, const StorageEnum type, const int id, void *ptr)
set storage for id
SCFlowStorageId SCFlowStorageRegister(const char *name, void(*Free)(void *))
void FlowInitConfig(bool quiet)
initialize the configuration
#define FAIL_IF_NOT_NULL(expr)
Fail a test if expression evaluates to non-NULL.
#define PASS
Pass the test.
int SCFlowSetStorageById(Flow *f, SCFlowStorageId id, void *ptr)
void * SCStorageGetById(const Storage *storage, const StorageEnum type, const int id)
get storage for id
int SCStorageRegister(const StorageEnum type, const char *name, void(*Free)(void *))
Register new storage.
void SCFlowFreeStorageById(Flow *f, SCFlowStorageId id)
void SCFlowFreeStorage(Flow *f)
unsigned int SCStorageGetSize(StorageEnum type)
get the size of the void array used to store the pointers
int FlowClearMemory(Flow *f, uint8_t proto_map)
Function clear the flow memory before queueing it to spare flow queue.
#define FAIL_IF(expr)
Fail a test if expression evaluates to true.
void FlowFree(Flow *f)
cleanup & free the memory of a flow
void FlowShutdown(void)
shutdown the flow engine
void SCStorageFreeAll(Storage *storage, StorageEnum type)
void SCRegisterFlowStorageTests(void)
void SCStorageCleanup(void)
Flow * FlowAlloc(void)
allocate a flow
int SCStorageFinalize(void)