26.2. slapi_filter_compare()

Description

This function allows you to determine if two filters are identical and/or are allowed to be in a different order.

Syntax

#include "slapi-plugin.h"
int slapi_filter_compare(struct slapi_filter *f1, struct slapi_filter *f2);

Parameters

This function takes the following parameters:

f1
First filter to compare.
f2
Second filter to compare.
Returns

This function returns one of the following values:

  • 0 if the two filters are identical.
  • A value other than 0 if the two filters are not identical.