Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_extension_constructor_fnptr

Specifies a callback function for an object extension.

Syntax

#include "slapi-plugin.h"
typedef void *(*slapi_extension_constructor_fnptr)
    (void *object, void *parent);

Parameters

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 

Description

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.

Returns

This callback returns a pointer to the extension. Otherwise it returns NULL.