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,
62 u_int32_t locker, DB_LOCK *lock));
63 #define bdb_dn2entry_r(be, tid, dn, e, m, f, locker, lock) \
64 bdb_dn2entry_rw((be), (tid), (dn), (e), (m), (f), 0, locker, lock)
65 #define bdb_dn2entry_w(be, tid, dn, e, m, f, locker, lock) \
66 bdb_dn2entry_rw((be), (tid), (dn), (e), (m), (f), 1, locker, lock)
78 int bdb_dn2id_matched(
98 int bdb_dn2id_children(
114 int bdb_entry_return( Entry *e );
115 BI_entry_release_rw bdb_entry_release;
120 void bdb_errcall( const char *pfx, char * msg );
125 int bdb_filter_candidates(
136 BI_acl_group bdb_group;
141 int bdb_id2entry_add(
146 int bdb_id2entry_update(
151 int bdb_id2entry_delete(
164 #define bdb_id2entry_r(be, tid, id, e, locker, lock) \
165 bdb_id2entry_rw((be), (tid), (id), (e), 0, locker, lock)
166 #define bdb_id2entry_w(be, tid, id, e, locker, lock) \
167 bdb_id2entry_rw((be), (tid), (id), (e), 1, locker, lock)
169 void bdb_entry_free ( Entry *e );
174 unsigned bdb_idl_search( ID *ids, ID id );
181 int bdb_idl_fetch_key(
188 int bdb_idl_insert_key(
195 int bdb_idl_delete_key(
211 bdb_idl_intersection(
220 ID bdb_idl_first( ID *ids, ID *cursor );
221 ID bdb_idl_next( ID *ids, ID *cursor );
228 bdb_index_is_indexed LDAP_P((
230 AttributeDescription *desc ));
233 bdb_index_param LDAP_P((
235 AttributeDescription *desc,
239 struct berval *prefix ));
242 bdb_index_values LDAP_P((
245 AttributeDescription *desc,
250 int bdb_index_entry LDAP_P(( Backend *be, DB_TXN *t,
251 int r, Entry *e, Attribute *ap ));
253 #define bdb_index_entry_add(be,t,e,ap) \
254 bdb_index_entry((be),(t),SLAP_INDEX_ADD_OP,(e),(ap))
255 #define bdb_index_entry_del(be,t,e,ap) \
256 bdb_index_entry((be),(t),SLAP_INDEX_DELETE_OP,(e),(ap))
261 extern struct berval bdb_uuid;
286 int bdb_next_id( BackendDB *be, DB_TXN *tid, ID *id );
287 int bdb_last_id( BackendDB *be, DB_TXN *tid );
292 int bdb_modify_internal(
297 Modifications *modlist,
312 int *hasSubordinates );
317 BI_op_extended bdb_exop_passwd;
324 void bdb_cache_entry_commit( Entry *e );
325 void bdb_cache_return_entry_rw( DB_ENV *env, Cache *cache, Entry *e,
326 int rw, DB_LOCK *lock );
327 #define bdb_cache_return_entry_r(env, c, e, l) \
328 bdb_cache_return_entry_rw((env), (c), (e), 0, (l))
329 #define bdb_cache_return_entry_w(env, c, e, l) \
330 bdb_cache_return_entry_rw((env), (c), (e), 1, (l))
331 void bdb_unlocked_cache_return_entry_rw( Cache *cache, Entry *e, int rw );
332 #define bdb_unlocked_cache_return_entry_r( c, e ) \
333 bdb_unlocked_cache_return_entry_rw((c), (e), 0)
334 #define bdb_unlocked_cache_return_entry_w( c, e ) \
335 bdb_unlocked_cache_return_entry_rw((c), (e), 1)
336 int bdb_cache_add_entry_rw(
344 int bdb_cache_update_entry(
348 ID bdb_cache_find_entry_ndn2id(
353 Entry* bdb_cache_find_entry_id(
361 int bdb_cache_delete_entry(
365 void bdb_cache_release_all( Cache *cache );
367 #ifdef BDB_REUSE_LOCKERS
369 int bdb_locker_id( Operation *op, DB_ENV *env, int *locker );
374 char *ebcdic_dberror( int rc );
376 #define db_strerror(x) ebcdic_dberror(x)
381 #endif /* _PROTO_BDB_H */