1 #ifndef _PROTO_BACK_LDBM
2 #define _PROTO_BACK_LDBM
4 #include <ldap_cdefs.h>
13 Entry *derefAlias_r LDAP_P((
18 char *derefDN LDAP_P((
28 void attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
30 void attr_index_config LDAP_P(( struct ldbminfo *li, char *fname, int lineno,
31 int argc, char **argv, int init ));
37 int cache_add_entry_rw LDAP_P(( struct cache *cache, Entry *e, int rw ));
38 int cache_update_entry LDAP_P(( struct cache *cache, Entry *e ));
39 void cache_return_entry_rw LDAP_P(( struct cache *cache, Entry *e, int rw ));
40 #define cache_return_entry_r(c, e) cache_return_entry_rw((c), (e), 0)
41 #define cache_return_entry_w(c, e) cache_return_entry_rw((c), (e), 1)
43 ID cache_find_entry_dn2id LDAP_P(( Backend *be, struct cache *cache, char *dn ));
44 Entry * cache_find_entry_id LDAP_P(( struct cache *cache, ID id, int rw ));
45 int cache_delete_entry LDAP_P(( struct cache *cache, Entry *e ));
51 struct dbcache * ldbm_cache_open LDAP_P(( Backend *be, char *name, char *suffix,
53 void ldbm_cache_close LDAP_P(( Backend *be, struct dbcache *db ));
54 void ldbm_cache_really_close LDAP_P(( Backend *be, struct dbcache *db ));
55 void ldbm_cache_flush_all LDAP_P(( Backend *be ));
56 Datum ldbm_cache_fetch LDAP_P(( struct dbcache *db, Datum key ));
57 int ldbm_cache_store LDAP_P(( struct dbcache *db, Datum key, Datum data, int flags ));
58 int ldbm_cache_delete LDAP_P(( struct dbcache *db, Datum key ));
64 int dn2id_add LDAP_P(( Backend *be, char *dn, ID id ));
65 ID dn2id LDAP_P(( Backend *be, char *dn ));
66 int dn2id_delete LDAP_P(( Backend *be, char *dn ));
68 Entry * dn2entry_rw LDAP_P(( Backend *be, char *dn, char **matched, int rw ));
69 #define dn2entry_r(be, dn, m) dn2entry_rw((be), (dn), (m), 0)
70 #define dn2entry_w(be, dn, m) dn2entry_rw((be), (dn), (m), 1)
76 ID_BLOCK * filter_candidates LDAP_P(( Backend *be, Filter *f ));
82 int id2children_add LDAP_P(( Backend *be, Entry *p, Entry *e ));
83 int id2children_remove LDAP_P(( Backend *be, Entry *p, Entry *e ));
84 int has_children LDAP_P(( Backend *be, Entry *p ));
90 int id2entry_add LDAP_P(( Backend *be, Entry *e ));
91 int id2entry_delete LDAP_P(( Backend *be, Entry *e ));
93 Entry * id2entry_rw LDAP_P(( Backend *be, ID id, int rw ));
94 #define id2entry_r(be, id) id2entry_rw((be), (id), 0)
95 #define id2entry_w(be, id) id2entry_rw((be), (id), 1)
101 ID_BLOCK * idl_alloc LDAP_P(( unsigned int nids ));
102 ID_BLOCK * idl_allids LDAP_P(( Backend *be ));
103 void idl_free LDAP_P(( ID_BLOCK *idl ));
104 ID_BLOCK * idl_fetch LDAP_P(( Backend *be, struct dbcache *db, Datum key ));
105 int idl_insert_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
106 int idl_insert LDAP_P(( ID_BLOCK **idl, ID id, unsigned int maxids ));
107 int idl_delete_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
108 ID_BLOCK * idl_intersection LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b ));
109 ID_BLOCK * idl_union LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b ));
110 ID_BLOCK * idl_notin LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b ));
111 ID idl_firstid LDAP_P(( ID_BLOCK *idl ));
112 ID idl_nextid LDAP_P(( ID_BLOCK *idl, ID id ));
118 int index_add_entry LDAP_P(( Backend *be, Entry *e ));
119 int index_add_mods LDAP_P(( Backend *be, LDAPModList *ml, ID id ));
120 ID_BLOCK * index_read LDAP_P(( Backend *be, char *type, int indextype, char *val ));
121 int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID id ));
128 /* krbv4_ldap_auth LDAP_P(( Backend *be, struct berval *cred, AUTH_DAT *ad )); */
133 * These prototypes are placed here because they are used by modify and
134 * modify rdn which are implemented in different files.
137 int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
138 int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
139 int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn ));
145 ID next_id LDAP_P(( Backend *be ));
146 void next_id_return LDAP_P(( Backend *be, ID id ));
147 ID next_id_get LDAP_P(( Backend *be ));
148 int next_id_save LDAP_P(( Backend *be ));