HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_mods_add_mod_values( Slapi_Mods *smods, int modtype,
const char *type, Slapi_Value **va );;
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
A null-terminated array of Slapi_Value representing the attribute values.va
Memory concerns This function must not be used on a Slapi_Mods initialized with
“slapi_mods_add_mod_values()”.
See also
“slapi_mods_add()”
“slapi_mods_add_smod()”
“slapi_mods_add_ldapmod()”
“slapi_mods_add_modbvps()”
“slapi_mods_add_string()”
33.27 slapi_mods_add_smod()
Appends a new smod to a Slapi_Mods structure. The mod passed in is not copied or duplicated,
but the reference is used directly.
Description This function appends a new smod to a Slapi_Mods. The function
“slapi_mods_get_num_mods()” gives the number of mods in the Slapi_Mods structure.
Syntax
#include "slapi-plugin.h"
void slapi_mods_add_smod( Slapi_Mods *smods, Slapi_Mod *smod );
Parameters This function takes the following parameters:
Pointer to an initialized Slapi_Mods.mods
Pointer to an initialized Slapi_Mod.smod
Memory concerns This function must not be used on a Slapi_Mods initialized with
“slapi_mods_init_byref()”.
See also
“slapi_mods_insert_at()”
“slapi_mods_add()”
“slapi_mods_add_mod_values()”
“slapi_mods_add_ldapmod()”
“slapi_mods_add_modbvps()”
“slapi_mods_add_string()”
33.28 slapi_mods_add_modbvps()
Description This function appends a new mod to Slapi_Mods. The mod is constructed from
copies of the values of modtype, type, and bvps. Use this function when you have the attribute
values to hand as an array of berval.
Syntax
33.27 slapi_mods_add_smod() 275