X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fngircd.h;h=60fb0ba9a1a9554b8b1c6dd2dc9b3eb44388a8b0;hp=314bf48c18d57949086d98cbbee9707a12d2f530;hb=6626395c88fc46eeb110942b17eb9245a1d0021b;hpb=52424b49cb0554b8deee5ea60d86106180046563 diff --git a/src/ngircd/ngircd.h b/src/ngircd/ngircd.h index 314bf48c..60fb0ba9 100644 --- a/src/ngircd/ngircd.h +++ b/src/ngircd/ngircd.h @@ -2,40 +2,15 @@ * ngIRCd -- The Next Generation IRC Daemon * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: ngircd.h,v 1.7 2002/01/11 14:45:18 alex Exp $ + * $Id: ngircd.h,v 1.19 2002/12/26 16:48:14 alex Exp $ * - * ngircd.h: Prototypen aus dem "Haupt-Modul" - * - * $Log: ngircd.h,v $ - * Revision 1.7 2002/01/11 14:45:18 alex - * - Kommandozeilen-Parser implementiert: Debug- und No-Daemon-Modus, Hilfe. - * - * Revision 1.6 2002/01/02 02:44:37 alex - * - neue Defines fuer max. Anzahl Server und Operatoren. - * - * Revision 1.5 2001/12/31 03:06:03 alex - * - das #include fuer time.h hat noch gefehlt. - * - * Revision 1.4 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.3 2001/12/30 11:42:00 alex - * - der Server meldet nun eine ordentliche "Start-Zeit". - * - * Revision 1.2 2001/12/12 23:30:01 alex - * - NGIRCd_Quit ist nun das globale Flag zum Beenden des ngircd. - * - * Revision 1.1.1.1 2001/12/11 21:53:04 alex - * - Imported sources to CVS. + * Prototypes of the "main module". */ @@ -44,6 +19,8 @@ #include +#include "defines.h" + GLOBAL time_t NGIRCd_Start; /* Startzeitpunkt des Daemon */ GLOBAL CHAR NGIRCd_StartStr[64]; @@ -52,13 +29,29 @@ GLOBAL CHAR NGIRCd_StartStr[64]; GLOBAL BOOLEAN NGIRCd_Debug; /* Debug-Modus aktivieren */ #endif +#ifdef SNIFFER +GLOBAL BOOLEAN NGIRCd_Sniffer; /* Sniffer aktivieren */ +#endif + GLOBAL BOOLEAN NGIRCd_NoDaemon; /* nicht im Hintergrund laufen */ -GLOBAL BOOLEAN NGIRCd_Quit; /* TRUE: ngIRCd beenden */ -GLOBAL BOOLEAN NGIRCd_Restart; /* TRUE: neu starten */ +GLOBAL BOOLEAN NGIRCd_Passive; /* nicht zu anderen Servern connecten */ + +GLOBAL BOOLEAN NGIRCd_SignalQuit; /* TRUE: quit server*/ +GLOBAL BOOLEAN NGIRCd_SignalRestart; /* TRUE: restart server */ +GLOBAL BOOLEAN NGIRCd_SignalRehash; /* TRUE: reload configuration */ + +GLOBAL CHAR NGIRCd_DebugLevel[2]; /* Debug-Level fuer IRC_VERSION() */ + +GLOBAL CHAR NGIRCd_ConfFile[FNAME_LEN]; /* Konfigurationsdatei */ + +GLOBAL CHAR NGIRCd_ProtoID[COMMAND_LEN];/* Protokoll- und Server-Identifikation */ + +GLOBAL CHAR *NGIRCd_Version PARAMS((VOID )); +GLOBAL CHAR *NGIRCd_VersionAddition PARAMS((VOID )); -GLOBAL CHAR *NGIRCd_Version( VOID ); +GLOBAL VOID NGIRCd_Rehash PARAMS(( VOID )); #endif