Introduce cli_infomsg (rev)

0.96
Török Edvin 15 years ago
parent f6c3291501
commit 94de6a9a1a
  1. 8
      libclamav/others.h
  2. 5
      libclamav/others_common.c

@ -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)

@ -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;

Loading…
Cancel
Save