32.7. slapi_matchingrule_set()
This function sets information in an Slapi_MatchingRuleEntry structure. To get information from this structure, call the slapi_matchingrule_get() function.
#include "slapi-plugin.h" int slapi_matchingrule_set(Slapi_MatchingRuleEntry *mr, int arg, void *value);
This function takes the following parameters:
|
mr
| Slapi_MatchingRuleEntry structure in which you want to set data. |
|
arg
| ID specifying the type of information to set. |
|
value
| The value that you want to set. |
| ID | Data Type of the value Argument | Description |
|
SLAPI_MATCHINGRULE_NAME
|
char *
| Name of the matching rule. |
|
SLAPI_MATCHINGRULE_OID
|
char *
| OID of the matching rule. |
|
SLAPI_MATCHINGRULE_DESC
|
char *
| Description of the matching rule. |
|
SLAPI_MATCHINGRULE_SYNTAX
|
char *
| Syntax supported by the matching rule. |
|
SLAPI_MATCHINGRULE_OBSOLETE
|
int
| If 1, the matching rule is obsolete. |
This function returns one of the following values:
- 0 if the information was successfully set.
- -1 if an error occurred; for example, if an invalid argument was specified.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.