Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 546

Table of Contents

Advertisement

Functions for Registering Object Extensions
Returns
This function returns a pointer to the plug-in's extension.
Description
A plug-in retrieves a pointer to its own extension by calling
slapi_get_object_extension
retrieved. The factory uses
the extension block is stored. The extension handle is then used to find the
appropriate extension within the block.
See Also
slapi_register_object_extension()
slapi_set_object_extension()
slapi_register_object_extension()
Registers a plug-in's object extension.
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
546
Netscape Directory Server Plug-In Programmer's Guide • December 2003
with the object from which the extension is to be
to find the offset into the object of where
objecttype
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents