Syntax
#include "slapi-plugin.h" int slapi_matchingrule_set(Slapi_MatchingRuleEntry *mr, int arg, void *value); Parameters
#include "slapi-plugin.h" int slapi_matchingrule_set(Slapi_MatchingRuleEntry *mr, int arg, void *value);
The function has the following parameters:
mr
arg
value
The arg argument can have one of the following values:
SLAPI_MATCHINGRULE_NAME
char *
SLAPI_MATCHINGRULE_OID
SLAPI_MATCHINGRULE_DESC
SLAPI_MATCHINGRULE_SYNTAX
SLAPI_MATCHINGRULE_OBSOLETE
int
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).
Description. This function sets information in an Slapi_MatchingRuleEntry structure. To get information from this structure, call the slapi_matchingrule_get() function.