shared/output.h
afb48b28
 /*
  *  Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
  *
  *  This program is free software; you can redistribute it and/or modify
bb34cb31
  *  it under the terms of the GNU General Public License version 2 as
  *  published by the Free Software Foundation.
afb48b28
  *
  *  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
48b7b4a7
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA 02110-1301, USA.
afb48b28
  */
 
 #ifndef __OUTPUT_H
 #define __OUTPUT_H
 
 #if HAVE_CONFIG_H
 #include "clamav-config.h"
 #endif
 
 #include <stdlib.h>
 #include "cfgparser.h"
 
 int mdprintf(int desc, const char *str, ...);
 
3c30b19b
 #ifdef __GNUC__
 int logg(const char *str, ...)      __attribute__((format(printf, 1, 2)));
 #else
afb48b28
 int logg(const char *str, ...);
3c30b19b
 #endif
 
afb48b28
 void logg_close(void);
58bcf502
 extern short int logg_verbose, logg_lock, logg_time;
 extern int logg_size;
 extern const char *logg_file;
afb48b28
 
 #if defined(USE_SYSLOG) && !defined(C_AIX)
58bcf502
 extern short logg_syslog;
c695dab4
 int logg_facility(const char *name);
afb48b28
 #endif
 
3c30b19b
 #ifdef __GNUC__
 void mprintf(const char *str, ...) __attribute__((format(printf, 1, 2)));
 #else
afb48b28
 void mprintf(const char *str, ...);
3c30b19b
 #endif
 
58bcf502
 extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_stdout;
afb48b28
 
 #endif