diff options
author | Peng Wu <alexepico@gmail.com> | 2012-06-26 12:34:54 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-06-26 12:34:54 +0800 |
commit | 8f8fb50a3d8bd31cb62d02299892343e993e49a6 (patch) | |
tree | 10b76c03d2e94bd165b53d4ee1c3654c1aa86aed /src/pinyin.h | |
parent | ddb8803e219bf4189f9a0105af7189b8c31c5d06 (diff) | |
download | libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.tar.gz libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.tar.xz libpinyin-8f8fb50a3d8bd31cb62d02299892343e993e49a6.zip |
begin to write import iterator
Diffstat (limited to 'src/pinyin.h')
-rw-r--r-- | src/pinyin.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pinyin.h b/src/pinyin.h index eaa35c2..d99fa63 100644 --- a/src/pinyin.h +++ b/src/pinyin.h @@ -37,6 +37,8 @@ typedef struct _pinyin_context_t pinyin_context_t; 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 GArray * CandidateVector; /* GArray of lookup_candidate_t */ enum lookup_candidate_type_t{ @@ -105,6 +107,15 @@ bool pinyin_load_phrase_library(pinyin_context_t * context, bool pinyin_unload_phrase_library(pinyin_context_t * context, guint8 index); +import_iterator_t * pinyin_begin_add_phrases(pinyin_context_t * context, + guint8 index); + +bool pinyin_add_phrase(import_iterator_t * iterator, + const char * phrase, + const char * pinyin); + +void pinyin_end_add_phrases(import_iterator_t * iterator); + /** * pinyin_save: * @context: the pinyin context to be saved into user directory. |