Show Table of Contents
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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.