suricata
|
#include "suricata-common.h"
#include "device-storage.h"
#include "util-storage.h"
#include "util-unittest.h"
Go to the source code of this file.
Functions | |
unsigned int | LiveDevStorageSize (void) |
LiveDevStorageId | LiveDevStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *)) |
Register a LiveDevice storage. More... | |
int | LiveDevSetStorageById (LiveDevice *d, LiveDevStorageId id, void *ptr) |
Store a pointer in a given LiveDevice storage. More... | |
void * | LiveDevGetStorageById (LiveDevice *d, LiveDevStorageId id) |
Get a value from a given LiveDevice storage. More... | |
void * | LiveDevAllocStorageById (LiveDevice *d, LiveDevStorageId id) |
void | LiveDevFreeStorageById (LiveDevice *d, LiveDevStorageId id) |
void | LiveDevFreeStorage (LiveDevice *d) |
Device wrapper around storage api
Definition in file device-storage.c.
void* LiveDevAllocStorageById | ( | LiveDevice * | d, |
LiveDevStorageId | id | ||
) |
Definition at line 100 of file device-storage.c.
References STORAGE_DEVICE, and StorageAllocByIdPrealloc().
void LiveDevFreeStorage | ( | LiveDevice * | d | ) |
Definition at line 111 of file device-storage.c.
References LiveDevStorageSize(), STORAGE_DEVICE, and StorageFreeAll().
void LiveDevFreeStorageById | ( | LiveDevice * | d, |
LiveDevStorageId | id | ||
) |
Definition at line 106 of file device-storage.c.
References STORAGE_DEVICE, and StorageFreeById().
unsigned int LiveDevStorageSize | ( | void | ) |
Definition at line 31 of file device-storage.c.
References STORAGE_DEVICE, and StorageGetSize().
Referenced by LiveDevFreeStorage(), and LiveRegisterDevice().