X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fngircd%2Fconf.h;h=2aefbcd44f962ba05700001d2c4ef24785af3a40;hb=cf029a81acfeee1bd591f17a9716811736fe4114;hp=3e507b39db1bd655c8a7f67d9ccccf59fdbcaab3;hpb=d67d94ea04990be49b3d56b1540746c0785faf1b;p=ngircd-alex.git diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h index 3e507b39..2aefbcd4 100644 --- a/src/ngircd/conf.h +++ b/src/ngircd/conf.h @@ -9,43 +9,9 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conf.h,v 1.11 2002/03/10 17:50:48 alex Exp $ + * $Id: conf.h,v 1.15 2002/03/29 22:53:59 alex Exp $ * * conf.h: Konfiguration des ngircd (Header) - * - * $Log: conf.h,v $ - * Revision 1.11 2002/03/10 17:50:48 alex - * - Handling von "--version" und "--help" nochmal geaendert ... - * - * Revision 1.10 2002/02/27 23:23:53 alex - * - Includes fuer einige Header bereinigt. - * - * Revision 1.9 2002/01/03 02:27:20 alex - * - das Server-Passwort kann nun konfiguriert werden. - * - * Revision 1.8 2002/01/02 02:49:16 alex - * - Konfigurationsdatei "Samba like" umgestellt. - * - es koennen nun mehrere Server und Oprtatoren konfiguriert werden. - * - * Revision 1.6 2001/12/31 02:18:51 alex - * - viele neue Befehle (WHOIS, ISON, OPER, DIE, RESTART), - * - neuen Header "defines.h" mit (fast) allen Konstanten. - * - Code Cleanups und viele "kleine" Aenderungen & Bugfixes. - * - * Revision 1.5 2001/12/30 19:26:11 alex - * - Unterstuetzung fuer die Konfigurationsdatei eingebaut. - * - * Revision 1.4 2001/12/26 22:48:53 alex - * - MOTD-Datei ist nun konfigurierbar und wird gelesen. - * - * Revision 1.3 2001/12/26 14:45:37 alex - * - "Code Cleanups". - * - * Revision 1.2 2001/12/26 03:19:57 alex - * - erste Konfigurations-Variablen definiert: PING/PONG-Timeout. - * - * Revision 1.1 2001/12/12 17:18:20 alex - * - Modul fuer Server-Konfiguration begonnen. */ @@ -55,6 +21,7 @@ #include #include "conn.h" +#include "defines.h" typedef struct _Conf_Oper @@ -76,9 +43,6 @@ typedef struct _Conf_Server } CONF_SERVER; -/* Konfigurationsdatei */ -GLOBAL CHAR Conf_File[FNAME_LEN]; - /* Name ("Nick") des Servers */ GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN]; @@ -92,9 +56,13 @@ GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN]; GLOBAL CHAR Conf_MotdFile[FNAME_LEN]; /* Ports, auf denen der Server Verbindungen entgegen nimmt */ -GLOBAL INT Conf_ListenPorts[MAX_LISTEN_PORTS]; +GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS]; GLOBAL INT Conf_ListenPorts_Count; +/* User- und Group-ID, zu denen der Daemon wechseln soll */ +GLOBAL UINT Conf_UID; +GLOBAL UINT Conf_GID; + /* Timeouts fuer PING und PONG */ GLOBAL INT Conf_PingTimeout; GLOBAL INT Conf_PongTimeout; @@ -112,6 +80,7 @@ GLOBAL INT Conf_Server_Count; GLOBAL VOID Conf_Init( VOID ); +GLOBAL INT Conf_Test( VOID ); GLOBAL VOID Conf_Exit( VOID );