Files
Upsilon/liba/include/private/memconfig.h
Romain Goyet 872efea4d1 Liba cleanup
2015-05-31 13:51:41 +02:00

19 lines
622 B
C

#ifndef LIBA_MEMCONFIG_H
#define LIBA_MEMCONFIG_H
/* This structure contains all the configuration data for the mem5 allocator.
* Before using mem5, the HeapConfig global variable should be created
* and initialized. */
typedef struct {
int nHeap; /* Size of pHeap[] */
void *pHeap; /* Heap storage space */
int mnReq; /* Min heap requests sizes */
int bMemstat; /* True to enable memory status */
void (*xLog)(void*,int,const char*); /* Function for logging */
} heap_config_t;
extern heap_config_t HeapConfig;
#endif