HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
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
DescriptionFunction
Allows a plug-in to register a plug-in.“slapi_register_plugin()”
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:
Handle to find the offset into the object where the extension block is stored.
plugintype
A pointer to the core server object that needs to be changed.
enabled
Address for finding the extension within the block.
initsymbol
Pointer to the extension block.
initfunc
Pointer to the name of the plug-in.
name
Pointer to an array of the plug-ins.
argv
Group identity of the plug-ins.
group_identity
50.1 slapi_register_plugin() 375