In order to support lvgl v8, we need to provide a realloc() implementation in our custom sys_heap allocator. This uses sys_heap_realloc() internally and exposes traditional realloc() semantics. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
26 lines
423 B
C
26 lines
423 B
C
/*
|
|
* Copyright (c) 2018 Jan Van Winkel <jan.van_winkel@dxplore.eu>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_GUI_LVGL_MEM_H_
|
|
#define ZEPHYR_LIB_GUI_LVGL_MEM_H_
|
|
|
|
#include <stdlib.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void *lvgl_malloc(size_t size);
|
|
|
|
void *lvgl_realloc(void *ptr, size_t size);
|
|
|
|
void lvgl_free(void *ptr);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_LIB_GUI_LVGL_MEM_H_i */
|