HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
26 Functions for dealing with filters
This chapter contains reference information on filter routines.
Table 26-1 Filter routines
DescriptionFunction
Applies a function to each simple filter component within a complex filter.“slapi_filter_apply()”
Determines if two filters are identical.“slapi_filter_compare()”
Duplicates the specified filter.“slapi_filter_dup()”
Frees the specified filter.“slapi_filter_free()”
Gets the attribute type for all simple filter choices.“slapi_filter_get_attribute_type()”
Gets the attribute type and the value from the filter.“slapi_filter_get_ava()”
Gets the type of the specified filter.“slapi_filter_get_choice()”
Gets the substring values from the filter.“slapi_filter_get_subfilt()”
Gets the attribute type specified in the filter.“slapi_filter_get_type()”
Joins two specified filters.“slapi_filter_join()”
Recursively joins two specified filters.“slapi_filter_join_ex()”
Gets the first filter that makes up the specified filter.“slapi_filter_list_first()”
Gets the next filter.“slapi_filter_list_next()”
Determines if the specified entry matches a particular filter.“slapi_filter_test()”
Determines if an entry matches a given filter.“slapi_filter_test_ext()”
Determines if an entry matches a filter.“slapi_filter_test_simple()”
Finds the matching right parentheses in a string, corresponding to the left
parenthesis to which the string currently points.
“slapi_find_matching_paren()”
Converts a string description of a search filter into a filter of the
Slapi_Filter type.
“slapi_str2filter()”
Tests a filter against a single entry.“slapi_vattr_filter_test()”
26.1 slapi_filter_apply()
Applies a function to each simple filter component within a complex filter; a simple filter is
anything other than AND, OR, or NOT.
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:
Filter on which the function is to be applied.
f
Function to apply.
fn
26.1 slapi_filter_apply() 235