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

slapi_register_plugin()

Register another plug-in.

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

String identifying the plug-in type as described under Plug-In Registration

enabled

1 to enable the plug-in on registration, 0 otherwise

initsymbol

String representation of the plug-in initialization function initfunc such as "my_init_fcn"

initfunc

Pointer to the plug-in initialization function

name

Common Name for the plug-in

argv

Arguments passed to the plug-in

group_identity

Plug-in group identifier, typically obtained from SLAPI_PLUGIN_IDENTITY for the plug-in calling this function

Description

This function registers another plug-in. Register plug-ins as part of the plug-in initialization function.

Returns

This function returns 0 if successful. Otherwise, it returns -1.

See Also

slapi_plugin_init_fnptr