summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-19 12:54:35 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-19 12:54:35 +0800
commitb33991511be60368eb0ab38de70165606f4e5b14 (patch)
treed7642ddc2ffed7585fef733396366a186d1428ad
parent36ef85182a682e35a1a7ba7d79292c69fa184b38 (diff)
downloadlibpinyin-b33991511be60368eb0ab38de70165606f4e5b14.zip
libpinyin-b33991511be60368eb0ab38de70165606f4e5b14.tar.gz
libpinyin-b33991511be60368eb0ab38de70165606f4e5b14.tar.xz
add enum PHRASE_INDEX_LIBRARIES
-rw-r--r--src/include/novel_types.h19
-rw-r--r--src/storage/phrase_index.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index 52fc0b0..428b67e 100644
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -145,6 +145,25 @@ typedef GArray * CandidateConstraints;
typedef guint32 pinyin_option_t;
+typedef enum {
+ RESERVED = 0,
+ GB_DICTIONARY,
+ GBK_DICTIONARY,
+ MERGED_DICTIONARY,
+ ART_DICTIONARY,
+ CULTURE_DICTIONARY,
+ ECONOMY_DICTIONARY,
+ GEOLOGY_DICTIONARY,
+ HISTORY_DICTIONARY,
+ LIFE_DICTIONARY,
+ NATURE_DICTIONARY,
+ SCITECH_DICTIONARY,
+ SOCIETY_DICTIONARY,
+ SPORT_DICTIONARY,
+ RESERVED1,
+ USER_DICTIONARY
+} PHRASE_INDEX_LIBRARIES;
+
};
#endif
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 7b3443c..f529789 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -833,6 +833,7 @@ public:
typedef enum {
NOT_USED, /* not used. */
SYSTEM_FILE, /* system phrase file. */
+ DICTIONARY, /* professional dictionary. */
USER_FILE, /* user only phrase file. */
} PHRASE_FILE_TYPE;