Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 394

Table of Contents

Advertisement

Functions for Handling Matching Rules
Syntax
#include "slapi-plugin.h"
int slapi_matchingrule_set(Slapi_MatchingRuleEntry *mr,
int arg, void *value);
Parameters
This function takes the following parameters:
mr
arg
value
The
arg
ID
SLAPI_MATCHINGRULE_NAME
SLAPI_MATCHINGRULE_OID
SLAPI_MATCHINGRULE_DESC
SLAPI_MATCHINGRULE_SYNTAX
SLAPI_MATCHINGRULE_OBSOLETE
Returns
This function returns one of the following values:
0
-1
Description
This function sets information in an
information from this structure, call the
392
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
Slapi_MatchingRuleEntry structure in which you want to set data.
ID specifying the type of information you want to set.
The value that you want to set.
argument can have one of the following values:
if the information was successfully set.
if an error occurred; for example, if an invalid argument was specified.
Data Type
Description
of the value
Argument
Name of the matching rule.
char *
OID of the matching rule.
char *
Description of the matching rule.
char *
Syntax supported by the matching
char *
rule.
If 1, the matching rule is obsolete.
int
Slapi_MatchingRuleEntry
slapi_matchingrule_get()
structure. To get
function.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents