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, e.g.,
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
created; this is why the registration must happen during plug-in initialization. In
return, the plug-in will receive two handles, one for the object type and another one
for the object extension; these only have meaning for the
slapi_get_object_extension()
Returns
This function returns
See Also
slapi_get_object_extension()
slapi_set_object_extension()
slapi_set_object_extension()
Changes a plug-in's object extension.
Syntax
#include "slapi-plugin.h"
void slapi_set_object_extension(int objecttype, void *object,
int extensionhandle, void *extension);
Parameters
This function takes the following parameters:
objecttype
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.
function.
if successful, error code otherwise.
0
Handle to find the offset into the object where the extension
block is stored.
Functions for Registering Object Extensions
, and constructor and
Operation
Chapter 15
Function Reference
557
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