X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fngircd.h;h=2efb8a943fb921e52f6574ff8851b424e43bdbdc;hp=60fb0ba9a1a9554b8b1c6dd2dc9b3eb44388a8b0;hb=808c291c76b7ecb4ae13b6ee12e8afe658b627c1;hpb=6626395c88fc46eeb110942b17eb9245a1d0021b diff --git a/src/ngircd/ngircd.h b/src/ngircd/ngircd.h index 60fb0ba9..2efb8a94 100644 --- a/src/ngircd/ngircd.h +++ b/src/ngircd/ngircd.h @@ -1,60 +1,75 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2010 Alexander Barton (alex@barton.de). * * 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.19 2002/12/26 16:48:14 alex Exp $ - * - * Prototypes of the "main module". */ - #ifndef __ngircd_h__ #define __ngircd_h__ +/** + * @file + * Global variables of ngIRCd. + */ + #include #include "defines.h" +#define C_ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) + +/** UNIX timestamp of ngIRCd start */ +GLOBAL time_t NGIRCd_Start; + +/** ngIRCd start time as string, used for RPL_CREATED_MSG (003) */ +GLOBAL char NGIRCd_StartStr[64]; + +/** ngIRCd version number containing release number and compile-time options */ +GLOBAL char NGIRCd_Version[126]; -GLOBAL time_t NGIRCd_Start; /* Startzeitpunkt des Daemon */ -GLOBAL CHAR NGIRCd_StartStr[64]; +/** String specifying the compile-time options and target platform */ +GLOBAL char NGIRCd_VersionAddition[126]; #ifdef DEBUG -GLOBAL BOOLEAN NGIRCd_Debug; /* Debug-Modus aktivieren */ +/** Flag indicating if debug mode is active (true) or not (false) */ +GLOBAL bool NGIRCd_Debug; #endif #ifdef SNIFFER -GLOBAL BOOLEAN NGIRCd_Sniffer; /* Sniffer aktivieren */ +/** Flag indication if sniffer is active (true) or not (false) */ +GLOBAL bool NGIRCd_Sniffer; #endif -GLOBAL BOOLEAN NGIRCd_NoDaemon; /* nicht im Hintergrund laufen */ - -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 */ +/** + * Flag indicating if NO outgoing connections should be established (true) + * or not (false, the default) + */ +GLOBAL bool NGIRCd_Passive; -GLOBAL CHAR NGIRCd_ProtoID[COMMAND_LEN];/* Protokoll- und Server-Identifikation */ +/** Flag indicating that ngIRCd has been requested to quit (true) */ +GLOBAL bool NGIRCd_SignalQuit; +/** Flag indicating that ngIRCd has been requested to restart (true) */ +GLOBAL bool NGIRCd_SignalRestart; -GLOBAL CHAR *NGIRCd_Version PARAMS((VOID )); -GLOBAL CHAR *NGIRCd_VersionAddition PARAMS((VOID )); +/** + * Debug level for "VERSION" command, see description of numeric RPL_VERSION + * (351) in RFC 2812. ngIRCd sets debuglevel to 1 when the debug mode is + * active, and to 2 if the sniffer is running. + */ +GLOBAL char NGIRCd_DebugLevel[2]; -GLOBAL VOID NGIRCd_Rehash PARAMS(( VOID )); +/** Full path and file name of current configuration file */ +GLOBAL char NGIRCd_ConfFile[FNAME_LEN]; +/** Protocol and server identification string; see doc/Protocol.txt */ +GLOBAL char NGIRCd_ProtoID[COMMAND_LEN]; #endif - /* -eof- */