1 #ifndef _PROTO_BACK_BDB2
2 #define _PROTO_BACK_BDB2
4 #include <ldap_cdefs.h>
13 Entry *bdb2i_derefAlias_r LDAP_P((
18 char *bdb2i_derefDN LDAP_P((
28 void bdb2i_attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
30 void bdb2i_attr_index_config LDAP_P(( struct ldbminfo *li, char *fname,
31 int lineno, int argc, char **argv, int init ));
37 void bdb2i_cache_set_state LDAP_P(( struct cache *cache, Entry *e, int state ));
38 void bdb2i_cache_return_entry_r LDAP_P(( struct cache *cache, Entry *e ));
39 void bdb2i_cache_return_entry_w LDAP_P(( struct cache *cache, Entry *e ));
40 int bdb2i_cache_add_entry_lock LDAP_P(( struct cache *cache, Entry *e,
42 ID bdb2i_cache_find_entry_dn2id LDAP_P(( BackendDB *be, struct cache *cache,
44 Entry * bdb2i_cache_find_entry_id LDAP_P(( struct cache *cache, ID id, int rw ));
45 int bdb2i_cache_delete_entry LDAP_P(( struct cache *cache, Entry *e ));
51 struct dbcache * bdb2i_cache_open LDAP_P(( BackendDB *be, char *name, char *suffix,
53 void bdb2i_cache_close LDAP_P(( BackendDB *be, struct dbcache *db ));
54 void bdb2i_cache_really_close LDAP_P(( BackendDB *be, struct dbcache *db ));
55 void bdb2i_cache_flush_all LDAP_P(( BackendDB *be ));
56 Datum bdb2i_cache_fetch LDAP_P(( struct dbcache *db, Datum key ));
57 int bdb2i_cache_store LDAP_P(( struct dbcache *db, Datum key, Datum data, int flags ));
58 int bdb2i_cache_delete LDAP_P(( struct dbcache *db, Datum key ));
64 int bdb2i_dn2id_add LDAP_P(( BackendDB *be, char *dn, ID id ));
65 ID bdb2i_dn2id LDAP_P(( BackendDB *be, char *dn ));
66 int bdb2i_dn2id_delete LDAP_P(( BackendDB *be, char *dn ));
67 Entry * bdb2i_dn2entry_r LDAP_P(( BackendDB *be, char *dn, char **matched ));
68 Entry * bdb2i_dn2entry_w LDAP_P(( BackendDB *be, char *dn, char **matched ));
74 ID_BLOCK * bdb2i_filter_candidates LDAP_P(( BackendDB *be, Filter *f ));
80 int bdb2i_id2children_add LDAP_P(( BackendDB *be, Entry *p, Entry *e ));
81 int bdb2i_id2children_remove LDAP_P(( BackendDB *be, Entry *p, Entry *e ));
82 int bdb2i_has_children LDAP_P(( BackendDB *be, Entry *p ));
88 int bdb2i_id2entry_add LDAP_P(( BackendDB *be, Entry *e ));
89 int bdb2i_id2entry_delete LDAP_P(( BackendDB *be, Entry *e ));
90 Entry * bdb2i_id2entry LDAP_P(( BackendDB *be, ID id, int rw ));
91 Entry * bdb2i_id2entry_r LDAP_P(( BackendDB *be, ID id ));
92 Entry * bdb2i_id2entry_w LDAP_P(( BackendDB *be, ID id ));
98 ID_BLOCK * bdb2i_idl_alloc LDAP_P(( int nids ));
99 ID_BLOCK * bdb2i_idl_allids LDAP_P(( BackendDB *be ));
100 void bdb2i_idl_free LDAP_P(( ID_BLOCK *idl ));
101 ID_BLOCK * bdb2i_idl_fetch LDAP_P(( BackendDB *be, struct dbcache *db, Datum key ));
102 int bdb2i_idl_insert_key LDAP_P(( BackendDB *be, struct dbcache *db, Datum key, ID id ));
103 int bdb2i_idl_insert LDAP_P(( ID_BLOCK **idl, ID id, int maxids ));
104 int bdb2i_idl_delete_key LDAP_P(( BackendDB *be, struct dbcache *db, Datum key, ID id ));
105 ID_BLOCK * bdb2i_idl_intersection LDAP_P(( BackendDB *be, ID_BLOCK *a, ID_BLOCK *b ));
106 ID_BLOCK * bdb2i_idl_union LDAP_P(( BackendDB *be, ID_BLOCK *a, ID_BLOCK *b ));
107 ID_BLOCK * bdb2i_idl_notin LDAP_P(( BackendDB *be, ID_BLOCK *a, ID_BLOCK *b ));
108 ID bdb2i_idl_firstid LDAP_P(( ID_BLOCK *idl ));
109 ID bdb2i_idl_nextid LDAP_P(( ID_BLOCK *idl, ID id ));
115 int bdb2i_index_add_entry LDAP_P(( BackendDB *be, Entry *e ));
116 int bdb2i_index_add_mods LDAP_P(( BackendDB *be, LDAPModList *ml, ID id ));
117 ID_BLOCK * bdb2i_index_read LDAP_P(( BackendDB *be, char *type, int indextype, char *val ));
118 int bdb2i_index_add_values LDAP_P(( BackendDB *be, char *type, struct berval **vals, ID id ));
125 /* bdb2i_krbv4_ldap_auth LDAP_P(( BackendDB *be, struct berval *cred, AUTH_DAT *ad )); */
132 ID bdb2i_next_id LDAP_P(( BackendDB *be ));
133 void bdb2i_next_id_return LDAP_P(( BackendDB *be, ID id ));
134 ID bdb2i_next_id_get LDAP_P(( BackendDB *be ));
135 int bdb2i_next_id_save LDAP_P(( BackendDB *be ));
141 int bdb2i_back_startup LDAP_P(( BackendInfo *bi ));
142 int bdb2i_back_shutdown LDAP_P(( BackendInfo *bi ));
143 int bdb2i_back_db_startup LDAP_P(( BackendDB *be ));
144 int bdb2i_back_db_shutdown LDAP_P(( BackendDB *be ));
150 char *bdb2i_elapsed LDAP_P(( struct timeval firsttime,
151 struct timeval secondtime ));
157 int bdb2i_enter_backend_r LDAP_P(( DB_ENV *dbEnv, DB_LOCK *lock ));
158 int bdb2i_enter_backend_w LDAP_P(( DB_ENV *dbEnv, DB_LOCK *lock ));
159 int bdb2i_leave_backend LDAP_P(( DB_ENV *dbEnv, DB_LOCK lock ));
165 int bdb2i_txn_head_init LDAP_P(( BDB2_TXN_HEAD *head ));
166 void bdb2i_txn_attr_config LDAP_P((
170 int bdb2i_txn_open_files LDAP_P(( struct ldbminfo *li ));
171 void bdb2i_txn_close_files LDAP_P(( BackendDB *be ));
172 BDB2_TXN_FILES *bdb2i_get_db_file_cache LDAP_P((
175 int bdb2i_check_additional_attr_index LDAP_P(( struct ldbminfo *li ));
176 void bdb2i_check_default_attr_index_add LDAP_P((
179 void bdb2i_check_default_attr_index_mod LDAP_P((
181 LDAPModList *modlist ));