Allocates a new Slapi_Value structure and initializes it from a berval structure.
#include "slapi-plugin.h" Slapi_Value * slapi_value_new_berval(const struct berval *bval);
This function takes the following parameter:
Pointer to the berval structure used to initialize the newly allocated Slapi_Value.
This function returns a pointer to the newly allocated Slapi_Value. If space cannot be allocated (for example, if no more virtual memory exists), the slapd program will terminate.
This function returns a Slapi_Value structure containing a value duplicated from the berval structure passed as the parameter.
When you are no longer using the value, you should free it from memory by calling slapi_value_free().