20.14. slapi_be_new()

Description

Creates a new backend structure, allocates memory for it, and initializes values for relevant parameters.

Syntax

#include "slapi-plugin.h"
Slapi_Backend *slapi_be_new( const char *type, const char *name, int is private, int logchanges );

Parameters

This function takes the following parameters:

type Database type.
name Database name.
isprivate Flag to denote whether the database is private.
logchanges Flag for indicating whether changes are to be logged.
Returns

This function returns a pointer to the newly-created backend.