HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
19.21 slapi_attr_value_cmp()
Description Compares two values for a given attribute to determine if they are equal.
Syntax
#include "slapi-plugin.h"
int slapi_attr_value_cmp( const Slapi_Attr *attr, const struct berval
*v1, const struct berval *v2 );
Parameters This function takes the following parameters:
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.
attr
Pointer to the structure containing the first value that you want to compare.
v1
Pointer to the structure containing the second value that you want to compare.
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()
19.22 slapi_attr_value_find()
Description Determines if an attribute contains a given value.
Syntax
#include "slapi-plugin.h"
int slapi_attr_value_find( const Slapi_Attr *a, const struct berval *v );
Parameters This function takes the following parameters:
Attribute that you want to check.
a
Pointer to the berval structure containing the value for which you want to search.v
Returns This function returns one of the following values:
0 if the attribute contains the specified value.
-1 if the attribute does not contain the specified value.
See also
“slapi_attr_add_value()”
“slapi_attr_first_value()”
“slapi_attr_next_value()”
“slapi_attr_get_numvalues()”
“slapi_attr_value_cmp()”
19.23 slapi_valueset_set_from_smod()
Adds the changes in a modification to a valueset. Use this function to create a value set that
contains the changes from smod.
180 Functions for handling attributes