projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove readBlock method in order to simplify low level API.
[bertos.git]
/
bertos
/
struct
/
heap.h
diff --git
a/bertos/struct/heap.h
b/bertos/struct/heap.h
index bcc54d529d10c47cee49f78cd8a70d9a3a5faf82..fc36cc7bf910f0fea2b4ebda92b340ad04c730fc 100644
(file)
--- a/
bertos/struct/heap.h
+++ b/
bertos/struct/heap.h
@@
-36,8
+36,10
@@
* in this form also within the implementation. This would probably remove
* memory alignment problems, and also some aliasing issues.
*
* in this form also within the implementation. This would probably remove
* memory alignment problems, and also some aliasing issues.
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
* \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * $WIZ$ module_name = "heap"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_heap.h"
*/
#ifndef STRUCT_HEAP_H
*/
#ifndef STRUCT_HEAP_H
@@
-82,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);
/// 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))
#define HNEW(heap, type) \
(type*)heap_allocmem(heap, sizeof(type))