26#ifndef SURICATA_DEVICE_STORAGE_H
27#define SURICATA_DEVICE_STORAGE_H
43 void *(*Alloc)(
unsigned int),
void (*Free)(
void *));
struct LiveDevStorageId_ LiveDevStorageId
void LiveDevFreeStorage(LiveDevice *d)
unsigned int LiveDevStorageSize(void)
int LiveDevSetStorageById(LiveDevice *d, LiveDevStorageId id, void *ptr)
Store a pointer in a given LiveDevice storage.
void * LiveDevGetStorageById(LiveDevice *d, LiveDevStorageId id)
Get a value from a given LiveDevice storage.
LiveDevStorageId LiveDevStorageRegister(const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
Register a LiveDevice storage.