]> git.sur5r.net Git - openldap/blob - servers/slapd/sets.h
filter_candidate tweaks, search_stack tweaks
[openldap] / servers / slapd / sets.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 2000-2003 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6
7 #ifndef SLAP_SETS_H_
8 #define SLAP_SETS_H_
9
10 #include <ldap_cdefs.h>
11
12 LDAP_BEGIN_DECL
13
14 typedef struct slap_set_cookie {
15         struct slap_op *op;
16 } SetCookie;
17
18 /* this routine needs to return the bervals instead of
19  * plain strings, since syntax is not known.  It should
20  * also return the syntax or some "comparison cookie"
21  * that is used by set_filter.
22  */
23 typedef BerVarray (SLAP_SET_GATHER)(
24         SetCookie *cookie, struct berval *name, struct berval *attr);
25
26 LDAP_SLAPD_F (long) slap_set_size(BerVarray set);
27 LDAP_SLAPD_F (void) slap_set_dispose(SetCookie *cookie, BerVarray set);
28
29 LDAP_SLAPD_F (int) slap_set_filter(
30         SLAP_SET_GATHER gatherer,
31         SetCookie *cookie, struct berval *filter,
32         struct berval *user, struct berval *this, BerVarray *results);
33
34 LDAP_END_DECL
35
36 #endif