diff options
author | Peng Wu <alexepico@gmail.com> | 2015-01-22 12:28:12 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-01-22 12:28:12 +0800 |
commit | 71f0161885f333ee13d81215b201bef9fd28c928 (patch) | |
tree | b05e1687fc3eefd31b28ac2df791ada847ee3ae8 /src/pinyin.h | |
parent | 99266561a5c5ec8e43944e807ef795c72fa46170 (diff) | |
download | libpinyin-71f0161885f333ee13d81215b201bef9fd28c928.tar.gz libpinyin-71f0161885f333ee13d81215b201bef9fd28c928.tar.xz libpinyin-71f0161885f333ee13d81215b201bef9fd28c928.zip |
support to export user phrases
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index a421841..c0ec076 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -38,6 +38,7 @@ typedef struct _pinyin_instance_t pinyin_instance_t; typedef struct _lookup_candidate_t lookup_candidate_t; typedef struct _import_iterator_t import_iterator_t; +typedef struct _export_iterator_t export_iterator_t; typedef enum _lookup_candidate_type_t{ BEST_MATCH_CANDIDATE = 1, @@ -120,6 +121,18 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter, */ void pinyin_end_add_phrases(import_iterator_t * iter); +export_iterator_t * pinyin_begin_get_phrases(pinyin_context_t * context, + guint index); + +bool pinyin_iterator_has_next_phrase(export_iterator_t * iter); + +bool pinyin_iterator_get_next_phrase(export_iterator_t * iter, + gchar ** phrase, + gchar ** pinyin, + gint * count); + +void pinyin_end_get_phrases(export_iterator_t * iter); + /** * pinyin_save: * @context: the pinyin context to be saved into user directory. |