33.25. slapi_mods_add_ldapmod()

Description

Appends an LDAPMod to a Slapi_Mods.

Syntax

#include "slapi-plugin.h"
void slapi_mods_add_ldapmod(Slapi_Mods *smods, LDAPMod *mod);

Parameters

This function takes the following parameters:

mods
Pointer to an initialized Slapi_Mods.
mod
Pointer to a the LDAPMod to be appended.
Memory Concerns

Responsibility for the LDAPMod is transferred to the Slapi_Mods. This function must not be used on a Slapi_Mods initialized with slapi_mods_init_byref().