HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
37.20 slapi_rdn_new_dn()
Description This function creates a new Slapi_RDN structure and initializes its RDN with the
value taken from the DN passed in the dn parameter.
Syntax
#include "slapi-plugin.h"
Slapi_RDN *slapi_rdn_new_dn(const char *dn);
Parameters This function takes the following parameter:
The DN value whose RDN will be used to initialize the new Slapi_RDN structure.dn
Returns This function returns a pointer to the new Slapi_RDN structure initialized with the
RDN taken from the DN value in dn.
Memory concerns The memory is allocated by the function itself.
See also
“slapi_rdn_new_sdn()”
“slapi_rdn_new_rdn()”
37.21 slapi_rdn_new_rdn()
Description This function creates a new Slapi_RDN structure and initializes its RDN with the
value of fromrdn.
Syntax
#include "slapi-plugin.h"
Slapi_RDN * slapi_rdn_new_rdn(const Slapi_RDN *fromrdn);
Parameters This function takes the following parameter:
The RDN value to be set in the new Slapi_RDN structure.fromrdn
Returns This function returns a pointer to the new Slapi_RDN structure with an RDN set to
the content of fromrdn.
Memory concerns The memory is allocated by the function itself.
See also “slapi_rdn_new_sdn()”“slapi_rdn_new_dn()”
37.22 slapi_rdn_new_sdn()
Description This function creates a new Slapi_RDN structure and initializes its RDN with the
value taken from the DN passed within the Slapi_RDN structure of the sdn parameter.
Syntax
#include "slapi-plugin.h"
vSlapi_RDN *slapi_rdn_new_sdn(const Slapi_DN *sdn);
Parameters This function takes the following parameter:
Slapi_RDN structure containing the DN value whose RDN will be used to initialize
the new Slapi_RDN structure.
sdn
Returns This function returns a pointer to the new Slapi_RDN structure initialized with the
RDN taken from the DN value in dn.
Memory concerns The memory is allocated by the function itself.
See also
37.20 slapi_rdn_new_dn() 303