Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_entry_dup()

Makes a copy of an entry, its DN, and its attributes.

Syntax

#include "slapi-plugin.h"
 Slapi_Entry *slapi_entry_dup( const Slapi_Entry *e );

Parameters

This function takes the following parameter:

e

Entry that you want to copy.

Returns

This function returns the new copy of the entry. If the structure cannot be duplicated (for example, if no more virtual memory exists), the slapd program terminates.

Description

This function returns a copy of an existing Slapi_Entry structure. You can call other front-end functions to change the DN and attributes of this entry.

Memory Concerns

When you are no longer using the entry, you should free it from memory by calling the slapi_entry_free() function.

See Also

slapi_entry_alloc()

slapi_entry_free()