X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=529b164044bacf6fc2055c35203205a8c9d024ff;hp=2dfc4c484764807bdaf293e53d7dde57b8e4b456;hb=3243d9ee441e9cd4338965bac7c2ed3b49a3c2dd;hpb=dbea1873731f7a0bd718b6f84b75faa10b83fe66 diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 2dfc4c48..529b1640 100644 --- a/src/ngircd/log.h +++ b/src/ngircd/log.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: log.h,v 1.17 2005/06/24 19:20:56 fw Exp $ + * $Id: log.h,v 1.20 2006/08/05 09:16:21 fw Exp $ * * Logging functions (header) */ @@ -35,21 +35,27 @@ #define LOG_snotice 1024 -GLOBAL void Log_Init PARAMS((void )); -GLOBAL void Log_Exit PARAMS((void )); +GLOBAL void Log_Init PARAMS(( bool Daemon_Mode )); +GLOBAL void Log_Exit PARAMS(( void )); -GLOBAL void Log PARAMS((int Level, const char *Format, ... )); +GLOBAL void Log PARAMS(( int Level, const char *Format, ... )); -GLOBAL void Log_Init_Resolver PARAMS((void )); -GLOBAL void Log_Exit_Resolver PARAMS((void )); +#ifdef DEBUG +GLOBAL void LogDebug PARAMS(( const char *Format, ... )); +#else +static inline void LogDebug PARAMS(( UNUSED const char *Format, ... )){/* Do nothing. The compiler should optimize this out, please ;-) */} +#endif + + +GLOBAL void Log_Init_Resolver PARAMS(( void )); +GLOBAL void Log_Exit_Resolver PARAMS(( void )); -GLOBAL void Log_Resolver PARAMS((const int Level, const char *Format, ... )); +GLOBAL void Log_Resolver PARAMS(( const int Level, const char *Format, ... )); #ifdef DEBUG -GLOBAL void Log_InitErrorfile PARAMS((void )); +GLOBAL void Log_InitErrorfile PARAMS(( void )); #endif -GLOBAL void Log_SetDaemonized PARAMS((void)); #endif