Go to the documentation of this file.
26 #ifndef SURICATA_HOST_STORAGE_H
27 #define SURICATA_HOST_STORAGE_H
46 void *(*Alloc)(
unsigned int),
void (*Free)(
void *));
HostStorageId HostStorageRegister(const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
Register a Host storage.
void * HostGetStorageById(Host *h, HostStorageId id)
Get a value from a given Host storage.
unsigned int HostStorageSize(void)
void HostFreeStorage(Host *h)
void * HostAllocStorageById(Host *h, HostStorageId id)
struct HostStorageId_ HostStorageId
void RegisterHostStorageTests(void)
int HostSetStorageById(Host *h, HostStorageId id, void *ptr)
Store a pointer in a given Host storage.