22.3. slapi_call_syntax_values2keys_sv()

Description

When adding or removing values from an index, the Directory Server calls the function (defined in the specified syntax plug-in) responsible for returning an array of keys matching the specified values.

Syntax

#include "slapi-plugin.h"
int slapi_call_syntax_values2keys_sv( void *vpi, Slapi_Value **vals, Slapi_Value ***ivals, int ftype );

Parameters

This function takes the following parameters:

vpi
Handle to plug-in for this attribute type.
vals
Pointer to the Slapi_Value structure containing the value to add or delete.
ivals
Pointer to an array of Slapi_Value structures containing the values returned by the plug-in function; these values can be compared against entries in the directory.
ftype
Type of filter; for example, LDAP_FILTER_EQUALITY.
Returns

This function returns one of the following values:

  • 0 if successful.
  • -1 if an error occurs; for example, if the corresponding function for the specified plug-in is not found.