51.7. slapi_task_get_data()

Retrieves an opaque data pointer from a task.
Syntax

void * slapi_task_get_data(Slapi_Task *task)

Parameters

This function takes the following parameter:

task Points to the task operation which is being performed by the server.
Memory Concerns

This function returns the pointer that was passed into slapi_task_set_data(). Most of the time, do not free this memory directly. It is recommended that a destructor callback function, such as slapi_task_set_destructor_fn(), be specified after creating the task. This descructor callback function is then responsible for cleaning up the task data.