33.35. slapi_mods_get_ldapmods_byref()

Description

Use this function to get a reference and direct access to the array of LDAPMod contained in a Slapi_Mods.

Syntax

#include "slapi-plugin.h"
LDAPMod **slapi_mods_get_ldapmods_byref(Slapi_Mods *smods);

Parameters

This function takes the following parameter:

mods
Pointer to an initialized Slapi_Mods.
Returns

This function returns a null-terminated array of LDAPMod owned by the Slapi_Mods.

Memory Concerns

Responsibility for the array remains with the Slapi_Mods.