HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
The arg argument can have one of the following values:
DescriptionData type of the value argumentID
Name of the matching rule.
char *SLAPI_MATCHINGRULE_NAME
OID of the matching rule.
char *SLAPI_MATCHINGRULE_OID
Description of the matching rule.
char *SLAPI_MATCHINGRULE_DESC
Syntax supported by the matching rule.
char *SLAPI_MATCHINGRULE_SYNTAX
If 1, the matching rule is obsolete.intSLAPI_MATCHINGRULE_OBSOLETE
Returns This function returns one of the following values:
0 If the information was successfully set.
-1 If an error occurred; for example, if an invalid argument was specified.
32.8 slapi_matchingrule_unregister()
Placeholder for future function. Currently, this function does nothing.
Syntax
#include "slapi-plugin.h"
int slapi_matchingrule_unregister(char *oid);
32.9 slapi_mr_filter_index()
Calls the indexer function associated with an extensible match filter.
If the filter specified by the f argument is an extensible match filter, this function calls the indexer
function associated with the filter.
Before calling this function, make sure that the parameter block pb contains the information
needed by the indexer function. You can pass information to the indexer function by using the
following parameters:
SLAPI_PLUGIN_MR_VALUES should contain a NULL-terminated list of values from the
extensible match filter.
SLAPI_PLUGIN_OBJECT should contain information that you want to pass to the indexer
function.
The indexer function should set the SLAPI_PLUGIN_MR_KEYS parameter of the parameter block
pb to an array of the keys that correspond to the values in the SLAPI_PLUGIN_MR_VALUES
parameter.
For more information on filter index functions and indexer functions, see Chapter 11 “Writing
matching rule plug-ins”.
Syntax
#include "slapi-plugin.h"
int slapi_mr_filter_index (Slapi_Filter *f, Slapi_PBlock *pb);
Parameters This function takes the following parameters:
Pointer to a “Slapi_Filterstructure, representing the extensible match filter for which
you want to find the indexer function.
f
Parameter block containing information about the extensible match filter.
pb
Returns This function returns the result code returned by the indexer function.
262 Functions for handling matching rules