HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
33.34 slapi_mods_get_first_smod()
Description This function initializes a Slapi_Mods iterator and returns the first mod wrapped
in a Slapi_Mods structure. Use this function in conjunction with
slapi_mods_get_next_smod() to iterate through the mods in a Slapi_Mods using a
Slapi_Mods wrapper.
Syntax
#include "slapi-plugin.h"
Slapi_Mod *slapi_mods_get_first_smod(Slapi_Mods *smods,
Slapi_Mod *smod);
Parameters This function takes the following parameters:
A pointer to a an initialized Slapi_Mods.mods
Pointer to a Slapi_Mods that will be used to hold the mod.smod
Returns This function returns one of the following values:
A pointer to the Slapi_Mod, wrapping the first mod.
NULL if no mod exist.
Memory concerns Only one thread may be iterating through a particular Slapi_Mods at any
given time.
See also “slapi_mods_get_first_mod()”
33.35 slapi_mods_get_ldapmods_byref()
Description Use this function to get a reference and direct access to the array of LDAPMod
contained in a Slapi_Mods.
Syntax
#include "slapi-plugin.h"
LDAPMod **slapi_mods_get_ldapmods_byref(Slapi_Mods *smods);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mods.mods
Returns This function returns a null-terminated array of LDAPMod owned by the Slapi_Mods.
Memory concerns Responsibility for the array remains with the Slapi_Mods.
See also “slapi_mods_get_ldapmods_passout()”
33.36 slapi_mods_get_ldapmods_passout()
Description Gets the array of LDAPMod out of a Slapi_Mods. Responsibility for the array
transfers to the caller. The Slapi_Mods is left in the uninitialized state.
Syntax
#include "slapi-plugin.h"
LDAPMod **slapi_mods_get_ldapmods_passout(Slapi_Mods *smods);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mods.smod
Returns This function returns a null-terminated array LDAPMod owned by the caller.
See also “slapi_mods_get_ldapmods_byref()”
278 Functions for LDAPMod manipulation