1#ifndef _MSG_OUTPUT_FN_ 2#define _MSG_OUTPUT_FN_ 3 4/*++ 5/* NAME 6/* msg_output 3h 7/* SUMMARY 8/* diagnostics output management 9/* SYNOPSIS 10/* #include <msg_output.h> 11/* DESCRIPTION 12 13 /* 14 * System library. 15 */ 16#include <stdarg.h> 17 18 /* 19 * External interface. Severity levels are documented to be monotonically 20 * increasing from 0 up to MSG_LAST. 21 */ 22typedef void (*MSG_OUTPUT_FN) (int, const char *); 23extern void msg_output(MSG_OUTPUT_FN); 24extern void PRINTFLIKE(2, 3) msg_printf(int, const char *,...); 25extern void msg_vprintf(int, const char *, va_list); 26extern void msg_text(int, const char *); 27 28#define MSG_INFO 0 /* informative */ 29#define MSG_WARN 1 /* warning (non-fatal) */ 30#define MSG_ERROR 2 /* error (fatal) */ 31#define MSG_FATAL 3 /* software error (fatal) */ 32#define MSG_PANIC 4 /* software error (fatal) */ 33 34#define MSG_LAST 4 /* highest-numbered severity level */ 35 36/* LICENSE 37/* .ad 38/* .fi 39/* The Secure Mailer license must be distributed with this software. 40/* AUTHOR(S) 41/* Wietse Venema 42/* IBM T.J. Watson Research 43/* P.O. Box 704 44/* Yorktown Heights, NY 10598, USA 45/*--*/ 46 47#endif 48