43.5. slapi_valueset_find()

Description

This function finds the value in a valueset using the syntax of an attribute. Use this to check for duplicate values in an attribute.

Syntax

#include "slapi-plugin.h"
Slapi_Value *slapi_valueset_find(const Slapi_Attr *a, const Slapi_ValueSet *vs, const Slapi_Value *v);

Parameters

This function takes the following parameters:

a
Pointer to the attribute. This is used to determine the syntax of the values and how to match them.
vs
Pointer to the Slapi_ValueSet structure from which you wish to get the value.
v
Address of the pointer to the Slapi_Value structure for the returned value.
Returns

This function returns one of the following values:

  • A pointer to the value in the valueset if the value was found.
  • NULL if the value was not found.