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

slapi_mods_add_modbvps()

Appends a new mod to a Slapi_Mods structure, with attribute values provided as an array of berval.

Syntax

#include "slapi-plugin.h"
 void slapi_mods_add_modbvps( Slapi_Mods *smods, int modtype,
    const char *type, struct berval **bvps );

Parameters

This function takes the following parameters:

smods

Pointer to an initialized Slapi_Mods.

modtype

One of LDAP_MOD_ADD, LDAP_MOD_DELETE, LDAP_MOD_REPLACE.

type

The LDAP attribute type.

bvps

A NULL terminated array of berval representing the attribute values.

Description

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

Memory Concerns

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

See Also

slapi_mods_add()

slapi_mods_add_ldapmod()

slapi_mods_add_mod_values()

slapi_mods_add_string()