]> git.sur5r.net Git - openldap/blob - servers/slapd/sets.h
Experimental cruft to propagate valid Operation to SASL callbacks.
[openldap] / servers / slapd / sets.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 2000-2002 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 /* this routine needs to return the bervals instead of
15  * plain strings, since syntax is not known.  It should
16  * also return the syntax or some "comparison cookie"
17  * that is used by set_filter.
18  */
19 typedef BerVarray (SLAP_SET_GATHER)(
20         void *cookie, struct berval *name, struct berval *attr);
21
22 LDAP_SLAPD_F (long) slap_set_size (BerVarray set);
23 LDAP_SLAPD_F (void) slap_set_dispose (BerVarray set);
24
25 LDAP_SLAPD_F (int)
26 slap_set_filter (SLAP_SET_GATHER gatherer,
27         void *cookie, struct berval *filter,
28         struct berval *user, struct berval *this, BerVarray *results);
29
30 LDAP_END_DECL
31
32 #endif