Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_valueset_find_const()

Finds the value in a value set using the syntax of an attribute.

#include "slapi-plugin.h"
const 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 a pointer to the value in the value set if the value was found. Otherwise, it returns NULL.

Description

Use this function to check for duplicate values in an attribute.