Go to the documentation of this file.
61 void *(*Alloc)(
unsigned int),
void (*Free)(
void *))
void StorageFreeAll(Storage *storage, StorageEnum type)
void LiveDevFreeStorage(LiveDevice *d)
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.
int StorageSetById(Storage *storage, const StorageEnum type, const int id, void *ptr)
set storage for id
unsigned int LiveDevStorageSize(void)
int LiveDevSetStorageById(LiveDevice *d, LiveDevStorageId id, void *ptr)
Store a pointer in a given LiveDevice storage.
void * StorageGetById(const Storage *storage, const StorageEnum type, const int id)
get storage for id
unsigned int StorageGetSize(StorageEnum type)
get the size of the void array used to store the pointers
int StorageRegister(const StorageEnum type, const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
Register new storage.