1 /* SPDX-License-Identifier: BSD-3-Clause 2 * 3 * Copyright(c) 2022 Google LLC. 4 * 5 * Author: Kehuang Li <kehuangli@google.com> 6 */ 7 8 #ifndef GOOGLE_AUDIO_POST_PROCESSING_PLATFORM_H_ 9 #define GOOGLE_AUDIO_POST_PROCESSING_PLATFORM_H_ 10 11 #include <stddef.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 // Allocates memory of size `size` and returns a pointer to the allocated 18 // memory. If no memory is available, NULL is returned. 19 void *GoogleAudioPostProcessingMalloc(size_t size); 20 21 // Frees the memory pointed to by `p`. 22 void GoogleAudioPostProcessingFree(void *p); 23 24 // Log "line: code". 25 void GoogleAudioPostProcessingLog(int line, int code); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif // GOOGLE_AUDIO_POST_PROCESSING_PLATFORM_H_ 32