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
See also “slapi_mod_new()”
33.6 slapi_mod_get_first_value()
Description Use this function with slapi_mod_get_next_value() to iterate through the
attribute values in a Slapi_Mod structure. The function Initializes a Slapi_Mod iterator and
returns the first attribute value.
Syntax
#include "slapi-plugin.h"
struct berval *slapi_mod_get_first_value(Slapi_Mod *smod);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns a pointer to the first attribute value in the Slapi_Mod or NULL
if no values exist.
See also “slapi_mod_get_next_value()”
33.7 slapi_mod_get_ldapmod_byref()
Description This function gets a reference to the LDAPMod in a Slapi_Mod structure. Use this
function to get direct access to the LDAPMod contained in a Slapi_Mod.
Syntax
#include "slapi-plugin.h"
const LDAPMod *slapi_mod_get_ldapmod_byref(const Slapi_Mod *smod);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns a pointer to a read-only LDAPMod owned by the Slapi_Mod.
Memory concerns Responsibility for the LDAPMod remains with the Slapi_Mod.
See also “slapi_mod_get_ldapmod_passout()”
33.8 slapi_mod_get_ldapmod_passout()
Description Use this function to get the LDAPMod out of a Slapi_Mod.
Syntax
#include "slapi-plugin.h"
LDAPMod *slapi_mod_get_ldapmod_passout(Slapi_Mod *smod);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns a pointer to an LDAPMod owned by the caller.
Memory concerns Responsibility for the LDAPMod transfers to the caller. The Slapi_Mod is
left in the uninitialized state.
268 Functions for LDAPMod manipulation