Removed checkpoint_thread() prototype from database.h , this is not a real function...
[citadel.git] / citadel / server / database.h
1 // Copyright (c) 1987-2017 by the citadel.org team
2 // This program is open source software.  Use, duplication, or disclosure
3 // are subject to the terms of the GNU General Public License, version 3.
4
5 // We expect these functions to act as an internal API that remains identical
6 // across multiple database back ends.
7
8 #ifndef DATABASE_H
9 #define DATABASE_H
10 void open_databases(void);
11 void close_databases(void);
12 int cdb_store(int cdb, const void *key, int keylen, void *data, int datalen);
13 int cdb_delete(int cdb, void *key, int keylen);
14 struct cdbdata *cdb_fetch(int cdb, const void *key, int keylen);
15 void cdb_free(struct cdbdata *cdb);
16 void cdb_rewind (int cdb);
17 struct cdbdata *cdb_next_item(int cdb);
18 void cdb_close_cursor(int cdb);
19 void cdb_begin_transaction(void);
20 void cdb_end_transaction(void);
21 void cdb_allocate_tsd(void);
22 void cdb_free_tsd(void);
23 void cdb_check_handles(void);
24 void cdb_trunc(int cdb);
25 void cdb_chmod_data(void);
26 void cdb_checkpoint(void);
27 void check_handles(void *arg);
28 void cdb_cull_logs(void);
29 void cdb_compact(void);
30 int CheckIfAlreadySeen(StrBuf *guid);
31 #endif