lv_xml_load.h¶
Functions
-
lv_result_t lv_xml_load_all_from_path(const char *path)¶
Recurse into a directory, loading all XML components, screens, globals, and translations.
- Parameters:
path – the path to a directory to load files from
- Returns:
LV_RESULT_OK
if there were no issues orLV_RESULT_INVALID
otherwise.
-
lv_xml_load_t *lv_xml_load_all_from_data(const void *buf, uint32_t buf_size)¶
Mount a data blob and recurse through it, loading all XML components, screens, globals, and translations.
- Parameters:
buf – the data blob
buf_size – the size of the data blob
- Returns:
a handle that can be used to unload it later
-
lv_xml_load_t *lv_xml_load_all_from_file(const char *file_path)¶
Mount a data blob located at
file_path
in a filesystem and recurse through it, loading all XML components, screens, globals, and translations.- Parameters:
file_path – the path of the data blob
- Returns:
a handle that can be used to unload it later
-
void lv_xml_unload(lv_xml_load_t *load)¶
Unload XML data that was loaded by a function that returned
lv_xml_load_t *
. Any assets in the loaded data will not be accessible anymore.- Parameters:
load – a loaded XML data handle, or
NULL
to unload all.