Chapter 34. Functions for Monitoring Operations

This chapter contains reference information on operation routines.

Table 34.1. Operation Routines

Function Description
slapi_op_abandoned() Determines if the client has abandoned the current operation.
slapi_op_get_type() Gets the type of a Slapi_Operation.

34.1. slapi_op_abandoned()

Description

This function allows you to verify if the operation associated to the pblock in the parameter has been abandoned. This function is useful to check periodically the operations status of long-running plug-ins.

Syntax

#include "slapi-plugin.h"
int slapi_op_abandoned( Slapi_PBlock *pb );

Parameters

This function takes the following parameter:

pb
Parameter block passed in from the current operation.
Returns

This function returns one of the following values:

  • 1 if the operation has been abandoned.
  • 0 if the operation has not been abandoned.