Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 282

Table of Contents

Advertisement

Functions for Managing Entries
Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_replace_sv( Slapi_Entry *e,
const char *type, Slapi_Value **vals );
Parameters
This function takes the following parameters:
e
type
vals
Returns
This function returns
Description
This function replaces existing attribute values in a specified entry with a single
Slapi_Value
entry, then replaces it with the new value specified.
This function replaces the deprecated
This function uses
berval
Memory Concerns
This function makes a copy of the parameter
See Also
slapi_entry_attr_replace()
slapi_entry_attr_set_charptr()
Replaces the value or values of an attribute in an entry with a specified string
value.
Syntax
#include "slapi-plugin.h"
void slapi_entry_attr_set_charptr(Slapi_Entry* e,
char *type, char *value);
282
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Entry in which you want to replace values.
Attribute type which will receive the replaced values.
Array containing the Slapi_Value values that should replace
the existing values of the attribute.
when successful; any other value returned signals failure.
0
data value. The function first deletes the existing attribute from the
Slapi_Value
attribute values.
slapi_entry_attr_replace()
attribute values instead of the now obsolete
.
vals
vals
function.
can be
.
NULL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents