43.9. slapi_valueset_new()

Description

This function returns an empty Slapi_ValueSet structure. You can call other slapi_valuset functions of the API to set the values in the 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 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.

Memory Concerns

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