PolarSSL v1.3.7
memory.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_MEMORY_H
28 #define POLARSSL_MEMORY_H
29 
30 #if !defined(POLARSSL_CONFIG_FILE)
31 #include "config.h"
32 #else
33 #include POLARSSL_CONFIG_FILE
34 #endif
35 
36 #include <stdlib.h>
37 
38 #if defined(POLARSSL_MEMORY_C) && !defined(POLARSSL_PLATFORM_MEMORY)
39 #define POLARSSL_PLATFORM_MEMORY
40 #endif
41 
42 #include "platform.h"
43 #include "memory_buffer_alloc.h"
44 
45 int memory_set_own( void * (*malloc_func)( size_t ),
46  void (*free_func)( void * ) )
47 {
48  return platform_set_malloc_free( malloc_func, free_func );
49 }
50 
51 
52 #endif /* memory.h */
Configuration options (set of defines)
PolarSSL Platform abstraction layer.
Buffer-based memory allocator.
int memory_set_own(void *(*malloc_func)(size_t), void(*free_func)(void *))
Definition: memory.h:45