Register another plug-in.
#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);
This function takes the following parameters:
String identifying the plug-in type as described under Plug-In Registration
1 to enable the plug-in on registration, 0 otherwise
String representation of the plug-in initialization function initfunc such as "my_init_fcn"
Pointer to the plug-in initialization function
Common Name for the plug-in
Arguments passed to the plug-in
Plug-in group identifier, typically obtained from SLAPI_PLUGIN_IDENTITY for the plug-in calling this function
This function registers another plug-in. Register plug-ins as part of the plug-in initialization function.
This function returns 0 if successful. Otherwise, it returns -1.