Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_mods_add_smod()

Appends a Slapi_Mod to a Slapi_Mods structure.

Syntax

#include "slapi-plugin.h"
void slapi_mods_add_smod(Slapi_Mods *smods, Slapi_Mod *smod);

Parameters

This function takes the following parameters:

smods

Pointer to an initialized Slapi_Mods.

smod

Pointer to a the Slapi_Mod to be appended.

Description

Appends a Slapi_Mod to a Slapi_Mods.

Memory Concerns

Responsibility for the Slapi_Mod is transferred to the Slapi_Mods.

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

See Also

slapi_mods_add()

slapi_mods_add_mod_values()

slapi_mods_add_modbvps()

slapi_mods_add_string()