Slapi_Dup_Control() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Dealing with Controls
val
iscritical
Returns
This function returns one of the following values:
1
0
Memory Concerns
The
val
control value is not made.
See Also
slapi_get_supported_controls_copy()
slapi_register_supported_control()

slapi_dup_control()

Makes an allocated copy of an
Syntax
#include "slapi-plugin.h"
LDAPControl * slapi_dup_control( LDAPControl *ctrl )
Parameters
This function takes the following parameter:
ctrl
294
Netscape Directory Server Plug-in Programmer's Guide • October 2004
If the control is present in the list of controls, specifies the pointer to
the berval structure containing the value of the control.
If the control is present in the list of controls, specifies whether or not
the control is critical to the operation of the server:
• 0 means that the control is not critical to the operation.
• 1 means that the control is critical to the operation.
if the specified control is present in the list of controls.
if the control is not present in the list of controls.
output parameter is set to point into the controls array. A copy of the
Pointer to an LDAPControl structure whose contents are to be
duplicated.
.
LDAPControl

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents