Spostato lo heap da kern/ a mware/
[bertos.git] / mware / heap.h
1 /*!
2  * \file
3  * <!--
4  * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
5  * Copyright 1999,2000,2001 Bernardo Innocenti <bernie@develer.com>
6  * This file is part of DevLib - See devlib/README for information.
7  * -->
8  *
9  * \brief Heap subsystem (public interface).
10  *
11  * \version $Id$
12  *
13  * \author Bernardo Innocenti <bernie@develer.com>
14  */
15
16 /*
17  * $Log$
18  * Revision 1.1  2004/07/31 16:33:58  rasky
19  * Spostato lo heap da kern/ a mware/
20  *
21  * Revision 1.2  2004/06/03 11:27:09  bernie
22  * Add dual-license information.
23  *
24  * Revision 1.1  2004/05/23 17:27:00  bernie
25  * Import kern/ subdirectory.
26  *
27  */
28
29 #ifndef KERN_HEAP_H
30 #define KERN_HEAP_H
31
32 #include "compiler.h"
33
34
35 /* Memory allocation services */
36 void heap_init(void);
37 void *heap_alloc(size_t size);
38 void heap_free(void *mem, size_t size);
39
40 #ifdef __POSIX__ /* unused */
41 void *malloc(size_t size);
42 void *calloc(unsigned int nelem, size_t size);
43 void free(void * mem);
44 #endif /* __POSIX__ */
45
46 #endif /* KERN_HEAP_H */
47