2001-12-11 22:53:04 +01:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
2010-12-27 17:31:19 +01:00
|
|
|
* Copyright (c)2001-2010 Alexander Barton (alex@barton.de).
|
2001-12-11 22:53:04 +01:00
|
|
|
*
|
2002-12-12 12:30:23 +01:00
|
|
|
* 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.
|
2001-12-11 22:53:04 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ngircd_h__
|
|
|
|
#define __ngircd_h__
|
|
|
|
|
2010-12-27 17:23:25 +01:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Global variables of ngIRCd.
|
|
|
|
*/
|
|
|
|
|
2001-12-31 04:06:03 +01:00
|
|
|
#include <time.h>
|
|
|
|
|
2002-03-27 17:40:31 +01:00
|
|
|
#include "defines.h"
|
|
|
|
|
2010-09-11 00:19:01 +02:00
|
|
|
#define C_ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
|
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** UNIX timestamp of ngIRCd start */
|
|
|
|
GLOBAL time_t NGIRCd_Start;
|
2001-12-13 00:30:01 +01:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** ngIRCd start time as string, used for RPL_CREATED_MSG (003) */
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL char NGIRCd_StartStr[64];
|
2010-12-27 17:31:19 +01:00
|
|
|
|
|
|
|
/** ngIRCd version number containing release number and compile-time options */
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL char NGIRCd_Version[126];
|
2010-12-27 17:31:19 +01:00
|
|
|
|
|
|
|
/** String specifying the compile-time options and target platform */
|
2005-03-19 19:43:48 +01:00
|
|
|
GLOBAL char NGIRCd_VersionAddition[126];
|
2001-12-30 12:42:00 +01:00
|
|
|
|
2002-01-11 15:45:18 +01:00
|
|
|
#ifdef DEBUG
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Flag indicating if debug mode is active (true) or not (false) */
|
|
|
|
GLOBAL bool NGIRCd_Debug;
|
2002-01-11 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
2002-01-18 12:12:11 +01:00
|
|
|
#ifdef SNIFFER
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Flag indication if sniffer is active (true) or not (false) */
|
|
|
|
GLOBAL bool NGIRCd_Sniffer;
|
2002-01-18 12:12:11 +01:00
|
|
|
#endif
|
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/**
|
|
|
|
* Flag indicating if NO outgoing connections should be established (true)
|
|
|
|
* or not (false, the default)
|
|
|
|
*/
|
|
|
|
GLOBAL bool NGIRCd_Passive;
|
2002-02-19 21:07:48 +01:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Flag indicating that ngIRCd has been requested to quit (true) */
|
|
|
|
GLOBAL bool NGIRCd_SignalQuit;
|
2001-12-13 00:30:01 +01:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Flag indicating that ngIRCd has been requested to restart (true) */
|
|
|
|
GLOBAL bool NGIRCd_SignalRestart;
|
2002-02-19 21:07:48 +01:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/**
|
|
|
|
* 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];
|
2002-03-27 17:40:31 +01:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Full path and file name of current configuration file */
|
|
|
|
GLOBAL char NGIRCd_ConfFile[FNAME_LEN];
|
2002-09-02 21:01:11 +02:00
|
|
|
|
2010-12-27 17:31:19 +01:00
|
|
|
/** Protocol and server identification string; see doc/Protocol.txt */
|
|
|
|
GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];
|
2002-11-22 18:59:54 +01:00
|
|
|
|
2001-12-11 22:53:04 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* -eof- */
|