Chapter 48. Functions for Registering and Unregistering Object Extensions
Table 48.1. Routines for Registering Object Extensions
| Function | Description |
|---|---|
| slapi_get_object_extension() | Retrieves a pointer to the plug-in extension. |
| slapi_register_object_extension() | Registers a plug-in's object extension. |
| slapi_set_object_extension() | Changes a plug-in's object extension. |
48.1. slapi_get_object_extension()
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 where the extension block is stored. The extension handle is then used to find the appropriate extension within the block.
#include "slapi-plugin.h" void *slapi_get_object_extension(int objecttype, void *object, int extensionhandle);
This function takes the following parameters:
|
objecttype
| The object type handle that was returned from the slapi_register_object_extension() call. |
|
object
| A pointer to the core server object from which the extension is to be retrieved. |
|
extensionhandle
| The extension handle that was returned from the slapi_register_object_extension() call. |
This function returns a pointer to the plug-in's extension.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.