Chapter 50. Functions for Registering Additional Plug-ins

This chapter contains reference information on interfaces that allow a plug-in to register additional plug-ins.

Table 50.1. Routines for Registering Additional Plug-ins

Function Description
slapi_register_plugin() Allows a plug-in to register a plug-in.

50.1. slapi_register_plugin()

Description

This function allows a plug-in to register a plug-in. This was added so that an object plug-in can register all the plug-in interfaces that it supports, including legacy plug-ins.

Syntax

#include "slapi-plugin.h"
int slapi_register_plugin( const char *plugintype, int enabled, const char *initsymbol, 
slapi_plugin_init_fnptr initfunc, const char *name, char **argv, void *group_identity);

Parameters

This function takes the following parameters:

plugintype
Handle to find the offset into the object where the extension block is stored.
enabled
A pointer to the core server object that needs to be changed.
initsymbol
Address for finding the extension within the block.
initfunc
Pointer to the extension block.
name
Pointer to the name of the plug-in.
argv
Pointer to an array of the plug-ins.
group_identity
Group identity of the plug-ins.