HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Syntax
#include "slapi-plugin.h"
void * slapi_be_get_instance_info(Slapi_Back end * be);
Parameters This function takes the following parameter:
Pointer to the structure containing the back end configuration.
be
Returns This function returns an opaque pointer to the instance information.
20.6 slapi_be_get_name()
Description Returns the name of the specified back end.
Syntax
#include "slapi-plugin.h"
char * slapi_be_get_name(Slapi_Back end * be);
Parameters This function takes the following parameter:
Pointer to the structure containing the back end configuration.
be
Returns This function returns the name associated to the specified back end.
Memory concerns You should not free the returned pointer.
20.7 slapi_be_get_readonly()
Description Indicates if the database associated with the back end is in read-only mode.
Syntax
#include "slapi-plugin.h"
int slapi_be_get_readonly(Slapi_Back end *be);
Parameters This function takes the following parameter:
Pointer to the structure containing the back end configuration.
be
Returns This function returns one of the following values:
0 if the database is not in read-only mode.
1 if the database is in read-only mode.
20.8 slapi_be_getentrypoint()
Description Sets pointer to a callback function that corresponds to the specified entry point into
a given back end.
Syntax
int slapi_be_getentrypoint(Slapi_Back end *be, int entrypoint,
void **ret_fnptr, Slapi_PBlock *pb);
Parameters This function takes the following parameters:
Pointer to the structure containing the back end configuration.
be
Entry point in the back end.
entrypoint
Opaque pointer to store function address.
ret_fnptr
Pointer to the parameter block.
pb
20.6 slapi_be_get_name() 185