Add dual-license information.
[bertos.git] / kern / 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.2  2004/06/03 11:27:09  bernie
19  * Add dual-license information.
20  *
21  * Revision 1.1  2004/05/23 17:27:00  bernie
22  * Import kern/ subdirectory.
23  *
24  */
25
26 #ifndef KERN_HEAP_H
27 #define KERN_HEAP_H
28
29 #include "compiler.h"
30
31
32 /* Memory allocation services */
33 void heap_init(void);
34 void *heap_alloc(size_t size);
35 void heap_free(void *mem, size_t size);
36
37 #ifdef __POSIX__ /* unused */
38 void *malloc(size_t size);
39 void *calloc(unsigned int nelem, size_t size);
40 void free(void * mem);
41 #endif /* __POSIX__ */
42
43 #endif /* KERN_HEAP_H */
44