shared/output.h
afb48b28
 /*
c442ca9c
  *  Copyright (C) 2013-2019 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
9fe7cdd1
  *  Copyright (C) 2007-2013 Sourcefire, Inc.
086eab5c
  *
  *  Authors: Tomasz Kojm
afb48b28
  *
  *  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
 
9fe7cdd1
 #if HAVE_STDLIB_H
afb48b28
 #include <stdlib.h>
9fe7cdd1
 #endif
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
afb48b28
 
5cd3f734
 #ifdef __GNUC__
 int mdprintf(int desc, const char *str, ...) __attribute__((format(printf, 2,3)));
 #else
afb48b28
 int mdprintf(int desc, const char *str, ...);
5cd3f734
 #endif
afb48b28
 
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);
42ccf9c2
 extern short int logg_verbose, logg_nowarn, logg_lock, logg_time, logg_noflush, logg_rotate;
 extern off_t logg_size;
58bcf502
 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
 
92e8a9ed
 extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_nowarn, mprintf_stdout, mprintf_send_timeout, mprintf_progress;
afb48b28
 
 #endif