Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 416

Table of Contents

Advertisement

Functions for LDAPMod Manipulation
Description
This function inserts an
(zero) refers to the first s
(determined by
above the specified position are moved up by one, and the given position refers to
the newly inserted
mod.
Memory Concerns
Responsibility for the s
See Also
slapi_mods_insert_at()
slapi_mods_add_ldapmod()
slapi_mods_insert_smod_before()
Inserts an
Syntax
#include "slapi-plugin.h"
void slapi_mods_insert_smod_before(Slapi_Mods *smods,
Slapi_Mod *smod);
Parameters
This function takes the following parameters:
smods
smod
Description
This function inserts an
Slapi_Mods
Memory Concerns
The
Slapi_Mod
Slapi_Mod
responsibility for the
416
Netscape Directory Server Plug-In Programmer's Guide • August 2002
at a given position
smod
. A position equal to the current number of
mod
slapi_mods_get_num_mods()
. Shift everything down to make room to insert the new
smod
is transferred to the
mod
adds to the end of all mods.
before a
smod
Slapi_Mods
Pointer to an initialized Slapi_Mods.
Pointer to the Slapi_Mod to be inserted.
immediately before the current position of the
smod
iterator. The iterator position is unchanged.
argument
smod
(
) is passed into the
smods
is transferred to the
smod
in
pos
causes an
Slapi_Mods
structure.
is not duplicated or copied but the reference of the
(
Slapi_Mods
smods
Slapi_Mods
. Position 0
Slapi_Mods
smods
at and
append. smod
.
) structure.The
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents