Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_mods_init()

Initializes a Slapi_Mods.

Syntax

#include "slapi-plugin.h"
 void slapi_mods_init(Slapi_Mods *smods, int initCount);

Parameters

This function takes the following parameters:

smods

Pointer to an initialized Slapi_Mods.

initCount

Number of modifications to allocate initially.

Description

Initializes a Slapi_Mods so that it is empty, but initially has room for the given number of mods.

Memory Concerns

If you are unsure of how much room you will need, you may use an initCount of 0. The Slapi_Mods expands as necessary.

See Also

slapi_mods_done()