Slapi_Entry_Merge_Values_Sv() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Description
This function initializes the attributes and the corresponding attribute values of an
entry. Also, during the course of processing, the unique ID of the entry is set to
NULL
Use this function to initialize a
Memory Concerns
This function should always be used after
otherwise. For example:
Slapi_Entry *e = slapi_entry_alloc();
slapi_entry_init(e, NULL, NULL);
To set the DN in the entry:
slapi_sdn_set_dn_passin(slapi_entry_get_sdn(e), dn);
In this case, the
copy the argument, see the following example:
char *dn = slapi_ch_strdup(some_dn);
Slapi_Entry *e = slapi_entry_alloc()
slapi_entry_init(e, dn, NULL);l
is not freed in this context but will eventually be freed when
dn
slapi_entry_free()
See Also
slapi_entry_free()
slapi_entry_alloc()
slapi_ch_strdup()

slapi_entry_merge_values_sv()

Merges (adds) and array of
entry. If the entry does not contain the attribute specified, the attribute is created
with the value supplied.
Syntax
#include "slapi-plugin.h"
int slapi_entry_merge_values_sv( Slapi_Entry *e,
const char *type, Slapi_Value **vals );
, and the flag value is set to
argument is not copied but is consumed by the function. To
dn
is called.
.
0
pointer.
Slapi_Entry
slapi_entry_alloc()
data values to a specified attribute in an
Slapi_Value
Functions for Managing Entries
and never
Chapter 15
Function Reference
347

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents