Wondering how we ever got by with narrow terminals
[citadel.git] / citadel / server / modules / checkpoint / serv_checkpoint.c
1 // checkpointing module for the database
2 //
3 // Copyright (c) 1987-2024 by the citadel.org team
4 //
5 // This program is open source software.  Use, duplication, or disclosure
6 // is subject to the terms of the GNU General Public License, version 3.
7  
8 #include "../../sysdep.h"
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <stdio.h>
12 #include <ctype.h>
13 #include <string.h>
14 #include <errno.h>
15
16 #include <libcitadel.h>
17
18 #include "../../citadel_defs.h"
19 #include "../../server.h"
20 #include "../../citserver.h"
21 #include "../../msgbase.h"
22 #include "../../sysdep_decls.h"
23 #include "../../config.h"
24 #include "../../threads.h"
25 #include "../../ctdl_module.h"
26 #include "../../context.h"
27
28 // Initialization function, called from modules_init.c
29 char *ctdl_module_init_checkpoint(void) {
30         if (threading) {
31                 CtdlRegisterSessionHook(cdb_checkpoint, EVT_TIMER, PRIO_CLEANUP + 10);
32         }
33         // return our module name for the log
34         return "checkpoint";
35 }