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

slapi_matchingrule_set()

Modify a Slapi_MatchingRuleEntry member.

Syntax

#include "slapi-plugin.h"
int slapi_matchingrule_set(Slapi_MatchingRuleEntry *mr, int arg,
    void *value);

Parameters

This function takes the following parameters:

mr

Matching rule registration object

arg

Identifier for the Slapi_MatchingRuleEntry member:

  • SLAPI_MATCHINGRULE_DESC, a string describing the matching rule

  • SLAPI_MATCHINGRULE_NAME, a string identifying the matching rule

  • SLAPI_MATCHINGRULE_OID, a string representing the matching rule object identifier

  • SLAPI_MATCHINGRULE_SYNTAX, the matching rule syntax OID string 1.3.6.1.4.1.1466.115.121.1.15

  • SLAPI_MATCHINGRULE_OBSOLETE, an int identifying whether the rule is obsolete

value

Value to affect to the member

Description

This function modifies a Slapi_MatchingRuleEntry member based on the identifier in arg.

Returns

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

See Also

slapi_matchingrule_get()

slapi_matchingrule_register()