chore: add LV_USE_PRIVATE_API (#6737)

This commit is contained in:
Gabor Kiss-Vamosi
2024-08-26 13:29:26 +02:00
committed by GitHub
parent 8b659fc9a2
commit f4ea1ec82c
4 changed files with 20 additions and 0 deletions

View File

@@ -711,6 +711,10 @@ menu "LVGL configuration"
bool "Enable matrix support"
default n
select LV_USE_FLOAT
config LV_USE_PRIVATE_API
bool "Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default"
default n
endmenu
menu "Font Usage"

View File

@@ -448,6 +448,9 @@
*Requires `LV_USE_FLOAT = 1`*/
#define LV_USE_MATRIX 0
/*Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default*/
#define LV_USE_PRIVATE_API 0
/*==================
* FONT USAGE
*===================*/

4
lvgl.h
View File

@@ -120,6 +120,10 @@ extern "C" {
#include "src/lv_api_map_v9_0.h"
#include "src/lv_api_map_v9_1.h"
#if LV_USE_PRIVATE_API
#include "src/lvgl_private.h"
#endif
/*********************
* DEFINES
*********************/

View File

@@ -1313,6 +1313,15 @@
#endif
#endif
/*Include `lvgl_private.h` in `lvgl.h` to access internal data and functions by default*/
#ifndef LV_USE_PRIVATE_API
#ifdef CONFIG_LV_USE_PRIVATE_API
#define LV_USE_PRIVATE_API CONFIG_LV_USE_PRIVATE_API
#else
#define LV_USE_PRIVATE_API 0
#endif
#endif
/*==================
* FONT USAGE
*===================*/