From 98f764e4acba396297a4776bb1d6293c5e3e5e9c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 28 May 2015 15:23:41 +0800 Subject: update API --- src/pinyin.h | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'src/pinyin.h') 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,9 +83,32 @@ 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. -- cgit