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.
See Also