HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Pointer to the Slapi_ValueSet to free.vs
See also “slapi_valueset_done()”
43.8 slapi_valueset_init()
Description This function returns the values contained in the Slapi_ValueSet structure (sets
them to 0). This does not free the values contained in the structure. To free the values, use
“slapi_valueset_done()”.
Syntax
#include "slapi-plugin.h"
void slapi_valueset_init(Slapi_ValueSet *vs);
Parameters This function takes the following parameter:
Pointer to the Slapi_ValueSet to replace.vs
Memory concerns When you are no longer using the Slapi_ValueSet structure, you should
free it from memory by using “slapi_valueset_free()”.
See also
“slapi_valueset_done()”
“slapi_valueset_free()”
43.9 slapi_valueset_new()
Description This function returns an empty Slapi_ValueSet structure. You can call other
slapi_valuset functions of the API to set the values in the Slapi_ValueSet structure.
Syntax
#include "slapi-plugin.h"
Slapi_ValueSet *slapi_valueset_new( void );
Parameters This function takes no parameters.
Returns This function returns a pointer to the newly allocated Slapi_ValueSet structure. If
no space could be allocated (for example, if no more virtual memory exists), the slapd program
terminates.
Memory concerns When you are no longer using the value, you should free it from memory
by calling “slapi_valueset_free()”.
See also “slapi_valueset_free()”
43.10 slapi_valueset_next_value()
Description Call this function when you wish to get the next value of a Slapi_ValueSet,
after having first called “slapi_valueset_first_value()”. The returned value is the index of the
value in the Slapi_ValueSet structure and must be passed to “slapi_valueset_next_value()”.
Syntax
#include "slapi-plugin.h"
int slapi_valueset_next_value( Slapi_ValueSet *vs,
int index, Slapi_Value **v);
350 Functions for handling valuesets