chore: add LV_USE_PRIVATE_API (#6737)
This commit is contained in:
committed by
GitHub
parent
8b659fc9a2
commit
f4ea1ec82c
4
Kconfig
4
Kconfig
@@ -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"
|
||||
|
||||
@@ -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
4
lvgl.h
@@ -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
|
||||
*********************/
|
||||
|
||||
@@ -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
|
||||
*===================*/
|
||||
|
||||
Reference in New Issue
Block a user