Functions for Handling Valueset
a
vs
v
Returns
This function returns one of the following values:
•
A pointer to the value in the valueset if the value was found.
•
Null
Description
Use this function to check for duplicate values in an attribute.
slapi_valueset_first_value()
Gets the first value of a
Syntax
#include "slapi-plugin.h"
int slapi_valueset_first_value( Slapi_ValueSet *vs,
Slapi_Value **v );
Parameters
This function takes the following parameters:
vs
v
Returns
This function returns one of the following values:
518
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Pointer to the attribute. This is used to determine the syntax of
the values and how to match them.
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.
, if the value was not found.
Slapi_ValueSet
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.
structure.