Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 307

Table of Contents

Advertisement

Syntax
#include "slapi-plugin.h"
int slapi_filter_apply( struct slapi_filter *f, FILTER_APPLY_FN fn,
void *arg, int *error_code );
Parameters
This function takes the following parameters:
f
fn
arg
error_code
Returns
This function returns an integer. Possible return values for
include:
SLAPI_FILTER_SCAN_NOMORE
SLAPI_FILTER_SCAN_STOP
SLAPI_FILTER_SCAN_CONTINUE
SLAPI_FILTER_SCAN_ERROR
scan is aborted. In this case
currently, the only error is
slapi_filter_compare()
Determines if two filters are identical.
Syntax
#include "slapi-plugin.h"
int slapi_filter_compare(struct slapi_filter *f1,
struct slapi_filter *f2);
Filter on which the function is to be applied.
Function to apply.
Argument to the function (fn).
Pointer to error code of
calling function. Possible values
may set in
error_code
SLAPI_FILTER_UNKNOWN_FILTER_TYPE
should return
FILTER_APPLY_FN
only.
(Indicates success in traversing the entire filter)
(Indicates premature abort)
(Indicates continue scanning)
(Indicates an occurred during the traverse and the
error_code
SLAPI_FILTER_UNKNOWN_FILTER_TYPE
Functions for Dealing with Filters
, which can be accessed by
fn
slapi_filter_apply()
include
. Note that a
or
_STOP
slapi_filter_apply()
can be checked for more details;
Chapter 14
Function Reference
_CONTINUE
.)
307

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents