projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix ticket #97.
[bertos.git]
/
bertos
/
struct
/
heap.h
diff --git
a/bertos/struct/heap.h
b/bertos/struct/heap.h
index ad362a6b1966867a04a16b25854bf3b6bdc195e6..efd02c284ad5a7ffd9544cc8315bf37b521399c4 100644
(file)
--- a/
bertos/struct/heap.h
+++ b/
bertos/struct/heap.h
@@
-85,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))