mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_lang: add const return value to the get text function
This commit is contained in:
parent
0a673294c8
commit
e0fe252b90
@ -44,7 +44,7 @@ void lv_lang_set(uint8_t lang_id);
|
||||
* Set a function to get the texts of the set languages from a `txt_id`
|
||||
* @param fp a function pointer to get the texts
|
||||
*/
|
||||
void lv_lang_set_text_func(void * (*fp)(uint16_t));
|
||||
void lv_lang_set_text_func(const void * (*fp)(uint16_t));
|
||||
|
||||
/**
|
||||
* Use the function set by `lv_lang_set_text_func` to get the `txt_id` text in the set language
|
||||
|
Loading…
x
Reference in New Issue
Block a user