Summary of Data Types and StructuresChapter 14 Data Type and Structure Reference 1932. In your plug-in initialization function, register your function for sendingresults to the client by setting the SLAPI_PLUGIN_PRE_RESULT_FN orSLAPI_PLUGIN_POST_RESULT_FN parameter, depending on the type of plug-inand if it is a pre-operation or post-operation, respectively, in the parameterblock to the name of your function.See slapi_send_ldap_result() for information on the default function thatsends LDAP result codes to clients.See Alsoslapi_send_ldap_result()send_ldap_search_entry_fn_ptr_tsend_ldap_result_fn_ptr_t specifies the prototype for a callback function thatyou can write to send search results (entries found by a search) back to the client.You can register your function so that it is called whenever theslapi_send_ldap_search_entry() function is called.Syntax#include "slapi-plugin.h"typedef int (*send_ldap_search_entry_fn_ptr_t)( Slapi_PBlock *pb, Slapi_Entry *e, LDAPControl **ectrls,char **attrs, int attrsonly );DescriptionThe slapi_send_ldap_search_entry() function is responsible for sendingentries found by a search back to the client. You can replace the function that sendsentries to the client with your own function. To do this:1. Write a function with the prototype specified bysend_ldap_search_entry_fn_ptr_t.2. In your plug-in initialization function, register your function by setting theSLAPI_PLUGIN_PRE_ENTRY_FN parameter in the parameter block to the nameof your function if you are using the pre-operation plug-in. If you are using thepost-operation plug-in, register your function by setting theSLAPI_PLUGIN_POST_ENTRY_FN parameter in the parameter block to the nameof your function.See slapi_send_ldap_search_entry() for information on the default functionthat sends entries to clients.