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

slapi_entry_add_values_sv()

Adds an array of Slapi_Value data values to the specified attribute in an entry.

Syntax

#include "slapi-plugin.h"
 int slapi_entry_add_values_sv( Slapi_Entry *e, const char *type,
    Slapi_Value **vals );

Parameters

This function takes the following parameters:

e

Entry to which you want to add values.

type

Attribute type to which you want to add values.

vals

Array of Slapi_Value data values that you want to add.

Returns

Returns one of the following values:

Description

This function adds an array of Slapi_Value data values to an attribute. If the attribute does not exist, it is created and given the value contained in the Slapi_Value array.

This function replaces the deprecated slapi_entry_add_values() function. This function uses Slapi_Value attribute values instead of the berval attribute values.

Memory Concerns

This routine makes a copy of the parameter vals. vals can be NULL.