]> code.citadel.org Git - citadel.git/blob - citadel/server/database.c
Building better abstractions for the backend interface
[citadel.git] / citadel / server / database.c
1 // Copyright (c) 1987-2023 by the citadel.org team
2 // This program is open source software.  Use, duplication, or disclosure
3 // are subject to the terms of the GNU General Public License, version 3.
4
5 // The functions in this file handle the selection and activation of a storage backend for Citadel Server.
6 // Right now, it simply activates Berkeley DB because that's the only one we have.
7
8
9 #include "sysdep.h"
10 #include <stdlib.h>
11 #include <unistd.h>
12 #include <sys/stat.h>
13 #include <stdio.h>
14 #include <libcitadel.h>
15 #include "ctdl_module.h"
16 #include "control.h"
17 #include "citserver.h"
18 #include "config.h"
19
20 #include "backends/berkeley_db/berkeley_db.h"
21
22 void cdb_init_backends(void) {
23         bdb_init_backend();
24 }