slapi_pblock_set()

slapi_pblock_set() sets the value of a name-value pair in a parameter block.

Syntax
#include "slapi-plugin.h"
int slapi_pblock_set( Slapi_PBlock *pb, int arg, void *value );
Parameters
pb
A pointer to a parameter block.
arg
The ID of the name-value pair that you want to set.
value
A pointer to the value that you want to set in the parameter block. Free the value only if the caller is replacing the value in the pblock with a new value by calling slapi_pblock_set().
Returns
If successful 0 is returned, -1 if an error occurs.