1 // SPDX-License-Identifier: BSD-3-Clause
2 //
3 // Copyright(c) 2021 Google LLC.
4 //
5 // Author: Lionel Koenig <lionelk@google.com>
6 #ifndef GOOGLE_RTC_AUDIO_PROCESSING_PLATFORM_H_
7 #define GOOGLE_RTC_AUDIO_PROCESSING_PLATFORM_H_
8 
9 #include <stddef.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 // Allocates memory of size `size` and returns a pointer to the allocated
16 // memory. If no memory is available, NULL is returned.
17 void *GoogleRtcMalloc(size_t size);
18 
19 // Frees the memory pointed to by `p`.
20 void GoogleRtcFree(void *p);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif  // GOOGLE_RTC_AUDIO_PROCESSING_PLATFORM_H_
27