Slapi_Mods_Insert_At() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for LDAPMod Manipulation
slapi_mods_get_next_mod()
slapi_mods_get_first_smod()
slapi_mods_get_next_smod()

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()
424
Netscape Directory Server Plug-in Programmer's Guide • October 2004
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
mod
slapi_mods_get_num_mods()
. Shift everything down to make room to insert the new
mod
LDAPMod
Slapi_Mods
adds to the end of all
in a
structure.
Slapi_Mods
at a given position
pos
) causes an append
is transferred to the
Slapi_Mods
initialized with
slapi_mods_init_byref()
mods
in
. Position
Slapi_Mods
mods
at and
mods
. This function
.
0
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents