Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual page 202

For plug-in
Table of Contents

Advertisement

Summary of Data Types and Structures
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:
Returns
One of the following values:
0
to the BER element to be sent to the client.
An LDAP error code if an error occurred.
Description
slapi_compute_output_t
BER-encodes a computed attribute and appends it to the BER element to be sent
to the client.
You do not need to define a function of this type. The server will pass a function
of this type your
slapi_compute_callback_t
slapi_compute_output_t
For example:
static int
my_compute_callback(computed_attr_context *c, char* type,
Slapi_Entry *e, slapi_compute_output_t outputfn)
{
...
int rc;
Slapi_Attr my_computed_attr;
...
/* Call the output function after created the computed
rc = (*outputfn) (c, &my_computed_attr, e);
...
}
202
Netscape Directory Server Plug-in Programmer's Guide • October 2004
if the function successfully BER-encodes the computed attribute and adds it
slapi_compute_callback_t
attribute and setting its values. */
specifies the prototype for a callback function that
function. In your
function, you need to call this
function.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents