summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-19 14:52:32 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-19 14:52:32 +0800
commit19fd61c47b7d3ecb116636a62a76668bbb38133e (patch)
tree65e2d270bbaa0db51e9da8976dc905e8f4255b7f /src/pinyin.h
parent3120e3f3208f3b0c9e30a811102e0d2ea9c5e29e (diff)
downloadlibpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.tar.gz
libpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.tar.xz
libpinyin-19fd61c47b7d3ecb116636a62a76668bbb38133e.zip
add comments
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 43cec3e..53c557c 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -81,10 +81,29 @@ struct _pinyin_instance_t{
*/
pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir);
+/**
+ * pinyin_load_phrase_library:
+ * @context: the pinyin context.
+ * @index: the phrase index to be loaded.
+ * @filename: the file name of the phrase index.
+ * @returns: whether the load succeeded.
+ *
+ * Load the sub phrase library of the index.
+ *
+ */
bool pinyin_load_phrase_library(pinyin_context_t * context,
guint8 index,
const char * filename);
+/**
+ * pinyin_unload_phrase_library:
+ * @context: the pinyin context.
+ * @index: the phrase index to be unloaded.
+ * @returns: whether the unload succeeded.
+ *
+ * Unload the sub phrase library of the index.
+ *
+ */
bool pinyin_unload_phrase_library(pinyin_context_t * context,
guint8 index);