1 #ifndef _PROTO_BACK_LDBM
2 #define _PROTO_BACK_LDBM
4 #include <ldap_cdefs.h>
11 Entry *derefAlias_r LDAP_P((
16 char *derefDN LDAP_P((
26 void attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
28 void attr_index_config LDAP_P(( struct ldbminfo *li, char *fname, int lineno,
29 int argc, char **argv, int init ));
35 void cache_set_state LDAP_P(( struct cache *cache, Entry *e, int state ));
36 void cache_return_entry_r LDAP_P(( struct cache *cache, Entry *e ));
37 void cache_return_entry_w LDAP_P(( struct cache *cache, Entry *e ));
38 int cache_add_entry_lock LDAP_P(( struct cache *cache, Entry *e, int state ));
39 ID cache_find_entry_dn2id LDAP_P(( Backend *be, struct cache *cache, char *dn ));
40 Entry * cache_find_entry_id LDAP_P(( struct cache *cache, ID id, int rw ));
41 int cache_delete_entry LDAP_P(( struct cache *cache, Entry *e ));
47 struct dbcache * ldbm_cache_open LDAP_P(( Backend *be, char *name, char *suffix,
49 void ldbm_cache_close LDAP_P(( Backend *be, struct dbcache *db ));
50 void ldbm_cache_flush_all LDAP_P(( Backend *be ));
51 Datum ldbm_cache_fetch LDAP_P(( struct dbcache *db, Datum key ));
52 int ldbm_cache_store LDAP_P(( struct dbcache *db, Datum key, Datum data, int flags ));
53 int ldbm_cache_delete LDAP_P(( struct dbcache *db, Datum key ));
59 int dn2id_add LDAP_P(( Backend *be, char *dn, ID id ));
60 ID dn2id LDAP_P(( Backend *be, char *dn ));
61 int dn2id_delete LDAP_P(( Backend *be, char *dn ));
62 Entry * dn2entry_r LDAP_P(( Backend *be, char *dn, char **matched ));
63 Entry * dn2entry_w LDAP_P(( Backend *be, char *dn, char **matched ));
69 IDList * filter_candidates LDAP_P(( Backend *be, Filter *f ));
75 int id2children_add LDAP_P(( Backend *be, Entry *p, Entry *e ));
76 int has_children LDAP_P(( Backend *be, Entry *p ));
82 int id2entry_add LDAP_P(( Backend *be, Entry *e ));
83 int id2entry_delete LDAP_P(( Backend *be, Entry *e ));
84 Entry * id2entry LDAP_P(( Backend *be, ID id, int rw ));
85 Entry * id2entry_r LDAP_P(( Backend *be, ID id ));
86 Entry * id2entry_w LDAP_P(( Backend *be, ID id ));
92 IDList * idl_alloc LDAP_P(( int nids ));
93 IDList * idl_allids LDAP_P(( Backend *be ));
94 void idl_free LDAP_P(( IDList *idl ));
95 IDList * idl_fetch LDAP_P(( Backend *be, struct dbcache *db, Datum key ));
96 int idl_insert_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
97 int idl_insert LDAP_P(( IDList **idl, ID id, int maxids ));
98 IDList * idl_intersection LDAP_P(( Backend *be, IDList *a, IDList *b ));
99 IDList * idl_union LDAP_P(( Backend *be, IDList *a, IDList *b ));
100 IDList * idl_notin LDAP_P(( Backend *be, IDList *a, IDList *b ));
101 ID idl_firstid LDAP_P(( IDList *idl ));
102 ID idl_nextid LDAP_P(( IDList *idl, ID id ));
108 int index_add_entry LDAP_P(( Backend *be, Entry *e ));
109 int index_add_mods LDAP_P(( Backend *be, LDAPMod *mods, ID id ));
110 IDList * index_read LDAP_P(( Backend *be, char *type, int indextype, char *val ));
111 int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID id ));
118 /* krbv4_ldap_auth LDAP_P(( Backend *be, struct berval *cred, AUTH_DAT *ad )); */
125 ID next_id LDAP_P(( Backend *be ));
126 void next_id_return LDAP_P(( Backend *be, ID id ));
127 ID next_id_get LDAP_P(( Backend *be ));