Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 422

Table of Contents

Advertisement

Functions for Managing Parameter Block
If you reuse the pointer in this way, it makes it easier to identify a Segmentation
Fault, rather than using some difficult method to detect memory leaks or other
abnormal behavior.
It is safe to call this function with a NULL pointer. For example:
Slapi_PBlock *pb = NULL;
slapi_pblock_destroy(pb);
This saves the trouble of checking for NULL before calling
slapi_pblock_destroy()
See Also
slapi_pblock_new()
slapi_pblock_get()
Gets the value of a name-value pair from a parameter block.
Syntax
#include "slapi-plugin.h"
int slapi_pblock_get( Slapi_PBlock *pb, int arg, void *value );
Parameters
This function takes the following parameters:
pb
arg
value
Returns
This function returns one of the following values:
0 if successful.
-1 if an error occurs (for example, if an invalid ID is specified).
Memory Concerns
The void
retrieving:
422
Netscape Directory Server Plug-In Programmer's Guide • December 2003
.
Parameter block.
ID of the name-value pair that you want to get. For a list of IDs that you
can specify, see Chapter 16, "Parameter Block Reference."
Pointer to the value retrieved from the parameter block.
argument should always be a pointer to the type of value you are
*value

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Directory server 6.2

Table of Contents