suricata
|
Go to the source code of this file.
Functions | |
unsigned int | HostStorageSize (void) |
HostStorageId | HostStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *)) |
Register a Host storage. More... | |
int | HostSetStorageById (Host *h, HostStorageId id, void *ptr) |
Store a pointer in a given Host storage. More... | |
void * | HostGetStorageById (Host *h, HostStorageId id) |
Get a value from a given Host storage. More... | |
void * | HostAllocStorageById (Host *h, HostStorageId id) |
void | HostFreeStorage (Host *h) |
void | RegisterHostStorageTests (void) |
Host wrapper around storage api
Definition in file host-storage.c.
void* HostAllocStorageById | ( | Host * | h, |
HostStorageId | id | ||
) |
Definition at line 99 of file host-storage.c.
References Host_::storage, STORAGE_HOST, and StorageAllocByIdPrealloc().
void HostFreeStorage | ( | Host * | h | ) |
Definition at line 104 of file host-storage.c.
References HostStorageSize(), Host_::storage, STORAGE_HOST, and StorageFreeAll().
Referenced by HostCleanup(), and HostClearMemory().
unsigned int HostStorageSize | ( | void | ) |
Definition at line 30 of file host-storage.c.
References STORAGE_HOST, and StorageGetSize().
Referenced by HostClearMemory(), HostFreeStorage(), and HostInitConfig().
void RegisterHostStorageTests | ( | void | ) |
Definition at line 330 of file host-storage.c.
References UtRegisterTest().
Referenced by HostRegisterUnittests().