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:

smod
Pointer to an initialized Slapi_Mod.
Returns

This function returns a pointer to the next attribute value in the Slapi_Mod or NULL if there are no more.