mbed TLS v1.3.16
memory.h
Go to the documentation of this file.
1 
26 #ifndef POLARSSL_MEMORY_H
27 #define POLARSSL_MEMORY_H
28 
29 #if !defined(POLARSSL_CONFIG_FILE)
30 #include "config.h"
31 #else
32 #include POLARSSL_CONFIG_FILE
33 #endif
34 
35 #include <stdlib.h>
36 
37 #include "platform.h"
38 #include "memory_buffer_alloc.h"
39 
40 #if ! defined(POLARSSL_DEPRECATED_REMOVED)
41 #if defined(POLARSSL_DEPRECATED_WARNING)
42 #define DEPRECATED __attribute__((deprecated))
43 #else
44 #define DEPRECATED
45 #endif
46 
51 int memory_set_own( void * (*malloc_func)( size_t ),
52  void (*free_func)( void * ) ) DEPRECATED;
53 int memory_set_own( void * (*malloc_func)( size_t ),
54  void (*free_func)( void * ) )
55 {
56  return platform_set_malloc_free( malloc_func, free_func );
57 }
58 #undef DEPRECATED
59 #endif /* POLARSSL_DEPRECATED_REMOVED */
60 
61 
62 #endif /* memory.h */
Configuration options (set of defines)
mbed TLS Platform abstraction layer
Buffer-based memory allocator.
#define DEPRECATED
Definition: memory.h:44
int memory_set_own(void *(*malloc_func)(size_t), void(*free_func)(void *)) DEPRECATED
Set malloc() / free() callback.
Definition: memory.h:53