HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
Pointer to the Slapi_ValueSet structure from which you wish to get the value.vs
Value returned by the previous call to slapi_valueset_next_value or
slapi_value_first_value().
index
Address to the pointer to the Slapi_Value structure for the returned value.v
Returns This function returns one of the following values:
The index of the value in the Slapi_ValueSet.
-1 if there was no more value or the input index is incorrect.
Memory concerns This function gives a pointer to the actual value within the Slapi_ValueSet
and you should not free it from memory.
See also “slapi_valueset_first_value()”
43.11 slapi_valueset_set_from_smod()
Copies the values of Slapi_Mod structure into a Slapi_ValueSet structure.
Syntax
#include "slapi-plugin.h"
void slapi_valueset_set_from_smod(Slapi_ValueSet *vs,
Slapi_Mod *smod);
Parameters This function takes the following parameters:
Pointer to the Slapi_ValueSet structure into which you wish to copy the values.vs
Pointer to the Slapi_Mod structure from which you wish to copy the values.smod
Description This function copies all the values contained in a Slapi_Mod structure into a
Slapi_ValueSet structure.
Memory concerns This function does not verify that the Slapi_ValueSet structure already
contains values, so it is your responsibility to verify that there are no values prior to calling this
function. If you do not verify this, the allocated memory space will leak. You can free existing
values by calling “slapi_valueset_done()”.
See also “slapi_valueset_done()”
43.12 slapi_valueset_set_valueset()
Description This function initializes a Slapi_ValueSet structure by copying the values
contained in another Slapi_ValueSet structure.
Syntax
#include "slapi-plugin.h"
void slapi_valueset_set_valueset(Slapi_ValueSet *vs1,
const Slapi_ValueSet *vs2);
Parameters This function takes the following parameters:
Pointer to the Slapi_ValueSet structure to which you wish to set the values.vs1
Pointer to the Slapi_ValueSet structure from which you wish to copy the values.vs2
Memory concerns The function does not verify that the Slapi_ValueSet structure contains
values, so it is your responsibility to verify that there are no values prior to calling this function.
43.11 slapi_valueset_set_from_smod() 351