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

Go to the source code of this file.

Functions

unsigned int LiveDevStorageSize (void)
 
void * LiveDevGetStorageById (LiveDevice *d, int id)
 Get a value from a given LiveDevice storage. More...
 
int LiveDevSetStorageById (LiveDevice *d, int id, void *ptr)
 Store a pointer in a given LiveDevice storage. More...
 
void * LiveDevAllocStorageById (LiveDevice *d, int id)
 
void LiveDevFreeStorageById (LiveDevice *d, int id)
 
void LiveDevFreeStorage (LiveDevice *d)
 
void RegisterLiveDevStorageTests (void)
 
int LiveDevStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
 Register a LiveDevice storage. More...
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

LiveDevice wrapper around storage api

Definition in file device-storage.h.

Function Documentation

void* LiveDevAllocStorageById ( LiveDevice d,
int  id 
)

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

References STORAGE_DEVICE, and StorageAllocByIdPrealloc().

Here is the call graph for this function:

void LiveDevFreeStorage ( LiveDevice d)

Definition at line 105 of file device-storage.c.

References LiveDevStorageSize(), STORAGE_DEVICE, and StorageFreeAll().

Referenced by LiveDeviceListClean().

Here is the call graph for this function:

Here is the caller graph for this function:

void LiveDevFreeStorageById ( LiveDevice d,
int  id 
)

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

References STORAGE_DEVICE, and StorageFreeById().

Here is the call graph for this function:

unsigned int LiveDevStorageSize ( void  )

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

References STORAGE_DEVICE, and StorageGetSize().

Referenced by LiveDevFreeStorage(), and LiveRegisterDevice().

Here is the call graph for this function:

Here is the caller graph for this function:

void RegisterLiveDevStorageTests ( void  )