HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
See also “slapi_mod_get_ldapmod_byref()”
33.9 slapi_mod_get_next_value()
Description This function increments the Slapi_Mod iterator and return the next attribute
value. Use this function with slapi_mods_get_first_mod() to iterate through the attribute
values in a Slapi_Mod.
Syntax
#include "slapi-plugin.h"
struct berval *slapi_mod_get_next_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 next attribute value in the Slapi_Mod or NULL
if there are no more.
See also “slapi_mods_get_first_mod()”
33.10 slapi_mod_get_num_values()
Gets the number of values in a Slapi_Mod structure.
Syntax
#include "slapi-plugin.h"
int slapi_mod_get_num_values(const Slapi_Mod *smod);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns the number of attribute values in the Slapi_Mod.
33.11 slapi_mod_get_operation()
Gets the operation type of Slapi_Mod structure.
Syntax
#include "slapi-plugin.h"
int slapi_mod_get_operation(const Slapi_Mod *smod);
Parameters This function takes the following parameter:
Pointer to an initialized Slapi_Mod.smod
Returns This function returns one of LDAP_MOD_ADD, LDAP_MOD_DELETE, or
LDAP_MOD_REPLACE, combined using the bitwise or operator with LDAP_MOD_BYVALUES.
See also “slapi_mod_set_operation()”
33.12 slapi_mod_get_type()
Description Gets the LDAP attribute type of a Slapi_Mod.
Syntax
#include "slapi-plugin.h"
const char *slapi_mod_get_type(const Slapi_Mod *smod);
33.9 slapi_mod_get_next_value() 269