51.2. slapi_plugin_new_task()

Creates a new server task and returns a pointer to the Slapi_Task structure.
Syntax

Slapi_Task *slapi_plugin_new_task(const char *dn, void *arg)

Parameters

This function takes the following parameters:

dn The DN of the task entry that was defined for this instance of the task. This DN is used by the task process to identify the appropriate task configuration entry so the process can write log and status messages.
arg Represents the Slapi_Pblock used when starting the plug-in.