summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table3_kyotodb.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-01-27 12:03:28 +0800
committerPeng Wu <alexepico@gmail.com>2016-01-27 12:11:06 +0800
commit65276d8bef358c3d74957ac07a06cbfaa4ebed0b (patch)
tree0487aaec32312e07a70cc47933081f33b857c651 /src/storage/phrase_large_table3_kyotodb.h
parent8a69df17c20e7b09fc91856d6653ff52b5f297aa (diff)
downloadlibpinyin-65276d8bef358c3d74957ac07a06cbfaa4ebed0b.tar.gz
libpinyin-65276d8bef358c3d74957ac07a06cbfaa4ebed0b.tar.xz
libpinyin-65276d8bef358c3d74957ac07a06cbfaa4ebed0b.zip
refactor PhraseLargeTable3
Diffstat (limited to 'src/storage/phrase_large_table3_kyotodb.h')
-rw-r--r--src/storage/phrase_large_table3_kyotodb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/phrase_large_table3_kyotodb.h b/src/storage/phrase_large_table3_kyotodb.h
index deb83e8..fa76ffe 100644
--- a/src/storage/phrase_large_table3_kyotodb.h
+++ b/src/storage/phrase_large_table3_kyotodb.h
@@ -45,13 +45,16 @@ public:
reset();
}
+ /* attach method */
+ bool attach(const char * dbfile, guint32 flags);
+
/* load/store method */
/* use in-memory DBM here, for better performance. */
bool load(const char * filename);
bool store(const char * new_filename);
- bool load_text(FILE * file);
+ bool load_text(FILE * infile);
/* search method */
int search(int phrase_length, /* in */ const ucs4_t phrase[],