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

Data Structures

struct  LiveDevStorageId_
 

Typedefs

typedef struct LiveDevStorageId_ SCLiveDevStorageId
 

Functions

unsigned int SCLiveDevStorageSize (void)
 
void * SCLiveDevGetStorageById (LiveDevice *d, SCLiveDevStorageId id)
 Get a value from a given LiveDevice storage. More...
 
int SCLiveDevSetStorageById (LiveDevice *d, SCLiveDevStorageId id, void *ptr)
 Store a pointer in a given LiveDevice storage. More...
 
void SCLiveDevFreeStorage (LiveDevice *d)
 
SCLiveDevStorageId SCLiveDevStorageRegister (const char *name, 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.

Typedef Documentation

◆ SCLiveDevStorageId

Function Documentation

◆ SCLiveDevFreeStorage()

void SCLiveDevFreeStorage ( LiveDevice d)

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

References SCLiveDevStorageSize(), SCStorageFreeAll(), LiveDevice_::storage, and STORAGE_DEVICE.

Here is the call graph for this function:

◆ SCLiveDevStorageSize()

unsigned int SCLiveDevStorageSize ( void  )

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

References SCStorageGetSize(), and STORAGE_DEVICE.

Referenced by LiveRegisterDevice(), and SCLiveDevFreeStorage().

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