suricata
host-storage.h File Reference
#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.

Data Structures

struct  HostStorageId_
 

Typedefs

typedef struct HostStorageId_ SCHostStorageId
 

Functions

unsigned int SCHostStorageSize (void)
 
void * SCHostGetStorageById (Host *h, SCHostStorageId id)
 Get a value from a given Host storage. More...
 
int SCHostSetStorageById (Host *h, SCHostStorageId id, void *ptr)
 Store a pointer in a given Host storage. More...
 
void SCHostFreeStorage (Host *h)
 
void SCRegisterHostStorageTests (void)
 
SCHostStorageId SCHostStorageRegister (const char *name, 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.

Typedef Documentation

◆ SCHostStorageId

Function Documentation

◆ SCHostFreeStorage()

void SCHostFreeStorage ( Host h)

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

References SCHostStorageSize(), SCStorageFreeAll(), Host_::storage, and STORAGE_HOST.

Referenced by HostCleanup(), and HostClearMemory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCHostStorageSize()

unsigned int SCHostStorageSize ( void  )

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

References SCStorageGetSize(), and STORAGE_HOST.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SCRegisterHostStorageTests()

void SCRegisterHostStorageTests ( void  )

Definition at line 254 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: