summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h28
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.