HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_mod_init_byval(Slapi_Mod *smod, const LDAPMod *mod);
Parameters This function takes the following parameters:
Pointer to an uninitialized Slapi_Mod.smod
Pointer to an LDAPMod.mod
See also
“slapi_mod_done()”
“slapi_mod_init()”
“slapi_mod_init_byref()”
“slapi_mod_init_byval()”
33.16 slapi_mod_init_passin()
Description This function initializes a Slapi_Mod by passing in an LDAPMod. Use this function
to convert an LDAPMod to a Slapi_Mod.
Syntax
#include "slapi-plugin.h"
void slapi_mod_init_passin(Slapi_Mod *smod, LDAPMod *mod);
Parameters This function takes the following parameters:
Pointer to an uninitialized Slapi_Mod.smod
Pointer to an LDAPMod.mod
Memory concerns Responsibility for the LDAPMod is transferred to the Slapi_Mod. The
LDAPMod is destroyed when the Slapi_Mod is destroyed.
See also
“slapi_mod_done()”
“slapi_mod_init()”
“slapi_mod_init_byref()”
“slapi_mod_init_byval()”
33.17 slapi_mod_init_valueset_byval()
Initializes the given smod in a Slapi_Mod with the given LDAP operation and attribute type.
The attribute values in the smod are initialized using Slapi_ValueSet. All function parameters
are copied, and type and svs are not modified.
This function checks that an attribute being modified or added does not exist, and, if it does exist,
it removes that value from the list of modifications.
Syntax
#include "slapi-plugin.h"
void slapi_mod_init_valueset_byval(Slapi_Mod *smod, int op,
const char *type, const Slapi_ValueSet *svs)
Parameters This function takes the following parameters:
Pointer to an uninitialized Slapi_Mod.smod
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE, combined using
the bitwise or operator with LDAP_MOD_BYVALUES.
op
33.16 slapi_mod_init_passin() 271