![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 185](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642185.webp)
Summary of Data Types and Structures
Chapter
14
Data Type and Structure Reference
185
2.
In your plug-in initialization function, register your function for sending
results to the client by setting the
SLAPI_PLUGIN_PRE_RESULT_FN
or
SLAPI_PLUGIN_POST_RESULT_FN
parameter (depending on the type of plug-in,
and if it is a pre-operation or post-operation, respectively) in the parameter
block to the name of your function.
See
slapi_send_ldap_result()
for information on the default function that
sends LDAP result codes to clients.
See Also
slapi_send_ldap_result()
send_ldap_search_entry_fn_ptr_t
send_ldap_result_fn_ptr_t
specifies the prototype for a callback function that
you 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 the
slapi_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 );
Description
The
slapi_send_ldap_search_entry()
function is responsible for sending
entries found by a search back to the client. You can replace the function that sends
entries to the client with your own function. To do this:
1.
Write a function with the prototype specified by
send_ldap_search_entry_fn_ptr_t
.
2.
In your plug-in initialization function, register your function by setting the
SLAPI_PLUGIN_PRE_ENTRY_FN
parameter in the parameter block to the name
of your function if you are using the pre-operation plug-in. If you are using the
post-operation plug-in, register your function by setting the
SLAPI_PLUGIN_POST_ENTRY_FN
parameter in the parameter block to the name
of your function.
See
slapi_send_ldap_search_entry()
for information on the default function
that sends entries to clients.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...