3 * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
15 Entry *bdb_deref_internal_r LDAP_P((
23 #define deref_entry_r( be, e, err, matched, text ) \
24 bdb_deref_internal_r( be, e, NULL, err, matched, text )
25 #define deref_dn_r( be, dn, err, matched, text ) \
26 bdb_deref_internal_r( be, NULL, dn, err, matched, text)
32 void bdb_attr_mask( struct bdb_info *bdb,
34 AttributeDescription *desc,
38 slap_mask_t *indexmask );
40 int bdb_attr_index_config LDAP_P(( struct bdb_info *bdb,
41 const char *fname, int lineno,
42 int argc, char **argv ));
44 void bdb_attr_index_destroy LDAP_P(( Avlnode *tree ));
58 int bdb_dn2entry LDAP_P(( BackendDB *be, DB_TXN *tid,
59 const char *dn, Entry **e, Entry **matched, int flags ));
70 int bdb_dn2id_matched(
89 int bdb_dn2id_children(
104 int bdb_entry_return( BackendDB *be, Entry *e );
109 void bdb_errcall( const char *pfx, char * msg );
114 int bdb_filter_candidates(
122 int bdb_id2entry_add(
127 int bdb_id2entry_update(
132 int bdb_id2entry_delete(
146 unsigned bdb_idl_search( ID *ids, ID id );
148 int bdb_idl_fetch_key(
155 int bdb_idl_insert_key(
162 int bdb_idl_delete_key(
176 bdb_idl_intersection(
187 ID bdb_idl_first( ID *ids, ID *cursor );
188 ID bdb_idl_next( ID *ids, ID *cursor );
195 bdb_index_param LDAP_P((
197 AttributeDescription *desc,
201 struct berval **prefix ));
204 bdb_index_values LDAP_P((
207 AttributeDescription *desc,
208 struct berval **vals,
212 int bdb_index_entry LDAP_P(( Backend *be, DB_TXN *t,
213 int r, Entry *e, Attribute *ap ));
215 #define bdb_index_entry_add(be,t,e,ap) \
216 bdb_index_entry((be),(t),SLAP_INDEX_ADD_OP,(e),(ap))
217 #define bdb_index_entry_del(be,t,e,ap) \
218 bdb_index_entry((be),(t),SLAP_INDEX_DELETE_OP,(e),(ap))
243 int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
244 int bdb_last_id( BackendDB *be, DB_TXN *tid );
249 int bdb_modify_internal(
254 Modifications *modlist,
269 struct berval *reqdata,
271 struct berval **rspdata,
272 LDAPControl *** rspctrls,
274 struct berval *** refs );
279 int bdb_tool_entry_open( BackendDB *be, int mode );
280 int bdb_tool_entry_close( BackendDB *be );
281 ID bdb_tool_entry_next( BackendDB *be );
282 Entry* bdb_tool_entry_get( BackendDB *be, ID id );
283 ID bdb_tool_entry_put( BackendDB *be, Entry *e );
284 int bdb_tool_entry_reindex( BackendDB *be, ID id );
289 #endif /* _PROTO_BDB_H */