Specifies a callback function for an object extension.
#include "slapi-plugin.h"
typedef void *(*slapi_extension_constructor_fnptr)
(void *object, void *parent);
The callback takes the following parameters.
Table 15–16 slapi_extension_constructor_fnptr Parameters|
Parameter |
Description |
|---|---|
|
object |
Extended object |
|
parent |
Parent object for the extension |
This callback registers an object extension that can be retrieved using slapi_get_object_extension().
Ensure that this callback only creates the object extension if it does not already exist.
The callback is registered with the server using slapi_register_object_extension() as part of the actual plug-in initialization function.
This callback returns a pointer to the extension. Otherwise it returns NULL.