Specifies a search result callback function. The server calls this function when the internal search implemented to trigger this callback returns an LDAP result.
#include "slapi-plugin.h" typedef void (*plugin_result_callback)(int rc, void *callback_data);
The callback takes the following parameters.
Table 15–8 plugin_result_callback Parameters
Parameter |
Description |
---|---|
rc |
LDAP result code returned by the search. |
callback_data |
Pointer passed to the internal search operation. Use this to pass your own data between the callback function and the body of the plug-in. |
Pass this as the prc parameter of slapi_search_internal_callback_pb(). The server calls this function once for each search operation, unless the search is abandoned, in which case the function is not called.