Syntax
#include "slapi-plugin.h" int slapi_get_supported_controls( char ***ctrloidsp, unsigned long **ctrlopsp ); Parameters
#include "slapi-plugin.h" int slapi_get_supported_controls( char ***ctrloidsp, unsigned long **ctrlopsp );
The function has the following parameters:
ctrloidsp
ctrlopsp
Returns
0 if successful.
Description
When you call the slapi_register_supported_control() function to register a control, you specify the OID of the control and the IDs of the operations that support the control.
The server records this information in two arrays: an array of control OIDs and an array of operations that support the control. You can get these arrays by calling the slapi_get_supported_controls() function.
For each OID specified in the ctrloidsp array, the corresponding array element (with the same index) in the ctrlopsp array identifies the operations that support the control.
For a list of the possible IDs for the operations, see slapi_register_supported_control().