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 4ded22b0 2002-09-16 alex * $Id: conf.h,v 1.19 2002/09/16 09:13:40 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 d67d94ea 2002-03-10 alex CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
38 d67d94ea 2002-03-10 alex INT port; /* Server-Port */
39 d67d94ea 2002-03-10 alex INT group; /* Gruppe des Servers */
40 d67d94ea 2002-03-10 alex time_t lasttry; /* Letzter Connect-Versuch */
41 d67d94ea 2002-03-10 alex RES_STAT *res_stat; /* Status des Resolver */
42 03d971d9 2002-01-02 alex } CONF_SERVER;
43 574ae82c 2001-12-26 alex
44 040f5422 2002-05-21 alex typedef struct _Conf_Channel
45 040f5422 2002-05-21 alex {
46 040f5422 2002-05-21 alex CHAR name[CHANNEL_NAME_LEN]; /* Name des Channel */
47 040f5422 2002-05-21 alex CHAR modes[CHANNEL_MODE_LEN]; /* Channel-Modes */
48 040f5422 2002-05-21 alex CHAR topic[CHANNEL_TOPIC_LEN]; /* Topic des Channels */
49 040f5422 2002-05-21 alex } CONF_CHANNEL;
50 574ae82c 2001-12-26 alex
51 040f5422 2002-05-21 alex
52 03d971d9 2002-01-02 alex /* Name ("Nick") des Servers */
53 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
54 9856253d 2001-12-30 alex
55 4ded22b0 2002-09-16 alex /* Server-Info-Text */
56 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
57 9856253d 2001-12-30 alex
58 ed406b4a 2002-01-03 alex /* Server-Passwort */
59 ed406b4a 2002-01-03 alex GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
60 ed406b4a 2002-01-03 alex
61 4ded22b0 2002-09-16 alex /* Admin-Info-Texte */
62 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
63 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
64 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
65 4ded22b0 2002-09-16 alex
66 03d971d9 2002-01-02 alex /* Datei mit MOTD-Text */
67 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
68 03d971d9 2002-01-02 alex
69 03d971d9 2002-01-02 alex /* Ports, auf denen der Server Verbindungen entgegen nimmt */
70 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
71 03d971d9 2002-01-02 alex GLOBAL INT Conf_ListenPorts_Count;
72 03d971d9 2002-01-02 alex
73 4cdc9815 2002-03-29 alex /* User- und Group-ID, zu denen der Daemon wechseln soll */
74 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_UID;
75 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_GID;
76 4cdc9815 2002-03-29 alex
77 03d971d9 2002-01-02 alex /* Timeouts fuer PING und PONG */
78 03d971d9 2002-01-02 alex GLOBAL INT Conf_PingTimeout;
79 03d971d9 2002-01-02 alex GLOBAL INT Conf_PongTimeout;
80 03d971d9 2002-01-02 alex
81 03d971d9 2002-01-02 alex /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
82 03d971d9 2002-01-02 alex GLOBAL INT Conf_ConnectRetry;
83 03d971d9 2002-01-02 alex
84 03d971d9 2002-01-02 alex /* Operatoren */
85 03d971d9 2002-01-02 alex GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
86 03d971d9 2002-01-02 alex GLOBAL INT Conf_Oper_Count;
87 03d971d9 2002-01-02 alex
88 03d971d9 2002-01-02 alex /* Server */
89 03d971d9 2002-01-02 alex GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
90 03d971d9 2002-01-02 alex GLOBAL INT Conf_Server_Count;
91 03d971d9 2002-01-02 alex
92 040f5422 2002-05-21 alex /* Vorkonfigurierte Channels */
93 040f5422 2002-05-21 alex GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
94 040f5422 2002-05-21 alex GLOBAL INT Conf_Channel_Count;
95 03d971d9 2002-01-02 alex
96 7e1b3b91 2002-09-02 alex /* Koennen IRC OPs immer Modes setzen? */
97 7e1b3b91 2002-09-02 alex GLOBAL BOOLEAN Conf_OperCanMode;
98 040f5422 2002-05-21 alex
99 c2f60abe 2002-05-27 alex GLOBAL VOID Conf_Init PARAMS((VOID ));
100 c2f60abe 2002-05-27 alex GLOBAL INT Conf_Test PARAMS((VOID ));
101 cbc1e59f 2001-12-12 alex
102 cbc1e59f 2001-12-12 alex
103 cbc1e59f 2001-12-12 alex #endif
104 cbc1e59f 2001-12-12 alex
105 cbc1e59f 2001-12-12 alex
106 cbc1e59f 2001-12-12 alex /* -eof- */