X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/acbb75da93aabcc72d26ea4a40de0055264bf24c..247a4baf7c1b606f6fedfc7afe2173fcc55b9d74:/include/xbt/mmalloc.h diff --git a/include/xbt/mmalloc.h b/include/xbt/mmalloc.h index 98642f9c06..f813b78016 100644 --- a/include/xbt/mmalloc.h +++ b/include/xbt/mmalloc.h @@ -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 */