]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/conf.c
8a2085a75f85831f3073e08dd05d0e0e2d43d880
[ngircd-alex.git] / src / ngircd / conf.c
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001 by Alexander Barton (alex@barton.de)
4  *
5  * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6  * der GNU General Public License (GPL), wie von der Free Software Foundation
7  * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8  * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
11  *
12  * $Id: conf.c,v 1.4 2001/12/26 22:48:53 alex Exp $
13  *
14  * conf.h: Konfiguration des ngircd
15  *
16  * $Log: conf.c,v $
17  * Revision 1.4  2001/12/26 22:48:53  alex
18  * - MOTD-Datei ist nun konfigurierbar und wird gelesen.
19  *
20  * Revision 1.3  2001/12/26 14:45:37  alex
21  * - "Code Cleanups".
22  *
23  * Revision 1.2  2001/12/26 03:19:57  alex
24  * - erste Konfigurations-Variablen definiert: PING/PONG-Timeout.
25  *
26  * Revision 1.1  2001/12/12 17:18:20  alex
27  * - Modul fuer Server-Konfiguration begonnen.
28  */
29
30
31 #include <portab.h>
32 #include "global.h"
33
34 #include <imp.h>
35 #include <assert.h>
36
37 #include <exp.h>
38 #include "conf.h"
39
40
41 LOCAL VOID Read_Config( VOID );
42
43
44 GLOBAL VOID Conf_Init( VOID )
45 {
46         /* Konfigurationsvariablen initialisieren: zunaechst Default-
47          * Werte setzen, dann Konfigurationsdtaei einlesen. */
48         
49         strcpy( Conf_File, "/usr/local/etc/ngircd.conf" );
50         
51         Conf_PingTimeout = 120;
52         Conf_PongTimeout = 10;
53
54         strcpy( Conf_MotdFile, "/usr/local/etc/ngircd.motd" );
55
56         /* Konfigurationsdatei einlesen */
57         Read_Config( );
58 } /* Config_Init */
59
60
61 GLOBAL VOID Conf_Exit( VOID )
62 {
63         /* ... */
64 } /* Config_Exit */
65
66
67 LOCAL VOID Read_Config( VOID )
68 {
69         /* Konfigurationsdatei einlesen. */
70         
71         /* ... */
72 } /* Read_Config */
73
74
75 /* -eof- */