20.21. slapi_be_setentrypoint()

Description

Sets the entry point in the backend to the specified function.

Syntax

#include "slapi-plugin.h"
int slapi_be_setentrypoint(Slapi_Backend *be, int entrypoint, void *ret_fnptr, Slapi_PBlock *pb);

Parameters

This function takes the following parameters:

be Pointer to the structure containing the backend configuration.
entrypoint Entry point in the backend.
ret_fnptr Opaque pointer to store function address.
pb Pointer to the parameter block.
Returns

This function returns 0 if successful, -1 otherwise.