2000-09-19 05:35:08 +08:00
|
|
|
/* $OpenLDAP$ */
|
|
|
|
/*
|
|
|
|
* Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PROTO_BDB_H
|
|
|
|
#define _PROTO_BDB_H
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
|
|
|
/*
|
|
|
|
* error.c
|
|
|
|
*/
|
|
|
|
void bdb_errcall( const char *pfx, char * msg );
|
|
|
|
|
2000-09-20 04:13:41 +08:00
|
|
|
/*
|
2000-09-20 15:21:09 +08:00
|
|
|
* dn2id.c
|
2000-09-20 04:13:41 +08:00
|
|
|
*/
|
|
|
|
int bdb_index_dn_add(
|
|
|
|
BackendDB *be,
|
|
|
|
DB_TXN *tid,
|
|
|
|
const char *dn,
|
|
|
|
ID id );
|
|
|
|
|
2000-09-20 15:21:09 +08:00
|
|
|
/*
|
|
|
|
* idl.c
|
|
|
|
*/
|
|
|
|
int bdb_idl_insert_key(
|
|
|
|
BackendDB *be,
|
|
|
|
DB *db,
|
|
|
|
DB_TXN *txn,
|
|
|
|
DBT *key,
|
|
|
|
ID id );
|
|
|
|
|
2000-09-20 04:13:41 +08:00
|
|
|
/*
|
|
|
|
* nextid.c
|
|
|
|
*/
|
|
|
|
int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
|
|
|
|
|
2000-09-20 15:21:09 +08:00
|
|
|
/*
|
|
|
|
* tools.c
|
|
|
|
*/
|
|
|
|
int bdb_tool_entry_open( BackendDB *be, int mode );
|
|
|
|
int bdb_tool_entry_close( BackendDB *be );
|
|
|
|
ID bdb_tool_entry_next( BackendDB *be );
|
|
|
|
Entry* bdb_tool_entry_get( BackendDB *be, ID id );
|
|
|
|
ID bdb_tool_entry_put( BackendDB *be, Entry *e );
|
|
|
|
|
|
|
|
|
2000-09-19 05:35:08 +08:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
|
|
|
#endif /* _PROTO_BDB_H */
|