33.47. slapi_mods_insert_smod_before()

Description

This function inserts an smod immediately before the current position of the Slapi_Mods iterator. The iterator position is unchanged.

Syntax

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

Parameters

This function takes the following parameters:

mods
Pointer to an initialized Slapi_Mods.
smod
Pointer to the Slapi_Mod to be inserted.
Memory Concerns

The Slapi_Mod argument smod is not duplicated or copied, but the reference of the Slapi_Mod(smods) is passed into the Slapi_Mods(smods) structure. The responsibility for the smod is transferred to the Slapi_Mods.