HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Call this function:To:
“slapi_get_next_suffix()”Return the DN of the next root suffix of the DIT.
“slapi_is_root_suffix()”Check if a suffix is a root suffix of the DIT.
14.14 slapi_back end_state_change_fnptr
slapi_back end_state_change_fnptr specifies the prototype for a callback function,
which allows a plug-in to register for callback when a back end state changes.
Syntax
#include "slapi-plugin.h"
typedef void (*slapi_back end_state_change_fnptr)
(void *handle, char *be_name, int old_be_state, int new_be_state);
Parameters The function has the following parameters:
Pointer or reference to the address of the specified function.
handle
Name of the back end.
be_name
Old back end state.
old_be_state
New back end state.
new_be_state
Description The function enables a plug-in to register for callback when the state of a back end
changes. You may need to keep track of back end state changes when writing custom plug-ins.
See also
“slapi_register_back end_state_change()”
“slapi_unregister_back end_state_change()”
14.15 Slapi_ComponentID
Represents the component ID in a directory entry.
Syntax
#include "slapi-plugin.h"
typedef struct slapi_componentid Slapi_ComponentId;
Description Slapi_ComponentID is the data type for an opaque structure that represents the
component ID in a directory entry.
14.16 slapi_compute_callback_t
Represents a callback for evaluating computed attributes.
Syntax
#include "slapi-plugin.h"
typedef int (*slapi_compute_callback_t)
(computed_attr_context *c, char* type, Slapi_Entry *e,
slapi_compute_output_t outputfn);
Parameters The function has the following parameters:
Pointer to the computed_attr_context structure containing information
relevant to the computed attribute.
c
Attribute type of the attribute to be generated.
type
14.14 slapi_back end_state_change_fnptr 127