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

slapi_matchingrule_register()

Register a matching rule with the server.

Syntax

#include "slapi-plugin.h"
int slapi_matchingrule_register(Slapi_MatchingRuleEntry *mrEntry);

Parameters

This function takes the following parameters:

mrEntry

Matching rule registration object

Description

This function registers a Slapi_MatchingRuleEntry with the server. Register matching rules as part of the plug-in initialization function.

First, allocate the structure using slapi_matchingrule_new() . Next, set the members of the matching rule entry using slapi_matchingrule_set(). After setting the members, register the matching rule with the server using this function. Finally, free the memory allocated using slapi_matchingrule_free().

Returns

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

See Also

slapi_matchingrule_free()

slapi_matchingrule_get()

slapi_matchingrule_new()

slapi_matchingrule_set()