|
suricata
|
#include "host.h"

Go to the source code of this file.
Data Structures | |
| struct | HostStorageId_ |
Typedefs | |
| typedef struct HostStorageId_ | HostStorageId |
Functions | |
| unsigned int | HostStorageSize (void) |
| void * | HostGetStorageById (Host *h, HostStorageId id) |
| Get a value from a given Host storage. More... | |
| int | HostSetStorageById (Host *h, HostStorageId id, void *ptr) |
| Store a pointer in a given Host storage. More... | |
| void * | HostAllocStorageById (Host *h, HostStorageId id) |
| void | HostFreeStorage (Host *h) |
| void | RegisterHostStorageTests (void) |
| HostStorageId | HostStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *)) |
| Register a Host storage. More... | |
Host wrapper around storage api
Definition in file host-storage.h.
| typedef struct HostStorageId_ HostStorageId |
| 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 333 of file host-storage.c.
References UtRegisterTest().
Referenced by HostRegisterUnittests().

