slapi_entry_alloc()
slapi_entry_alloc() allocates memory for
a new entry of the Slapi_Entry data type. It returns
an empty Slapi_Entry structure.
You can call other front-end functions to set the DN and attributes of this entry. If the function fails to allocate memory, it returns NULL to the caller function. After you work with the entry, it is the caller's responsibility to free the memory by calling the slapi_entry_free() function.
- Syntax
#include "slapi-plugin.h" Slapi_Entry *slapi_entry_alloc();- Returns
- A pointer to the newly allocated entry of the
Slapi_Entrydata type is returned. If space cannot be allocated, the server program ends. For example, if no more virtual memory exists.