HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
const char *objectname,
slapi_extension_constructor_fnptr constructor,
slapi_extension_destructor_fnptr destructor,
int *objecttype, int *extensionhandle);
Parameters This function takes the following parameters:
Plug-in name.
pluginname
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.
objectname
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.
constructor
The function which is called when an instance of an object is destroyed. This function
must release any resources acquired by the constructor function.
destructor
Handle to find the offset into the object where the extension block is stored.
objecttype
Address, which is used to find the extension within the block.
extensionhandle
Returns This function returns 0 if successful, error code otherwise.
See also
“slapi_get_object_extension()”
“slapi_set_object_extension()”
48.3 slapi_set_object_extension()
Description This function enables a plug-in to change its extensions.
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:
Handle to find the offset into the object where the extension block is stored.
objecttype
A pointer to the core server object that needs to be changed.
object
Address for finding the extension within the block.
extensionhandle
Pointer to the extension block.
extension
See also
“slapi_register_object_extension()”
“slapi_get_object_extension()”
370 Functions for registering object extensions