Functions for Registering Object Extensions
This section contains reference information on routines for registering object
extensions. This set of functions provides a means for extending core server
objects—this functionality is provided so that you can efficiently pass state
information between plug-in calls. Typically, a plug-in might register both a
pre-operation and post-operation call. It is very convenient for the plug-in to
associate its private data with the operation object that is passed through the
parameter block.
Table 15-34 Routines for Registering Object Extensions
Function
slapi_get_object_extension()
slapi_register_object_extension()
slapi_set_object_extension()
slapi_get_object_extension()
Retrieves a pointer to the plug-in extension.
Syntax
#include "slapi-plugin.h"
void *slapi_get_object_extension(int objecttype, void *object,
int extensionhandle);
Parameters
This function takes the following parameters:
objecttype
object
extensionhandle
Description
Retrieves a pointer to the plug-in extension.
Registers a plug-in's object extension.
Changes a plug-in's object extension.
The object type handle that was returned from the
slapi_register_object_extension() call.
A pointer to the core server object from which the extension is to
be retrieved.
The extension handle that was returned from the
slapi_register_object_extension() call.
Functions for Registering Object Extensions
Chapter 15
Function Reference
545
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers