Files
Upsilon/lib/private/mem5config.h
2015-05-20 13:02:41 +02:00

19 lines
622 B
C

#ifndef LIB_MEM5CONFIG_H
#define LIB_MEM5CONFIG_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