citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
serv_checkpoint.c
Go to the documentation of this file.
1/*
2 * checkpointing module for the database
3 *
4 * Copyright (c) 1987-2022 by the citadel.org team
5 *
6 * This program is open source software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include "../../sysdep.h"
16#include <stdlib.h>
17#include <unistd.h>
18#include <stdio.h>
19#include <ctype.h>
20#include <string.h>
21#include <errno.h>
22
23#include <libcitadel.h>
24
25#include "../../citadel.h"
26#include "../../server.h"
27#include "../../citserver.h"
28#include "../../msgbase.h"
29#include "../../sysdep_decls.h"
30#include "../../config.h"
31#include "../../threads.h"
32#include "../../ctdl_module.h"
33#include "../../context.h"
34
35// Initialization function, called from modules_init.c
37 if (threading) {
39 }
40 /* return our module name for the log */
41 return "checkpoint";
42}
void CtdlRegisterSessionHook(void(*fcn_ptr)(void), int EventType, int Priority)
int threading
Definition: modules_init.c:24
#define PRIO_CLEANUP
Definition: ctdl_module.h:78
void cdb_checkpoint(void)
Definition: database.c:145
char * ctdl_module_init_checkpoint(void)
#define EVT_TIMER
Definition: server.h:224