Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_value_init_berval()

Initializes a Slapi_Value structure from the berval structure.

Syntax

#include "slapi-plugin.h"
 Slapi_Value * slapi_value_init_berval(Slapi_Value *v,
    struct berval *bval);

Parameters

This function takes the following parameters:

v

Pointer to the value to initialize. The pointer must not be NULL.

bval

Pointer to the berval structure to be used to initialize the value.

Returns

This function returns a pointer to the initialized Slapi_Value structure (itself).

Description

This function initializes the Slapi_Value structure with the value contained in the berval structure. The content of the berval structure is duplicated.

Memory Concerns

When finished using the Slapi_Value structure, free its internal structures by using slapi_value_done().