Thread: [cvs] bogofilter/src datastore_db.h,1.13,1.14
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2004-06-29 23:52:38
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20723 Modified Files: datastore_db.h Log Message: Restore comments. Index: datastore_db.h =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- datastore_db.h 28 Jun 2004 01:43:30 -0000 1.13 +++ datastore_db.h 29 Jun 2004 23:52:29 -0000 1.14 @@ -38,6 +38,13 @@ /** Flush pending writes to disk */ void db_flush(void *handle); +/** Do global initializations. \return 0 for success, non-zero for + * error. */ +int db_init(void); + +/** Cleanup storage allocation */ +void db_cleanup(void); + /** Retrieve the value associated with a given word in a list. * \return zero if the word does not exist in the database. Front-end */ @@ -81,9 +88,6 @@ /* Returns created flag */ bool db_created(void *vhandle); -int db_init(void); -void db_cleanup(void); - /* This is not currently used ... * #define db_write_lock(fd) db_lock(fd, F_SETLKW, F_WRLCK) |