Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 378

Table of Contents

Advertisement

Functions for Handling Matching Rules
Returns
This function returns one of the following values:
0 if the information was successfully retrieved.
-1 if an error occurred (for example, if an invalid argument was specified).
Description
This function gets information about a matching rule from the
Slapi_MatchingRuleEntry
the
slapi_matchingrule_set()
slapi_matchingrule_new()
Allocates memory for a new
Syntax
#include "slapi-plugin.h"
Slapi_MatchingRuleEntry *slapi_matchingrule_new();
Returns
This function returns one of the following values:
A new
NULL
Description
This function allocates memory for a new
structure, which represents a matching rule. After you call this function, you
can call the
and call the
rule.
slapi_matchingrule_register()
Registers the specified matching rule with the server.
Syntax
#include "slapi-plugin.h"
int slapi_matchingrule_register(Slapi_MatchingRuleEntry *mrEntry);
378
Netscape Directory Server Plug-In Programmer's Guide • December 2003
structure. To set information in this structure, call
Slapi_MatchingRuleEntry
Slapi_MatchingRuleEntry
if memory could not be allocated.
slapi_matchingrule_set()
slapi_matchingrule_register()
function.
structure.
Slapi_MatchingRuleEntry
function to set the values in this structure
function to register the matching
structure.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents