HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
value is passed in to the parameter by reference. However, the FLAG_DN flag is not set, and no
counter is incremented.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_new_dn_byref(const char *dn);
Parameters This function takes the following parameter:
The DN value to be set in the new Slapi_DN structure.dn
Returns This function returns a pointer to the new Slapi_DN structure with a DN valueset to
the content of dn.
Memory concerns The memory is allocated by the function itself.
See also
“slapi_sdn_new_dn_byval()”
“slapi_sdn_new_dn_passin()”
39.24 slapi_sdn_new_dn_byval()
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 a copy of the string pointed to by dn; the
DN value is passed in to the parameter by value. The FLAG_DN flag is set, and the internal counter
is incremented.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_new_dn_byval(const char *dn);
Parameters This function takes the following parameter:
The DN value to be set in the new Slapi_DN structure.dn
Returns This function returns a pointer to the new Slapi_DN structure with a DN valueset to
the content of dn.
Memory concerns The memory is allocated by the function itself.
See also
“slapi_sdn_new_dn_byref()”
“slapi_sdn_new_dn_passin()”
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:
The DN value to be set the new Slapi_DN structure.dn
Returns This function returns a pointer to the new Slapi_DN structure with DN valueset to
the content of dn.
318 Functions for managing DNs