HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Pointer to the Slapi_Value of which you wish to get the berval.value
Returns This function returns a pointer to the berval structure contained in the Slapi_Value.
This function returns a pointer to the actual berval structure, not a copy of it.
Memory concerns You should not free the berval structure unless you plan to replace it by
calling “slapi_value_set_berval()”.
See also “slapi_value_set_berval()”
42.5 slapi_value_get_int()
Description Converts the value in the Slapi_Value to an integer.
Syntax
#include "slapi-plugin.h"
int slapi_value_get_int(const Slapi_Value *value);
Parameters This function takes the following parameter:
Pointer to the Slapi_Value that you want to get as an integer.value
Returns This function returns one of the following values:
An integer that corresponds to the value stored in the Slapi_Value structure.
0 if there is no value.
See also
“slapi_value_get_long()”
“slapi_value_get_uint()”
42.6 slapi_value_get_length()
Description This function returns the actual length of a value contained in the Slapi_Value
structure.
Syntax
#include "slapi-plugin.h"
size_t slapi_value_get_length(const Slapi_Value *value);
Parameters This function takes the following parameter:
Pointer to the Slapi_Value of which you wish to get the length.value
Returns This function returns one of the following values:
The length of the value contained in Slapi_Value.
0 if there is no value.
42.7 slapi_value_get_long()
Description This function converts the value contained in the Slapi_Value structure into a
long integer.
Syntax
#include "slapi-plugin.h"
long slapi_value_get_long(const Slapi_Value *value);
42.5 slapi_value_get_int() 337