summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-20 16:53:04 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-20 16:53:04 +0800
commit8c969628a1b800de07340130abf3ef0ac6e3d042 (patch)
tree6c40e03422bf238fc4a1bb449cc74934620d9822
parentfaeb5a41fee376ed45862881873cb9ac33c34d8b (diff)
downloadlibpinyin-8c969628a1b800de07340130abf3ef0ac6e3d042.zip
libpinyin-8c969628a1b800de07340130abf3ef0ac6e3d042.tar.gz
libpinyin-8c969628a1b800de07340130abf3ef0ac6e3d042.tar.xz
refine pinyin.h
-rw-r--r--src/pinyin.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 7bed656..e11e8e3 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -34,14 +34,15 @@ using namespace pinyin;
extern "C" {
typedef struct _pinyin_context_t pinyin_context_t;
+typedef struct _pinyin_instance_t pinyin_instance_t;
-typedef struct {
+struct _pinyin_instance_t{
pinyin_context_t * m_context;
ChewingKeyVector m_pinyin_keys;
ChewingKeyRestVector m_pinyin_key_rests;
CandidateConstraints m_constraints;
MatchResults m_match_results;
-} pinyin_instance_t;
+};
pinyin_context_t * pinyin_init(const char * systemdir, const char * userdir);
bool pinyin_save(pinyin_context_t * context);