62 void *(*Alloc)(
unsigned int),
void (*Free)(
void *))
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.
void * StorageGetById(const Storage *storage, const StorageEnum type, const int id)
get storage for id
int StorageRegister(const StorageEnum type, const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
Register new storage.
unsigned int StorageGetSize(StorageEnum type)
get the size of the void array used to store the pointers
void StorageFreeAll(Storage *storage, StorageEnum type)
int StorageSetById(Storage *storage, const StorageEnum type, const int id, void *ptr)
set storage for id