]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldbm/proto-back-ldbm.h
If dn2id returns ID but id2entry returns NULL, log it.
[openldap] / servers / slapd / back-ldbm / proto-back-ldbm.h
1 #ifndef _PROTO_BACK_LDBM
2 #define _PROTO_BACK_LDBM
3
4 #include <ldap_cdefs.h>
5
6 LDAP_BEGIN_DECL
7
8 /*
9  * alias.c
10  */
11 Entry *derefAlias_r LDAP_P((
12         Backend     *be,
13         Connection      *conn,
14         Operation       *op,
15         Entry       *e ));
16 char *derefDN LDAP_P((
17         Backend     *be,
18         Connection  *conn,
19         Operation   *op,
20         char        *dn ));
21
22 /*
23  * attr.c
24  */
25
26 void attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
27  int *syntaxmask ));
28 void attr_index_config LDAP_P(( struct ldbminfo *li, char *fname, int lineno,
29  int argc, char **argv, int init ));
30
31 /*
32  * cache.c
33  */
34
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 ));
42
43 /*
44  * dbcache.c
45  */
46
47 struct dbcache * ldbm_cache_open LDAP_P(( Backend *be, char *name, char *suffix,
48  int flags ));
49 void ldbm_cache_close LDAP_P(( Backend *be, struct dbcache *db ));
50 void ldbm_cache_really_close LDAP_P(( Backend *be, struct dbcache *db ));
51 void ldbm_cache_flush_all LDAP_P(( Backend *be ));
52 Datum ldbm_cache_fetch LDAP_P(( struct dbcache *db, Datum key ));
53 int ldbm_cache_store LDAP_P(( struct dbcache *db, Datum key, Datum data, int flags ));
54 int ldbm_cache_delete LDAP_P(( struct dbcache *db, Datum key ));
55
56 /*
57  * dn2id.c
58  */
59
60 int dn2id_add LDAP_P(( Backend *be, char *dn, ID id ));
61 ID dn2id LDAP_P(( Backend *be, char *dn ));
62 int dn2id_delete LDAP_P(( Backend *be, char *dn ));
63 Entry * dn2entry_r LDAP_P(( Backend *be, char *dn, char **matched ));
64 Entry * dn2entry_w LDAP_P(( Backend *be, char *dn, char **matched ));
65
66 /*
67  * filterindex.c
68  */
69
70 IDList * filter_candidates LDAP_P(( Backend *be, Filter *f ));
71
72 /*
73  * id2children.c
74  */
75
76 int id2children_add LDAP_P(( Backend *be, Entry *p, Entry *e ));
77 int id2children_remove LDAP_P(( Backend *be, Entry *p, Entry *e ));
78 int has_children LDAP_P(( Backend *be, Entry *p ));
79
80 /*
81  * id2entry.c
82  */
83
84 int id2entry_add LDAP_P(( Backend *be, Entry *e ));
85 int id2entry_delete LDAP_P(( Backend *be, Entry *e ));
86 Entry * id2entry LDAP_P(( Backend *be, ID id, int rw )); 
87 Entry * id2entry_r LDAP_P(( Backend *be, ID id ));
88 Entry * id2entry_w LDAP_P(( Backend *be, ID id ));
89
90 /*
91  * idl.c
92  */
93
94 IDList * idl_alloc LDAP_P(( int nids ));
95 IDList * idl_allids LDAP_P(( Backend *be ));
96 void idl_free LDAP_P(( IDList *idl ));
97 IDList * idl_fetch LDAP_P(( Backend *be, struct dbcache *db, Datum key ));
98 int idl_insert_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
99 int idl_insert LDAP_P(( IDList **idl, ID id, int maxids ));
100 int idl_delete_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
101 IDList * idl_intersection LDAP_P(( Backend *be, IDList *a, IDList *b ));
102 IDList * idl_union LDAP_P(( Backend *be, IDList *a, IDList *b ));
103 IDList * idl_notin LDAP_P(( Backend *be, IDList *a, IDList *b ));
104 ID idl_firstid LDAP_P(( IDList *idl ));
105 ID idl_nextid LDAP_P(( IDList *idl, ID id ));
106
107 /*
108  * index.c
109  */
110
111 int index_add_entry LDAP_P(( Backend *be, Entry *e ));
112 int index_add_mods LDAP_P(( Backend *be, LDAPModList *ml, ID id ));
113 IDList * index_read LDAP_P(( Backend *be, char *type, int indextype, char *val ));
114 int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID  id ));
115
116 /*
117  * kerberos.c
118  */
119
120 #ifdef HAVE_KERBEROS
121 /* krbv4_ldap_auth LDAP_P(( Backend *be, struct berval *cred, AUTH_DAT *ad )); */
122 #endif
123
124 /*
125  * nextid.c
126  */
127
128 ID next_id LDAP_P(( Backend *be ));
129 void next_id_return LDAP_P(( Backend *be, ID id ));
130 ID next_id_get LDAP_P(( Backend *be ));
131 int next_id_save LDAP_P(( Backend *be ));
132
133 LDAP_END_DECL
134 #endif