From 71f0161885f333ee13d81215b201bef9fd28c928 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 22 Jan 2015 12:28:12 +0800 Subject: support to export user phrases --- src/pinyin.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/pinyin.h') 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. -- cgit