Go to the documentation of this file.
26 #ifndef __HOST_STORAGE_H__
27 #define __HOST_STORAGE_H__
47 void *(*Alloc)(
unsigned int),
void (*Free)(
void *));
void HostFreeStorageById(Host *h, HostStorageId id)
HostStorageId HostStorageRegister(const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
Register a Host storage.
void * HostGetStorageById(Host *h, HostStorageId id)
Get a value from a given Host storage.
unsigned int HostStorageSize(void)
void HostFreeStorage(Host *h)
void * HostAllocStorageById(Host *h, HostStorageId id)
struct HostStorageId_ HostStorageId
void RegisterHostStorageTests(void)
int HostSetStorageById(Host *h, HostStorageId id, void *ptr)
Store a pointer in a given Host storage.