3 #ifndef _MSG_OUTPUT_FN_
4 #define _MSG_OUTPUT_FN_
10 /* diagnostics output management
12 /* #include <msg_output.h>
21 * External interface. Severity levels are documented to be monotonically
22 * increasing from 0 up to MSG_LAST.
24 typedef void (*MSG_OUTPUT_FN
) (int, const char *);
25 extern void msg_output(MSG_OUTPUT_FN
);
26 extern void PRINTFLIKE(2, 3) msg_printf(int, const char *,...);
27 extern void msg_vprintf(int, const char *, va_list);
28 extern void msg_text(int, const char *);
30 #define MSG_INFO 0 /* informative */
31 #define MSG_WARN 1 /* warning (non-fatal) */
32 #define MSG_ERROR 2 /* error (fatal) */
33 #define MSG_FATAL 3 /* software error (fatal) */
34 #define MSG_PANIC 4 /* software error (fatal) */
36 #define MSG_LAST 4 /* highest-numbered severity level */
41 /* The Secure Mailer license must be distributed with this software.
44 /* IBM T.J. Watson Research
46 /* Yorktown Heights, NY 10598, USA