param.h 3.54 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
/*
2
 * $Id: param.h,v 1.27 1999/05/21 06:49:30 ceder Exp $
Per Cederqvist's avatar
Per Cederqvist committed
3
 * Copyright (C) 1994, 1995, 1996  Lysator Academic Computer Association.
Per Cederqvist's avatar
Per Cederqvist committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 *
 * This file is part of the LysKOM server.
 * 
 * LysKOM is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; either version 1, or (at your option) 
 * any later version.
 * 
 * LysKOM is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with LysKOM; see the file COPYING.  If not, write to
 * Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
 * or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 
 * MA 02139, USA.
 *
 * Please mail bug reports to bug-lyskom@lysator.liu.se. 
 */
/*
 * LysKOM parameters read from the configuration file. 
 */
#ifndef PARAM_H_INCLUDED
#define PARAM_H_INCLUDED

31
/* See server-config.c and lyskomd.texi for more info about the
Per Cederqvist's avatar
Per Cederqvist committed
32
   fields in this structure. */
Per Cederqvist's avatar
Per Cederqvist committed
33
34
35
36
struct kom_par {
    char *dbase_dir;
    char *use_locale;
    Bool  send_async_messages;
37
    Bool  garb_enable;
Per Cederqvist's avatar
Per Cederqvist committed
38
39
    Bool  never_save;
    char *logaccess_file;
40
    char *ip_client_host;	/* IP to listen to (default: INADDR_ANY) */
Per Cederqvist's avatar
Per Cederqvist committed
41
    char *ip_client_port;       /* Port to listen to for clients */
Per Cederqvist's avatar
Per Cederqvist committed
42
43
44
45
46
47
48
    Conf_no conf_pres_conf;
    Conf_no pers_pres_conf;
    Conf_no motd_conf;
    Conf_no kom_news_conf;
    Text_no motd_of_lyskom;
    char *datafile_name;
    char *backupfile_name;
49
    char *backupfile_name_2;
50
    char *lockfile_name;
Per Cederqvist's avatar
Per Cederqvist committed
51
52
53
54
55
    char *textfile_name;
    char *textbackupfile_name;	/* Only used in dbck */
    char *statistic_name;
    char *pid_name;
    char *memuse_name;
56
    char *logfile_name;
57
    char *aux_def_file;
58
    char *status_file;		/* Only used in komrunning and updateLysKOM */
59
    char *core_dir;
David Byers's avatar
David Byers committed
60
    char *nologin_file;
61
    char *lyskomd_path;
62
    char *savecore_path;
David Byers's avatar
David Byers committed
63
    int y2k_compat;
Per Cederqvist's avatar
Per Cederqvist committed
64
65
66
67
    int timeout;
    int garbtimeout;
    int synctimeout;
    int garb_interval;
68
    Bool permissive_sync;
Per Cederqvist's avatar
Per Cederqvist committed
69
70
    int sync_interval;
    int sync_retry_interval;
David Byers's avatar
David Byers committed
71
    int client_data_len;
Per Cederqvist's avatar
Per Cederqvist committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
    int conf_name_len;
    int pwd_len;
    int what_do_len;
    int username_len;
    int text_len;
    int broadcast_len;
    int regexp_len;
    int max_marks_person;
    int max_marks_text;
    int max_recipients;
    int max_comm;
    int max_foot;
    int max_crea_misc;
    int mark_as_read_chunk;
86
    int accept_async_len;
87
88
    int max_delete_aux;
    int max_add_aux;
Per Cederqvist's avatar
Per Cederqvist committed
89
90
    int max_super_conf_loop;
    int default_nice;
91
    int default_keep_commented;
Per Cederqvist's avatar
Per Cederqvist committed
92
93
94
95
96
97
98
99
100
    int maxqueuedsize;
    int maxdequeuelen;
    Bool anyone_can_create_new_persons;
    Bool anyone_can_create_new_confs;
    Bool create_person_before_login;
    Bool default_change_name;
    int cache_conferences;
    int cache_persons;
    int cache_text_stats;
101
102
103
104
105

    /* 0=never use IDENT,
       1=try to use IDENT,
       2=only allow login if IDENT succeeded. */    
    int authentication_level;
106
    Bool log_login;
107
108
    Bool force_iso_8859_1;
    int no_files;		/* -1=default */
109
110
111
    int normal_shutdown_time;	/* In minutes. */
    int downtime_mail_start;	/* In minutes. */
    int downtime_mail_end;	/* In minutes */
112
113
114
    Bool invite_by_default;
    Bool secret_memberships;
    Bool allow_reinvite;
David Byers's avatar
David Byers committed
115
    Bool regex_use_collate_table;
David Byers's avatar
David Byers committed
116
117
    unsigned long max_conf;
    unsigned long max_text;
Per Cederqvist's avatar
Per Cederqvist committed
118
119
120
121
122
};

extern struct kom_par param;

#endif