param.h 2.93 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
/*
2
 * $Id: param.h,v 1.8 1995/09/05 19:21:43 ceder Exp $
Per Cederqvist's avatar
Per Cederqvist committed
3
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
 * Copyright (C) 1994  Lysator Academic Computer Association.
 *
 * 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

Per Cederqvist's avatar
Per Cederqvist committed
31
32
/* See ramkomd.c and lyskomd.8 for more info about the
   fields in this structure. */
Per Cederqvist's avatar
Per Cederqvist committed
33
34
35
36
37
38
39
40
41
42
struct kom_par {
    char *dbase_dir;
    char *use_locale;
    Bool  send_async_messages;
    Bool  never_save;
    char *logaccess_file;
    char *ip_client_port;       /* Port to listen to for clients */
    char *ip_mux_port;          /* Port to listen to for mux:es */
    int num_ip_client_port;	/* Calculated from ip_client_port. */
    int num_ip_mux_port;	/* Calculated from ip_mux_port. */
Per Cederqvist's avatar
Per Cederqvist committed
43
44
45
46
47
48
49
50
51
52
53
54
    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;
    char *textfile_name;
    char *textbackupfile_name;	/* Only used in dbck */
    char *statistic_name;
    char *pid_name;
    char *memuse_name;
55
    char *logfile_name;
56
    char *core_dir;
Per Cederqvist's avatar
Per Cederqvist committed
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
    int timeout;
    int garbtimeout;
    int synctimeout;
    int garb_interval;
    int sync_interval;
    int sync_retry_interval;
    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;
    int max_super_conf_loop;
    int default_nice;
    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;
88
89
90
91
92

    /* 0=never use IDENT,
       1=try to use IDENT,
       2=only allow login if IDENT succeeded. */    
    int authentication_level;
93
    Bool log_login;
94
95
    Bool force_iso_8859_1;
    int no_files;		/* -1=default */
Per Cederqvist's avatar
Per Cederqvist committed
96
97
98
99
100
};

extern struct kom_par param;

#endif