Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 154

Table of Contents

Advertisement

Writing an Initialization Function
The
filter factory function. See "How the Server Handles the Filter," on page 143,
and "Writing a Filter Factory Function," on page 145, for details.
The
indexer factory function if you have defined one. Optional. See "How the
Server Sets Up the Index," on page 137, and "Writing the Indexer Factory
Function," on page 139, for details.
The
you have defined one. Optional. See "Specifying Start and Close Functions,"
on page 153, for details.
The
want made accessible to the plug-in functions. Optional.
You need to register the initialization function so that the server runs the function
when starting up. For how to register matching rule functions, see "Registering
Matching Rule Functions," on page 153.
The following table summarizes the different parameters that the initialization
function should get and set in the parameter block that is passed in.
Table 11-7
Input and Output Parameters Available to a Matching Rule Plug-in Initialization Function
Parameter Name
SLAPI_PLUGIN_ARGC
SLAPI_PLUGIN_ARGV
SLAPI_PLUGIN_MR_FILTER_CREATE_FN
SLAPI_PLUGIN_MR_INDEXER_CREATE_FN
152
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
SLAPI_PLUGIN_MR_FILTER_CREATE_FN
SLAPI_PLUGIN_MR_INDEXER_CREATE_FN
SLAPI_PLUGIN_CLOSE_FN
SLAPI_PLUGIN_PRIVATE
Data Type
int
char **
void *
(function pointer)
void *
(function pointer)
parameter should be set to the
parameter should be set to the
parameter should be set to the close function if
parameter should be set to any private data you
Description
Input parameter. Number of
arguments in the plugin
directive, not including the
library name and initialization
function name.
Input parameter. Array of string
arguments in the plugin
directive, not including the
library name and initialization
function name.
Output parameter. The factory
function used for creating
filters.
Output parameter. The factory
function used for creating
indexers.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents