Functions for Dealing with Filters
slapi_filter_free()
Frees the specified filter and (optionally) the set of filters that comprise it (for
example, the set of filters in an
Syntax
#include "slapi-plugin.h"
void slapi_filter_free( Slapi_Filter *f, int recurse );
Parameters
This function takes the following parameters:
f
recurse
Description
This function frees the filter in parameter
Memory Concerns
Filters created using
Filters extracted from a pblock using
pb,SLAPI_SEARCH_FILTER, &filter )
See Also
slapi_str2filter()
slapi_pblock_get()
slapi_filter_get_attribute_type()
Gets the attribute type for all simple filter choices.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_attribute_type( Slapi_Filter *f, char **type );
308
Netscape Directory Server Plug-In Programmer's Guide • January 2002
LDAP_FILTER_AND
Filter that you want to free.
If 1, recursively frees all filters that comprise this filter. If 0, only
frees the filter specified by f.
slapi_str2filter()
slapi_pblock_get(
must not be freed.
type filter).
.
f
must be freed after using this function.
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN and is the answer not in the manual?
Questions and answers