HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_mods_done(Slapi_Mods *smods);
Parameters This function takes the following parameter:
Pointer to a Slapi_Mods.smod
See also
“slapi_mods_init()”
“slapi_mods_init_byref()”
“slapi_mods_init_passin()”
33.31 slapi_mods_dump()
Description This function uses the LDAP_DEBUG_ANY log level to dump the contents of a
Slapi_Mods to the server log for debugging.
Syntax
#include "slapi-plugin.h"
void slapi_mods_dump(const Slapi_Mods *smods, const char *text);
Parameters This function takes the following parameters:
Pointer to a Slapi_Mods.mods
Descriptive text that will be included in the log, preceding the Slapi_Mods content.text
33.32 slapi_mods_free()
Frees a Slapi_Mods structure.
Description This function frees a Slapi_Mods that was allocated by slapi_mods_new().
Syntax
#include "slapi-plugin.h"
void slapi_mods_free(Slapi_Mods **smods);
Parameters This function takes the following parameter:
Pointer to an allocated Slapi_Mods.mods
See also “slapi_mods_new()”
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:
Pointer to an initialized Slapi_Mods.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.
33.31 slapi_mods_dump() 277