Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_valueset_new()

Allocates a new Slapi_ValueSet structure.

Syntax

#include "slapi-plugin.h"
 Slapi_ValueSet *slapi_valueset_new( void );

Parameters

This function takes no parameters.

Returns

This function returns a a pointer to the newly allocated Slapi_ValueSet structure. If no space could be allocated (for example, if no more virtual memory exists), the slapd program terminates.

Description

This function returns an empty Slapi_ValueSet structure. You can call other slapi_valueset functions of the API to set the values in the Slapi_ValueSet structure.

Memory Concerns

When you are no longer using the value, you should free it from memory by calling slapi_valueset_free().

See Also

slapi_valueset_free()