X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fstruct%2Fheap.h;h=fc36cc7bf910f0fea2b4ebda92b340ad04c730fc;hb=74081ebc421ca63e090ae8027a634a0c1b8f6864;hp=ad362a6b1966867a04a16b25854bf3b6bdc195e6;hpb=ab2e3c8c6b808390634d5065e41b1bf31e9eb600;p=bertos.git diff --git a/bertos/struct/heap.h b/bertos/struct/heap.h index ad362a6b..fc36cc7b 100644 --- a/bertos/struct/heap.h +++ b/bertos/struct/heap.h @@ -36,7 +36,6 @@ * in this form also within the implementation. This would probably remove * memory alignment problems, and also some aliasing issues. * - * \version $Id$ * \author Bernie Innocenti * * $WIZ$ module_name = "heap" @@ -85,6 +84,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))