In LVGLv9, how do I include a private header?

Description

With lvgl/lvgl • v9.2.2 • ESP Component Registry, how do I include an LVGL private header?

What MCU/Processor/Board and compiler are you using?

Custom ESP32-S3 & GCC

What do you want to achieve?

I’m porting some code from LVGLv8 to v9, and something I’m using has moved into lv_display_private.h

What have you tried so far?

I’ve tried including “…/lv_display_private.h”, “lv_display_private.h”, “…/display/lv_display_private.h”, and “display/lv_display_private.h”

I’ve also tried setting CONFIG_LV_USE_PRIVATE_API=y in idf.py menuconfig, but it doesn’t seem to have helped.

Code to reproduce

dependencies:
  idf: ">=5.1"
  lvgl/lvgl: "9.2.2"

Then in a component CMakeLists.txt, add “REQUIRES lvgl__lvgl” and in a C file add the include.

Looks like the answer is to include “lvgl_private.h”, and let that take care of things