HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
The Slapi_MatchingRuleEntry structure that you want to free from memory.mrEntry
If 1, the function also frees the members of the structure from memory.freeMembers
32.3 slapi_matchingrule_get()
Gets information about a matching rule.
This function gets information about a matching rule from the Slapi_MatchingRuleEntry
structure. To set information in this structure, call the slapi_matchingrule_set() function.
Syntax
#include "slapi-plugin.h"
int slapi_matchingrule_get(SlPi_MatchingRuleEntry *mr, int arg,
void *value);
Parameters This function takes the following parameters:
Slapi_MatchingRuleEntry structure from which you want to get data.mr
ID specifying the type of information you want to get.
arg
Pointer to a variable to hold the retrieved data.
value
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 retrieved.
-1 If an error occurred; for example, if an invalid argument was specified.
32.4 slapi_matchingrule_is_ordering()
Determines if the matching rule is a valid ordering matching rule for the given syntax.
Syntax This function takes the following syntax:
int slapi_matchingrule_is_ordering(const char *oid_or_name,
const char *syntax_oid)
slapi_matchingrule_is_ordering Parameters This function has the following parameters:
DescriptionParameter
The OID or name of the matching rule being applied.
oid_or_name
The OID of the entry syntax. The function compares the type of matching rule to the
allowed syntax.
syntax_oid
260 Functions for handling matching rules