HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_filter_free( Slapi_Filter *f, int recurse );
Parameters This function takes the following parameters:
Filter that you want to free.
f
If 1, recursively frees all filters that comprise this filter. If 0, only frees the filter specified
by f.
recurse
Memory concerns Filters created using slapi_str2filter() must be freed after using this
function. Filters extracted from a pblock using slapi_pblock_get(
pb,SLAPI_SEARCH_FILTER, &filter ) must not be freed.
See also
“slapi_str2filter()”
“slapi_pblock_get()”
26.5 slapi_filter_get_attribute_type()
Gets the attribute type for all simple filter choices.
Description This function gets the attribute type for all simple filter choices:
LDAP_FILTER_GE
LDAP_FILTER_LE
LDAP_FILTER_APPROX
LDAP_FILTER_EQUALITY
LDAP_FILTER_SUBSTRINGS
LDAP_FILTER_PRESENT
LDAP_FILTER_EXTENDED
LDAP_FILTER_AND
LDAP_FILTER_OR
LDAP_FILTER_NOT
A filter such as (mail-foo), will return the type mail.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_attribute_type( Slapi_Filter *f, char **type );
Parameters This function takes the following parameters:
Filter from which you wish to get the substring values.
f
Pointer to the attribute type of the filter.
type
Returns This function returns the attribute type of the filter.
Memory concerns The attribute type is returned in type and should not be freed after calling
this function. It will be freed at the same time as the Slapi_Filter structure when
slapi_filter_free() is called.
See also
“slapi_filter_get_choice()”
“slapi_filter_get_ava()”
“slapi_filter_get_type()”
“slapi_filter_free()”
26.5 slapi_filter_get_attribute_type() 237