From 94de6a9a1ad1f6da57f3ffa4b138b253359bff0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= Date: Mon, 18 Oct 2010 10:32:18 +0300 Subject: [PATCH] Introduce cli_infomsg (rev) --- libclamav/others.h | 8 ++++++++ libclamav/others_common.c | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/libclamav/others.h b/libclamav/others.h index 709d74fa7..d5f065a0e 100644 --- a/libclamav/others.h +++ b/libclamav/others.h @@ -427,6 +427,14 @@ void cli_errmsg(const char *str, ...) __attribute__((format(printf, 1, 2))); void cli_errmsg(const char *str, ...); #endif +#ifdef __GNUC__ +void cli_infomsg(const cli_ctx* ctx, const char *fmt, ...) __attribute__((format(printf, 2, 3))); +#else +void cli_infomsg(const cli_ctx* ctx, const char *fmt, ...); +#endif + +void cli_logg_setup(const cli_ctx* ctx); + /* tell compiler about branches that are very rarely taken, * such as debug paths, and error paths */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) diff --git a/libclamav/others_common.c b/libclamav/others_common.c index 7314a3fbc..4bb0473f8 100644 --- a/libclamav/others_common.c +++ b/libclamav/others_common.c @@ -105,6 +105,11 @@ void cli_dbgmsg_internal(const char *str, ...) MSGCODE("LibClamAV debug: "); } +void cli_infomsg(const cli_ctx *ctx, const char *str, ...) +{ + MSGCODE("LibClamAV info: "); +} + int cli_matchregex(const char *str, const char *regex) { regex_t reg;