52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/*
|
|
* NeoIRCd: NeoStats Group. Based on Hybird7
|
|
* s_conf.h: A header for the debug functions.
|
|
*
|
|
* Copyright (C) 2002 by the past and present ircd coders, and others.
|
|
*
|
|
* 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.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
* USA
|
|
*
|
|
* $Id: s_debug.h,v 1.3 2002/09/13 06:50:06 fishwaldo Exp $
|
|
*/
|
|
|
|
#ifndef INCLUDED_s_debug_h
|
|
#define INCLUDED_s_debug_h
|
|
|
|
|
|
struct Client;
|
|
|
|
/*
|
|
* defined debugging levels
|
|
*/
|
|
#define DEBUG_FATAL 0
|
|
#define DEBUG_ERROR 1 /* report_error() and other errors that are found */
|
|
#define DEBUG_NOTICE 3
|
|
#define DEBUG_DNS 4 /* used by all DNS related routines - a *lot* */
|
|
#define DEBUG_INFO 5 /* general usful info */
|
|
#define DEBUG_NUM 6 /* numerics */
|
|
#define DEBUG_SEND 7 /* everything that is sent out */
|
|
#define DEBUG_DEBUG 8 /* anything to do with debugging, ie unimportant :) */
|
|
#define DEBUG_MALLOC 9 /* malloc/free calls */
|
|
#define DEBUG_LIST 10 /* debug list use */
|
|
|
|
|
|
extern void send_usage(struct Client*);
|
|
extern void count_memory (struct Client *);
|
|
|
|
extern void debug(int, char *, ...);
|
|
|
|
#endif /* INCLUDED_s_debug_h */
|
|
|