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

slapi_value_compare()

Compares two values for a given attribute to determine if they are equals.

Syntax

#include "slapi-plugin.h"
 int slapi_value_compare(const Slapi_Attr *a, const Slapi_Value *v1,
    const Slapi_Value *v2);

Parameters

This function takes the following parameters:

a

A pointer to an attribute used to determine how the two values will be compared.

v1

Pointer to the Slapi_ValueSet structure containing the first value to compare.

v2

Pointer to the Slapi_Value structure containing the second value to compare.

Returns

This function returns one of the following values:

Description

This function compares two Slapi_Values using the matching rule associated to the attribute a.

This function replaces the deprecated slapi_attr_value_cmp() function used in previous releases, and uses the Slapi_Value attribute values instead of the berval attribute values.