Specifies a callback function for registering other plug-ins.
#include "slapi-plugin.h" typedef int (*slapi_plugin_init_fnptr)( Slapi_PBlock *pb );
The callback takes the following parameter.
Table 15–19 slapi_plugin_init_fnptr Parameter
Parameter |
Description |
---|---|
pb |
Parameter block passed to the initialization function. |
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.
This callback returns 0 on success. Otherwise, it returns -1.
For examples of plug-in initialization functions, refer to the sample plug-ins under $INSTALL_DIR/examples/.