Functions for Registering Object Extensions
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
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.
490
Netscape Directory Server Plug-In Programmer's Guide • May 2002
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.
with the object from which the extension is to be
to find the offset into the object of where
objecttype