HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Table 14-6 mrFilterMatchFn parameter listing
DescriptionParameter
Pointer to the filter structure created by your filter factory function. Refer to “Writing
a filter factory function” for more information.
filter
Pointer to the Slapi_Entry structure representing the candidate entry being checked
by the server.
entry
Pointer to the Slapi_Attr structure representing the first attribute in the entry. To
iterate through the rest of the attributes in the entry, call slapi_entry_next_attr().
attrs
Returns This function returns an integer value of 0 if the filter is matched or -1 if the filter did
not match. If an LDAP error occurs, it returns a value greater than 0.
See also “Writing a filter factory function”
14.6 plugin_referral_entry_callback
This typedef is used for LDAP referral entry callback functions, which are plugin-defined functions
that process LDAP references generated by some internal searches.
Syntax
#include "slapi-plugin.h"
typedef int (*plugin_referral_entry_callback)
(char *referral, void *callback_data);
Parameters The function takes the following parameters:
Table 14-7 plugin_referral_entry_callback parameter listing
DescriptionParameter
The URL of a reference that is returned in response to an internal search call.
referral
This value matches the callback_data pointer that was passed to the original internal
operation function.
callback_data
Returns The following table lists this function's possible return values.
Table 14-8 plugin_referral_entry_callback return values
DescriptionReturn value
Success0
An error occurred.-1
Description A function that matches this typedef can be passed as the prec parameter of
slapi_search_internal_callback_pb(), or as the ref_callback parameter of the
slapi_seq_internal_callback_pb() function.
The LDAP referral entry callback function is called once for each referral entry found by a search
operation, which means it could be called zero or any number of times.
The callback_data parameter can be used to pass arbitrary plug-in or operation-specific
information to a referral entry callback function.
14.7 plugin_result_callback
This typedef is used for LDAP result callback functions, which are plugin-defined functions that
process result messages that are generated by some internal search functions.
Syntax This typedef uses the following syntax:
#include "slapi-plugin.h"
typedef void (*plugin_result_callback)(int rc, void *callback_data);
14.6 plugin_referral_entry_callback 121