X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fngircd.h;h=bd699e505094ddddbbfab2bdc46b23294ae664bf;hp=b22e46ceb5bcccb499fb64ad44d15fa1c2573d3c;hb=03628dbeaf40a9de34b3eb6d5bf6dd34eed8248c;hpb=c2f60abe55b5a8d320a27df0ce41790fa1141081 diff --git a/src/ngircd/ngircd.h b/src/ngircd/ngircd.h index b22e46ce..bd699e50 100644 --- a/src/ngircd/ngircd.h +++ b/src/ngircd/ngircd.h @@ -2,16 +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.13 2002/05/27 13:09:27 alex Exp $ + * $Id: ngircd.h,v 1.22 2005/06/24 19:20:56 fw Exp $ * - * ngircd.h: Prototypen aus dem "Haupt-Modul" + * Prototypes of the "main module". */ @@ -22,31 +21,32 @@ #include "defines.h" +#define C_ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) + GLOBAL time_t NGIRCd_Start; /* Startzeitpunkt des Daemon */ -GLOBAL CHAR NGIRCd_StartStr[64]; +GLOBAL char NGIRCd_StartStr[64]; +GLOBAL char NGIRCd_Version[126]; +GLOBAL char NGIRCd_VersionAddition[126]; #ifdef DEBUG -GLOBAL BOOLEAN NGIRCd_Debug; /* Debug-Modus aktivieren */ +GLOBAL bool NGIRCd_Debug; /* Debug-Modus aktivieren */ #endif #ifdef SNIFFER -GLOBAL BOOLEAN NGIRCd_Sniffer; /* Sniffer aktivieren */ +GLOBAL bool NGIRCd_Sniffer; /* Sniffer aktivieren */ #endif -GLOBAL BOOLEAN NGIRCd_NoDaemon; /* nicht im Hintergrund laufen */ - -GLOBAL BOOLEAN NGIRCd_Passive; /* nicht zu anderen Servern connecten */ +GLOBAL bool NGIRCd_Passive; /* nicht zu anderen Servern connecten */ -GLOBAL BOOLEAN NGIRCd_Quit; /* TRUE: ngIRCd beenden */ -GLOBAL BOOLEAN NGIRCd_Restart; /* TRUE: neu starten */ +GLOBAL bool NGIRCd_SignalQuit; /* true: quit server*/ +GLOBAL bool NGIRCd_SignalRestart; /* true: restart server */ -GLOBAL CHAR NGIRCd_DebugLevel[2]; /* Debug-Level fuer IRC_VERSION() */ +GLOBAL char NGIRCd_DebugLevel[2]; /* Debug-Level fuer IRC_VERSION() */ -GLOBAL CHAR NGIRCd_ConfFile[FNAME_LEN]; /* Konfigurationsdatei */ +GLOBAL char NGIRCd_ConfFile[FNAME_LEN]; /* Konfigurationsdatei */ -GLOBAL CHAR *NGIRCd_Version PARAMS((VOID )); -GLOBAL CHAR *NGIRCd_VersionAddition PARAMS((VOID )); +GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];/* Protokoll- und Server-Identifikation */ #endif