]> git.sur5r.net Git - openldap/commit
New Frontend->Backend Interface
authorKurt Zeilenga <kurt@openldap.org>
Fri, 5 Feb 1999 09:03:47 +0000 (09:03 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 5 Feb 1999 09:03:47 +0000 (09:03 +0000)
commit216049bd12861357e0bf080fe10816103c3c3bda
tree2eb3cd31d60c4af74577faea445b0bfdfafed9f3
parentcd9ab253d63e648d7033db6c8d69034ac580cc2c
New Frontend->Backend Interface
Separates per backend type from per backend database initialization
and startup.  Also supports per type / per backend shutdown.
New frontend startup/shutdown routines are also provided:
slap_init() slap_startup() slap_shutdown() slap_destroy()
New frontend->backend startup/shutdown is managed by:
backend_init() backend_startup() backend_shutdown backend_destroy
backend_init() now calls bi_init() to initial all function pointers
for the backend (excepting bi_init() which is now the only hardcoded
entry point).  New entry points are detailed in slap.h struct
backend_info.  backend_info is a per database type structure.
Besides the new startup/shutdown entry points, the new interface
also supports per backend type configuration options.  One could have:

backend bdb2 (new Berkeley DB 2 backend)
bdb2_home /directory

database bdb2
...

*** This code is fairly experimental ***
*** Much cleanup and testing is still needed ***

see slap.h for details on struct backend_db and backend_info.
38 files changed:
include/ldbm.h
libraries/libldbm/ldbm.c
servers/slapd/acl.c
servers/slapd/back-ldbm/close.c
servers/slapd/back-ldbm/config.c
servers/slapd/back-ldbm/external.h [new file with mode: 0644]
servers/slapd/back-ldbm/init.c
servers/slapd/back-ldbm/proto-back-ldbm.h
servers/slapd/back-passwd/Makefile.in
servers/slapd/back-passwd/config.c
servers/slapd/back-passwd/external.h [new file with mode: 0644]
servers/slapd/back-passwd/init.c [new file with mode: 0644]
servers/slapd/back-passwd/search.c
servers/slapd/back-perl/close.c
servers/slapd/back-perl/config.c
servers/slapd/back-perl/external.h [new file with mode: 0644]
servers/slapd/back-perl/init.c
servers/slapd/back-perl/perl_back.h
servers/slapd/back-perl/unbind.c
servers/slapd/back-shell/abandon.c
servers/slapd/back-shell/config.c
servers/slapd/back-shell/external.h [new file with mode: 0644]
servers/slapd/back-shell/init.c
servers/slapd/back-shell/shell.h
servers/slapd/back-shell/unbind.c
servers/slapd/backend.c
servers/slapd/config.c
servers/slapd/daemon.c
servers/slapd/init.c
servers/slapd/main.c
servers/slapd/proto-slap.h
servers/slapd/slap.h
servers/slapd/tools/ldbmtest.c
servers/slapd/tools/ldif2id2children.c
servers/slapd/tools/ldif2id2entry.c
servers/slapd/tools/ldif2index.c
servers/slapd/tools/ldif2ldbm.c
servers/slapd/unbind.c