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

slapi_mod_init()

Initializes a Slapi_Mod structure.

Syntax

#include "slapi-plugin.h"
 void slapi_mod_init(Slapi_Mod *smod, int initCount);

Parameters

This function takes the following parameters:

smod

Pointer to an uninitialized Slapi_Mod.

initCount

Suggested number of attribute values for which to make room. Minimum value is 0.

Description

This function initializes a Slapi_Mod so that it is empty, but initially has room for the given number of attribute values.

Memory Concerns

If you are unsure of the room you will need, you may use an initCount of 0. The Slapi_Mod expands as necessary.

See Also

slapi_mod_done()

slapi_mod_init_byref()

slapi_mod_init_byval()

slapi_mod_init_passin()