HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
33.24 slapi_mods_add()
Description This function appends a new mod with a single attribute value to a Slapi_Mods.
The mod is constructed from copies of the values of modtype, type, len, and val.
Syntax
#include "slapi-plugin.h"
void slapi_mods_add( Slapi_Mods *smods, int modtype,
const char *type, unsigned long len, const char *val);
Parameters This function takes the following parameters:
Pointer to an initialized Slapi_Mods.mods
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE.modtype
The LDAP attribute type.
type
The length in bytes of the attribute value.
len
The attribute value.
val
Memory concerns This function must not be used on Slapi_Mods initialized with
slapi_mods_init_byref().
See also
“slapi_mods_add_ldapmod()”
“slapi_mods_add_modbvps()”
“slapi_mods_add_mod_values()”
“slapi_mods_add_string()”
33.25 slapi_mods_add_ldapmod()
Description Appends an LDAPMod to a Slapi_Mods.
Syntax
#include "slapi-plugin.h"
void slapi_mods_add_ldapmod(Slapi_Mods *smods, LDAPMod *mod);
Parameters This function takes the following parameters:
Pointer to an initialized Slapi_Mods.mods
Pointer to a the LDAPMod to be appended.mod
Memory concerns Responsibility for the LDAPMod is transferred to the Slapi_Mods. This
function must not be used on a Slapi_Mods initialized with slapi_mods_init_byref().
See also
“slapi_mods_add()”
“slapi_mods_add_modbvps()”
“slapi_mods_add_mod_values()”
“slapi_mods_add_string()”
33.26 slapi_mods_add_mod_values()
Description This function appends a new mod to a Slapi_Mods. The mod is constructed from
copies of the values of modtype, type and va. Use this function when you have the attribute
values to hand as an array of Slapi_Value.
Syntax
274 Functions for LDAPMod manipulation