33.2. slapi_mod_add_value()

Description

Adds a copy of a given attribute to the Slapi_Mod structure.

Syntax

#include "slapi-plugin.h"
void slapi_mod_add_value(Slapi_Mod *smod, const struct berval *val);

Parameters

This function takes the following parameters:

smod
Pointer to an initialized Slapi_Mod.
val
Pointer to a berval representing the attribute value.