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;