Functions for Handling Valueset
Syntax
#include "slapi-plugin.h"
void slapi_valueset_add_value_ext(Slapi_ValueSet *vs,
Slapi_Value *addval, unsigned long flags);
Parameters
This function takes the following parameters:
vs
addval
flags
Description
Sometimes, it is desirable to have a pass-in interface to add a
without having to duplicate and free the target value. This function is similar to an
existing function
unsigned long flags
the flags, the function would simply take over the ownership of the new value to be
added without duplicating it.
See Also
slapi_valueset_add_value()
slapi_valueset_first_value()
slapi_valueset_next_value()
slapi_valueset_count()
Returns the number of values contained in a
Syntax
#include "slapi-plugin.h"
int slapi_valueset_count( const Slapi_ValueSet *vs);
Parameters
This function takes the following parameter:
516
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Pointer to the Slapi_ValueSet structure to which to add the
value.
Pointer to the Slapi_Value to add to the Slapi_ValueSet.
If SLAPI_VALUE_FLAG_PASSIN bit is set in the flags, the
function would take over the ownership of the new value to be
added without duplicating it.
slapi_valueset_add_value()
, for setting flags. If
Slapi_Value
, but has one more parameter,
SLAPI_VALUE_FLAG_PASSIN
structure.
Slapi_ValueSet
to a list
bit is set in
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers