HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_mods_add_modbvps( Slapi_Mods *smods, int modtype,
const char *type, struct berval **bvps );
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 berval representing the attribute values.bvps
Memory concerns This function must not be used on a Slapi_Mods initialized with
“slapi_mods_init_byref()”.
See also
“slapi_mods_add()”
“slapi_mods_add_ldapmod()”
“slapi_mods_add_mod_values()”
“slapi_mods_add_string()”
33.29 slapi_mods_add_string()
Appends a new mod to Slapi_Mods structure with a single attribute value provided as a string.
Description This function appends a new mod with a single string attribute value to a
Slapi_Mods. The mod is constructed from copies of the values of modtype, type, and val.
Syntax
#include "slapi-plugin.h"
void slapi_mods_add_string( Slapi_Mods *smods, int modtype,
const char *type, 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 attribute value represented as a null-terminated string.
val
Memory concerns This function must not be used on a Slapi_Mods initialized with
“slapi_mods_init_byref()”.
See also
“slapi_mods_add()”
“slapi_mods_add_ldapmod()”
“slapi_mods_add_modbvps()”
“slapi_mods_add_mod_values()”
33.30 slapi_mods_done()
Description This function frees the internals of a Slapi_Mods, leaving it in the uninitialized
state. Use this function on a stack-allocated Slapi_Mods when you are finished with it, or when
you wish to reuse it.
Syntax
276 Functions for LDAPMod manipulation