Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 491

Table of Contents

Advertisement

Syntax
#include "slapi-plugin.h"
int slapi_register_object_extension( const char *pluginname,
const char *objectname,
slapi_extension_constructor_fnptr constructor,
slapi_extension_destructor_fnptr destructor,
int *objecttype, int *extensionhandle);
Parameters
This function takes the following parameters:
pluginname
objectname
constructor
destructor
objecttype
extensionhandle
Description
When a plug-in is initialized, it must register its object extensions. It must provide
the name of the object to be extended, say "Operation," and constructor and
destructor functions. These functions are called when the object is constructed and
destroyed. The extension functions must allocate some memory and initialize it for
its own use. The registration function will fail if any objects have already been
Plug-in name.
The name of the core server object to be extended. Objects that
can be extended (possible values for the objectname
parameter):
• SLAPI_EXT_CONNECTION (Connection)
• SLAPI_EXT_OPERATION (Operation)
• SLAPI_EXT_ENTRY (Entry)
• SLAPI_EXT_MTNODE (Mapping Tree Node)
Currently, only Operation and Connection are supported.
The function provided by the plug-in which is to be called when
an instance of the core server object is created. This function
must allocate some memory and return a pointer to be stored in
the extension block on the object.
The function which is called when an instance of an object is
destroyed. This function must release any resources acquired by
the constructor function.
Handle to find the offset into the object where the extension
block is stored.
Address, which is used to find the extension within the block.
Functions for Registering Object Extensions
Chapter 14
Function Reference
491

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents