Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

New Attribute Handling Functions and Flags (4 to 5.2)

The following table shows new flags defined for use with existing functions for handling attributes.

Table 3–6 New Flags for Handling Attributes

Function 

Flags Added 

slapi_attr_get_flags()

SLAPI_ATTR_FLAG_COLLECTIVE

SLAPI_ATTR_FLAG_NOUSERMOD

SLAPI_ATTR_FLAG_OBSOLETE

SLAPI_ATTR_FLAG_STD_ATTR

slapi_attr_type_cmp()

SLAPI_TYPE_CMP_BASE

SLAPI_TYPE_CMP_EXACT

SLAPI_TYPE_CMP_SUBTYPE

The old flags are still available. Refer to comments in slapi-plugin.h for hints on how to use the flags.

The following functions have been added to handle attributes and their values:

slapi_attr_add_value()
slapi_attr_first_value()
slapi_attr_get_numvalues()
slapi_attr_get_valueset()
slapi_attr_init()
slapi_attr_next_value()
slapi_attr_set_valueset()
slapi_attr_syntax_normalize()
slapi_attr_types_equivalent()