Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
onelink_routes revision: removing a comment
[simgrid.git] / include / xbt / mmalloc.h
index 98642f9..f813b78 100644 (file)
@@ -55,8 +55,17 @@ extern void* mmalloc_getkey (void* md, int keynum);
 // FIXME: this function is not implemented anymore?
 //extern int mmalloc_errno (void* md);
 
+/* return the heap used when NULL is passed as first argument to any mm* function */
+extern void *mmalloc_get_default_md(void);
+
 extern int mmtrace(void);
 
 extern void* mmalloc_findbase(int size);
 
+/* To change the heap used when using the legacy version malloc/free/realloc and such */
+void mmalloc_set_current_heap(void *new_heap);
+void* mmalloc_get_current_heap(void);
+
+
+
 #endif  /* MMALLOC_H */