33.7. slapi_mod_get_ldapmod_byref()

Description

This function gets a reference to the LDAPMod in a Slapi_Mod structure. Use this function to get direct access to the LDAPMod contained in a Slapi_Mod.

Syntax

#include "slapi-plugin.h"
const LDAPMod *slapi_mod_get_ldapmod_byref(const Slapi_Mod *smod);

Parameters

This function takes the following parameter:

smod
Pointer to an initialized Slapi_Mod.
Returns

This function returns a pointer to a read-only LDAPMod owned by the Slapi_Mod.

Memory Concerns

Responsibility for the LDAPMod remains with the Slapi_Mod.