X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Flog.h;h=529b164044bacf6fc2055c35203205a8c9d024ff;hb=60eac5e952ef4096557d63e323e34498cc88928f;hp=24c3f88cfdff3b2124952587f1859e873de4905a;hpb=9537542647b014894227de81a59fb063fc0dc3e4;p=ngircd-alex.git diff --git a/src/ngircd/log.h b/src/ngircd/log.h index 24c3f88c..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.15 2005/02/10 12:49:04 alex Exp $ + * $Id: log.h,v 1.20 2006/08/05 09:16:21 fw Exp $ * * Logging functions (header) */ @@ -35,18 +35,25 @@ #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