Compares two values for a given attribute to determine if they are equals.
#include "slapi-plugin.h" int slapi_value_compare(const Slapi_Attr *a, const Slapi_Value *v1, const Slapi_Value *v2);
This function takes the following parameters:
A pointer to an attribute used to determine how the two values will be compared.
Pointer to the Slapi_ValueSet structure containing the first value to compare.
Pointer to the Slapi_Value structure containing the second value to compare.
This function returns one of the following values:
0 if the two values are equal.
-1 if v1 is smaller than v2.
1 if v1 is greater than v2.
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.