Functions for LDAPMod Manipulation
smods
smod
pos
Description
This function inserts an
(zero) refers to the first
(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
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
426
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Pointer to an initialized Slapi_Mods.
Pointer to the LDAPMod to be inserted.
Position at which to insert the new mod. Minimum value is 0.
Maximum value is the current number of mods.
at a given position
smod
. A position equal to the current number of
smod
slapi_mods_get_num_mods()
. Shift everything down to make room to insert the new
smod
is transferred to the
smod
adds to the end of all
before a
smod
Slapi_Mods
Pointer to an initialized Slapi_Mods.
Pointer to the Slapi_Mod to be inserted.
in
pos
Slapi_Mods
causes an append
Slapi_Mods
.
mods
structure.
. Position
0
smods
at and
smod
.
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers