X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fheap.h;h=97cef8a3f1dd615b6e46c2a4694f6ef53bc7da5e;hb=4654a69f5df97af36ee5456d20cbccdc19012dc2;hp=ccc02654ccb6f87df63e521eb27e09b61855fafb;hpb=af9c555446161016fdd76c1cdff96ce76bb6cba2;p=bertos.git diff --git a/mware/heap.h b/mware/heap.h old mode 100755 new mode 100644 index ccc02654..97cef8a3 --- a/mware/heap.h +++ b/mware/heap.h @@ -1,9 +1,34 @@ -/*! +/** * \file * * * \brief Heap subsystem (public interface). @@ -20,6 +45,15 @@ /*#* *#* $Log$ + *#* Revision 1.7 2006/07/19 12:56:27 bernie + *#* Convert to new Doxygen style. + *#* + *#* Revision 1.6 2005/11/27 23:36:19 bernie + *#* Use appconfig.h instead of cfg/config.h. + *#* + *#* Revision 1.5 2005/11/04 16:20:02 bernie + *#* Fix reference to README.devlib in header. + *#* *#* Revision 1.4 2005/04/11 19:10:28 bernie *#* Include top-level headers from cfg/ subdir. *#* @@ -44,24 +78,24 @@ #define MWARE_HEAP_H #include -#include +#include struct _MemChunk; -//! A heap +/// A heap struct Heap { - struct _MemChunk *FreeList; //!< Head of the free list + struct _MemChunk *FreeList; ///< Head of the free list }; -//! Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes +/// Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes void heap_init(struct Heap* heap, void* memory, size_t size); -//! Allocate a chunk of memory of \a size bytes from the heap +/// Allocate a chunk of memory of \a size bytes from the heap void *heap_allocmem(struct Heap* heap, size_t size); -//! Free a chunk of memory of \a size bytes from the heap +/// Free a chunk of memory of \a size bytes from the heap void heap_freemem(struct Heap* heap, void *mem, size_t size);