Go to the documentation of this file.
26 #ifndef __DEVICE_STORAGE_H__
27 #define __DEVICE_STORAGE_H__
47 void *(*Alloc)(
unsigned int),
void (*Free)(
void *));
void RegisterLiveDevStorageTests(void)
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.
struct LiveDevStorageId_ LiveDevStorageId
unsigned int LiveDevStorageSize(void)
void LiveDevFreeStorage(LiveDevice *d)
void * LiveDevAllocStorageById(LiveDevice *d, LiveDevStorageId id)
int LiveDevSetStorageById(LiveDevice *d, LiveDevStorageId id, void *ptr)
Store a pointer in a given LiveDevice storage.
void LiveDevFreeStorageById(LiveDevice *d, LiveDevStorageId id)