slapi_filter_list_next()
slapi_filter_list_next() gets the next
filter (following fprev) that makes up the specified
filter f. It applies only to filters of the types LDAP_FILTER_EQUALITY, LDAP_FILTER_GE, LDAP_FILTER_LE,
and LDAP_FILTER_APPROX.
These filter types generally consist of one or more other
filters. For example, if the filter is:
(&(ou=Accounting)(l=Sunnyvale)) the
next filter after (ou=Accounting) in this list is: (l=Sunnyvale)Use
the slapi_filter_list_first() function to get the
first filter in the list. To iterate through all filters that make
up a specified filter, call the slapi_filter_list_first() function
and then call slapi_filter_list_next().- Syntax
#include "slapi-plugin.h" Slapi_Filter *slapi_filter_list_next( Slapi_Filter *f, Slapi_Filter *fprev );- Parameters
-
- f
- The filter from which you want to get the next component (after
fprev). - fprev
- A filter within the filter that is specified by the f parameter.
- Returns
- The next filter (after fprev) that makes up the filter that is specified by the f parameter is returned.