Initializes a Slapi_Mods that is a wrapper for an existing array of LDAPMod.
#include "slapi-plugin.h" void slapi_mods_init_byref(Slapi_Mods *smods, LDAPMod **mods);
This function takes the following parameters:
Pointer to an uninitialized Slapi_Mods.
A NULL terminated array of LDAPMod.
Initializes a Slapi_Mods containing a reference to an array of LDAPMod. This function provides the convenience of using Slapi_Mods functions to access LDAPMod array items.
The array is not destroyed when the Slapi_Mods is destroyed. Notice that you cannot insert new mods in a Slapi_Mods that has been initialized by reference.