HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Gives the name of the new function.
name
See also
dseCallbackFn
51.15 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:
Points to the task operation which is being performed by the server.
task
Specific data to use to perform the operation.
data
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.
See also
slapi_task_get_data()
slapi_task_set_destructor_fn()
TaskCallbackFn
51.16 slapi_task_set_cancel_fn()
Sets a callback to be used when a task is cancelled.
The destruction of the task itself is taken care of automatically, but a callback can be set to perform
specific operations related to canceling a task. Any custom destructor function is called after the
cancel function.
Syntax
void slapi_task_set_cancel_fn(Slapi_Task *task, TaskCallbackFn func)
Parameters This function takes the following parameter:
Points to the task operation which is being performed by the server.
task
See also
slapi_task_set_destructor_fn()
TaskCallbackFn
51.17 slapi_task_set_destructor_fn()
Sets a callback to be used when a task is destroyed.
The destruction of the task itself is taken care of automatically, but a callback can be set to clean
up any data that were passed with slapi_task_set_data().
Syntax
void slapi_task_set_destructor_fn(Slapi_Task *task, TaskCallbackFn func)
382 Functions for server tasks