]> git.sur5r.net Git - openldap/blob - servers/slapd/back-bdb/proto-bdb.h
5ab0c07f682062729658425fdb18cb2511ced5e0
[openldap] / servers / slapd / back-bdb / proto-bdb.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6
7 #ifndef _PROTO_BDB_H
8 #define _PROTO_BDB_H
9
10 LDAP_BEGIN_DECL
11
12 /*
13  * error.c
14  */
15 void bdb_errcall( const char *pfx, char * msg );
16
17 /*
18  * dn2id.c
19  */
20 int bdb_index_dn_add(
21         BackendDB *be,
22         DB_TXN *tid,
23         const char *dn,
24         ID id );
25
26 /*
27  * idl.c
28  */
29 int bdb_idl_insert_key(
30         BackendDB *be,
31         DB *db,
32         DB_TXN *txn,
33         DBT *key,
34         ID id );
35
36 /*
37  * nextid.c
38  */
39 int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
40
41 /*
42  * tools.c
43  */
44 int bdb_tool_entry_open( BackendDB *be, int mode );
45 int bdb_tool_entry_close( BackendDB *be );
46 ID bdb_tool_entry_next( BackendDB *be );
47 Entry* bdb_tool_entry_get( BackendDB *be, ID id );
48 ID bdb_tool_entry_put( BackendDB *be, Entry *e );
49
50
51 LDAP_END_DECL
52
53 #endif /* _PROTO_BDB_H */