Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 357

Table of Contents

Advertisement

slapi_filter_get_type()
(Applies only to filters of the type
specified in the filter.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_type( Slapi_Filter *f, char **type );
Parameters
This function takes the following parameters:
f
type
Returns
This function returns one of the following values:
0 if successful.
-1 if the filter is not one of the types listed above.
Description
Filters of the type
attribute is assigned a value. For example:
(mail=*)
This filter finds entries that have a value assigned to the
Call this function to get the attribute type from this filter. In the case of the example
above, calling this function gets the attribute type
Memory Concerns
The string returned in the parameter type must not be freed after calling this
function. It will be freed when the structure
slapi_filter_free()
See Also
slapi_filter_get_attribute_type()
slapi_filter_get_ava()
slapi_filter_get_choice()
LDAP_FILTER_PRESENT
Filter that you want to get the substring values from.
Pointer to the attribute type of the filter.
LDAP_FILTER_PRESENT
.
Functions for Dealing with Filters
) Gets the attribute type
generally determine if a specified
attribute.
mail
.
mail
is freed by calling
Slapi_Filter
Chapter 15
Function Reference
357

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents