Slapi_Register_Object_Extension() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Registering Object Extensions
Description
A plug-in retrieves a pointer to its own extension by calling
slapi_get_object_extension
retrieved. The factory uses
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
constructor
556
Netscape Directory Server Plug-in Programmer's Guide • October 2004
with the object from which the extension is to be
to find the offset into the object where the
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.
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents