... | ... |
@@ -427,6 +427,14 @@ void cli_errmsg(const char *str, ...) __attribute__((format(printf, 1, 2))); |
427 | 427 |
void cli_errmsg(const char *str, ...); |
428 | 428 |
#endif |
429 | 429 |
|
430 |
+#ifdef __GNUC__ |
|
431 |
+void cli_infomsg(const cli_ctx* ctx, const char *fmt, ...) __attribute__((format(printf, 2, 3))); |
|
432 |
+#else |
|
433 |
+void cli_infomsg(const cli_ctx* ctx, const char *fmt, ...); |
|
434 |
+#endif |
|
435 |
+ |
|
436 |
+void cli_logg_setup(const cli_ctx* ctx); |
|
437 |
+ |
|
430 | 438 |
/* tell compiler about branches that are very rarely taken, |
431 | 439 |
* such as debug paths, and error paths */ |
432 | 440 |
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) |
... | ... |
@@ -105,6 +105,11 @@ void cli_dbgmsg_internal(const char *str, ...) |
105 | 105 |
MSGCODE("LibClamAV debug: "); |
106 | 106 |
} |
107 | 107 |
|
108 |
+void cli_infomsg(const cli_ctx *ctx, const char *str, ...) |
|
109 |
+{ |
|
110 |
+ MSGCODE("LibClamAV info: "); |
|
111 |
+} |
|
112 |
+ |
|
108 | 113 |
int cli_matchregex(const char *str, const char *regex) |
109 | 114 |
{ |
110 | 115 |
regex_t reg; |