diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-07 10:49:15 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-07 10:49:15 +0800 |
commit | 5211449d390c94bf225b028610d30047d51778d7 (patch) | |
tree | 75fe71b1587a34bfc2a7784909b7ed2e6862514e /src | |
parent | b65e269375526365bd5efbd0595647af51fc6ac3 (diff) | |
download | libpinyin-5211449d390c94bf225b028610d30047d51778d7.tar.gz libpinyin-5211449d390c94bf225b028610d30047d51778d7.tar.xz libpinyin-5211449d390c94bf225b028610d30047d51778d7.zip |
update table info
Diffstat (limited to 'src')
-rw-r--r-- | src/include/novel_types.h | 6 | ||||
-rw-r--r-- | src/storage/table_info.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h index a58cc0e..6dcacb7 100644 --- a/src/include/novel_types.h +++ b/src/include/novel_types.h @@ -144,9 +144,9 @@ typedef guint32 pinyin_option_t; typedef enum { RESERVED = 0, - GB_DICTIONARY, - GBK_DICTIONARY, - MERGED_DICTIONARY, + GB_DICTIONARY = 1, + GBK_DICTIONARY = 2, + MERGED_DICTIONARY = 3, ART_DICTIONARY, CULTURE_DICTIONARY, ECONOMY_DICTIONARY, diff --git a/src/storage/table_info.h b/src/storage/table_info.h index 33e37ee..6adc1af 100644 --- a/src/storage/table_info.h +++ b/src/storage/table_info.h @@ -55,7 +55,11 @@ public: bool load(const char * filename); - bool conform(const SystemTableInfo * sysinfo); + bool save(const char * filename); + + bool is_conform(const SystemTableInfo * sysinfo); + + bool make_conform(const SystemTableInfo * sysinfo); }; }; |