Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 260

Table of Contents

Advertisement

Functions for Handling Attributes
Syntax
#include "slapi-plugin.h"
int slapi_attr_value_cmp( Slapi_Attr *attr, struct berval *v1,
struct berval *v2 );
Parameters
This function takes the following parameters:
attr
v1
v2
Returns
This function returns one of the following values:
0 if the values are equal.
-1 if the values are not equal.
See Also
slapi_attr_add_value()
slapi_attr_first_value()
slapi_attr_next_value()
slapi_attr_get_numvalues()
slapi_attr_value_find()
slapi_attr_value_find()
Determines is an attribute contains a given value.
Syntax
#include "slapi-plugin.h"
int slapi_attr_value_find( Slapi_Attr *a, struct berval *v );
260
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Attribute used to determine how these values are compared (for
example, if the attribute contains case-insensitive strings, the strings are
compared without regard to case).
Pointer to the berval structure containing the first value that you want
to compare.
Pointer to the berval structure containing the second value that you
want to compare.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents