afb48b28 |
/* |
086eab5c |
* Copyright (C) 2007-2009 Sourcefire, Inc.
*
* 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
#include <stdlib.h>
|
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); |
bcbe6ad7 |
extern short int logg_verbose, logg_nowarn, logg_lock, logg_time; |
1b38f50d |
extern unsigned int 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
|
af309677 |
extern short int mprintf_disabled, mprintf_verbose, mprintf_quiet, mprintf_nowarn, mprintf_stdout, mprintf_send_timeout; |
afb48b28 |
#endif |