diff options
author | Peng Wu <alexepico@gmail.com> | 2015-05-28 15:23:41 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-05-28 15:23:41 +0800 |
commit | 98f764e4acba396297a4776bb1d6293c5e3e5e9c (patch) | |
tree | 31a4e28063665796ae6ead95a7361187c569c93a /src/pinyin.h | |
parent | 632da8adf04564a0ce928e8db3035f4fea79e734 (diff) | |
download | libpinyin-98f764e4acba396297a4776bb1d6293c5e3e5e9c.tar.gz libpinyin-98f764e4acba396297a4776bb1d6293c5e3e5e9c.tar.xz libpinyin-98f764e4acba396297a4776bb1d6293c5e3e5e9c.zip |
update API
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index 12915ee..adb2bb8 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -64,7 +64,6 @@ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir); /** * pinyin_load_phrase_library: * @context: the pinyin context. - * @target: the table target. * @index: the phrase index to be loaded. * @returns: whether the load succeeded. * @@ -72,13 +71,11 @@ pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir); * */ bool pinyin_load_phrase_library(pinyin_context_t * context, - TABLE_TARGET target, guint8 index); /** * pinyin_unload_phrase_library: * @context: the pinyin context. - * @target: the table target. * @index: the phrase index to be unloaded. * @returns: whether the unload succeeded. * @@ -86,10 +83,33 @@ bool pinyin_load_phrase_library(pinyin_context_t * context, * */ bool pinyin_unload_phrase_library(pinyin_context_t * context, - TABLE_TARGET target, guint8 index); /** + * pinyin_load_addon_phrase_library: + * @context: the pinyin context. + * @index: the addon phrase index to be loaded. + * @returns: whether the load succeeded. + * + * Load the addon sub phrase library of the index. + * + */ +bool pinyin_load_addon_phrase_library(pinyin_context_t * context, + guint8 index); + +/** + * pinyin_unload_addon_phrase_library: + * @context: the pinyin context. + * @index: the addon phrase index to be unloaded. + * @returns: whether the unload succeeded. + * + * Unload the addon sub phrase library of the index. + * + */ +bool pinyin_unload_addon_phrase_library(pinyin_context_t * context, + guint8 index); + +/** * pinyin_begin_add_phrases: * @context: the pinyin context. * @index: the phrase index to be imported. |