Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual page 237

Table of Contents

Advertisement

Returns
This function returns one of the following values:
A pointer to the next backend, if it exists, and updates the
Otherwise, it returns
Description
This function returns a pointer to the next backend. If you wish to iterate through
all of the backends, use this function in conjunction with
slapi_get_first_backend()
Slapi_Backend *be = NULL;
char *cookie = NULL;
be = slapi_get_first_backend (&cookie);
while (be )
slapi_ch_free ((void**)&cookie);
Memory Concerns
Free the cookie parameter after the iteration using
See Also
slapi_get_first_backend()
slapi_ch_free()
slapi_get_next_suffix()
Returns the DN of the next root suffix of the DIT.
Syntax
#include "slapi-plugin.h"
Slapi_DN * slapi_get_next_suffix(void ** node, int show_private);
Parameters
This function takes the following parameter:
show_private
NULL
{
...
be = slapi_get_next_backend (cookie);
}
0 checks only for non-private suffixes.
1 checks for both private and non-private suffixes.
and
is not changed.
cookie
. For example:
slapi_ch_free()
Functions for Managing Backend Operations
parameter.
cookie
.
Chapter 14
Function Reference
237

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents