1
0
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:
Gabor Kiss-Vamosi 2019-01-23 12:29:10 +01:00
parent 0a673294c8
commit e0fe252b90

View File

@ -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