summaryrefslogtreecommitdiffstats
path: root/src/pinyin.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-26 12:34:54 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-26 12:34:54 +0800
commit8f8fb50a3d8bd31cb62d02299892343e993e49a6 (patch)
tree10b76c03d2e94bd165b53d4ee1c3654c1aa86aed /src/pinyin.h
parentddb8803e219bf4189f9a0105af7189b8c31c5d06 (diff)
downloadlibpinyin-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.h11
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.