Complete Contents
Getting Started
Chapter 1 Understanding Server Plug-Ins
Chapter 2 Writing and Compiling Plug-Ins
Chapter 3 Calling the Front-End API Functions
Chapter 4 Quick Start
Chapter 5 Writing Database Plug-Ins
Chapter 6 Writing Pre/Post-Operation Plug-Ins
Chapter 7 Defining Functions for LDAP Operations
Chapter 8 Defining Functions for Database Operations
Chapter 9 Defining Functions for Authentication
Chapter 10 Writing Entry Store/Fetch Plug-Ins
Chapter 11 Writing Extended Operation Plug-Ins
Chapter 12 Writing Matching Rule Plug-Ins
Chapter 13 Data Type and Structure Reference
Chapter 14 Function Reference
Chapter 15 Parameter Reference
Glossary
Previous Next Contents Bookshelf Datatypes List



 Slapi_Filter
Represents a search filter.

Syntax

typedef struct slapi_filter Slapi_Filter;

Description

Slapi_Filter is the data type for an opaque structure that represents an search filter. (For more information on working with search filters, see "Working with Search Filters" on page  56.)

The following table summarizes the front-end API functions that you can call to work with attributes.
To do this...
Call this function
Determine if an entry matches a filter's criteria
slapi_filter_test()

Get the filter type
slapi_filter_get_choice()

Get the attribute type and value used for comparison in a filter (only applicable to LDAP_FILTER_EQUALITY, LDAP_FILTER_GE, LDAP_FILTER_LE, and LDAP_FILTER_APPROX searches)
slapi_filter_get_ava()

Get the type of attribute that the filter is searching for (only applicable to LDAP_FILTER_PRESENT searches)
slapi_filter_get_type()

Get the substring pattern used for the filter (applicable only to LDAP_FILTER_SUBSTRING searches)
slapi_filter_get_subfilt()

Convert a string representation of a filter to a filter of the datatype Slapi_Filter
slapi_str2filter()

Construct a new LDAP_FILTER_AND, LDAP_FILTER_OR, or LDAP_FILTER_NOT filter from other filters
slapi_filter_join()

Get the components of a filter (only applicable to LDAP_FILTER_AND, LDAP_FILTER_OR, and LDAP_FILTER_NOT searches)
slapi_filter_list_first(), slapi_filter_list_next()

Free a filter from memory
slapi_filter_free()

 

© Copyright 1998 Netscape Communications Corporation