Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_vattr_value_compare()

Compares attribute type and name in a given entry.

Syntax

#include "slapi-plugin.h"
int slapi_vattr_value_compare( Slapi_Entry *e, char *type,
    Slapi_Value *test_this, int *result, int flags);

Parameters

This function takes the following parameters:

e

Entry to be compared.

type

Attribute type name.

test_this

Value to be tested.

result

0 if the compare is true, 1 if the compare is false.

flags

Not used. You should pass 0 for this parameter.

Returns

This function returns 0 for success, in which case result contains the result of the comparison.

Otherwise, this function returns the following:

Description

There is no need to call slapi_vattr_values_free() after calling this function.