]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/conf.h
- translated file header and comments to english;
[ngircd-alex.git] / src / ngircd / conf.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * $Id: conf.h,v 1.22 2002/12/12 11:26:08 alex Exp $
12  *
13  * Configuration management (header)
14  */
15
16
17 #ifndef __conf_h__
18 #define __conf_h__
19
20 #include <time.h>
21
22 #include "defines.h"
23
24
25 typedef struct _Conf_Oper
26 {
27         CHAR name[CLIENT_PASS_LEN];     /* Name (ID) of IRC operator */
28         CHAR pwd[CLIENT_PASS_LEN];      /* Password */
29 } CONF_OPER;
30
31 typedef struct _Conf_Server
32 {
33         CHAR host[HOST_LEN];            /* Hostname */
34         CHAR ip[16];                    /* IP address (Resolver) */
35         CHAR name[CLIENT_ID_LEN];       /* IRC-Client-ID */
36         CHAR pwd_in[CLIENT_PASS_LEN];   /* Password which must be received */
37         CHAR pwd_out[CLIENT_PASS_LEN];  /* Password to send to peer */
38         INT port;                       /* Server port */
39         INT group;                      /* Group of server */
40         time_t lasttry;                 /* Last connect attempt */
41         RES_STAT *res_stat;             /* Status of the resolver */
42 } CONF_SERVER;
43
44 typedef struct _Conf_Channel
45 {
46         CHAR name[CHANNEL_NAME_LEN];    /* Name of the channel */
47         CHAR modes[CHANNEL_MODE_LEN];   /* Initial channel modes */
48         CHAR topic[CHANNEL_TOPIC_LEN];  /* Initial topic */
49 } CONF_CHANNEL;
50
51
52 /* Name ("Nick") of the servers */
53 GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
54
55 /* Server info text */
56 GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
57
58 /* Global server passwort */
59 GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
60
61 /* Administrative information */
62 GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
63 GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
64 GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
65
66 /* File with MOTD text */
67 GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
68
69 /* Ports the server should listen on */
70 GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
71 GLOBAL INT Conf_ListenPorts_Count;
72
73 /* User and group ID the server should run with */
74 GLOBAL UINT Conf_UID;
75 GLOBAL UINT Conf_GID;
76
77 /* Timeouts for PING and PONG */
78 GLOBAL INT Conf_PingTimeout;
79 GLOBAL INT Conf_PongTimeout;
80
81 /* Seconds between connect attempts to other servers */
82 GLOBAL INT Conf_ConnectRetry;
83
84 /* Operators */
85 GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
86 GLOBAL INT Conf_Oper_Count;
87
88 /* Servers */
89 GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
90 GLOBAL INT Conf_Server_Count;
91
92 /* Pre-defined channels */
93 GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
94 GLOBAL INT Conf_Channel_Count;
95
96 /* Are IRC operators allowed to always use MODE? */
97 GLOBAL BOOLEAN Conf_OperCanMode;
98
99 /* Maximum number of connections to this server */
100 GLOBAL LONG Conf_MaxConnections;
101
102
103 GLOBAL VOID Conf_Init PARAMS((VOID ));
104 GLOBAL INT Conf_Test PARAMS((VOID ));
105
106
107 #endif
108
109
110 /* -eof- */