Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 312

Table of Contents

Advertisement

Functions for Dealing with Filters
Memory Concerns
The strings within the parameters
inside the
be freed when a server entity calls
Slapi_Filter
See Also
slapi_filter_get_choice()
slapi_filter_get_type()
slapi_filter_get_attribute_type()
slapi_filter_get_choice()
Gets the type of the specified filter (for example,
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_choice( Slapi_Filter *f );
Parameters
This function takes the following parameters:
f
Returns
This function returns one of the following values:
LDAP_FILTER_AND
For example:
LDAP_FILTER_OR
For example:
LDAP_FILTER_NOT
For example:
LDAP_FILTER_EQUALITY
For example:
312
Netscape Directory Server Plug-In Programmer's Guide • May 2002
, and therefore should not be freed after usage. They will
Slapi_Filter
structure.
Filter that you want to get type of.
(AND filter)
(&(ou=Accounting)(l=Sunnyvale))
(OR filter)
(|(ou=Accounting)(l=Sunnyvale))
(NOT filter)
(!(l=Sunnyvale))
(equals filter)
(ou=Accounting)
and
are direct pointers to memory
type
bval
slapi_filter_free()
LDAP_FILTER_EQUALITY
after usage of the
).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents