From 6264265715aa40a659c279ee61ba7d7461731fc1 Mon Sep 17 00:00:00 2001 From: Liu Yi Date: Thu, 8 Aug 2024 18:00:47 +0800 Subject: [PATCH] fix(API): keep ime struct lv_pinyin_dict_t public (#6645) Signed-off-by: lhdjply --- src/misc/lv_types.h | 2 -- src/others/ime/lv_ime_pinyin.h | 6 ++++++ src/others/ime/lv_ime_pinyin_private.h | 6 ------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/misc/lv_types.h b/src/misc/lv_types.h index d2e48e611..159b8b73d 100644 --- a/src/misc/lv_types.h +++ b/src/misc/lv_types.h @@ -257,8 +257,6 @@ typedef struct lv_observer_t lv_observer_t; typedef struct lv_monkey_config_t lv_monkey_config_t; -typedef struct lv_pinyin_dict_t lv_pinyin_dict_t; - typedef struct lv_ime_pinyin_t lv_ime_pinyin_t; typedef struct lv_file_explorer_t lv_file_explorer_t; diff --git a/src/others/ime/lv_ime_pinyin.h b/src/others/ime/lv_ime_pinyin.h index 4e10df715..ff85eee88 100644 --- a/src/others/ime/lv_ime_pinyin.h +++ b/src/others/ime/lv_ime_pinyin.h @@ -32,6 +32,12 @@ typedef enum { LV_IME_PINYIN_MODE_K9_NUMBER, } lv_ime_pinyin_mode_t; +/*Data of pinyin_dict*/ +typedef struct { + const char * const py; + const char * const py_mb; +} lv_pinyin_dict_t; + /*Data of 9-key input(k9) mode*/ typedef struct { char py_str[7]; diff --git a/src/others/ime/lv_ime_pinyin_private.h b/src/others/ime/lv_ime_pinyin_private.h index 6d72cada6..6ec42fc09 100644 --- a/src/others/ime/lv_ime_pinyin_private.h +++ b/src/others/ime/lv_ime_pinyin_private.h @@ -27,12 +27,6 @@ extern "C" { * TYPEDEFS **********************/ -/*Data of pinyin_dict*/ -struct lv_pinyin_dict_t { - const char * const py; - const char * const py_mb; -}; - /*Data of lv_ime_pinyin*/ struct lv_ime_pinyin_t { lv_obj_t obj;