]> git.sur5r.net Git - openldap/blob - servers/slapd/proto-slap.h
merge with main branch
[openldap] / servers / slapd / proto-slap.h
1 #ifndef _PROTO_SLAP
2 #define _PROTO_SLAP
3
4 #include <ldap_cdefs.h>
5
6 /*
7  * acl.c
8  */
9
10 int access_allowed LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
11         char *attr, struct berval *val, char *dn, int  access ));
12
13 struct acl * acl_get_applicable LDAP_P(( Backend *be, Operation *op, Entry *e,
14         char *attr, char *edn, int nmatches, regmatch_t *matches ));
15 int acl_access_allowed LDAP_P(( struct acl *a, Backend *be, Connection *conn, Entry *e,
16         struct berval *val, Operation *op, int  access, char *edn,
17         regmatch_t *matches ));
18
19 int acl_check_mods LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
20         LDAPMod *mods ));
21
22 /*
23  * aclparse.c
24  */
25
26 void parse_acl LDAP_P(( Backend *be, char *fname, int lineno, int argc, char **argv ));
27 char * access2str LDAP_P(( int access ));
28 int str2access LDAP_P(( char *str ));
29
30 /*
31  * attr.c
32  */
33
34 void attr_free LDAP_P(( Attribute *a ));
35 char * attr_normalize LDAP_P(( char *s ));
36 int attr_merge_fast LDAP_P(( Entry *e, char *type, struct berval **vals, int  nvals,
37         int  naddvals, int  *maxvals, Attribute ***a ));
38 int attr_merge LDAP_P(( Entry *e, char *type, struct berval **vals ));
39 Attribute * attr_find LDAP_P(( Attribute *a, char *type ));
40 int attr_delete LDAP_P(( Attribute **attrs, char *type ));
41 int attr_syntax LDAP_P(( char *type ));
42 void attr_syntax_config LDAP_P(( char *fname, int lineno, int argc, char **argv ));
43
44 /*
45  * ava.c
46  */
47
48 int get_ava LDAP_P(( BerElement *ber, Ava *ava ));
49 void ava_free LDAP_P(( Ava *ava, int freeit ));
50
51 /*
52  * backend.c
53  */
54
55 Backend * new_backend LDAP_P(( char *type ));
56 Backend * select_backend LDAP_P(( char * dn ));
57 int be_issuffix LDAP_P(( Backend *be, char *suffix ));
58 int be_isroot LDAP_P(( Backend *be, char *dn ));
59 int be_isroot_pw LDAP_P(( Backend *be, char *dn, struct berval *cred ));
60 void be_close LDAP_P(());
61
62 /*
63  * ch_malloc.c
64  */
65
66 char * ch_malloc LDAP_P(( unsigned long size ));
67 char * ch_realloc LDAP_P(( char *block, unsigned long size ));
68 char * ch_calloc LDAP_P(( unsigned long nelem, unsigned long size ));
69
70 /*
71  * charray.c
72  */
73
74 void charray_add LDAP_P(( char ***a, char *s ));
75 void charray_merge LDAP_P(( char ***a, char **s ));
76 void charray_free LDAP_P(( char **array ));
77 int charray_inlist LDAP_P(( char **a, char *s ));
78 char ** charray_dup LDAP_P(( char **a ));
79 char ** str2charray LDAP_P(( char *str, char *brkstr ));
80
81 /*
82  * config.c
83  */
84
85 void read_config LDAP_P(( char *fname, Backend **bep, FILE *pfp ));
86
87 /*
88  * connection.c
89  */
90
91 void connection_activity LDAP_P(( Connection *conn ));
92
93 /*
94  * dn.c
95  */
96
97 char * dn_normalize LDAP_P(( char *dn ));
98 char * dn_normalize_case LDAP_P(( char *dn ));
99 char * dn_parent LDAP_P(( Backend *be, char *dn ));
100 int dn_issuffix LDAP_P(( char *dn, char *suffix ));
101 int dn_type LDAP_P(( char *dn ));
102 char * dn_upcase LDAP_P(( char *dn ));
103
104 /*
105  * entry.c
106  */
107
108 Entry * str2entry LDAP_P(( char *s ));
109 char * entry2str LDAP_P(( Entry *e, int *len, int printid ));
110 void entry_free LDAP_P(( Entry *e ));
111
112 int entry_rdwr_lock LDAP_P(( Entry *e, int rw ));
113 int entry_rdwr_rlock LDAP_P(( Entry *e ));
114 int entry_rdwr_wlock LDAP_P(( Entry *e ));
115 int entry_rdwr_unlock LDAP_P(( Entry *e, int rw ));
116 int entry_rdwr_runlock LDAP_P(( Entry *e ));
117 int entry_rdwr_wunlock LDAP_P(( Entry *e ));
118 int entry_rdwr_init LDAP_P(( Entry *e ));
119
120 /*
121  * filter.c
122  */
123
124 int get_filter LDAP_P(( Connection *conn, BerElement *ber, Filter **filt, char **fstr ));
125 void filter_free LDAP_P(( Filter *f ));
126 void filter_print LDAP_P(( Filter *f ));
127
128 /*
129  * filterentry.c
130  */
131
132 int test_filter LDAP_P(( Backend *be, Connection *conn, Operation *op, Entry *e,
133         Filter  *f ));
134
135 /*
136  * lock.c
137  */
138
139 FILE * lock_fopen LDAP_P(( char *fname, char *type, FILE **lfp ));
140 int lock_fclose LDAP_P(( FILE *fp, FILE *lfp ));
141
142 /*
143  * monitor.c
144  */
145
146 void monitor_info LDAP_P(( Connection *conn, Operation *op ));
147
148 /*
149  * operation.c
150  */
151
152 void op_free LDAP_P(( Operation *op ));
153 Operation * op_add LDAP_P(( Operation **olist, BerElement *ber, unsigned long msgid,
154         unsigned long tag, char *dn, int id, int connid ));
155 void op_delete LDAP_P(( Operation **olist, Operation *op ));
156
157 /*
158  * phonetic.c
159  */
160
161 char * first_word LDAP_P(( char *s ));
162 char * next_word LDAP_P(( char *s ));
163 char * word_dup LDAP_P(( char *w ));
164 char * phonetic LDAP_P(( char *s ));
165
166 /*
167  * repl.c
168  */
169
170 void replog LDAP_P(( Backend *be, int optype, char *dn, void *change, int flag ));
171
172 /*
173  * result.c
174  */
175
176 void send_ldap_result LDAP_P(( Connection *conn, Operation *op, int err, char *matched,
177         char *text ));
178 void send_ldap_search_result LDAP_P(( Connection *conn, Operation *op, int err,
179         char *matched, char *text, int nentries ));
180 void close_connection LDAP_P(( Connection *conn, int opconnid, int opid ));
181
182 /*
183  * schema.c
184  */
185
186 int oc_schema_check LDAP_P(( Entry *e ));
187
188 /*
189  * schemaparse.c
190  */
191
192 void parse_oc LDAP_P(( Backend *be, char *fname, int lineno, int argc, char **argv ));
193
194 /*
195  * str2filter.c
196  */
197
198 Filter * str2filter LDAP_P(( char *str ));
199
200 /*
201  * value.c
202  */
203
204 int value_add_fast LDAP_P(( struct berval ***vals, struct berval **addvals, int nvals,
205         int naddvals, int *maxvals ));
206 int value_add LDAP_P(( struct berval ***vals, struct berval **addvals ));
207 void value_normalize LDAP_P(( char *s, int syntax ));
208 int value_cmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax,
209         int normalize ));
210 int value_ncmp LDAP_P(( struct berval *v1, struct berval *v2, int syntax, int len,
211         int normalize ));
212 int value_find LDAP_P(( struct berval **vals, struct berval *v, int syntax,
213         int normalize ));
214
215 /*
216  * suffixAlias.c
217  */
218 char *suffixAlias LDAP_P(( char *dn, Operation *op, Backend *be ));
219
220 #endif /* _proto_slap */