Show Table of Contents
51.14. slapi_plugin_task_register_handler()
Registers a new task handler function.
The name parameter passed in the function the value of the
cn attribute of the task container for the new task for which the plug-in is being written. The handler function is called when a new task entry is created inside of the container entry matching the name parameter.
Typically, call this from the plug-in start function.
Syntax
int slapi_plugin_task_register_handler(const char *name, dseCallbackFn func, Slapi_PBlock *plugin_pb)
Parameters
This function takes the following parameter:
| name | Gives the name of the task handler. |
| plugin_pb | This is the Slapi_Pblock that is used to initialize the plug-in in the start function of the plug-in. This parameter is used to properly track the task, so that it can be removed later after the plug-in is stopped or closed. |

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.