1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */ 2 /* 3 * Copyright (c) 2015 Rockchip Electronics Co., Ltd. 4 */ 5 6 #ifndef __OS_MEM_H__ 7 #define __OS_MEM_H__ 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 int os_malloc(void **memptr, size_t alignment, size_t size); 14 int os_realloc(void *src, void **dst, size_t alignment, size_t size); 15 void os_free(void *ptr); 16 17 #ifdef __cplusplus 18 } 19 #endif 20 21 #endif /*__OS_MEM_H__*/ 22 23 24