Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 495

Table of Contents

Advertisement

Table 15-28 Value Routines (Continued)
Function
slapi_value_set()
slapi_value_set_berval()
slapi_value_set_int()
slapi_value_set_string()
slapi_value_set_string_passin()
slapi_value_set_value()
slapi_value_compare()
Compares two values for a given attribute to determine if they are equals.
Syntax
#include "slapi-plugin.h"
slapi_value_compare(const Slapi_Attr *a,
const Slapi_Value *v1, const Slapi_Value *v2);
Parameters
This function takes the following parameters:
a
v1
v2
Returns
This function returns one of the following values:
0
-1
1
Description
Sets the value.
Copies the value from a berval structure into a Slapi_Value
structure.
Sets the integer value of a Slapi_Value structure.
Copies a string into the value.
Sets the value.
Copies the value of a Slapi_Value structure into another
Slapi_Value structure.
A pointer to an attribute used to determine how the two values
will be compared.
Pointer to the Slapi_Value structure containing the first value
to compare.
Pointer to the Slapi_Value structure containing the second
value to compare.
if the two values are equal.
if v1 is smaller than v2.
if v1 is greater than v2.
Functions for Handling Values
Chapter 15
Function Reference
495

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents