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:
f
Filter from which you wish to get the substring values.
type
Pointer to the attribute type of the filter.
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.