Functions for Dealing with Filters
arg
error_code
Returns
This function returns an integer. Possible return values for
slapi_filter_apply()
•
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);
Parameters
This function takes the following parameters:
f1
f2
Returns
This function returns one of the following values:
360
Netscape Directory Server Plug-in Programmer's Guide • October 2004
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.
include:
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
First filter to compare.
Second filter to compare.
, which can be accessed by
fn
slapi_filter_apply()
include
. A
or
_STOP
_CONTINUE
can be checked for more details;
.
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers