33.33. slapi_mods_get_first_mod()

Initializes a Slapi_Mods iterator and returns the first LDAPMod.
Syntax

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

Parameters

This function takes the following parameter:

mods
Pointer to an initialized Slapi_Mods.
Returns

This function returns one of the following values:

  • A pointer to the first LDAPMod in the Slapi_Mods.
  • NULL if there are no mods.