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

slapi_entry_alloc()

Allocates memory for a new entry of the data type Slapi_Entry .

Syntax

#include "slapi-plugin.h"
 Slapi_Entry *slapi_entry_alloc();

Returns

Returns a pointer to the newly allocated entry of the data type Slapi_Entry. If space cannot be allocated (for example, if no more virtual memory exists), the slapd program terminates.

Description

This function returns an empty Slapi_Entry structure.

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_add_string()

slapi_entry_add_value()

slapi_entry_add_values_sv()

slapi_entry_add_valueset()

slapi_entry_dup()

slapi_entry_free()

slapi_entry_set_dn()

slapi_entry_set_sdn()

slapi_str2entry()