32.5. slapi_matchingrule_new()

Description

This function allocates memory for a new Slapi_MatchingRuleEntry structure, which represents a matching rule. After you call this function, you can call the slapi_matchingrule_set() function to set the values in this structure and call the slapi_matchingrule_register() function to register the matching rule.

Syntax

#include "slapi-plugin.h"
Slapi_MatchingRuleEntry *slapi_matchingrule_new();

Returns

This function returns one of the following values:

  • A new Slapi_MatchingRuleEntry structure.
  • NULL if memory could not be allocated.