Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_compute_add_search_rewriter_ex()

Sets callbacks for use by the server in searching against computed attributes.

Syntax

#include "slapi-plugin.h"
int slapi_compute_add_search_rewriter_ex(
    slapi_search_rewrite_callback_t function,
    slapi_search_rewrite_callback_t cleanup_function);

Parameters

This function takes the following parameters:

function

Function to call to rewrite a filter for the search

cleanup_function

Function to call to cleanup after performing the rewritten search

Returns

This function returns 0 if successful. Otherwise, it returns ENOMEM indicating that no memory could be allocated for the callback.

Description

For a description of the callbacks, refer to the Chapter 15, Data Type and Structure Reference