Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual page 235

Table of Contents

Advertisement

Returns
This function returns one of the following values:
A pointer to the backend structure of the first backend, and its index, in the
cookie
NULL
Description
This function returns a pointer to the backend structure of the first backend. If you
wish to iterate through all of the backends, use this function in conjunction with
slapi_get_next_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_next_backend()
slapi_get_first_suffix()
Returns the first root suffix of the DIT.
Syntax
#include "slapi-plugin.h"
Slapi_DN * slapi_get_first_suffix(void ** node, int show_private);
Parameters
This function takes the following parameter:
node
parameter
if there is no backend.
{
...
be = slapi_get_next_backend (cookie);
}
Contains the returned valued, which is the DN of the first root
suffix of the DIT.
. For example:
Functions for Managing Backend Operations
.
slapi_ch_free()
Chapter 14
Function Reference
235

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents