3 * Copyright 2000-2002 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,
33 AttributeDescription *desc,
34 slap_mask_t *indexmask );
36 int bdb_attr_index_config LDAP_P(( struct bdb_info *bdb,
37 const char *fname, int lineno,
38 int argc, char **argv ));
40 void bdb_attr_index_destroy LDAP_P(( Avlnode *tree ));
46 BI_acl_attribute bdb_attribute;
60 int bdb_dn2entry_rw LDAP_P(( BackendDB *be, DB_TXN *tid,
61 struct berval *dn, Entry **e, Entry **matched, int flags, int rw , u_int32_t locker, DB_LOCK *lock));
62 #define bdb_dn2entry_r(be, tid, dn, e, m, f, locker, lock) bdb_dn2entry_rw((be), (tid), (dn), (e), (m), (f), 0, locker, lock)
63 #define bdb_dn2entry_w(be, tid, dn, e, m, f, locker, lock) bdb_dn2entry_rw((be), (tid), (dn), (e), (m), (f), 1, locker, lock)
74 int bdb_dn2id_matched(
93 int bdb_dn2id_children(
108 int bdb_entry_return( Entry *e );
109 BI_entry_release_rw bdb_entry_release;
114 void bdb_errcall( const char *pfx, char * msg );
119 int bdb_filter_candidates(
130 BI_acl_group bdb_group;
135 int bdb_id2entry_add(
140 int bdb_id2entry_update(
145 int bdb_id2entry_delete(
158 #define bdb_id2entry_r(be, tid, id, e, locker, lock) bdb_id2entry_rw((be), (tid), (id), (e), 0, locker, lock)
159 #define bdb_id2entry_w(be, tid, id, e, locker, lock) bdb_id2entry_rw((be), (tid), (id), (e), 1, locker, lock)
161 void bdb_entry_free ( Entry *e );
166 unsigned bdb_idl_search( ID *ids, ID id );
173 int bdb_idl_fetch_key(
180 int bdb_idl_insert_key(
187 int bdb_idl_delete_key(
203 bdb_idl_intersection(
212 ID bdb_idl_first( ID *ids, ID *cursor );
213 ID bdb_idl_next( ID *ids, ID *cursor );
220 bdb_index_is_indexed LDAP_P((
222 AttributeDescription *desc ));
225 bdb_index_param LDAP_P((
227 AttributeDescription *desc,
231 struct berval *prefix ));
234 bdb_index_values LDAP_P((
237 AttributeDescription *desc,
242 int bdb_index_entry LDAP_P(( Backend *be, DB_TXN *t,
243 int r, Entry *e, Attribute *ap ));
245 #define bdb_index_entry_add(be,t,e,ap) \
246 bdb_index_entry((be),(t),SLAP_INDEX_ADD_OP,(e),(ap))
247 #define bdb_index_entry_del(be,t,e,ap) \
248 bdb_index_entry((be),(t),SLAP_INDEX_DELETE_OP,(e),(ap))
253 extern struct berval bdb_uuid;
278 int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
279 int bdb_last_id( BackendDB *be, DB_TXN *tid );
284 int bdb_modify_internal(
289 Modifications *modlist,
298 BI_op_extended bdb_exop_passwd;
305 void bdb_cache_entry_commit( Entry *e );
306 void bdb_cache_return_entry_rw( DB_ENV *env, Cache *cache, Entry *e, int rw, DB_LOCK *lock );
307 #define bdb_cache_return_entry_r(env, c, e, l) bdb_cache_return_entry_rw((env), (c), (e), 0, (l))
308 #define bdb_cache_return_entry_w(env, c, e, l) bdb_cache_return_entry_rw((env), (c), (e), 1, (l))
309 void bdb_unlocked_cache_return_entry_rw( Cache *cache, Entry *e, int rw );
310 #define bdb_unlocked_cache_return_entry_r( c, e ) bdb_unlocked_cache_return_entry_rw((c), (e), 0)
311 #define bdb_unlocked_cache_return_entry_w( c, e ) bdb_unlocked_cache_return_entry_rw((c), (e), 1)
312 int bdb_cache_add_entry_rw(
320 int bdb_cache_update_entry(
324 ID bdb_cache_find_entry_ndn2id(
329 Entry* bdb_cache_find_entry_id(
337 int bdb_cache_delete_entry(
341 void bdb_cache_release_all( Cache *cache );
345 #endif /* _PROTO_BDB_H */