suricata
host-storage.h File Reference
#include "util-storage.h"
#include "host.h"
Include dependency graph for host-storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned int HostStorageSize (void)
 
void * HostGetStorageById (Host *h, int id)
 Get a value from a given Host storage. More...
 
int HostSetStorageById (Host *h, int id, void *ptr)
 Store a pointer in a given Host storage. More...
 
void * HostAllocStorageById (Host *h, int id)
 
void HostFreeStorageById (Host *h, int id)
 
void HostFreeStorage (Host *h)
 
void RegisterHostStorageTests (void)
 
int HostStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
 Register a Host storage. More...
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Host wrapper around storage api

Definition in file host-storage.h.

Function Documentation

void* HostAllocStorageById ( Host h,
int  id 
)

Definition at line 95 of file host-storage.c.

References STORAGE_HOST, and StorageAllocByIdPrealloc().

Referenced by HostFreeStorage().

Here is the call graph for this function:

Here is the caller graph for this function:

void HostFreeStorage ( Host h)
void HostFreeStorageById ( Host h,
int  id 
)

Definition at line 100 of file host-storage.c.

References STORAGE_HOST, and StorageFreeById().

Here is the call graph for this function:

unsigned int HostStorageSize ( void  )

Definition at line 30 of file host-storage.c.

References STORAGE_HOST, and StorageGetSize().

Referenced by HostClearMemory(), HostFreeStorage(), and HostInitConfig().

Here is the call graph for this function:

Here is the caller graph for this function:

void RegisterHostStorageTests ( void  )

Definition at line 330 of file host-storage.c.

References UtRegisterTest().

Referenced by HostRegisterUnittests().

Here is the call graph for this function:

Here is the caller graph for this function: