No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / msg_output.h
blob98cb6c6d3b4eea4583e5629c585d7e51b1e4248d
1 /* $NetBSD$ */
3 #ifndef _MSG_OUTPUT_FN_
4 #define _MSG_OUTPUT_FN_
6 /*++
7 /* NAME
8 /* msg_output 3h
9 /* SUMMARY
10 /* diagnostics output management
11 /* SYNOPSIS
12 /* #include <msg_output.h>
13 /* DESCRIPTION
16 * System library.
18 #include <stdarg.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 */
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /* The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /* Wietse Venema
44 /* IBM T.J. Watson Research
45 /* P.O. Box 704
46 /* Yorktown Heights, NY 10598, USA
47 /*--*/
49 #endif