Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 191

Table of Contents

Advertisement

Parameters
The function has the following parameters:
c
type
e
outputfn
Returns
One of the following values:
-1 if the function is not responsible for generating the computed attribute.
0 if the function successfully generates the computed attribute.
An LDAP error code if an error occurred.
Description
slapi_compute_callback_t
called by the server when generating a computed attribute. If you want to use
computed attributes, you should write a function of this type.
See Also
slapi_compute_output_t
slapi_compute_output_t
Represents a prototype for an output function for contributed attributes.
Syntax
#include "slapi-plugin.h"
typedef int (*slapi_compute_output_t)
(computed_attr_context *c, Slapi_Attr *a, Slapi_Entry *e);
Parameters
The function has the following parameters:
Pointer to the computed_attr_context structure containing
information relevant to the computed attribute.
Attribute type of the attribute to be generated.
Pointer to the Slapi_Entry structure representing the entry to
be sent back to the client.
Pointer to the slapi_compute_output_t function
responsible for BER-encoding the computed attribute and for
adding it to the BER element to be sent to the client.
specifies the prototype for a callback function that is
Chapter 14
Summary of Data Types and Structures
Data Type and Structure Reference
191

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents