X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fstruct%2Fheap.h;h=efd02c284ad5a7ffd9544cc8315bf37b521399c4;hb=8f2036c05d9a8531400c1ab97dca9193e92187d3;hp=bcc54d529d10c47cee49f78cd8a70d9a3a5faf82;hpb=f2bfb561625f0efcaef53cb57276967e01fa20bd;p=bertos.git diff --git a/bertos/struct/heap.h b/bertos/struct/heap.h index bcc54d52..efd02c28 100644 --- a/bertos/struct/heap.h +++ b/bertos/struct/heap.h @@ -38,6 +38,9 @@ * * \version $Id$ * \author Bernie Innocenti + * + * $WIZ$ module_name = "heap" + * $WIZ$ module_configuration = "bertos/cfg/cfg_heap.h" */ #ifndef STRUCT_HEAP_H @@ -82,6 +85,7 @@ void *heap_allocmem(struct Heap* heap, size_t size); /// Free a chunk of memory of \a size bytes from the heap void heap_freemem(struct Heap* heap, void *mem, size_t size); +size_t heap_freeSpace(struct Heap *h); #define HNEW(heap, type) \ (type*)heap_allocmem(heap, sizeof(type))