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)
75 int bdb_dn2id_matched(
95 int bdb_dn2id_children(
111 int bdb_entry_return( Entry *e );
112 BI_entry_release_rw bdb_entry_release;
117 void bdb_errcall( const char *pfx, char * msg );
122 int bdb_filter_candidates(
133 BI_acl_group bdb_group;
138 int bdb_id2entry_add(
143 int bdb_id2entry_update(
148 int bdb_id2entry_delete(
161 #define bdb_id2entry_r(be, tid, id, e, locker, lock) bdb_id2entry_rw((be), (tid), (id), (e), 0, locker, lock)
162 #define bdb_id2entry_w(be, tid, id, e, locker, lock) bdb_id2entry_rw((be), (tid), (id), (e), 1, locker, lock)
164 void bdb_entry_free ( Entry *e );
169 unsigned bdb_idl_search( ID *ids, ID id );
176 int bdb_idl_fetch_key(
183 int bdb_idl_insert_key(
190 int bdb_idl_delete_key(
206 bdb_idl_intersection(
215 ID bdb_idl_first( ID *ids, ID *cursor );
216 ID bdb_idl_next( ID *ids, ID *cursor );
223 bdb_index_is_indexed LDAP_P((
225 AttributeDescription *desc ));
228 bdb_index_param LDAP_P((
230 AttributeDescription *desc,
234 struct berval *prefix ));
237 bdb_index_values LDAP_P((
240 AttributeDescription *desc,
245 int bdb_index_entry LDAP_P(( Backend *be, DB_TXN *t,
246 int r, Entry *e, Attribute *ap ));
248 #define bdb_index_entry_add(be,t,e,ap) \
249 bdb_index_entry((be),(t),SLAP_INDEX_ADD_OP,(e),(ap))
250 #define bdb_index_entry_del(be,t,e,ap) \
251 bdb_index_entry((be),(t),SLAP_INDEX_DELETE_OP,(e),(ap))
256 extern struct berval bdb_uuid;
281 int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
282 int bdb_last_id( BackendDB *be, DB_TXN *tid );
287 int bdb_modify_internal(
292 Modifications *modlist,
301 BI_op_extended bdb_exop_passwd;
308 void bdb_cache_entry_commit( Entry *e );
309 void bdb_cache_return_entry_rw( DB_ENV *env, Cache *cache, Entry *e, int rw, DB_LOCK *lock );
310 #define bdb_cache_return_entry_r(env, c, e, l) bdb_cache_return_entry_rw((env), (c), (e), 0, (l))
311 #define bdb_cache_return_entry_w(env, c, e, l) bdb_cache_return_entry_rw((env), (c), (e), 1, (l))
312 void bdb_unlocked_cache_return_entry_rw( Cache *cache, Entry *e, int rw );
313 #define bdb_unlocked_cache_return_entry_r( c, e ) bdb_unlocked_cache_return_entry_rw((c), (e), 0)
314 #define bdb_unlocked_cache_return_entry_w( c, e ) bdb_unlocked_cache_return_entry_rw((c), (e), 1)
315 int bdb_cache_add_entry_rw(
323 int bdb_cache_update_entry(
327 ID bdb_cache_find_entry_ndn2id(
332 Entry* bdb_cache_find_entry_id(
340 int bdb_cache_delete_entry(
344 void bdb_cache_release_all( Cache *cache );
348 #endif /* _PROTO_BDB_H */