24.7. slapi_entry_add_valueset()

Description

This function adds a set of values to an attribute in an entry. The values added are in the form of a Slapi_ValueSet data type. If the entry does not contain the attribute specified, it is created with the specified Slapi_ValueSet value.

Syntax

#include "slapi-plugin.h"
int slapi_entry_add_valueset(Slapi_Entry *e, const char *type, Slapi_ValueSet *vs);

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.
vs
Slapi_ValueSet data value that you want to add to the entry.
Returns

This function returns 0 when successful; any other value returned signals failure.

Memory Concerns

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