11.9. Specifying Start and Close Functions

For each matching rule operation plug-in, you can specify the name of a function to be called after the plug-in starts and before the plug-in is stopped or disabled. These functions take a single Slapi_PBlock argument.
The following table summarizes the different parameters that the initialization function should get and set in the parameter block that is passed in.

Table 11.8. Input and Output Parameters Available to a Matching Rule Plug-in Initialization Function

Parameter Name Data Type Description
SLAPI_PLUGIN_START_FN void * (function pointer) Output parameter. The function called after the plug-in starts.
SLAPI_PLUGIN_CLOSE_FN void * (function pointer) Output parameter. The function called before the plug-in is stopped or disabled.
If you register multiple plug-ins with different start and close functions, the functions are called in the order that the plug-ins are registered; in other words, in the order that the plugin directives appear in the server configuration file.