HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
42 Functions for handling values
This chapter contains reference information on value routines.
Table 42-1 Value routines
DescriptionFunction
Compares two values.“slapi_value_compare()”
Duplicates a value.“slapi_value_dup()”
Frees a Slapi_Value structure from memory.
“slapi_value_free()”
Gets the berval structure of the value.
“slapi_value_get_berval()”
Converts the value of an integer.“slapi_value_get_int()”
Gets the length of a value.“slapi_value_get_length()”
Converts a value into a long integer.“slapi_value_get_long()”
Returns the value as a string.“slapi_value_get_string()”
Converts the value into an unsigned integer.“slapi_value_get_uint()”
Converts the value into an unsigned long.“slapi_value_get_ulong()”
Initializes a Slapi_Value structure with no values.
“slapi_value_init()”
Initializes a Slapi_Value structure from the berval structure.
“slapi_value_init_berval()”
Initializes a Slapi_Value structure from a string.
“slapi_value_init_string()”
Initializes a Slapi_Value structure with a value contained in a string.
“slapi_value_init_string_passin()”
Allocates a new Slapi_Value structure.
“slapi_value_new()”
Allocates a new Slapi_Value structure from a berval structure.
“slapi_value_new_berval()”
Allocates a newSlapi_Value structure from a string.
“slapi_value_new_string()”
Allocates a new Slapi_Value structure and initializes it from a string.
“slapi_value_new_string_passin()”
Allocates a new Slapi_Value from another Slapi_Value structure.
“slapi_value_new_value()”
Sets the value.“slapi_value_set()”
Copies the value from a berval structure into a Slapi_Value structure.
“slapi_value_set_berval()”
Sets the integer value of a Slapi_Value structure.
“slapi_value_set_int()”
Copies a string into the value.“slapi_value_set_string()”
Sets the value.“slapi_value_set_string_passin()”
Copies the value of a Slapi_Value structure into another Slapi_Value
structure.
“slapi_value_set_value()”
42.1 slapi_value_compare()
Description This function compares two Slapi_Values using the matching rule associated
to the attribute a to determine if they are equals.
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.
Syntax
42.1 slapi_value_compare() 335