HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
When you are no longer using the Slapi_Value structure, you should free it from memory by
calling “slapi_value_free()”.
See also “slapi_value_free()”
42.21 slapi_value_set_berval()
Description This function sets the value of Slapi_Value structure. The value is duplicated
from the berval structure bval.
Syntax
#include "slapi-plugin.h"
slapi_value_set_berval( Slapi_Value *value, const struct berval *bval );
Parameters This function takes the following parameters:
Pointer to the Slapi_Value structure in which to set the value.value
Pointer to the berval value to be copied.bval
Returns This function returns one of the following values:
The pointer to the Slapi_Value structure passed as the parameter.
NULL if it was NULL.
Memory concerns If the pointer to the Slapi_Value structure is NULL, nothing is done, and
the function returns NULL. If the Slapi_Value already contains a value, it is freed from memory
before the new one is set.
When you are no longer using the Slapi_Value structure, you should free it from memory by
calling “slapi_value_free()”.
See also “slapi_value_free()”
42.22 slapi_value_set_int()
Description This function sets the value of the Slapi_Value structure from the integer intVal.
Syntax
#include "slapi-plugin.h"
slapi_value_set_int(Slapi_Value *value, int intVal);
Parameters This function takes the following parameters:
Pointer to the Slapi_Value structure in which to set the integer value.value
The integer containing the value to set.
intVal
Returns This function returns one of the following values:
0 if the value is set.
1 if the pointer to the Slapi_Value is NULL.
Memory concerns If the pointer to the Slapi_Value structure is NULL, nothing is done, and
the function returns -1. If the Slapi_Value already contains a value, it is freed from memory
before the new one is set.
When you are no longer using the Slapi_Value structure, you should free it from memory by
calling “slapi_value_free()”.
See also “slapi_value_free()”
42.21 slapi_value_set_berval() 343