Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_plugin_init_fnptr

Specifies a callback function for registering other plug-ins.

Syntax

#include "slapi-plugin.h"
typedef int (*slapi_plugin_init_fnptr)( Slapi_PBlock *pb );

Parameters

The callback takes the following parameter.

Table 15–19 slapi_plugin_init_fnptr Parameter

Parameter 

Description 

pb

Parameter block passed to the initialization function. 

Description

This callback mimics a plug-in initialization function, permitting one plug-in to register other plug-ins. The function is registered with the server using slapi_register_plugin() as part of the actual plug-in initialization function.

Returns

This callback returns 0 on success. Otherwise, it returns -1.

See Also

For examples of plug-in initialization functions, refer to the sample plug-ins under $INSTALL_DIR/examples/.