51.16. slapi_task_set_data()

Adds an opaque data object pointer to your task.
This is function is useful for including data-specific information that the handler function can assign to the thread that actually performs the task.
Syntax

void slapi_task_set_data(Slapi_Task *task, void *data)

Parameters

This function takes the following parameters:

task Points to the task operation which is being performed by the server.
data Specific data to use to perform the operation.
Memory Concerns

Whatever is added to the task must be allocated by the caller. To free these data, set a destructor callback function using the slapi_task_set_destructor_fn() function.