39.25. slapi_sdn_new_dn_passin()

Description

This function creates a new Slapi_DN structure and initializes its DN with the value of dn. The DN of the new structure will point to the string pointed to by dn. The FLAG_DN flag is set, and the internal counter is incremented.

Syntax

#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_new_dn_passin(const char *dn);

Parameters

This function takes the following parameter:

dn
The DN value to be set the new Slapi_DN structure.
Returns

This function returns a pointer to the new Slapi_DN structure with DN valueset to the content of dn.

Memory Concerns

The memory is allocated by the function itself.