[NTOS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
[reactos.git] / reactos / include / reactos / libs / mbedtls / polarssl / memory.h
1 /**
2 * \file memory.h
3 *
4 * \brief Memory allocation layer (Deprecated to platform layer)
5 *
6 * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved
7 *
8 * This file is part of mbed TLS (https://polarssl.org)
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24 #ifndef POLARSSL_MEMORY_H
25 #define POLARSSL_MEMORY_H
26
27 #if !defined(POLARSSL_CONFIG_FILE)
28 #include "config.h"
29 #else
30 #include POLARSSL_CONFIG_FILE
31 #endif
32
33 #include <stdlib.h>
34
35 #include "platform.h"
36 #include "memory_buffer_alloc.h"
37
38 int memory_set_own( void * (*malloc_func)( size_t ),
39 void (*free_func)( void * ) )
40 {
41 return platform_set_malloc_free( malloc_func, free_func );
42 }
43
44
45 #endif /* memory.h */