Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 414

Table of Contents

Advertisement

Functions for LDAPMod Manipulation
slapi_mods_insert_at()
Inserts an
Syntax
#include "slapi-plugin.h"
void slapi_mods_insert_at(Slapi_Mods *smods, LDAPMod *mod, int pos);
Parameters
This function takes the following parameters:
smods
mod
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
must not be used on a
See Also
slapi_mods_insert_at()
slapi_mods_add_ldapmod()
slapi_mods_insert_before()
Inserts an
Syntax
#include "slapi-plugin.h"
void slapi_mods_insert_before(Slapi_Mods *smods, LDAPMod *mod);
414
Netscape Directory Server Plug-In Programmer's Guide • August 2002
at position
smod
pos
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.
LDAPMod
. A position equal to the current number of mods
mod
slapi_mods_get_num_mods()
. Shifts everything down to make room to insert the new
mod
LDAPMod
Slapi_Mods
adds to the end of all
into a
LDAPMod
Slapi_Mods
in a
structure.
Slapi_Mods
at a given position
) causes an append.
is transferred to the
Slapi_Mods
initialized with
slapi_mods_init_byref()
mods
structure before the current iterator position.
in
. Position 0
pos
Slapi_Mods
at and
mods
. This function
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents