Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 370

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
an append.
given position refers to the newly inserted
Memory Concerns
Responsibility for the
must not be used on a
slapi_mods_insert_before()
Inserts an
Syntax
#include "slapi-plugin.h"
void slapi_mods_insert_before(Slapi_Mods *smods, LDAPMod *mod);
Parameters
This function takes the following parameters:
smods
370
Netscape Directory Server Plug-In Programmer's Guide • May 2002
anywhere in a
LDAPMod
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 causes
mod
at and above the specified position are moved up by one, and the
mods
LDAPMod
Slapi_Mods
into a
LDAPMod
Slapi_Mods
Pointer to an initialized Slapi_Mods with valid iterator
position.
.
Slapi_Mods
at a given position in
.
mod
is transferred to the
Slapi_Mods
initialized with
slapi_mods_init_byref()
structure before the current iterator position.
. Position 0
Slapi_Mods
. This function
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents