Functions for Registering Object Extensions
546
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
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
with the object from which the extension is to be
retrieved. The factory uses
objecttype
to find the offset into the object of where
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.
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
Plug-in name.
objectname
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.
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...