Gets the first value of a Slapi_ValueSet structure.
#include "slapi-plugin.h" int slapi_valueset_first_value_const(const Slapi_ValueSet *vs, const Slapi_Value **v);
This function takes the following parameters:
Pointer to the Slapi_ValueSet structure from which you wish to get the value.
Address of the pointer to the Slapi_Value structure for the returned value.
This function returns the index of the value in the Slapi_ValueSet, or -1 if there was no value.
Call this function when you wish to get the first value of a Slapi_ValueSet, or you wish to iterate through all of the values. The returned value is the index of the value in the Slapi_ValueSet structure and must be passed to call slapi_valueset_next_value_const() to get the next value.
This function gives a pointer to the actual value within the Slapi_ValueSet. You should not free it from memory.