20.17. slapi_be_select_by_instance_name()

Description

This function finds the backend that should be used to service the database named as the parameter.

Syntax

#include "slapi-plugin.h"
Slapi_Backend *slapi_be_select_by_instance_name( const char *name );

Parameters

This function takes the following parameter:

name Pointer to the name of the backend of which you wish to get the structure.
Returns

This function returns one of the following values:

  • NULL if no backend with the appropriate name is configured.
  • A pointer to the backend structure.
Memory Concerns

You should not free the returned pointer.