Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_valueset_set_valueset_optimised()

Initializes a Slapi_ValueSet structure from another Slapi_ValueSet structure.

Syntax

#include "slapi-plugin.h"
 void slapi_valueset_set_valueset_optimised(Slapi_ValueSet *vs1,
    const Slapi_ValueSet *vs2, void *syntax_plugin);

Parameters

This function takes the following parameters:

vs1

Pointer to the Slapi_ValueSet structure to which you wish to set the values.

vs2

Pointer to the Slapi_ValueSet structure from which you wish to copy the values.

syntax_plugin

Pointer to the plug-in for this attribute type, obtained using slapi_attr_type2plugin().

Description

This function initializes a Slapi_ValueSet structure by copying the values contained in another Slapi_ValueSet structure.

Memory Concerns

The function does not verify that the Slapi_ValueSet structure contains values, so it is your responsibility to verify that there are no values prior to calling this function. If you do not verify this, the allocated memory space will leak. You can free existing values by calling slapi_valueset_done().

See Also

slapi_valueset_done()