Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_compute_add_evaluator()

Sets a callback for use by the server in evaluating which computed attributes to generate and include in an entry before returning a result to a client.

Syntax

#include "slapi-plugin.h"
int slapi_compute_add_evaluator(slapi_compute_callback_t fcn);

Parameters

This function takes the following parameters:

fcn

Function to call when evaluating computed attributes

Returns

This function returns 0 if successful. Otherwise, it returns ENOMEM indicating that no memory could be allocated for the callback.

Description

For a description of the callback, refer to slapi_compute_callback_t . Register the callback as part of plug-in initialization.

See Also

computed_attr_context

slapi_compute_callback_t

slapi_pblock_new()