From 5211449d390c94bf225b028610d30047d51778d7 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sun, 7 Apr 2013 10:49:15 +0800 Subject: update table info --- src/include/novel_types.h | 6 +++--- src/storage/table_info.h | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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); }; }; -- cgit