#include "slapi-plugin.h" void slapi_valueset_set_from_smod(Slapi_ValueSet *vs, Slapi_Mod *smod);
This function takes the following parameters:
Pointer to the Slapi_ValueSet structure into which you wish to copy the values.
Pointer to the Slapi_Mod structure from which you wish to copy the values.
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().