int SCStorageSetById(Storage *storage, const StorageEnum type, const int id, void *ptr)
set storage for id
void * SCStorageGetById(const Storage *storage, const StorageEnum type, const int id)
get storage for id
int SCStorageRegister(const StorageEnum type, const char *name, void(*Free)(void *))
Register new storage.
unsigned int SCStorageGetSize(StorageEnum type)
get the size of the void array used to store the pointers
void SCLiveDevFreeStorage(LiveDevice *d)
void * SCLiveDevGetStorageById(LiveDevice *d, SCLiveDevStorageId id)
Get a value from a given LiveDevice storage.
void SCStorageFreeAll(Storage *storage, StorageEnum type)
SCLiveDevStorageId SCLiveDevStorageRegister(const char *name, void(*Free)(void *))
Register a LiveDevice storage.
int SCLiveDevSetStorageById(LiveDevice *d, SCLiveDevStorageId id, void *ptr)
Store a pointer in a given LiveDevice storage.
unsigned int SCLiveDevStorageSize(void)