14.14. slapi_backend_state_change_fnptr

slapi_backend_state_change_fnptr specifies the prototype for a callback function, which allows a plug-in to register for callback when a backend state changes.
Syntax

 

#include "slapi-plugin.h"
typedef void (*slapi_backend_state_change_fnptr)
 (void *handle, char *be_name, int old_be_state, int new_be_state);
Parameters

The function has the following parameters:

handle Pointer or reference to the address of the specified function.
be_name Name of the backend.
old_be_state Old backend state.
new_be_state New backend state.

Description

The function enables a plug-in to register for callback when the state of a backend changes. You may need to keep track of backend state changes when writing custom plug-ins.