OLD | NEW |
1 /* | 1 /* |
2 * alloc.h | 2 * alloc.h |
3 * | 3 * |
4 * interface to memory allocation and deallocation, with optional debugging | 4 * interface to memory allocation and deallocation, with optional debugging |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 */ | 8 */ |
9 /* | 9 /* |
10 * | 10 * |
(...skipping 30 matching lines...) Loading... |
41 * OF THE POSSIBILITY OF SUCH DAMAGE. | 41 * OF THE POSSIBILITY OF SUCH DAMAGE. |
42 * | 42 * |
43 */ | 43 */ |
44 | 44 |
45 | 45 |
46 #ifndef CRYPTO_ALLOC_H | 46 #ifndef CRYPTO_ALLOC_H |
47 #define CRYPTO_ALLOC_H | 47 #define CRYPTO_ALLOC_H |
48 | 48 |
49 #include "datatypes.h" | 49 #include "datatypes.h" |
50 | 50 |
51 void * | 51 #ifdef __cplusplus |
52 crypto_alloc(size_t size); | 52 extern "C" { |
| 53 #endif |
53 | 54 |
54 void | 55 void * srtp_crypto_alloc(size_t size); |
55 crypto_free(void *ptr); | 56 |
| 57 void srtp_crypto_free(void *ptr); |
| 58 |
| 59 #ifdef __cplusplus |
| 60 } |
| 61 #endif |
56 | 62 |
57 #endif /* CRYPTO_ALLOC_H */ | 63 #endif /* CRYPTO_ALLOC_H */ |
OLD | NEW |