33.34. slapi_mods_get_first_smod()
This function initializes a Slapi_Mods iterator and returns the first mod wrapped in a Slapi_Mods structure. Use this function in conjunction with slapi_mods_get_next_smod() to iterate through the mods in a Slapi_Mods using a Slapi_Mods wrapper.
#include "slapi-plugin.h" Slapi_Mod *slapi_mods_get_first_smod(Slapi_Mods *smods, Slapi_Mod *smod);
This function takes the following parameters:
|
mods
| A pointer to a an initialized Slapi_Mods. |
|
smod
| Pointer to a Slapi_Mods that will be used to hold the mod. |
This function returns one of the following values:
- A pointer to the Slapi_Mod, wrapping the first
mod. NULLif nomodexist.
Only one thread may be iterating through a particular Slapi_Mods at any given time.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.