33.26. slapi_mods_add_mod_values()

Description

This function appends a new mod to a Slapi_Mods. The mod is constructed from copies of the values of modtype, type and va. Use this function when you have the attribute values to hand as an array of Slapi_Value.

Syntax

#include "slapi-plugin.h"
void slapi_mods_add_mod_values( Slapi_Mods *smods, int modtype, const char *type, Slapi_Value **va );;

Parameters

This function takes the following parameters:

mods
Pointer to an initialized Slapi_Mods.
modtype
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE.
type
The LDAP attribute type.
va
A null-terminated array of Slapi_Value representing the attribute values.
Memory Concerns

This function must not be used on a Slapi_Mods initialized with slapi_mods_add_mod_values().