Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 316

Table of Contents

Advertisement

Functions for Dealing with Filters
Syntax
#include "slapi-plugin.h"
Slapi_Filter *slapi_filter_join( int ftype,
Slapi_Filter *f1, Slapi_Filter *f2 );
Parameters
This function takes the following parameters:
ftype
f1
f2
Returns
This function returns the new filter constructed from the other two filters.
Description
Filters of the type
generally consist of one or more other filters. For example:
(&(ou=Accounting)(l=Sunnyvale))
(|(ou=Accounting)(l=Sunnyvale))
(!(l=Sunnyvale))
Each of these examples contain one or more
Call the
LDAP_FILTER_AND
Memory Concerns
The
f1
resulting filter will have references pointing to these two filters.
slapi_filter_list_first()
(Applies only to filters of the types
LDAP_FILTER_LE
specified filter.
316
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Type of composite filter you want to create.
First filter that you want to join.
Second filter that you want to join. If ftype is
LDAP_FILTER_NOT, specify NULL for this argument.
LDAP_FILTER_AND
slapi_filter_join()
,
LDAP_FILTER_OR
and
filters are neither copied nor freed during the join process, but the
f2
,
LDAP_FILTER_APPROX
,
LDAP_FILTER_OR
LDAP_FILTER_EQUALITY
function to create a new filter of the type
, or
LDAP_FILTER_NOT
LDAP_FILTER_EQUALITY
) Gets the first filter that makes up the
, and
LDAP_FILTER_NOT
filters.
.
,
LDAP_FILTER_GE
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents