2000-06-30 06:02:15 +08:00
|
|
|
/* $OpenLDAP$ */
|
2003-11-27 09:17:14 +08:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
*
|
|
|
|
* Copyright 1998-2003 The OpenLDAP Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
* Public License.
|
|
|
|
*
|
|
|
|
* A copy of this license is available in the file LICENSE in the
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
2000-06-30 06:02:15 +08:00
|
|
|
*/
|
|
|
|
|
2002-01-15 15:29:15 +08:00
|
|
|
#ifndef SLAP_SETS_H_
|
|
|
|
#define SLAP_SETS_H_
|
|
|
|
|
|
|
|
#include <ldap_cdefs.h>
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
2003-04-12 14:56:42 +08:00
|
|
|
typedef struct slap_set_cookie {
|
|
|
|
struct slap_op *op;
|
|
|
|
} SetCookie;
|
|
|
|
|
2000-06-30 06:02:15 +08:00
|
|
|
/* this routine needs to return the bervals instead of
|
|
|
|
* plain strings, since syntax is not known. It should
|
|
|
|
* also return the syntax or some "comparison cookie"
|
|
|
|
* that is used by set_filter.
|
|
|
|
*/
|
2002-01-14 09:43:17 +08:00
|
|
|
typedef BerVarray (SLAP_SET_GATHER)(
|
2003-04-12 14:56:42 +08:00
|
|
|
SetCookie *cookie, struct berval *name, struct berval *attr);
|
2000-06-30 06:02:15 +08:00
|
|
|
|
2003-01-21 04:21:17 +08:00
|
|
|
LDAP_SLAPD_F (long) slap_set_size(BerVarray set);
|
2003-04-12 14:56:42 +08:00
|
|
|
LDAP_SLAPD_F (void) slap_set_dispose(SetCookie *cookie, BerVarray set);
|
2000-06-30 06:02:15 +08:00
|
|
|
|
2003-01-21 04:21:17 +08:00
|
|
|
LDAP_SLAPD_F (int) slap_set_filter(
|
|
|
|
SLAP_SET_GATHER gatherer,
|
2003-04-12 14:56:42 +08:00
|
|
|
SetCookie *cookie, struct berval *filter,
|
2002-01-28 18:11:36 +08:00
|
|
|
struct berval *user, struct berval *this, BerVarray *results);
|
2000-06-30 06:02:15 +08:00
|
|
|
|
2002-01-15 15:29:15 +08:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
2002-01-18 12:50:34 +08:00
|
|
|
#endif
|