HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns a read-only pointer to the attribute type in the Slapi_Mod.
See also “slapi_mod_set_type()”
33.13 slapi_mod_init()
Description This function initializes a Slapi_Mod so that it is empty but initially has room for
the given number of attribute values.
Syntax
#include "slapi-plugin.h"
void slapi_mod_init(Slapi_Mod *smod, int initCount);
Parameters This function takes the following parameters:
Pointer to an uninitialized Slapi_Mod.smod
Suggested number of attribute values for which to make room. Minimum value is 0.initCount
Memory concerns If you are unsure of the room you will need, you may use an initCountof
0. The Slapi_Mod expands as necessary.
See also
“slapi_mod_done()”
“slapi_mod_init_byval()”
“slapi_mod_init_byref()”
“slapi_mod_init_passin()”
33.14 slapi_mod_init_byref()
Description This function initializes a Slapi_Mod containing a reference to an LDAPMod. Use
this function when you have an LDAPMod and would like the convenience of the Slapi_Mod
functions to access it.
Syntax
#include "slapi-plugin.h"
void slapi_mod_init_byref(Slapi_Mod *smod, LDAPMod *mod);
Parameters This function takes the following parameters:
Pointer to an uninitialized Slapi_Mod.smod
Pointer to an LDAPMod.mod
See also
“slapi_mod_done()”
“slapi_mod_init()”
“slapi_mod_init_byval()”
“slapi_mod_init_passin()”
33.15 slapi_mod_init_byval()
Initializes a Slapi_Mod structure with a copy of an LDAPMod.
Syntax
270 Functions for LDAPMod manipulation