Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 336

Table of Contents

Advertisement

Functions for Managing Entries
1
0
slapi_entry_init()
Initializes the values of an entry with the DN and attribute value pairs you supply.
Syntax
#include "slapi-plugin.h"
void slapi_entry_init(Slapi_Entry *e, char *dn,
Slapi_Attr *a);
Parameters
This function takes the following parameters:
e
dn
a
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 dn argument is not copied, but is consumed by the function. To
copy the argument, see the following example:
336
Netscape Directory Server Plug-In Programmer's Guide • December 2003
if the entry you supply has children entries.
if the entry you supply has no children entries.
The entry you want to initialize.
The DN of the entry you are initializing.
Initialization list of attribute value pairs, supplied as a
Slapi_Attr data value.
and the flag value is set to
.
0
pointer.
Slapi_Entry
slapi_entry_alloc()
, and never

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents