HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
37.17 slapi_rdn_init_sdn()
Description This function initializes a given Slapi_RDN structure with the RDN value taken
from the DN passed within the Slapi_DN structure of the sdn parameter.
Syntax
#include "slapi-plugin.h"
void slapi_rdn_init_sdn(Slapi_RDN *rdn,const Slapi_DN *sdn);
Parameters This function takes the following parameters:
The Slapi_RDN structure to be initialized.rdn
The Slapi_DN structure containing the DN value whose RDN will be used to initialize
the new Slapi_RDN structure.
sdn
See also
“slapi_rdn_init_dn()”
“slapi_rdn_init_rdn()”
37.18 slapi_rdn_isempty()
Checks whether an RDN value is stored in a Slapi_RDN structure.
Syntax
#include "slapi-plugin.h"
int slapi_rdn_isempty(const Slapi_RDN *rdn);
Parameters This function takes the following parameter:
The target Slapi_RDN structure.rdn
Returns This function returns one of the following values:
1 if there is no RDN value present.
0 if rdn contains a value.
See also
“slapi_rdn_init()”
“slapi_rdn_done()”
“slapi_rdn_free()”
37.19 slapi_rdn_new()
Description This function creates a new Slapi_RDN structure by allocating the necessary
memory and initializing both the RDN value and the array of split RDNs to NULL.
Syntax
#include "slapi-plugin.h"
Slapi_RDN * slapi_rdn_new();
Parameters This function takes no parameters.
Returns This function returns a pointer to the newly allocated, and still empty, Slapi_RDN
structure.
See also
“slapi_rdn_init()”
“slapi_rdn_done()”
“slapi_rdn_free()”
302 Functions for managing RDNs