Blame


1 cbc1e59f 2001-12-12 alex /*
2 cbc1e59f 2001-12-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 03d971d9 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4 cbc1e59f 2001-12-12 alex *
5 cbc1e59f 2001-12-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 cbc1e59f 2001-12-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 cbc1e59f 2001-12-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 cbc1e59f 2001-12-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 cbc1e59f 2001-12-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 804b1ec4 2001-12-31 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
11 cbc1e59f 2001-12-12 alex *
12 b2615bcc 2002-11-19 alex * $Id: conf.h,v 1.21 2002/11/19 12:50:20 alex Exp $
13 cbc1e59f 2001-12-12 alex *
14 cbc1e59f 2001-12-12 alex * conf.h: Konfiguration des ngircd (Header)
15 cbc1e59f 2001-12-12 alex */
16 cbc1e59f 2001-12-12 alex
17 cbc1e59f 2001-12-12 alex
18 cbc1e59f 2001-12-12 alex #ifndef __conf_h__
19 cbc1e59f 2001-12-12 alex #define __conf_h__
20 cbc1e59f 2001-12-12 alex
21 03d971d9 2002-01-02 alex #include <time.h>
22 cbc1e59f 2001-12-12 alex
23 ca33cbda 2002-03-12 alex #include "defines.h"
24 574ae82c 2001-12-26 alex
25 ff54198f 2002-02-27 alex
26 03d971d9 2002-01-02 alex typedef struct _Conf_Oper
27 03d971d9 2002-01-02 alex {
28 d67d94ea 2002-03-10 alex CHAR name[CLIENT_PASS_LEN]; /* Name (ID) des IRC-OPs */
29 d67d94ea 2002-03-10 alex CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
30 03d971d9 2002-01-02 alex } CONF_OPER;
31 574ae82c 2001-12-26 alex
32 03d971d9 2002-01-02 alex typedef struct _Conf_Server
33 03d971d9 2002-01-02 alex {
34 d67d94ea 2002-03-10 alex CHAR host[HOST_LEN]; /* Hostname */
35 d67d94ea 2002-03-10 alex CHAR ip[16]; /* IP-Adresse (von Resolver) */
36 d67d94ea 2002-03-10 alex CHAR name[CLIENT_ID_LEN]; /* IRC-Client-ID */
37 b2615bcc 2002-11-19 alex CHAR pwd_in[CLIENT_PASS_LEN]; /* Passwort, welches erwartet wird */
38 b2615bcc 2002-11-19 alex CHAR pwd_out[CLIENT_PASS_LEN]; /* An die Gegenseite zu sendendes Passwort */
39 d67d94ea 2002-03-10 alex INT port; /* Server-Port */
40 d67d94ea 2002-03-10 alex INT group; /* Gruppe des Servers */
41 d67d94ea 2002-03-10 alex time_t lasttry; /* Letzter Connect-Versuch */
42 d67d94ea 2002-03-10 alex RES_STAT *res_stat; /* Status des Resolver */
43 03d971d9 2002-01-02 alex } CONF_SERVER;
44 574ae82c 2001-12-26 alex
45 040f5422 2002-05-21 alex typedef struct _Conf_Channel
46 040f5422 2002-05-21 alex {
47 040f5422 2002-05-21 alex CHAR name[CHANNEL_NAME_LEN]; /* Name des Channel */
48 040f5422 2002-05-21 alex CHAR modes[CHANNEL_MODE_LEN]; /* Channel-Modes */
49 040f5422 2002-05-21 alex CHAR topic[CHANNEL_TOPIC_LEN]; /* Topic des Channels */
50 040f5422 2002-05-21 alex } CONF_CHANNEL;
51 574ae82c 2001-12-26 alex
52 040f5422 2002-05-21 alex
53 03d971d9 2002-01-02 alex /* Name ("Nick") des Servers */
54 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
55 9856253d 2001-12-30 alex
56 4ded22b0 2002-09-16 alex /* Server-Info-Text */
57 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
58 9856253d 2001-12-30 alex
59 ed406b4a 2002-01-03 alex /* Server-Passwort */
60 ed406b4a 2002-01-03 alex GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
61 ed406b4a 2002-01-03 alex
62 4ded22b0 2002-09-16 alex /* Admin-Info-Texte */
63 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
64 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
65 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
66 4ded22b0 2002-09-16 alex
67 03d971d9 2002-01-02 alex /* Datei mit MOTD-Text */
68 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
69 03d971d9 2002-01-02 alex
70 03d971d9 2002-01-02 alex /* Ports, auf denen der Server Verbindungen entgegen nimmt */
71 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
72 03d971d9 2002-01-02 alex GLOBAL INT Conf_ListenPorts_Count;
73 03d971d9 2002-01-02 alex
74 4cdc9815 2002-03-29 alex /* User- und Group-ID, zu denen der Daemon wechseln soll */
75 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_UID;
76 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_GID;
77 4cdc9815 2002-03-29 alex
78 03d971d9 2002-01-02 alex /* Timeouts fuer PING und PONG */
79 03d971d9 2002-01-02 alex GLOBAL INT Conf_PingTimeout;
80 03d971d9 2002-01-02 alex GLOBAL INT Conf_PongTimeout;
81 03d971d9 2002-01-02 alex
82 03d971d9 2002-01-02 alex /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
83 03d971d9 2002-01-02 alex GLOBAL INT Conf_ConnectRetry;
84 03d971d9 2002-01-02 alex
85 03d971d9 2002-01-02 alex /* Operatoren */
86 03d971d9 2002-01-02 alex GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
87 03d971d9 2002-01-02 alex GLOBAL INT Conf_Oper_Count;
88 03d971d9 2002-01-02 alex
89 03d971d9 2002-01-02 alex /* Server */
90 03d971d9 2002-01-02 alex GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
91 03d971d9 2002-01-02 alex GLOBAL INT Conf_Server_Count;
92 03d971d9 2002-01-02 alex
93 040f5422 2002-05-21 alex /* Vorkonfigurierte Channels */
94 040f5422 2002-05-21 alex GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
95 040f5422 2002-05-21 alex GLOBAL INT Conf_Channel_Count;
96 03d971d9 2002-01-02 alex
97 7e1b3b91 2002-09-02 alex /* Koennen IRC OPs immer Modes setzen? */
98 7e1b3b91 2002-09-02 alex GLOBAL BOOLEAN Conf_OperCanMode;
99 040f5422 2002-05-21 alex
100 650f9a2d 2002-11-02 alex /* Maximale Anzahl von Verbindungen */
101 650f9a2d 2002-11-02 alex GLOBAL LONG Conf_MaxConnections;
102 650f9a2d 2002-11-02 alex
103 650f9a2d 2002-11-02 alex
104 c2f60abe 2002-05-27 alex GLOBAL VOID Conf_Init PARAMS((VOID ));
105 c2f60abe 2002-05-27 alex GLOBAL INT Conf_Test PARAMS((VOID ));
106 cbc1e59f 2001-12-12 alex
107 cbc1e59f 2001-12-12 alex
108 cbc1e59f 2001-12-12 alex #endif
109 cbc1e59f 2001-12-12 alex
110 cbc1e59f 2001-12-12 alex
111 cbc1e59f 2001-12-12 alex /* -eof- */