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:

smod
Pointer to an initialized Slapi_Mod.
Returns

This function returns a pointer to the first attribute value in the Slapi_Mod or NULL if no values exist.