Start
[exim.git] / src / src / dbfunctions.h
CommitLineData
059ec3d9
PH
1/* $Cambridge: exim/src/src/dbfunctions.h,v 1.1 2004/10/07 10:39:01 ph10 Exp $ */
2
3/*************************************************
4* Exim - an Internet mail transport agent *
5*************************************************/
6
7/* Copyright (c) University of Cambridge 1995 - 2004 */
8/* See the file NOTICE for conditions of use and distribution. */
9
10
11/* Functions for reading/writing exim database files */
12
13void dbfn_close(open_db *);
14int dbfn_delete(open_db *, uschar *);
15open_db *dbfn_open(uschar *, int, open_db *, BOOL);
16void *dbfn_read_with_length(open_db *, uschar *, int *);
17uschar *dbfn_scan(open_db *, BOOL, EXIM_CURSOR **);
18int dbfn_write(open_db *, uschar *, void *, int);
19
20/* Macro for the common call to read without wanting to know the length. */
21
22#define dbfn_read(a, b) dbfn_read_with_length(a, b, NULL)
23
24/* Berkeley DB uses a callback function to pass back error details. */
25
26#if defined(USE_DB) && defined(DB_VERSION_STRING)
27void dbfn_bdb_error_callback(const char *, char *);
28#endif
29
30/* End of dbfunctions.h */